update 自定义比对

This commit is contained in:
赵霄
2023-10-30 16:44:10 +08:00
parent 51bef13b1b
commit 93496eef14
7 changed files with 189 additions and 140 deletions
@@ -54,7 +54,7 @@
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
</a>
<a-button type="primary" @click="searchQuery">{{ $t('query') }}</a-button>
<a-button type="primary" @click="searchQuery" v-has="'customComparison:search'">{{ $t('query') }}</a-button>
<a-button style="margin-left: 8px" @click="searchReset">{{ $t('reset') }}</a-button>
</div>
</a-row>
@@ -63,7 +63,7 @@
<!--操作按钮-->
<div class="table-operator">
<!--新增-->
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'customComparison:add'">{{ $t('newlyAdded') }}</a-button>
</div>
<div>
<j-table
@@ -148,19 +148,19 @@ export default {
operationList: [
{ // 查看
text: this.$t('view'),
clickEvent: 'handleDetail'
// has: 'enterpriseStandardLibrary:plan:detail'
clickEvent: 'handleDetail',
has: 'customComparison:view'
},
// 编辑
{
text: this.$t('edit'),
clickEvent: 'handleEdit'
// has: 'documentComparison:edit'
clickEvent: 'handleEdit',
has: 'customComparison:edit'
},
{ // 删除
text: this.$t('delete'),
clickEvent: 'handleDelete'
// has: 'enterpriseStandardLibrary:plan:delete'
clickEvent: 'handleDelete',
has: 'customComparison:delete'
}
],
url: {
@@ -182,6 +182,11 @@ export default {
this.$refs.modalForm.edit(id)
this.$refs.modalForm.title = this.$t('edit')
this.$refs.modalForm.disableSubmit = false
},
handleDetail ({ id }) {
this.$refs.modalForm.edit(id)
this.$refs.modalForm.title = this.$t('details')
this.$refs.modalForm.disableSubmit = false
}
}
}