| 
					
				 | 
			
			
				@@ -41,7 +41,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     isShow: function(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.curObj.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$api.house.admestatemoduledetail({id: this.curObj.id}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$api.school.admschoolmoduledetail({id: this.curObj.id}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let curData = res || {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.cObj = curData || {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.getDef() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -58,12 +58,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.curObj.id) disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const params = { ...this.cObj } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      params.module_type = this.parentData.curNavVal || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      params.school_cate = this.parentData.curNavVal || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.formData = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { label: '所属模块', key: 'module_type', disabled, rules: 1, type: 'select', options: this.$dictData.module_type }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { label: '所属楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', changeHandle: this.deviceChange, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          remoteOptions: [{ keyRO: params.estate_name, valRO: params.estate_id }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '所属模块', key: 'school_cate', disabled, rules: 1, type: 'select', options: this.$dictData.school_cate }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { label: '关联学校', key: 'school_id', rules: 1, type: 'selectRemote', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          remoteParams: { skey: 'school_name', api: `school.admschoollist`, opKey: 'school_name', opVal: 'id' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          remoteOptions: [{ keyRO: params.school_name, valRO: params.school_id }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { label: '排序', key: 'sort' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -78,9 +78,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (this.curObj.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               newForm.id = this.curObj.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            let apiStr = 'admestatemoduleadd' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (newForm.id) apiStr = 'admestatemoduleedit' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$api.house[apiStr](newForm).then(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let apiStr = 'admschoolmoduleadd' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (newForm.id) apiStr = 'admschoolmoduleedit' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$api.school[apiStr](newForm).then(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$msgs(newForm.id ? '编辑成功' : '新增成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$emit('close', newForm) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 |