|
@@ -129,6 +129,7 @@ export default {
|
|
|
typeSort:0,
|
|
|
},
|
|
|
conditionList:[],
|
|
|
+ conditionListData:[],
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
typeName: [
|
|
@@ -170,7 +171,7 @@ export default {
|
|
|
item.checkAll=false;
|
|
|
item.checkedCities=[];
|
|
|
})
|
|
|
- this.$set(this,'conditionList',response.data)
|
|
|
+ this.$set(this,'conditionListData',response.data)
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -220,7 +221,7 @@ export default {
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
- this.laboratoryClassTypeGetClassCriteria();
|
|
|
+ this.$set(this,'conditionList',JSON.parse(JSON.stringify(this.conditionListData)));
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "新增安全分类";
|
|
@@ -228,6 +229,7 @@ export default {
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
let self=this;
|
|
|
+ this.$set(this,'conditionList',JSON.parse(JSON.stringify(this.conditionListData)));
|
|
|
this.reset();
|
|
|
laboratoryClassTypeDetail({id:row.typeId}).then( response => {
|
|
|
this.$set(this,'form',{
|
|
@@ -235,8 +237,6 @@ export default {
|
|
|
typeName:response.data.typeName,
|
|
|
typeSort:response.data.typeSort,
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
//原数组
|
|
|
self.conditionList.forEach(function(item){
|
|
|
let list=[];
|