diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index 7fcabac..508d337 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -129,7 +129,7 @@
案卷图片:
- +
@@ -371,10 +371,12 @@ } } }, - created() { + activated() { + console.log('activated') this.id = this.$route.query.id this.showProcess = (this.$route.query.showProcess || this.$route.query.showProcess === false) ? this.$route.query.showProcess : true this.showNeedVisit = this.$route.query.showNeedVisit ? this.$route.query.showNeedVisit : false + this.resetData() this.initData() }, methods: { @@ -414,6 +416,21 @@ this.initProcess() } }, + // 每次清空案件处理相关数据 + resetData() { + this.operationKey = '' + this.processForm = { + processId: '', + bizId: '', + currState: '', + changeState: '', + remarks: '', + approvalResult: '' + } + this.commonLanguage = '' + this.processCompShow = '' + this.processCompObj = {} + }, // 初始化案件处理单选键组 async initProcess() { const res = await nextNodes(this.caseDetail.caseState) diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index 7fcabac..508d337 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -129,7 +129,7 @@
案卷图片:
- +
@@ -371,10 +371,12 @@ } } }, - created() { + activated() { + console.log('activated') this.id = this.$route.query.id this.showProcess = (this.$route.query.showProcess || this.$route.query.showProcess === false) ? this.$route.query.showProcess : true this.showNeedVisit = this.$route.query.showNeedVisit ? this.$route.query.showNeedVisit : false + this.resetData() this.initData() }, methods: { @@ -414,6 +416,21 @@ this.initProcess() } }, + // 每次清空案件处理相关数据 + resetData() { + this.operationKey = '' + this.processForm = { + processId: '', + bizId: '', + currState: '', + changeState: '', + remarks: '', + approvalResult: '' + } + this.commonLanguage = '' + this.processCompShow = '' + this.processCompObj = {} + }, // 初始化案件处理单选键组 async initProcess() { const res = await nextNodes(this.caseDetail.caseState) diff --git a/src/components/CaseCommon/caseDetailRead.vue b/src/components/CaseCommon/caseDetailRead.vue index 7aa7c2f..0611971 100644 --- a/src/components/CaseCommon/caseDetailRead.vue +++ b/src/components/CaseCommon/caseDetailRead.vue @@ -130,7 +130,7 @@
案卷图片:
- + diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index 7fcabac..508d337 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -129,7 +129,7 @@
案卷图片:
- +
@@ -371,10 +371,12 @@ } } }, - created() { + activated() { + console.log('activated') this.id = this.$route.query.id this.showProcess = (this.$route.query.showProcess || this.$route.query.showProcess === false) ? this.$route.query.showProcess : true this.showNeedVisit = this.$route.query.showNeedVisit ? this.$route.query.showNeedVisit : false + this.resetData() this.initData() }, methods: { @@ -414,6 +416,21 @@ this.initProcess() } }, + // 每次清空案件处理相关数据 + resetData() { + this.operationKey = '' + this.processForm = { + processId: '', + bizId: '', + currState: '', + changeState: '', + remarks: '', + approvalResult: '' + } + this.commonLanguage = '' + this.processCompShow = '' + this.processCompObj = {} + }, // 初始化案件处理单选键组 async initProcess() { const res = await nextNodes(this.caseDetail.caseState) diff --git a/src/components/CaseCommon/caseDetailRead.vue b/src/components/CaseCommon/caseDetailRead.vue index 7aa7c2f..0611971 100644 --- a/src/components/CaseCommon/caseDetailRead.vue +++ b/src/components/CaseCommon/caseDetailRead.vue @@ -130,7 +130,7 @@
案卷图片:
- + diff --git a/src/views/caseCommon/caseDetailRead.vue b/src/views/caseCommon/caseDetailRead.vue index 7d83267..3cea838 100644 --- a/src/views/caseCommon/caseDetailRead.vue +++ b/src/views/caseCommon/caseDetailRead.vue @@ -130,7 +130,7 @@
案卷图片:
- + diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index 7fcabac..508d337 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -129,7 +129,7 @@
案卷图片:
- +
@@ -371,10 +371,12 @@ } } }, - created() { + activated() { + console.log('activated') this.id = this.$route.query.id this.showProcess = (this.$route.query.showProcess || this.$route.query.showProcess === false) ? this.$route.query.showProcess : true this.showNeedVisit = this.$route.query.showNeedVisit ? this.$route.query.showNeedVisit : false + this.resetData() this.initData() }, methods: { @@ -414,6 +416,21 @@ this.initProcess() } }, + // 每次清空案件处理相关数据 + resetData() { + this.operationKey = '' + this.processForm = { + processId: '', + bizId: '', + currState: '', + changeState: '', + remarks: '', + approvalResult: '' + } + this.commonLanguage = '' + this.processCompShow = '' + this.processCompObj = {} + }, // 初始化案件处理单选键组 async initProcess() { const res = await nextNodes(this.caseDetail.caseState) diff --git a/src/components/CaseCommon/caseDetailRead.vue b/src/components/CaseCommon/caseDetailRead.vue index 7aa7c2f..0611971 100644 --- a/src/components/CaseCommon/caseDetailRead.vue +++ b/src/components/CaseCommon/caseDetailRead.vue @@ -130,7 +130,7 @@
案卷图片:
- + diff --git a/src/views/caseCommon/caseDetailRead.vue b/src/views/caseCommon/caseDetailRead.vue index 7d83267..3cea838 100644 --- a/src/views/caseCommon/caseDetailRead.vue +++ b/src/views/caseCommon/caseDetailRead.vue @@ -130,7 +130,7 @@
案卷图片:
- + diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue index b1630fb..cb61f53 100644 --- a/src/views/caseCommon/caseDetailSupervise.vue +++ b/src/views/caseCommon/caseDetailSupervise.vue @@ -130,7 +130,7 @@
案卷图片:
- +