diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue index 83cec844..a7586c59 100644 --- a/src/views/ea/electronicAssets/index.vue +++ b/src/views/ea/electronicAssets/index.vue @@ -1,16 +1,39 @@ - + - + @@ -132,7 +209,10 @@ @@ -143,16 +223,30 @@ --> - + - + - + - - - -
将文件拖到此处,或点击上传
-
+ + + +
将文件拖到此处,或点击上传
+
- + - - - + + + - + @@ -209,54 +368,83 @@ - - - + - + - + - - + + - + - + - + @@ -266,7 +454,13 @@ - + @@ -274,15 +468,27 @@ - + - + @@ -298,7 +504,9 @@
@@ -375,7 +583,7 @@ export default { queryParams: { pageNo: 1, pageSize: 10, - contractAttachment:null, + contractAttachment: null, companyId: null, company: null, deptId: null, @@ -440,11 +648,17 @@ 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+"上传成功", + type: "success", + }); }, /** - * 文件预览 - * @param fileUrl - */ + * 文件预览 + * @param fileUrl + */ openLink(fileUrl) { const url = process.env.VUE_APP_ONLINE_API + @@ -536,7 +750,7 @@ export default { deptName: undefined, assetCode: undefined, assetName: undefined, - contractAttachment:undefined, + contractAttachment: undefined, assetDescription: undefined, assetType: undefined, purchaseDate: undefined, @@ -661,7 +875,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => { }); + .catch(() => {}); }, /** 导出按钮操作 */ handleExport() { @@ -679,7 +893,7 @@ export default { this.$download.excel(response, "资产档案.xls"); this.exportLoading = false; }) - .catch(() => { }); + .catch(() => {}); }, }, }; diff --git a/src/views/ea/electronicAttachment/index.vue b/src/views/ea/electronicAttachment/index.vue index 0dea0b68..471147ca 100644 --- a/src/views/ea/electronicAttachment/index.vue +++ b/src/views/ea/electronicAttachment/index.vue @@ -203,6 +203,7 @@ > - - @@ -405,7 +404,7 @@ :clearable="true" placeholder="请选择归属部门" :normalizer="normalizer" - :disabled = "treeDisabled" + :disabled="treeDisabled" /> @@ -615,6 +614,7 @@ import { listSimplePosts } from "@/api/system/post"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import { getAccessToken, getTenantId } from "@/utils/auth"; +import { ref } from "vue"; export default { name: "ElectronicContracts", @@ -642,8 +642,8 @@ export default { fileList: [], // 文件列表 getFileUrl: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/", imgs: null, - uploadDisabled:undefined, - treeDisabled:undefined, + uploadDisabled: undefined, + treeDisabled: undefined, // 部门树选项 deptOptions: undefined, // 非单个禁用 @@ -812,7 +812,14 @@ export default { // 上传成功的函数 handleSuccess(res) { 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+"上传成功", + type: "success", + }); }, /** * 文件预览 diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue index 415bb013..1ea9384c 100644 --- a/src/views/ea/electronicCustomerComplaint/index.vue +++ b/src/views/ea/electronicCustomerComplaint/index.vue @@ -331,6 +331,7 @@ >