From 0050d867e8fb86888d66eb1dc44969b27b1c62a8 Mon Sep 17 00:00:00 2001 From: zk <2762560464@qq.com> Date: Tue, 7 Nov 2023 09:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E6=A1=A3=E6=A1=88=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BD=92=E6=A1=A3=E7=8A=B6=E6=80=81=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ea/electronicAssets/index.vue | 389 ++++++------------------ 1 file changed, 88 insertions(+), 301 deletions(-) diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue index fe64f25b..986c820b 100644 --- a/src/views/ea/electronicAssets/index.vue +++ b/src/views/ea/electronicAssets/index.vue @@ -1,82 +1,50 @@ - + - + @@ -180,47 +117,27 @@ - + - + - + - + - - - -
将文件拖到此处,或点击上传
-
+ + + +
将文件拖到此处,或点击上传
+
- + - - - + + + - + @@ -342,83 +194,54 @@ + + - + - + - + - - + + - + - + - + @@ -428,13 +251,7 @@ - + @@ -442,27 +259,15 @@ - + - + @@ -478,9 +283,7 @@
@@ -527,8 +330,6 @@ export default { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), }, // 设置上传的请求头 - uploadDisabled: undefined, - treeDisabled: undefined, fileList: [], // 文件列表 // 部门树选项 deptOptions: undefined, @@ -557,7 +358,7 @@ export default { queryParams: { pageNo: 1, pageSize: 10, - contractAttachment: null, + contractAttachment:null, companyId: null, company: null, deptId: null, @@ -586,14 +387,7 @@ export default { // 表单参数 form: {}, // 表单校验 - rules: { - company: [ - { required: true, message: "业务实体不能为空", trigger: "change" }, - ], - assetCode: [ - { required: true, message: "资产编号不能为空", trigger: "change" }, - ], - }, + rules: {}, organizationList: [], siteOptions: [], //归档位置数据 siteArray: [], //归档位置选中值 @@ -624,9 +418,9 @@ export default { this.form.contractAttachment = res.data.url; }, /** - * 文件预览 - * @param fileUrl - */ + * 文件预览 + * @param fileUrl + */ openLink(fileUrl) { const url = process.env.VUE_APP_ONLINE_API + @@ -718,7 +512,7 @@ export default { deptName: undefined, assetCode: undefined, assetName: undefined, - contractAttachment: undefined, + contractAttachment:undefined, assetDescription: undefined, assetType: undefined, purchaseDate: undefined, @@ -764,15 +558,11 @@ export default { this.fileList = []; this.open = true; this.optType = "add"; - this.treeDisabled = false; - this.uploadDisabled = true; this.title = "添加资产档案"; }, /** 查看按钮操作 */ handleView(row) { this.reset(); - this.treeDisabled = true; - this.uploadDisabled = false; this.optType = "view"; const id = row.id; getElectronicAssets(id).then((response) => { @@ -785,8 +575,6 @@ export default { handleUpdate(row) { this.reset(); const id = row.id; - this.treeDisabled = false; - this.uploadDisabled = true; this.optType = "edit"; getElectronicAssets(id).then((response) => { this.form = response.data; @@ -824,7 +612,6 @@ export default { return; } // 添加的提交 - this.form.cherks = 0; createElectronicAssets(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.open = false; @@ -844,7 +631,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -862,7 +649,7 @@ export default { this.$download.excel(response, "资产档案.xls"); this.exportLoading = false; }) - .catch(() => {}); + .catch(() => { }); }, }, };