|
@@ -172,7 +172,8 @@ import {patt,trimDots,imageUrlPrefix} from '@utils/tools.js'
|
|
|
this.$store.commit('setDetail',{detail:{}})
|
|
|
},
|
|
|
clearData(){//清空
|
|
|
- const datas = this.checkDatas.questionMapping;
|
|
|
+ // const datas = this.checkDatas.questionMapping;
|
|
|
+ const datas = JSON.parse(JSON.stringify(this.checkDatas.questionMapping))
|
|
|
let reqFlag = false;//必填项标识
|
|
|
for(let i in datas){
|
|
|
datas[i].value = "";
|
|
@@ -191,7 +192,7 @@ import {patt,trimDots,imageUrlPrefix} from '@utils/tools.js'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.checkDatas = Object.assign({},this.checkDatas,{questionMapping:datas});
|
|
|
// 已有选中内容重新进来,点清空时并非真的清空
|
|
|
if(this.checkDatas.select ==1){return}
|