修改参数清单变更扩展

This commit is contained in:
高嵩
2023-08-19 11:21:18 +08:00
parent 1a0589a83b
commit 460ac2b5ef
12 changed files with 194 additions and 75 deletions
@@ -69,10 +69,12 @@
{{ text && text.length > 50 ? text.slice(0, 49) + '...' : text }}
</span>
<span slot="operation" slot-scope="text,record">
<a class="text-operation" v-has="'params:template:edit'" @click="edit(record)">{{$t('edit')}}</a>
<a class="text-operation"
v-has="'params:template:edit'"
v-has="'params:template:publish'"
@click="withdrawOrRelease(record)">{{record.status && record.status == '1'? $t('withdraw') : $t('release')}}</a>
<a class="text-operation" v-has="'params:template:edit'" @click="edit(record)">{{$t('edit')}}</a>
<a class="text-operation" v-has="'params:template:maintenanceTemplate'"
@click="maintenanceTemplateClick(record)">{{$t('maintenanceTemplate')}}</a>
<a class="text-operation" v-has="'params:template:delete'" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
</span>
</a-table>
@@ -318,7 +320,13 @@ export default {
}
}
})
},
maintenanceTemplateClick(item){
item.titleNameDesgin = 'maintenance'
this.$router.push({
path: '/ParameterTemplateList',
query: item
})
},
//批量删除
handleDel() {
@@ -387,6 +395,7 @@ export default {
},
//虚拟清单名称事件
entryNameClick(item) {
item.titleNameDesgin = 'view'
this.$router.push({
path: '/ParameterTemplateList',
query: item