|
@@ -402,7 +402,7 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="scope.row.fang = false"
|
|
|
+ @click="scope.row.fang = false; conditName=scope.row.name"
|
|
|
>编辑</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -500,6 +500,7 @@ export default {
|
|
|
mainName: '',
|
|
|
type: ''
|
|
|
},
|
|
|
+ conditName:'',
|
|
|
dataList: [],
|
|
|
addList: [],
|
|
|
pageSizeArr: [10, 20, 30, 50],
|
|
@@ -675,10 +676,12 @@ export default {
|
|
|
// 修改条件名称
|
|
|
handleConditionName(row) {
|
|
|
console.log(row.name)
|
|
|
- updateCondition({ id: row.id, name: row.name }).then((res) => {
|
|
|
- this.$successMsg('修改成功')
|
|
|
- row.fang = true
|
|
|
- })
|
|
|
+ if (this.conditName !== row.name){
|
|
|
+ updateCondition({ id: row.id, name: row.name }).then((res) => {
|
|
|
+ this.$successMsg('修改成功')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ row.fang = true
|
|
|
},
|
|
|
// 提交信息
|
|
|
handleSubmitCon() {
|