修改UAT问题

This commit is contained in:
高嵩
2023-08-17 17:40:06 +08:00
parent c71e75132a
commit 09e3297be4
13 changed files with 206 additions and 74 deletions
@@ -69,6 +69,9 @@
{{ 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="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:delete'" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
</span>
@@ -193,6 +196,13 @@ export default {
// ellipsis: true,
// dataIndex: 'region_dictText',
// },
{
title: this.$t('VersionNumber'),
align: 'left',
width: 120,
ellipsis: true,
dataIndex: 'version'
},
{
title: this.$t('creater'),
align: 'left',
@@ -282,6 +292,34 @@ export default {
this.visible = false;
this.$refs['ruleForm'].resetFields()
},
withdrawOrRelease(item){
let _this = this
this.$confirm({
content: item.status && item.status == '1' ? _this.$t('confirmWithdraw') : _this.$t('confirmRelease'),
onOk() {
if (item.status && item.status == '1'){
getAction('params/paramsInfo/withdraw', { paramsTemplateId: item.id }).then((res) => {
if (res.success) {
_this.$message.success(res.result)
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
}else{
getAction('params/paramsInfo/publish', { paramsTemplateId: item.id }).then((res) => {
if (res.success) {
_this.$message.success(res.result)
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
}
}
})
},
//批量删除
handleDel() {
let param={