From c103785f50f76e33247d049d28d49c649dd11523 Mon Sep 17 00:00:00 2001 From: chiyilin <2449182606@qq.com> Date: Wed, 8 Nov 2023 14:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=AD=90=E6=A1=A3=E6=A1=88=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ea/electronicAssets/index.vue | 5 +++-- src/views/ea/electronicAttachment/index.vue | 4 +++- src/views/ea/electronicConsultation/index.vue | 4 +++- src/views/ea/electronicContracts/index.vue | 4 +++- src/views/ea/electronicCustomerComplaint/index.vue | 4 +++- src/views/ea/electronicEmployee/index.vue | 4 +++- src/views/ea/electronicOther/index.vue | 3 ++- 7 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue index a7586c59..43a6bee3 100644 --- a/src/views/ea/electronicAssets/index.vue +++ b/src/views/ea/electronicAssets/index.vue @@ -648,10 +648,9 @@ export default { handleSuccess(res) { console.log(res); this.form.contractAttachment = res.data.url; - this.$refs.upload.clearFiles(); this.$message({ showClose: true, - message: res.data.name+"上传成功", + message: res.data.name + "上传成功", type: "success", }); }, @@ -850,6 +849,7 @@ export default { if (this.form.id != null) { updateElectronicAssets(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -858,6 +858,7 @@ export default { // 添加的提交 createElectronicAssets(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); diff --git a/src/views/ea/electronicAttachment/index.vue b/src/views/ea/electronicAttachment/index.vue index 471147ca..8990f07d 100644 --- a/src/views/ea/electronicAttachment/index.vue +++ b/src/views/ea/electronicAttachment/index.vue @@ -418,7 +418,7 @@ export default { handleSuccess(res) { console.log(res); this.form.fileUrl = res.data.url; - this.$refs.upload.clearFiles(); + this.$message({ showClose: true, message: res.data.name+"上传成功", @@ -468,6 +468,7 @@ export default { if (this.form.id != null) { updateElectronicAttachment(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -476,6 +477,7 @@ export default { // 添加的提交 createElectronicAttachment(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue index c6e4e907..9b35af07 100644 --- a/src/views/ea/electronicConsultation/index.vue +++ b/src/views/ea/electronicConsultation/index.vue @@ -689,7 +689,7 @@ export default { handleSuccess(res) { console.log(res); this.form.contractAttachment = res.data.url; - this.$refs.upload.clearFiles(); + this.$message({ showClose: true, message: res.data.name+"上传成功", @@ -870,6 +870,7 @@ export default { if (this.form.id != null) { updateElectronicConsultation(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -879,6 +880,7 @@ export default { this.form.cherks = 0; createElectronicConsultation(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue index 16569063..6c06a704 100644 --- a/src/views/ea/electronicContracts/index.vue +++ b/src/views/ea/electronicContracts/index.vue @@ -814,7 +814,7 @@ export default { console.log(res); console.log(this.$refs.upload + "*******"); this.form.contractAttachment = res.data.url; - this.$refs.upload.clearFiles(); + this.$message({ showClose: true, message: res.data.name+"上传成功", @@ -970,6 +970,7 @@ export default { if (this.form.id != null) { updateElectronicContracts(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -979,6 +980,7 @@ export default { this.form.cherks = 0; createElectronicContracts(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue index 1ea9384c..6c01f8c2 100644 --- a/src/views/ea/electronicCustomerComplaint/index.vue +++ b/src/views/ea/electronicCustomerComplaint/index.vue @@ -709,7 +709,7 @@ export default { handleSuccess(res) { console.log(res); this.form.contractAttachment = res.data.url; - this.$refs.upload.clearFiles(); + this.$message({ showClose: true, message: res.data.name+"上传成功", @@ -896,6 +896,7 @@ export default { if (this.form.id != null) { updateElectronicCustomerComplaint(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -905,6 +906,7 @@ export default { this.form.cherks = 0; createElectronicCustomerComplaint(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); diff --git a/src/views/ea/electronicEmployee/index.vue b/src/views/ea/electronicEmployee/index.vue index beda5640..4c65d33f 100644 --- a/src/views/ea/electronicEmployee/index.vue +++ b/src/views/ea/electronicEmployee/index.vue @@ -844,7 +844,7 @@ export default { handleSuccess(res) { console.log(res); this.form.contractAttachment = res.data.url; - this.$refs.upload.clearFiles(); + this.$message({ showClose: true, message: res.data.name+"上传成功", @@ -1048,6 +1048,7 @@ export default { if (this.form.id != null) { updateElectronicEmployee(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -1057,6 +1058,7 @@ export default { this.form.cherks = 0; createElectronicEmployee(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); diff --git a/src/views/ea/electronicOther/index.vue b/src/views/ea/electronicOther/index.vue index ca21666d..485ef9d2 100644 --- a/src/views/ea/electronicOther/index.vue +++ b/src/views/ea/electronicOther/index.vue @@ -543,7 +543,6 @@ export default { handleSuccess(res) { console.log(res); this.form.contractAttachment = res.data.url; - this.$refs.upload.clearFiles(); this.$message({ showClose: true, message: res.data.name+"上传成功", @@ -598,6 +597,7 @@ export default { if (this.form.id != null) { updateElectronicOther(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); }); @@ -607,6 +607,7 @@ export default { this.form.fileStatus = 0; createElectronicOther(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); + this.$refs.upload.clearFiles(); this.open = false; this.getList(); });