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