Browse Source

情境创建bug

lvxinghai 4 years ago
parent
commit
b69478b1f2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      pages/creatingSituations/components/checkMap.vue

+ 2 - 3
pages/creatingSituations/components/checkMap.vue

@@ -66,10 +66,9 @@
 			init: function() {
 				const {checkedItem} = this.checkRent;
 				const {depType} = this.condition;
-				const {checkRent, condition, checkMap} = this.editConfig;
 				// 编辑的时候不用获取数据
-				if(this.editConfig && checkRent && depType === condition.depType && checkedItem.id === checkRent.checkedItem.id) {
-					this.commit('checkMap', checkMap);
+				if(this.editConfig && this.editConfig.checkRent && depType === this.editConfig.condition.depType && checkedItem.id === this.editConfig.checkRent.checkedItem.id) {
+					this.commit('checkMap', this.editConfig.checkMap);
 				} else if(this.needReload) { // 点击上一步不用获取数据
 					if(!checkedItem.points) return;
 					let checkPointIds = checkedItem.points.map(({id})=> id);