|  |  | @ -38,6 +38,7 @@ | 
			
		
	
		
			
				
					|  |  |  |                       :eventId="eventId" | 
			
		
	
		
			
				
					|  |  |  |                       :eventDetailData="eventDetailData" | 
			
		
	
		
			
				
					|  |  |  |                       @handleToProject="handleToProject" | 
			
		
	
		
			
				
					|  |  |  |                       @handleToDemand="handleToDemand" | 
			
		
	
		
			
				
					|  |  |  |                       @handleClose="handleClose"></event-detail> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         <div v-if="!eventDetailData.operationId &&pageTypeCopy == 'dispose' " | 
			
		
	
	
		
			
				
					|  |  | @ -189,14 +190,21 @@ | 
			
		
	
		
			
				
					|  |  |  |                            @close="handleCloseProject" | 
			
		
	
		
			
				
					|  |  |  |                            @afterEdit="handleCloseProject" /> | 
			
		
	
		
			
				
					|  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  |     <div v-if="pageTypeCopy == 'demand'"> | 
			
		
	
		
			
				
					|  |  |  |       <demand-info-origin ref="demandEditForm" | 
			
		
	
		
			
				
					|  |  |  |                           :demandRecId="eventDetailCopy.operationId" | 
			
		
	
		
			
				
					|  |  |  |                           @close="handleCloseProject" /> | 
			
		
	
		
			
				
					|  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   </div> | 
			
		
	
		
			
				
					|  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  | import { requestPost } from "@/js/dai/request"; | 
			
		
	
		
			
				
					|  |  |  | import { Loading } from "element-ui"; // 引入Loading服务 | 
			
		
	
		
			
				
					|  |  |  | import foldText from "@/views/components/foldText"; | 
			
		
	
		
			
				
					|  |  |  | import projectInfoOrigin from "../../xiangmu/cpts/project-info"; | 
			
		
	
		
			
				
					|  |  |  | import demandInfoOrigin from "@/views/modules/communityService/measure/info"; | 
			
		
	
		
			
				
					|  |  |  | import eventInfo from "./event-info1"; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import dateFormat from "dai-js/tools/dateFormat"; | 
			
		
	
	
		
			
				
					|  |  | @ -205,6 +213,7 @@ import eventAdd from "./add"; | 
			
		
	
		
			
				
					|  |  |  | import eventDetail from "./event-detail"; | 
			
		
	
		
			
				
					|  |  |  | import processForm from "./process-form"; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | let loading; // 加载动画 | 
			
		
	
		
			
				
					|  |  |  | function iniData () { | 
			
		
	
		
			
				
					|  |  |  |   return { | 
			
		
	
		
			
				
					|  |  |  |     formData: { | 
			
		
	
	
		
			
				
					|  |  | @ -255,7 +264,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     eventAdd, | 
			
		
	
		
			
				
					|  |  |  |     eventDetail, | 
			
		
	
		
			
				
					|  |  |  |     processForm, | 
			
		
	
		
			
				
					|  |  |  |     projectInfoOrigin | 
			
		
	
		
			
				
					|  |  |  |     projectInfoOrigin, | 
			
		
	
		
			
				
					|  |  |  |     demandInfoOrigin | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   data: iniData, | 
			
		
	
	
		
			
				
					|  |  | @ -332,16 +342,18 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       console.log('eventInfo', this.eventInfoData) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     handleComfirm () { | 
			
		
	
		
			
				
					|  |  |  |     async handleComfirm () { | 
			
		
	
		
			
				
					|  |  |  |       this.startLoading() | 
			
		
	
		
			
				
					|  |  |  |       if (this.pageTypeCopy === 'add') { | 
			
		
	
		
			
				
					|  |  |  |         this.handelAdd() | 
			
		
	
		
			
				
					|  |  |  |         await this.handelAdd() | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       if (this.pageTypeCopy === 'dispose') { | 
			
		
	
		
			
				
					|  |  |  |         this.handelDispose() | 
			
		
	
		
			
				
					|  |  |  |         await this.handelDispose() | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.endLoading() | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     handelAdd () { | 
			
		
	
		
			
				
					|  |  |  |     async handelAdd () { | 
			
		
	
		
			
				
					|  |  |  |       if (this.pageTypeCopy === 'add') { | 
			
		
	
		
			
				
					|  |  |  |         this.$refs.ref_add.getEventInfo() | 
			
		
	
		
			
				
					|  |  |  |         if (this.$refs.ref_add.okflag) { | 
			
		
	
	
		
			
				
					|  |  | @ -403,7 +415,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       console.log('this.formData', this.formData) | 
			
		
	
		
			
				
					|  |  |  |       this.submit() | 
			
		
	
		
			
				
					|  |  |  |       await this.submit() | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async submit () { | 
			
		
	
	
		
			
				
					|  |  | @ -426,7 +438,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     handelDispose () { | 
			
		
	
		
			
				
					|  |  |  |     async handelDispose () { | 
			
		
	
		
			
				
					|  |  |  |       this.$refs.ref_processinfo_dispose.getProcessInfo() | 
			
		
	
		
			
				
					|  |  |  |       if (this.$refs.ref_processinfo_dispose.okflag) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -442,7 +454,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           console.log('replayInfo', this.replayInfo) | 
			
		
	
		
			
				
					|  |  |  |           //回复属性赋值 | 
			
		
	
		
			
				
					|  |  |  |           let url = '/gov/project/icEvent/reply' | 
			
		
	
		
			
				
					|  |  |  |           this.submitDispose(url, this.replayInfo) | 
			
		
	
		
			
				
					|  |  |  |           await this.submitDispose(url, this.replayInfo) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         } else if (this.formData.operationType === '1') { | 
			
		
	
		
			
				
					|  |  |  |           this.replayInfo = {} | 
			
		
	
	
		
			
				
					|  |  | @ -452,7 +464,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           this.project.icEventId = this.eventId | 
			
		
	
		
			
				
					|  |  |  |           console.log('projectInfo', this.project) | 
			
		
	
		
			
				
					|  |  |  |           let url = '/gov/project/icEvent/icEventToProject' | 
			
		
	
		
			
				
					|  |  |  |           this.submitDispose(url, this.project) | 
			
		
	
		
			
				
					|  |  |  |           await this.submitDispose(url, this.project) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         } else if (this.formData.operationType === '2') { | 
			
		
	
		
			
				
					|  |  |  |           this.replayInfo = {} | 
			
		
	
	
		
			
				
					|  |  | @ -462,7 +474,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           this.demand.icEventId = this.eventId | 
			
		
	
		
			
				
					|  |  |  |           console.log('demond', this.demand) | 
			
		
	
		
			
				
					|  |  |  |           let url = '/gov/project/icEvent/icEventToDemand' | 
			
		
	
		
			
				
					|  |  |  |           this.submitDispose(url, this.demand) | 
			
		
	
		
			
				
					|  |  |  |           await this.submitDispose(url, this.demand) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
	
		
			
				
					|  |  | @ -499,11 +511,35 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.pageTypeCopy = 'project' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     handleToDemand () { | 
			
		
	
		
			
				
					|  |  |  |       if (this.eventDetailCopy.status === 'processing') { | 
			
		
	
		
			
				
					|  |  |  |         this.projectPageType = 'edit' | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.projectPageType = 'info' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       this.pageTypeCopy = 'project' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     handleCloseProject () { | 
			
		
	
		
			
				
					|  |  |  |       this.pageTypeCopy = 'demand' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       this.pageTypeCopy = 'info' | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     // 开启加载动画 | 
			
		
	
		
			
				
					|  |  |  |     startLoading () { | 
			
		
	
		
			
				
					|  |  |  |       loading = Loading.service({ | 
			
		
	
		
			
				
					|  |  |  |         lock: true, // 是否锁定 | 
			
		
	
		
			
				
					|  |  |  |         text: "正在加载……", // 加载中需要显示的文字 | 
			
		
	
		
			
				
					|  |  |  |         background: "rgba(0,0,0,.7)", // 背景颜色 | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 结束加载动画 | 
			
		
	
		
			
				
					|  |  |  |     endLoading () { | 
			
		
	
		
			
				
					|  |  |  |       // clearTimeout(timer); | 
			
		
	
		
			
				
					|  |  |  |       if (loading) { | 
			
		
	
		
			
				
					|  |  |  |         loading.close(); | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  | }; | 
			
		
	
	
		
			
				
					|  |  | 
 |