230320a303 1 年之前
父节点
当前提交
2fe706bf94
共有 2 个文件被更改,包括 11 次插入12 次删除
  1. 1 1
      src/views/house/components/popup/IndexEdit.vue
  2. 10 11
      src/views/school/components/popup/IndexEdit.vue

+ 1 - 1
src/views/house/components/popup/IndexEdit.vue

@@ -374,7 +374,7 @@ export default {
       this.formData = [
         { label: '楼盘名称', key: 'estate_name', rules: 1 },
         { label: '所属区域', key: 'area_type', type: 'select', class: 'c-3', options: this.areaList, changeHandle: this.areaChange },
-        { label: '所属区域', key: 'area_child', type: 'select', class: 'c-3', options: this.areaChildList },
+        { label: '二级区域', key: 'area_child', type: 'select', class: 'c-3', options: this.areaChildList },
         // { label: '二级区域', key: 'area_child', type: 'selectRemote', class: 'c-3',
         //   remoteParams: { skey: 'area_name', api: `other.admareainfolist?level=2&&page_size=99&parent_id=${params.area_type ? this.areaValIdObj[params.area_type] : ''}`, opKey: 'area_name', opVal: 'id' },
         // },

+ 10 - 11
src/views/school/components/popup/IndexEdit.vue

@@ -74,18 +74,17 @@ export default {
   watch: {
     isShow: function(val) {
       if (val) {
-        if (val) {
-          if (this.curObj.id) {
-            this.$api.school.admschooldetail({id: this.curObj.id}).then(res => {
-              let curData = res || {}
-              this.cObj = curData || {}
-              if (curData.images && curData.images.length > 0) this.imagesArr = curData.images.split(',')
-              this.getDef()
-            })
-          } else {
-            this.cObj = this.curObj
+        this.imagesArr = []
+        if (this.curObj.id) {
+          this.$api.school.admschooldetail({id: this.curObj.id}).then(res => {
+            let curData = res || {}
+            this.cObj = curData || {}
+            if (curData.images && curData.images.length > 0) this.imagesArr = curData.images.split(',')
             this.getDef()
-          }
+          })
+        } else {
+          this.cObj = this.curObj
+          this.getDef()
         }
       }
     },