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

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

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

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

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

Loading…
Cancel
Save