[update 标准主计划] 按钮权限

This commit is contained in:
danshihao
2024-06-27 18:08:38 +08:00
parent d2d00c88f1
commit acdd3beb54
@@ -24,7 +24,7 @@
</a-col>
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="6" :sm="8">
<a-button type="primary" @click="searchQuery" icon="search">{{ $t('query') }}</a-button>
<a-button v-has="'standardMasterPlan:search'" type="primary" @click="searchQuery" icon="search">{{ $t('query') }}</a-button>
<a-button type="primary" @click="searchReset" ghost icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
</a-col>
</div>
@@ -32,9 +32,9 @@
</a-form>
</div>
<div class="table-operator" style="border-top: 5px">
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'sys:dict:operation'">{{ $t('add') }}</a-button>
<a-button @click="handleAdd" type="primary" icon="plus" v-has="'standardMasterPlan:add'">{{ $t('add') }}</a-button>
<a-button type="primary" icon="upload" ghost @click="handleExportXls($t('dict.dictInfo'))"
v-has="'sys:dict:operation'">{{ $t('export') }}
v-has="'standardMasterPlan:export'">{{ $t('export') }}
</a-button>
</div>
@@ -119,17 +119,18 @@ export default {
{
text: this.$t('edit'),
clickEvent: 'handleEdit',
has: ''
has: 'standardMasterPlan:edit'
},
// 查看
{
text: this.$t('view'),
clickEvent: 'handleShow',
has: ''
has: 'standardMasterPlan:detail'
}
],
url: {
list: '/laws/StandardMasterPlan/queryByPage'
list: '/laws/StandardMasterPlan/queryByPage',
exportXlsUrl: '/laws/StandardMasterPlan/exportExcel'
}
}
},