|  |  | @ -4,7 +4,7 @@ | 
			
		
	
		
			
				
					|  |  |  |               <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> | 
			
		
	
		
			
				
					|  |  |  |                 <el-form-item label="所属机构"> | 
			
		
	
		
			
				
					|  |  |  |                   <el-cascader | 
			
		
	
		
			
				
					|  |  |  |                     v-model="dataForm.deptIdList" | 
			
		
	
		
			
				
					|  |  |  |                     v-model="deptIdList" | 
			
		
	
		
			
				
					|  |  |  |                     :options="options" | 
			
		
	
		
			
				
					|  |  |  |                     :props="{ checkStrictly: true }" | 
			
		
	
		
			
				
					|  |  |  |                     clearable> | 
			
		
	
	
		
			
				
					|  |  | @ -67,7 +67,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |   data () { | 
			
		
	
		
			
				
					|  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |       mixinViewModuleOptions: { | 
			
		
	
		
			
				
					|  |  |  |         getDataListURL: 'app-user/user/query', | 
			
		
	
		
			
				
					|  |  |  |         getDataListURL: 'app-user/user/page', | 
			
		
	
		
			
				
					|  |  |  |         getDataListIsPage: true, | 
			
		
	
		
			
				
					|  |  |  |         deleteURL: '/app-use/user', | 
			
		
	
		
			
				
					|  |  |  |         deleteIsBatch: true, | 
			
		
	
	
		
			
				
					|  |  | @ -84,11 +84,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         startTime: '', | 
			
		
	
		
			
				
					|  |  |  |         endTime: '', | 
			
		
	
		
			
				
					|  |  |  |         partyFlag: '', | 
			
		
	
		
			
				
					|  |  |  |         state: '0', | 
			
		
	
		
			
				
					|  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |         limit: 10, | 
			
		
	
		
			
				
					|  |  |  |         deptIdList: [] | 
			
		
	
		
			
				
					|  |  |  |         state: '0' | 
			
		
	
		
			
				
					|  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |       deptIdList: [], | 
			
		
	
		
			
				
					|  |  |  |       options: [], | 
			
		
	
		
			
				
					|  |  |  |       userDetailVisible: false, | 
			
		
	
		
			
				
					|  |  |  |       streetOptions: [], | 
			
		
	
	
		
			
				
					|  |  | @ -112,6 +110,30 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |       .catch(() => {}) | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   watch: { | 
			
		
	
		
			
				
					|  |  |  |     'deptIdList': function (val) { | 
			
		
	
		
			
				
					|  |  |  |       if (val.length === 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.streetId = '' | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.communityId = '' | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.gridId = '' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       if (val.length === 1) { | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.streetId = this.deptIdList[0] | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.communityId = '' | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.gridId = '' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       if (val.length === 2) { | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.streetId = this.deptIdList[0] | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.communityId = this.deptIdList[1] | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.gridId = '' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       if (val.length === 3) { | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.streetId = this.deptIdList[0] | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.communityId = this.deptIdList[1] | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.gridId = this.deptIdList[2] | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |     getStreetList () { | 
			
		
	
		
			
				
					|  |  |  |       this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { | 
			
		
	
	
		
			
				
					|  |  | @ -171,11 +193,17 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.endTime = '' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.dataListLoading = true | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm.page = this.mixinViewModuleOptions.getDataListIsPage ? this.page : null | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm.limit = this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null | 
			
		
	
		
			
				
					|  |  |  |       this.$http.post( | 
			
		
	
		
			
				
					|  |  |  |         this.mixinViewModuleOptions.getDataListURL, this.dataForm | 
			
		
	
		
			
				
					|  |  |  |       ).then(({ data: res }) => { | 
			
		
	
		
			
				
					|  |  |  |       this.$http.get( | 
			
		
	
		
			
				
					|  |  |  |         this.mixinViewModuleOptions.getDataListURL, | 
			
		
	
		
			
				
					|  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |           params: { | 
			
		
	
		
			
				
					|  |  |  |             order: this.order, | 
			
		
	
		
			
				
					|  |  |  |             orderField: this.orderField, | 
			
		
	
		
			
				
					|  |  |  |             page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, | 
			
		
	
		
			
				
					|  |  |  |             limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, | 
			
		
	
		
			
				
					|  |  |  |             ...this.dataForm | 
			
		
	
		
			
				
					|  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |         }).then(({ data: res }) => { | 
			
		
	
		
			
				
					|  |  |  |         this.dataListLoading = false | 
			
		
	
		
			
				
					|  |  |  |         if (res.code !== 0) { | 
			
		
	
		
			
				
					|  |  |  |           this.dataList = [] | 
			
		
	
	
		
			
				
					|  |  | 
 |