Browse Source

修改事件管理bug;

feature
luyan 2 years ago
parent
commit
77953bacbd
  1. 5
      src/views/modules/shequzhili/eventOld/cpts/add.vue
  2. 70
      src/views/modules/shequzhili/eventOld/cpts/event-info.vue
  3. 2
      src/views/modules/shequzhili/eventOld/cpts/process-form.vue

5
src/views/modules/shequzhili/eventOld/cpts/add.vue

@ -131,8 +131,8 @@ function iniFmData() {
return {
gridId: "", //
reportUserId: "", // ID
name: "cc", //
mobile: "17637255555", //
name: "", //
mobile: "", //
idCard: "", //
sourceType: "", //
happenTime: "", //
@ -383,7 +383,6 @@ export default {
});
return false;
}
const regCard = /(^\d{15}$)|(^\d{17}(\d|X)$)/; //1518151817X
if (
this.formData.idCard &&

70
src/views/modules/shequzhili/eventOld/cpts/event-info.vue

@ -433,40 +433,42 @@ export default {
return false;
}
this.$refs.ref_processinfo_add.getProcessInfo();
this.formData.operationType = this.$refs.ref_processinfo_add.operationType;
this.eventInfoData.operationType =
this.$refs.ref_processinfo_add.operationType;
if (this.formData.operationType === "0" || this.formData.operationType === "6") {
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo;
//
this.eventInfoData.content = this.replayInfo.content;
this.eventInfoData.status = this.replayInfo.status;
this.eventInfoData.timeLimit = this.replayInfo.timeLimit;
if (this.replayInfo.categoryId) {
this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
}
} else if (this.formData.operationType === "5") {
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo;
//
this.eventInfoData.content = this.replayInfo.content;
this.eventInfoData.status = this.replayInfo.status;
this.eventInfoData.timeLimit = this.replayInfo.timeLimit;
if (this.replayInfo.categoryId) {
this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
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.formData.operationType === "6") {
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo;
//
this.eventInfoData.content = this.replayInfo.content;
this.eventInfoData.status = this.replayInfo.status;
this.eventInfoData.timeLimit = this.replayInfo.timeLimit;
if (this.replayInfo.categoryId) {
this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
}
} else if (this.formData.operationType === "5") {
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo;
//
this.eventInfoData.content = this.replayInfo.content;
this.eventInfoData.status = this.replayInfo.status;
this.eventInfoData.timeLimit = this.replayInfo.timeLimit;
if (this.replayInfo.categoryId) {
this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
}
} else if (this.formData.operationType === "2") {
this.replayInfo = {};
this.project = {};
this.demand = this.$refs.ref_processinfo_add.demand;
this.demand.gridId = this.eventInfoData.gridId;
} else if (this.formData.operationType === "4") {
this.replayInfo = {};
}
} else if (this.formData.operationType === "2") {
this.replayInfo = {};
this.project = {};
this.demand = this.$refs.ref_processinfo_add.demand;
this.demand.gridId = this.eventInfoData.gridId;
} else if (this.formData.operationType === "4") {
this.replayInfo = {};
}
this.formData = {
...this.eventInfoData,
// replayInfo: this.replayInfo,
replayInfo: this.replayInfo,
project: this.project,
demand: this.demand,
issueInfo: this.issueInfo,
@ -503,6 +505,7 @@ export default {
},
async handelDispose() {
console.log(this.$refs.ref_processinfo_dispose.okflag);
this.$refs.ref_processinfo_dispose.getProcessInfo();
if (this.$refs.ref_processinfo_dispose.okflag) {
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType;
@ -510,6 +513,10 @@ export default {
|| this.formData.operationType === '6') {
this.project = {};
this.demand = {};
if(this.$refs.ref_processinfo_dispose.replayInfo.okflag){
this.endLoading();
return false
}
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo;
this.replayInfo.icEventId = this.eventId;
//
@ -528,7 +535,6 @@ export default {
this.demand = this.$refs.ref_processinfo_dispose.demand;
//
this.demand.icEventId = this.eventId;
console.log(this.eventDetailData);
if (this.demand.gridId === '') {
this.demand.gridId = this.eventDetailData.gridId
}
@ -540,7 +546,6 @@ export default {
this.project = {};
this.issueInfo = this.$refs.ref_processinfo_dispose.issueInfo;
//
console.log("issueInfo", this.issueInfo);
let url = "/governance/icEventOld/icEventToIssue";
await this.submitDispose(url, this.issueInfo);
} else {
@ -556,7 +561,6 @@ export default {
});
if (code === 0) {
this.$message.success("操作成功!");
this.$emit("handleOk");
} else {
this.$message.error(msg);

2
src/views/modules/shequzhili/eventOld/cpts/process-form.vue

@ -149,7 +149,7 @@ export default {
async getProcessInfo() {
this.okflag = false
if (this.operationType === '0') {//
this.$refs.ref_process_form_replay.getReplayInfo()
this.$refs.ref_process_form_replay.getReplayInfo();
if (this.$refs.ref_process_form_replay.okflag) {
this.replayInfo = this.$refs.ref_process_form_replay.formData;
this.okflag = true;

Loading…
Cancel
Save