|  |  | @ -134,11 +134,13 @@ | 
			
		
	
		
			
				
					|  |  |  |           <div class="m-yanpan" | 
			
		
	
		
			
				
					|  |  |  |                v-if="groupIndex == 0"> | 
			
		
	
		
			
				
					|  |  |  |             <div v-if="projectId"> | 
			
		
	
		
			
				
					|  |  |  |               <analyse v-if="!yanPan.loading" | 
			
		
	
		
			
				
					|  |  |  |               <analyse v-if="yanPan.loading" | 
			
		
	
		
			
				
					|  |  |  |                        singleTitle="楼院小组" | 
			
		
	
		
			
				
					|  |  |  |                        :userList="yanPan.homeUserList" | 
			
		
	
		
			
				
					|  |  |  |                        :userName="yanPan.icUserName" | 
			
		
	
		
			
				
					|  |  |  |                        :singleList="yanPan.categoryList" | 
			
		
	
		
			
				
					|  |  |  |                        :singleList="yanPan.singleList" | 
			
		
	
		
			
				
					|  |  |  |                        :hasEvent="yanPan.hasEvent" | 
			
		
	
		
			
				
					|  |  |  |                        :moreList="yanPan.moreList" | 
			
		
	
		
			
				
					|  |  |  |                        @user="toUserInfo" | 
			
		
	
		
			
				
					|  |  |  |                        @project="toProjectInfo" /> | 
			
		
	
		
			
				
					|  |  |  |               <screen-loading v-else>加载中</screen-loading> | 
			
		
	
	
		
			
				
					|  |  | @ -258,7 +260,7 @@ import dateFormat from "dai-js/tools/dateFormat"; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | function iniData () { | 
			
		
	
		
			
				
					|  |  |  |   return { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     projectIdCopy: this.projectId, | 
			
		
	
		
			
				
					|  |  |  |     groupList: [ | 
			
		
	
		
			
				
					|  |  |  |       { label: "研判分析" }, | 
			
		
	
		
			
				
					|  |  |  |       { label: "项目来源" }, | 
			
		
	
	
		
			
				
					|  |  | @ -266,7 +268,6 @@ function iniData () { | 
			
		
	
		
			
				
					|  |  |  |     groupIndex: 0, | 
			
		
	
		
			
				
					|  |  |  |     startGroupIndex: 0, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     projectProcess: [], | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     projectInfo: { | 
			
		
	
	
		
			
				
					|  |  | @ -345,7 +346,7 @@ function iniData () { | 
			
		
	
		
			
				
					|  |  |  |         //   icUserName: '', | 
			
		
	
		
			
				
					|  |  |  |         // } | 
			
		
	
		
			
				
					|  |  |  |       ], | 
			
		
	
		
			
				
					|  |  |  |       categoryList: [], | 
			
		
	
		
			
				
					|  |  |  |       singleList: [],//楼院小组 | 
			
		
	
		
			
				
					|  |  |  |       projectData: [ | 
			
		
	
		
			
				
					|  |  |  |         // { | 
			
		
	
		
			
				
					|  |  |  |         //   firstCategoryCode: '', | 
			
		
	
	
		
			
				
					|  |  | @ -353,6 +354,9 @@ function iniData () { | 
			
		
	
		
			
				
					|  |  |  |         //   projectList: [], | 
			
		
	
		
			
				
					|  |  |  |         // } | 
			
		
	
		
			
				
					|  |  |  |       ], | 
			
		
	
		
			
				
					|  |  |  |       hasEvent: false, | 
			
		
	
		
			
				
					|  |  |  |       moreList: [],// | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |   }; | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | @ -396,9 +400,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |       this.getApiData(); | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // projectIdCopy () { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     // }, | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   mounted () { | 
			
		
	
		
			
				
					|  |  |  |     console.log(this.projectIdCopy) | 
			
		
	
		
			
				
					|  |  |  |     this.getApiData(); | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -450,7 +459,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       const url = "/gov/project/trace/projectdetail"; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const { data, code, msg } = await requestPost(url, { | 
			
		
	
		
			
				
					|  |  |  |         projectId: this.projectId, | 
			
		
	
		
			
				
					|  |  |  |         projectId: this.projectIdCopy, | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (code === 0) { | 
			
		
	
	
		
			
				
					|  |  | @ -533,7 +542,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       const url = "/gov/project/trace/processlist-v2"; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const { data, code, msg } = await requestPost(url, { | 
			
		
	
		
			
				
					|  |  |  |         projectId: this.projectId, | 
			
		
	
		
			
				
					|  |  |  |         projectId: this.projectIdCopy, | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (code === 0) { | 
			
		
	
	
		
			
				
					|  |  | @ -554,7 +563,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       const url = "/gov/project/projectcategory/categorytaglist"; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const { data, code, msg } = await requestPost(url, { | 
			
		
	
		
			
				
					|  |  |  |         projectId: this.projectId, | 
			
		
	
		
			
				
					|  |  |  |         projectId: this.projectIdCopy, | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (code === 0) { | 
			
		
	
	
		
			
				
					|  |  | @ -576,34 +585,73 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (code === 0) { | 
			
		
	
		
			
				
					|  |  |  |         let array = [] | 
			
		
	
		
			
				
					|  |  |  |         if (this.projectInfo.origin === 'issue') { | 
			
		
	
		
			
				
					|  |  |  |           array = [...data.groupProjectList] | 
			
		
	
		
			
				
					|  |  |  |         } else if (this.projectInfo.origin === 'resi_event') { | 
			
		
	
		
			
				
					|  |  |  |           array = [...data.eventProjectList] | 
			
		
	
		
			
				
					|  |  |  |         data.icResiUserId = data.icUserId | 
			
		
	
		
			
				
					|  |  |  |         data.homeUserList.forEach(item => { | 
			
		
	
		
			
				
					|  |  |  |           item.icResiUserId = item.icUserId | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         let array1 = [] | 
			
		
	
		
			
				
					|  |  |  |         let array2 = [] | 
			
		
	
		
			
				
					|  |  |  |         // debugger | 
			
		
	
		
			
				
					|  |  |  |         //楼院小组、居民上报都存在是,研判分析显示两个分支 | 
			
		
	
		
			
				
					|  |  |  |         if (data.groupProjectList && data.groupProjectList.length > 0 && data.eventProjectList && data.eventProjectList.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |           this.yanPan.hasEvent = true | 
			
		
	
		
			
				
					|  |  |  |           array1 = [...data.groupProjectList] | 
			
		
	
		
			
				
					|  |  |  |           array2 = [...data.eventProjectList] | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |           this.yanPan.hasEvent = false | 
			
		
	
		
			
				
					|  |  |  |           if (data.groupProjectList && data.groupProjectList.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |             array1 = [...data.groupProjectList] | 
			
		
	
		
			
				
					|  |  |  |           } else if (data.eventProjectList && data.eventProjectList.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |             array1 = [...data.eventProjectList] | 
			
		
	
		
			
				
					|  |  |  |           } else { | 
			
		
	
		
			
				
					|  |  |  |             array1 = [] | 
			
		
	
		
			
				
					|  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         data.categoryList = array.map((item) => { | 
			
		
	
		
			
				
					|  |  |  |         if (array1.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |           data.singleList = array1.map((item) => { | 
			
		
	
		
			
				
					|  |  |  |             return { | 
			
		
	
		
			
				
					|  |  |  |               categoryCode: item.categoryCode, | 
			
		
	
		
			
				
					|  |  |  |               categoryName: item.categoryName, | 
			
		
	
		
			
				
					|  |  |  |               showItem: true, | 
			
		
	
		
			
				
					|  |  |  |               projectList: item.projectList.map((subItem) => { | 
			
		
	
		
			
				
					|  |  |  |                 return { | 
			
		
	
		
			
				
					|  |  |  |                   title: subItem.title, | 
			
		
	
		
			
				
					|  |  |  |                   status: subItem.status, | 
			
		
	
		
			
				
					|  |  |  |                   statusName: | 
			
		
	
		
			
				
					|  |  |  |                     subItem.status == "pending" ? "待处理" : "结案", | 
			
		
	
		
			
				
					|  |  |  |                   projectId: subItem.projectId, | 
			
		
	
		
			
				
					|  |  |  |                 }; | 
			
		
	
		
			
				
					|  |  |  |               }), | 
			
		
	
		
			
				
					|  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         if (array2.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |           data.moreList = array2.map((item) => { | 
			
		
	
		
			
				
					|  |  |  |             return { | 
			
		
	
		
			
				
					|  |  |  |               categoryCode: item.categoryCode, | 
			
		
	
		
			
				
					|  |  |  |               categoryName: item.categoryName, | 
			
		
	
		
			
				
					|  |  |  |               showItem: true, | 
			
		
	
		
			
				
					|  |  |  |               projectList: item.projectList.map((subItem) => { | 
			
		
	
		
			
				
					|  |  |  |                 return { | 
			
		
	
		
			
				
					|  |  |  |                 title: subItem.projectTitle, | 
			
		
	
		
			
				
					|  |  |  |                 status: subItem.projectStatus, | 
			
		
	
		
			
				
					|  |  |  |                   title: subItem.title, | 
			
		
	
		
			
				
					|  |  |  |                   status: subItem.status, | 
			
		
	
		
			
				
					|  |  |  |                   statusName: | 
			
		
	
		
			
				
					|  |  |  |                   subItem.projectStatus == "pending" ? "待处理" : "结案", | 
			
		
	
		
			
				
					|  |  |  |                     subItem.status == "pending" ? "待处理" : "结案", | 
			
		
	
		
			
				
					|  |  |  |                   projectId: subItem.projectId, | 
			
		
	
		
			
				
					|  |  |  |                 }; | 
			
		
	
		
			
				
					|  |  |  |               }), | 
			
		
	
		
			
				
					|  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         this.yanPan = { ...this.yanPan, ...data }; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         this.yanPan.loading = false; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         this.yanPan = { ...this.yanPan, ...data }; | 
			
		
	
		
			
				
					|  |  |  |         console.log(this.yanPan) | 
			
		
	
		
			
				
					|  |  |  |         this.yanPan.loading = true; | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(msg); | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
	
		
			
				
					|  |  | @ -617,7 +665,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     toProjectInfo (item) { | 
			
		
	
		
			
				
					|  |  |  |       console.log(item); | 
			
		
	
		
			
				
					|  |  |  |       this.projectId = item.projectId; | 
			
		
	
		
			
				
					|  |  |  |       this.projectIdCopy = item.projectId; | 
			
		
	
		
			
				
					|  |  |  |       // let data = iniData(); | 
			
		
	
		
			
				
					|  |  |  |       // Object.keys(data).forEach((k) => { | 
			
		
	
		
			
				
					|  |  |  |       //   this[k] = data[k]; | 
			
		
	
		
			
				
					|  |  |  |       // }); | 
			
		
	
		
			
				
					|  |  |  |       this.getApiData(); | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  | }; | 
			
		
	
	
		
			
				
					|  |  | 
 |