|
|
@ -3,40 +3,47 @@ |
|
|
|
<div v-if="pageTypeCopy == 'add'"> |
|
|
|
<el-card> |
|
|
|
<h3>新增事件</h3> |
|
|
|
<event-add ref="ref_add" |
|
|
|
<event-add |
|
|
|
ref="ref_add" |
|
|
|
@changeName="changeName" |
|
|
|
@changeMobile="changeMobile" |
|
|
|
@changeUserId="changeUserId" |
|
|
|
@changeGridId="changeGridId"></event-add> |
|
|
|
@changeGridId="changeGridId" |
|
|
|
></event-add> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
<div class="process-form"> |
|
|
|
<el-card> |
|
|
|
<h3>处理</h3> |
|
|
|
<process-form ref="ref_processinfo_add" |
|
|
|
<process-form |
|
|
|
ref="ref_processinfo_add" |
|
|
|
:demandUserId="demandUserId" |
|
|
|
:demandUserName="demandUserName" |
|
|
|
:demandUserMobile="demandUserMobile" |
|
|
|
:gridId="gridId"></process-form> |
|
|
|
:gridId="gridId" |
|
|
|
></process-form> |
|
|
|
|
|
|
|
<div class="div-btn "> |
|
|
|
<el-button size="small" |
|
|
|
@click="handleClose">关闭</el-button> |
|
|
|
<el-button style="margin-left:20px" |
|
|
|
<div class="div-btn"> |
|
|
|
<el-button size="small" @click="handleClose">关闭</el-button> |
|
|
|
<el-button |
|
|
|
style="margin-left: 20px" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
@click="handleComfirm">确定</el-button> |
|
|
|
@click="handleComfirm" |
|
|
|
>确定</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="pageTypeCopy == 'dispose'||pageTypeCopy == 'info'" |
|
|
|
class="g-page"> |
|
|
|
<div :class="['g-total',{'g-left':projectProcess.length>0}]"> |
|
|
|
|
|
|
|
<event-detail ref="ref_detail" |
|
|
|
<div |
|
|
|
v-if="pageTypeCopy == 'dispose' || pageTypeCopy == 'info'" |
|
|
|
class="g-page" |
|
|
|
> |
|
|
|
<div :class="['g-total', { 'g-left': projectProcess.length > 0 }]"> |
|
|
|
<event-detail |
|
|
|
ref="ref_detail" |
|
|
|
:type="pageType" |
|
|
|
:eventId="eventId" |
|
|
|
:eventDetailData="eventDetailData" |
|
|
@ -44,42 +51,67 @@ |
|
|
|
@handleToProject="handleToProject" |
|
|
|
@handleToDemand="handleToDemand" |
|
|
|
@handleToIssue="handleToIssue" |
|
|
|
@handleClose="handleClose"></event-detail> |
|
|
|
|
|
|
|
<div v-if="!eventDetailData.operationId &&pageTypeCopy == 'dispose' " |
|
|
|
class="process-form"> |
|
|
|
<el-card :class="{'box-card':source==='visiual'}"> |
|
|
|
<div :class="['process-title',{'process-title-vis':source==='visiual'}]">处理</div> |
|
|
|
<process-form ref="ref_processinfo_dispose" |
|
|
|
@handleClose="handleClose" |
|
|
|
></event-detail> |
|
|
|
|
|
|
|
<div |
|
|
|
v-if="!eventDetailData.operationId && pageTypeCopy == 'dispose'" |
|
|
|
class="process-form" |
|
|
|
> |
|
|
|
<el-card :class="{ 'box-card': source === 'visiual' }"> |
|
|
|
<div |
|
|
|
:class="[ |
|
|
|
'process-title', |
|
|
|
{ 'process-title-vis': source === 'visiual' }, |
|
|
|
]" |
|
|
|
> |
|
|
|
处理 |
|
|
|
</div> |
|
|
|
<process-form |
|
|
|
ref="ref_processinfo_dispose" |
|
|
|
:source="source" |
|
|
|
:eventId="eventId" |
|
|
|
:eventDetailData="eventDetailData"></process-form> |
|
|
|
:eventDetailData="eventDetailData" |
|
|
|
></process-form> |
|
|
|
|
|
|
|
<div class="div-btn "> |
|
|
|
<el-button size="small" |
|
|
|
@click="handleClose">关闭</el-button> |
|
|
|
<el-button style="margin-left:20px" |
|
|
|
<div class="div-btn"> |
|
|
|
<el-button size="small" @click="handleClose">关闭</el-button> |
|
|
|
<el-button |
|
|
|
style="margin-left: 20px" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
@click="handleComfirm">确定</el-button> |
|
|
|
@click="handleComfirm" |
|
|
|
>确定</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="projectProcess.length>0" |
|
|
|
class="g-right"> |
|
|
|
<el-card :class="{'box-card':source==='visiual'}" |
|
|
|
style="max-height: 90vh; overflow: auto"> |
|
|
|
|
|
|
|
<div v-if="projectProcess.length > 0" class="g-right"> |
|
|
|
<el-card |
|
|
|
:class="{ 'box-card': source === 'visiual' }" |
|
|
|
style="max-height: 90vh; overflow: auto" |
|
|
|
> |
|
|
|
<div class="m-process"> |
|
|
|
<div :class="['process-title',{'process-title-vis':source==='visiual'}]">处理进展</div> |
|
|
|
<div |
|
|
|
:class="[ |
|
|
|
'process-title', |
|
|
|
{ 'process-title-vis': source === 'visiual' }, |
|
|
|
]" |
|
|
|
> |
|
|
|
处理进展 |
|
|
|
</div> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" |
|
|
|
:class="[index === 0 ? 'z-on' : '',{'item-vis':source==='visiual'}]" |
|
|
|
<div |
|
|
|
class="item" |
|
|
|
:class="[ |
|
|
|
index === 0 ? 'z-on' : '', |
|
|
|
{ 'item-vis': source === 'visiual' }, |
|
|
|
]" |
|
|
|
:key="item.processId" |
|
|
|
v-for="(item, index) in projectProcess"> |
|
|
|
v-for="(item, index) in projectProcess" |
|
|
|
> |
|
|
|
<div class="item-row"> |
|
|
|
<div class="name">{{ item.processName }}</div> |
|
|
|
<div class="date"> |
|
|
@ -87,7 +119,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="item.type==='event'"> |
|
|
|
<div v-if="item.type === 'event'"> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">回复人:</div> |
|
|
|
<div class="detail-value">{{ item.departmentName }}</div> |
|
|
@ -98,8 +130,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else-if="item.type==='project'"> |
|
|
|
<div v-if="item.processName==='回复'"> |
|
|
|
<div v-else-if="item.type === 'project'"> |
|
|
|
<div v-if="item.processName === '回复'"> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">回复人:</div> |
|
|
|
<div class="detail-value">{{ item.departmentName }}</div> |
|
|
@ -122,28 +154,38 @@ |
|
|
|
<fold-text :row="3">{{ item.assistanceUnitName }}</fold-text> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
<div class="detail" |
|
|
|
v-if="item.processName != '转项目' && item.publicReply"> |
|
|
|
<div |
|
|
|
class="detail" |
|
|
|
v-if="item.processName != '转项目' && item.publicReply" |
|
|
|
> |
|
|
|
<div class="detail-field">说 明:</div> |
|
|
|
<div class="detail-value"> |
|
|
|
<fold-text :row="3">{{ item.publicReply }}</fold-text> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="detail" |
|
|
|
v-if="item.processName != '转项目' && item.internalRemark"> |
|
|
|
<div |
|
|
|
class="detail" |
|
|
|
v-if="item.processName != '转项目' && item.internalRemark" |
|
|
|
> |
|
|
|
<div class="detail-field">内部备注:</div> |
|
|
|
<div class="detail-value"> |
|
|
|
<fold-text :row="3">{{ item.internalRemark }}</fold-text> |
|
|
|
<fold-text :row="3">{{ |
|
|
|
item.internalRemark |
|
|
|
}}</fold-text> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="item.internalFile&&item.internalFile.length>0" |
|
|
|
class="detail"> |
|
|
|
<div |
|
|
|
v-if="item.internalFile && item.internalFile.length > 0" |
|
|
|
class="detail" |
|
|
|
> |
|
|
|
<div class="attachement-list"> |
|
|
|
<a :href="att.url" |
|
|
|
<a |
|
|
|
:href="att.url" |
|
|
|
target="_blank" |
|
|
|
:key="att.url" |
|
|
|
v-for="att in item.internalFile"> |
|
|
|
v-for="att in item.internalFile" |
|
|
|
> |
|
|
|
<i class="el-icon-folder-opened"></i> |
|
|
|
{{ att.name }} |
|
|
|
</a> |
|
|
@ -152,8 +194,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else-if="item.type==='demand'"> |
|
|
|
<div v-if="item.processName==='回复'"> |
|
|
|
<div v-else-if="item.type === 'demand'"> |
|
|
|
<div v-if="item.processName === '回复'"> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">回复人:</div> |
|
|
|
<div class="detail-value">{{ item.departmentName }}</div> |
|
|
@ -163,26 +205,27 @@ |
|
|
|
<div class="detail-value">{{ item.publicReply }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="item.processName==='需求完成'"> |
|
|
|
<div v-if="item.processName === '需求完成'"> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">服务方:</div> |
|
|
|
<div class="detail-value">{{ item.serviceParty }}</div> |
|
|
|
</div> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">实际服务时间:</div> |
|
|
|
<div class="detail-value">{{ item.actualServiceTime }}</div> |
|
|
|
<div class="detail-value"> |
|
|
|
{{ item.actualServiceTime }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="item.processName==='转服务'"> |
|
|
|
<div v-if="item.processName === '转服务'"> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">服务时间:</div> |
|
|
|
<div class="detail-value">{{ item.serviceTime }}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else-if="item.type==='issue'"> |
|
|
|
<div v-else-if="item.type === 'issue'"> |
|
|
|
<div class="detail"> |
|
|
|
<div class="detail-field">回复人:</div> |
|
|
|
<div class="detail-value">{{ item.departmentName }}</div> |
|
|
@ -200,29 +243,35 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="pageTypeCopy == 'project'"> |
|
|
|
<project-info-origin ref="eleEditForm" |
|
|
|
<project-info-origin |
|
|
|
ref="eleEditForm" |
|
|
|
:source="source" |
|
|
|
:sourceType="sourceType" |
|
|
|
:type="projectPageType" |
|
|
|
:projectId="eventDetailCopy.operationId" |
|
|
|
@close="handleCloseProject" |
|
|
|
@afterEdit="handleCloseProject" /> |
|
|
|
@afterEdit="handleCloseProject" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-if="pageTypeCopy == 'demand'"> |
|
|
|
<demand-info-origin ref="demandEditForm" |
|
|
|
<demand-info-origin |
|
|
|
ref="demandEditForm" |
|
|
|
:source="source" |
|
|
|
:demandRecId="eventDetailCopy.operationId" |
|
|
|
@close="handleCloseProject" /> |
|
|
|
@close="handleCloseProject" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-if="pageTypeCopy == 'issue'"> |
|
|
|
<issue-info-origin ref="eleEditForm" |
|
|
|
<issue-info-origin |
|
|
|
ref="eleEditForm" |
|
|
|
:pageType="issuePageType" |
|
|
|
:issueId="eventDetailCopy.operationId" |
|
|
|
:issueDetailData="issueDetailData" |
|
|
|
@handleClose="handleCloseProject" |
|
|
|
@handleOk="handleCloseProject" |
|
|
|
@dialogOk="handleCloseProject" /> |
|
|
|
@dialogOk="handleCloseProject" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -239,11 +288,10 @@ import eventDetail from "./event-detail"; |
|
|
|
import processForm from "./process-form"; |
|
|
|
|
|
|
|
let loading; // 加载动画 |
|
|
|
function iniData () { |
|
|
|
function iniData() { |
|
|
|
return { |
|
|
|
formData: { |
|
|
|
operationType: '', |
|
|
|
|
|
|
|
operationType: "", |
|
|
|
}, |
|
|
|
eventInfoData: {}, |
|
|
|
replayInfo: {}, |
|
|
@ -252,20 +300,21 @@ function iniData () { |
|
|
|
issueInfo: {}, |
|
|
|
|
|
|
|
//新增 |
|
|
|
demandUserId: '', |
|
|
|
demandUserName: '', |
|
|
|
demandUserMobile: '', |
|
|
|
gridId: '', |
|
|
|
demandUserId: "", |
|
|
|
demandUserName: "", |
|
|
|
demandUserMobile: "", |
|
|
|
gridId: "", |
|
|
|
|
|
|
|
eventDetailCopy: {}, |
|
|
|
|
|
|
|
projectProcess: [], |
|
|
|
projectPageType: 'info', |
|
|
|
pageTypeCopy: '', |
|
|
|
projectPageType: "info", |
|
|
|
pageTypeCopy: "", |
|
|
|
|
|
|
|
issuePageType: '', |
|
|
|
issuePageType: "", |
|
|
|
issueDetailData: {}, |
|
|
|
|
|
|
|
sourceType: "", |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
@ -282,15 +331,16 @@ export default { |
|
|
|
}, |
|
|
|
eventDetailData: { |
|
|
|
type: Object, |
|
|
|
default () { |
|
|
|
return {} |
|
|
|
} |
|
|
|
default() { |
|
|
|
return {}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
source: {//展示来源:manage 管理平台 visiual 可视化平台 |
|
|
|
source: { |
|
|
|
//展示来源:manage 管理平台 visiual 可视化平台 |
|
|
|
type: String, |
|
|
|
default: 'manage' |
|
|
|
} |
|
|
|
default: "manage", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
components: { |
|
|
@ -301,7 +351,7 @@ export default { |
|
|
|
processForm, |
|
|
|
projectInfoOrigin, |
|
|
|
demandInfoOrigin, |
|
|
|
issueInfoOrigin |
|
|
|
issueInfoOrigin, |
|
|
|
}, |
|
|
|
|
|
|
|
data: iniData, |
|
|
@ -309,7 +359,7 @@ export default { |
|
|
|
computed: {}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
eventId () { |
|
|
|
eventId() { |
|
|
|
let data = iniData(); |
|
|
|
Object.keys(data).forEach((k) => { |
|
|
|
this[k] = data[k]; |
|
|
@ -317,14 +367,11 @@ export default { |
|
|
|
// this.getApiData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
this.pageTypeCopy = this.pageType |
|
|
|
if (this.pageTypeCopy !== 'add') { |
|
|
|
this.getProjectProcess() |
|
|
|
created() {}, |
|
|
|
mounted() { |
|
|
|
this.pageTypeCopy = this.pageType; |
|
|
|
if (this.pageTypeCopy !== "add") { |
|
|
|
this.getProjectProcess(); |
|
|
|
} |
|
|
|
|
|
|
|
if (this.eventId) { |
|
|
@ -333,24 +380,21 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
changeName (val) { |
|
|
|
this.demandUserName = val |
|
|
|
changeName(val) { |
|
|
|
this.demandUserName = val; |
|
|
|
}, |
|
|
|
changeMobile (val) { |
|
|
|
|
|
|
|
this.demandUserMobile = val |
|
|
|
changeMobile(val) { |
|
|
|
this.demandUserMobile = val; |
|
|
|
}, |
|
|
|
changeUserId (val) { |
|
|
|
|
|
|
|
this.demandUserId = val |
|
|
|
changeUserId(val) { |
|
|
|
this.demandUserId = val; |
|
|
|
}, |
|
|
|
changeGridId (val) { |
|
|
|
|
|
|
|
this.gridId = val |
|
|
|
changeGridId(val) { |
|
|
|
this.gridId = val; |
|
|
|
}, |
|
|
|
|
|
|
|
//加载组织数据 |
|
|
|
async getProjectProcess () { |
|
|
|
async getProjectProcess() { |
|
|
|
const url = "/governance/icEvent/process"; |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/process"; |
|
|
|
|
|
|
@ -371,198 +415,196 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
getEventInfo () { |
|
|
|
this.$refs.ref_add.getEventInfo() |
|
|
|
getEventInfo() { |
|
|
|
this.$refs.ref_add.getEventInfo(); |
|
|
|
if (this.$refs.ref_add.okflag) { |
|
|
|
|
|
|
|
this.eventInfoData = this.$refs.ref_add.formData |
|
|
|
this.eventInfoData = this.$refs.ref_add.formData; |
|
|
|
} else { |
|
|
|
return false |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
console.log('eventInfo', this.eventInfoData) |
|
|
|
console.log("eventInfo", this.eventInfoData); |
|
|
|
}, |
|
|
|
|
|
|
|
async handleComfirm () { |
|
|
|
this.startLoading() |
|
|
|
if (this.pageTypeCopy === 'add') { |
|
|
|
await this.handelAdd() |
|
|
|
async handleComfirm() { |
|
|
|
this.startLoading(); |
|
|
|
if (this.pageTypeCopy === "add") { |
|
|
|
await this.handelAdd(); |
|
|
|
} |
|
|
|
if (this.pageTypeCopy === 'dispose') { |
|
|
|
await this.handelDispose() |
|
|
|
if (this.pageTypeCopy === "dispose") { |
|
|
|
await this.handelDispose(); |
|
|
|
} |
|
|
|
this.endLoading() |
|
|
|
this.endLoading(); |
|
|
|
}, |
|
|
|
|
|
|
|
async handelAdd () { |
|
|
|
|
|
|
|
this.$refs.ref_add.getEventInfo() |
|
|
|
async handelAdd() { |
|
|
|
this.$refs.ref_add.getEventInfo(); |
|
|
|
if (this.$refs.ref_add.okflag) { |
|
|
|
this.eventInfoData = this.$refs.ref_add.formData |
|
|
|
this.eventInfoData = this.$refs.ref_add.formData; |
|
|
|
} else { |
|
|
|
return false |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
console.log('eventInfo', this.eventInfoData) |
|
|
|
|
|
|
|
this.$refs.ref_processinfo_add.getProcessInfo() |
|
|
|
if (this.$refs.ref_processinfo_add.okflag) { |
|
|
|
console.log("eventInfo", this.eventInfoData); |
|
|
|
|
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_add.operationType |
|
|
|
this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType |
|
|
|
this.$refs.ref_processinfo_add.getProcessInfo(); |
|
|
|
// if (this.$refs.ref_processinfo_add.okflag) { |
|
|
|
|
|
|
|
this.formData.operationType = |
|
|
|
this.$refs.ref_processinfo_add.operationType; |
|
|
|
this.eventInfoData.operationType = |
|
|
|
this.$refs.ref_processinfo_add.operationType; |
|
|
|
|
|
|
|
if (this.formData.operationType === '0') { |
|
|
|
this.project = {} |
|
|
|
this.demand = {} |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo |
|
|
|
console.log('replayInfo', this.replayInfo) |
|
|
|
if (this.formData.operationType === "0") { |
|
|
|
this.project = {}; |
|
|
|
this.demand = {}; |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo; |
|
|
|
console.log("replayInfo", this.replayInfo); |
|
|
|
|
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content |
|
|
|
this.eventInfoData.status = this.replayInfo.status |
|
|
|
this.eventInfoData.content = this.replayInfo.content; |
|
|
|
this.eventInfoData.status = this.replayInfo.status; |
|
|
|
if (this.replayInfo.categoryId) { |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId) |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else if (this.formData.operationType === '1') { |
|
|
|
this.replayInfo = {} |
|
|
|
this.demand = {} |
|
|
|
this.project = this.$refs.ref_processinfo_add.project |
|
|
|
} else if (this.formData.operationType === "1") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.demand = {}; |
|
|
|
this.project = this.$refs.ref_processinfo_add.project; |
|
|
|
//项目的属性同事件一样 |
|
|
|
this.project.gridId = this.eventInfoData.gridId |
|
|
|
this.project.gridId = this.eventInfoData.gridId; |
|
|
|
|
|
|
|
if (this.project.categoryList && this.project.categoryList.length > 0) { |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.project.categoryList[0].id) |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push(this.project.categoryList[0].id); |
|
|
|
} |
|
|
|
|
|
|
|
console.log('projectInfo', this.project) |
|
|
|
|
|
|
|
} else if (this.formData.operationType === '2') { |
|
|
|
this.replayInfo = {} |
|
|
|
this.project = {} |
|
|
|
this.demand = this.$refs.ref_processinfo_add.demand |
|
|
|
this.demand.gridId = this.eventInfoData.gridId |
|
|
|
console.log("projectInfo", this.project); |
|
|
|
} else if (this.formData.operationType === "2") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.project = {}; |
|
|
|
this.demand = this.$refs.ref_processinfo_add.demand; |
|
|
|
this.demand.gridId = this.eventInfoData.gridId; |
|
|
|
//需求的属性同事件一样 |
|
|
|
// this.eventInfoData.categoryList = [] |
|
|
|
// this.eventInfoData.categoryList.push(this.demand.categoryId) |
|
|
|
console.log('demond', this.demand) |
|
|
|
} else if (this.formData.operationType === '3') { |
|
|
|
this.project = {} |
|
|
|
this.demand = {} |
|
|
|
this.replayInfo = {} |
|
|
|
this.issueInfo = this.$refs.ref_processinfo_add.issueInfo |
|
|
|
|
|
|
|
if (this.issueInfo.categoryList && this.issueInfo.categoryList.length > 0) { |
|
|
|
this.eventInfoData.categoryList = [] |
|
|
|
this.eventInfoData.categoryList.push(this.issueInfo.categoryList[0].id) |
|
|
|
console.log("demond", this.demand); |
|
|
|
} else if (this.formData.operationType === "3") { |
|
|
|
this.project = {}; |
|
|
|
this.demand = {}; |
|
|
|
this.replayInfo = {}; |
|
|
|
this.issueInfo = this.$refs.ref_processinfo_add.issueInfo; |
|
|
|
|
|
|
|
if ( |
|
|
|
this.issueInfo.categoryList && |
|
|
|
this.issueInfo.categoryList.length > 0 |
|
|
|
) { |
|
|
|
this.eventInfoData.categoryList = []; |
|
|
|
this.eventInfoData.categoryList.push( |
|
|
|
this.issueInfo.categoryList[0].id |
|
|
|
); |
|
|
|
} |
|
|
|
console.log('issueInfo', this.issueInfo) |
|
|
|
|
|
|
|
console.log("issueInfo", this.issueInfo); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
this.formData = { |
|
|
|
...this.eventInfoData, |
|
|
|
// replayInfo: this.replayInfo, |
|
|
|
project: this.project, |
|
|
|
demand: this.demand, |
|
|
|
issueInfo: this.issueInfo |
|
|
|
} |
|
|
|
issueInfo: this.issueInfo, |
|
|
|
}; |
|
|
|
|
|
|
|
console.log('this.formData', this.formData) |
|
|
|
await this.submit() |
|
|
|
console.log("this.formData", this.formData); |
|
|
|
await this.submit(); |
|
|
|
}, |
|
|
|
|
|
|
|
async submit () { |
|
|
|
async submit() { |
|
|
|
if ( |
|
|
|
(this.formData.operationType == 3 && this.issueInfo.issueTitle) || |
|
|
|
(this.formData.operationType == 2 && this.demand.demandUserName) || |
|
|
|
(this.formData.operationType == 1 && this.project.categoryList) || |
|
|
|
(this.formData.operationType == 0 && this.eventInfoData.content) || |
|
|
|
this.formData.operationType == 4 |
|
|
|
) { |
|
|
|
const url = "/governance/icEvent/add"; |
|
|
|
|
|
|
|
const { formData } = this; |
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
|
|
|
|
...formData, |
|
|
|
}); |
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.$message.success("操作成功!"); |
|
|
|
if (this.pageTypeCopy === 'add') { |
|
|
|
this.eventInfo = this.$refs.ref_add.resetData() |
|
|
|
|
|
|
|
if (this.pageTypeCopy === "add") { |
|
|
|
this.eventInfo = this.$refs.ref_add.resetData(); |
|
|
|
} |
|
|
|
this.$emit("handleOk"); |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}else if(this.formData.operationType == ''){ |
|
|
|
this.$message.error('请选择处理方式!') |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async handelDispose () { |
|
|
|
this.$refs.ref_processinfo_dispose.getProcessInfo() |
|
|
|
async handelDispose() { |
|
|
|
this.$refs.ref_processinfo_dispose.getProcessInfo(); |
|
|
|
if (this.$refs.ref_processinfo_dispose.okflag) { |
|
|
|
this.formData.operationType = |
|
|
|
this.$refs.ref_processinfo_dispose.operationType; |
|
|
|
|
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType |
|
|
|
|
|
|
|
if (this.formData.operationType === '0') { |
|
|
|
if (this.formData.operationType === "0") { |
|
|
|
this.project = {}; |
|
|
|
this.demand = {}; |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo; |
|
|
|
|
|
|
|
this.project = {} |
|
|
|
this.demand = {} |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo |
|
|
|
|
|
|
|
this.replayInfo.icEventId = this.eventId |
|
|
|
console.log('replayInfo', this.replayInfo) |
|
|
|
this.replayInfo.icEventId = this.eventId; |
|
|
|
console.log("replayInfo", this.replayInfo); |
|
|
|
//回复属性赋值 |
|
|
|
let url = '/governance/icEvent/reply' |
|
|
|
await this.submitDispose(url, this.replayInfo) |
|
|
|
|
|
|
|
} else if (this.formData.operationType === '1') { |
|
|
|
this.replayInfo = {} |
|
|
|
this.demand = {} |
|
|
|
this.project = this.$refs.ref_processinfo_dispose.project |
|
|
|
let url = "/governance/icEvent/reply"; |
|
|
|
await this.submitDispose(url, this.replayInfo); |
|
|
|
} else if (this.formData.operationType === "1") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.demand = {}; |
|
|
|
this.project = this.$refs.ref_processinfo_dispose.project; |
|
|
|
//项目的属性同事件一样 |
|
|
|
this.project.icEventId = this.eventId |
|
|
|
console.log('projectInfo', this.project) |
|
|
|
let url = '/governance/icEvent/icEventToProject' |
|
|
|
await this.submitDispose(url, this.project) |
|
|
|
|
|
|
|
} else if (this.formData.operationType === '2') { |
|
|
|
this.replayInfo = {} |
|
|
|
this.project = {} |
|
|
|
this.demand = this.$refs.ref_processinfo_dispose.demand |
|
|
|
this.project.icEventId = this.eventId; |
|
|
|
console.log("projectInfo", this.project); |
|
|
|
let url = "/governance/icEvent/icEventToProject"; |
|
|
|
await this.submitDispose(url, this.project); |
|
|
|
} else if (this.formData.operationType === "2") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.project = {}; |
|
|
|
this.demand = this.$refs.ref_processinfo_dispose.demand; |
|
|
|
//需求的属性同事件一样 |
|
|
|
this.demand.icEventId = this.eventId |
|
|
|
console.log('demond', this.demand) |
|
|
|
let url = '/governance/icEvent/icEventToDemand' |
|
|
|
await this.submitDispose(url, this.demand) |
|
|
|
} else if (this.formData.operationType === '3') { |
|
|
|
this.replayInfo = {} |
|
|
|
this.demand = {} |
|
|
|
this.project = {} |
|
|
|
this.issueInfo = this.$refs.ref_processinfo_dispose.issueInfo |
|
|
|
this.demand.icEventId = this.eventId; |
|
|
|
console.log("demond", this.demand); |
|
|
|
let url = "/governance/icEvent/icEventToDemand"; |
|
|
|
await this.submitDispose(url, this.demand); |
|
|
|
} else if (this.formData.operationType === "3") { |
|
|
|
this.replayInfo = {}; |
|
|
|
this.demand = {}; |
|
|
|
this.project = {}; |
|
|
|
this.issueInfo = this.$refs.ref_processinfo_dispose.issueInfo; |
|
|
|
//项目的属性同事件一样 |
|
|
|
|
|
|
|
console.log('issueInfo', this.issueInfo) |
|
|
|
let url = '/governance/icEvent/icEventToIssue' |
|
|
|
await this.submitDispose(url, this.issueInfo) |
|
|
|
|
|
|
|
console.log("issueInfo", this.issueInfo); |
|
|
|
let url = "/governance/icEvent/icEventToIssue"; |
|
|
|
await this.submitDispose(url, this.issueInfo); |
|
|
|
} else { |
|
|
|
this.$message.info("请选择一种处理方式"); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
return false |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
async submitDispose (url, params) { |
|
|
|
async submitDispose(url, params) { |
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
|
|
|
|
...params, |
|
|
|
}); |
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.$message.success("操作成功!"); |
|
|
|
|
|
|
|
this.$emit("handleOk"); |
|
|
@ -571,32 +613,31 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleClose () { |
|
|
|
if (this.pageTypeCopy === 'add') { |
|
|
|
this.eventInfo = this.$refs.ref_add.resetData() |
|
|
|
handleClose() { |
|
|
|
if (this.pageTypeCopy === "add") { |
|
|
|
this.eventInfo = this.$refs.ref_add.resetData(); |
|
|
|
} |
|
|
|
|
|
|
|
this.$emit("handleClose"); |
|
|
|
}, |
|
|
|
handleToProject () { |
|
|
|
if (this.eventDetailCopy.status === 'processing') { |
|
|
|
this.projectPageType = 'edit' |
|
|
|
handleToProject(type) { |
|
|
|
if (this.eventDetailCopy.status === "processing") { |
|
|
|
this.projectPageType = "edit"; |
|
|
|
} else { |
|
|
|
this.projectPageType = 'info' |
|
|
|
this.projectPageType = "info"; |
|
|
|
} |
|
|
|
this.pageTypeCopy = 'project' |
|
|
|
|
|
|
|
this.sourceType = "event"; |
|
|
|
this.pageTypeCopy = "project"; |
|
|
|
}, |
|
|
|
handleToDemand () { |
|
|
|
handleToDemand() { |
|
|
|
// if (this.eventDetailCopy.status === 'processing') { |
|
|
|
// this.projectPageType = 'edit' |
|
|
|
// } else { |
|
|
|
// this.projectPageType = 'info' |
|
|
|
// } |
|
|
|
this.pageTypeCopy = 'demand' |
|
|
|
|
|
|
|
this.pageTypeCopy = "demand"; |
|
|
|
}, |
|
|
|
async handleToIssue () { |
|
|
|
async handleToIssue() { |
|
|
|
const url = "/governance/manage/votingissuedetail"; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
@ -604,29 +645,25 @@ export default { |
|
|
|
}); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.issueDetailData = { ...data }; |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
|
|
|
|
if (this.issueDetailData.issueStatus === 'voting') { |
|
|
|
this.issuePageType = 'dispose' |
|
|
|
if (this.issueDetailData.issueStatus === "voting") { |
|
|
|
this.issuePageType = "dispose"; |
|
|
|
} else { |
|
|
|
this.issuePageType = 'info' |
|
|
|
this.issuePageType = "info"; |
|
|
|
} |
|
|
|
this.pageTypeCopy = 'issue' |
|
|
|
this.pageTypeCopy = "issue"; |
|
|
|
}, |
|
|
|
handleCloseProject () { |
|
|
|
this.getProjectProcess() |
|
|
|
this.pageTypeCopy = 'info' |
|
|
|
|
|
|
|
|
|
|
|
handleCloseProject() { |
|
|
|
this.getProjectProcess(); |
|
|
|
this.pageTypeCopy = "info"; |
|
|
|
}, |
|
|
|
|
|
|
|
// 开启加载动画 |
|
|
|
startLoading () { |
|
|
|
startLoading() { |
|
|
|
loading = Loading.service({ |
|
|
|
lock: true, // 是否锁定 |
|
|
|
text: "正在加载……", // 加载中需要显示的文字 |
|
|
@ -634,7 +671,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 结束加载动画 |
|
|
|
endLoading () { |
|
|
|
endLoading() { |
|
|
|
// clearTimeout(timer); |
|
|
|
if (loading) { |
|
|
|
loading.close(); |
|
|
|