fix : 屏蔽参数设置的批量删除
This commit is contained in:
@@ -34,10 +34,10 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<div class="query-btn">
|
<div class="query-btn">
|
||||||
<el-button type="primary" v-perm="['admin:config:add']" @click="handleAdd" :icon="Plus" plain>新增</el-button>
|
<el-button type="primary" v-perm="['admin:config:add']" @click="handleAdd" :icon="Plus" plain>新增</el-button>
|
||||||
<el-button type="danger" v-perm="['admin:config:del']" @click="handleMoreDelete(configIds,configNameList)"
|
<!-- <el-button type="danger" v-perm="['admin:config:del']" @click="handleMoreDelete(configIds,configNameList)"-->
|
||||||
:icon="Delete" plain
|
<!-- :icon="Delete" plain-->
|
||||||
:disabled="disabled">删除
|
<!-- :disabled="disabled">删除-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
<!-- <el-button type="warning" v-perm="['admin:config:export']" @click="handleExport" :icon="Download" plain>导出-->
|
<!-- <el-button type="warning" v-perm="['admin:config:export']" @click="handleExport" :icon="Download" plain>导出-->
|
||||||
<!-- </el-button>-->
|
<!-- </el-button>-->
|
||||||
</div>
|
</div>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
v-tabh
|
v-tabh
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"/>
|
<!-- <el-table-column type="selection" width="55"/>-->
|
||||||
<el-table-column label="序号" type="index" width="60"/>
|
<el-table-column label="序号" type="index" width="60"/>
|
||||||
<el-table-column prop="configName" label="参数名称" align="center"/>
|
<el-table-column prop="configName" label="参数名称" align="center"/>
|
||||||
<el-table-column prop="configKey" label="参数键名" align="center"/>
|
<el-table-column prop="configKey" label="参数键名" align="center"/>
|
||||||
@@ -247,6 +247,9 @@ const handleSubmit = async (instance) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
if(form.value.configType==1){
|
||||||
|
delete form.value.extraConfigType
|
||||||
|
}
|
||||||
editConfig(form.value).then(res => {
|
editConfig(form.value).then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
ElMessage.success(res.msg)
|
ElMessage.success(res.msg)
|
||||||
@@ -274,6 +277,7 @@ const handleEdit = async (configId) => {
|
|||||||
restFrom()
|
restFrom()
|
||||||
getConfigDetails(configId).then(res => {
|
getConfigDetails(configId).then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
|
res.data.configType= res.data.configType+''
|
||||||
form.value = res.data
|
form.value = res.data
|
||||||
title.value = "编辑参数配置表"
|
title.value = "编辑参数配置表"
|
||||||
isVisited.value = true
|
isVisited.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user