diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue index 48638b58..b21d93f8 100644 --- a/src/views/ea/electronicAssets/index.vue +++ b/src/views/ea/electronicAssets/index.vue @@ -1,40 +1,31 @@ - + - + @@ -195,47 +132,27 @@ - + - + - + - + - - - -
将文件拖到此处,或点击上传
-
+ + + +
将文件拖到此处,或点击上传
+
- + - - - + + + - + @@ -357,83 +209,54 @@ + + - + - + - + - - + + - + - + - + @@ -443,13 +266,7 @@ - + @@ -457,27 +274,15 @@ - + - + @@ -493,9 +298,7 @@
@@ -542,8 +345,6 @@ export default { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), }, // 设置上传的请求头 - uploadDisabled: undefined, - treeDisabled: undefined, fileList: [], // 文件列表 // 部门树选项 deptOptions: undefined, @@ -572,7 +373,7 @@ export default { queryParams: { pageNo: 1, pageSize: 10, - contractAttachment: null, + contractAttachment:null, companyId: null, company: null, deptId: null, @@ -601,14 +402,7 @@ export default { // 表单参数 form: {}, // 表单校验 - rules: { - company: [ - { required: true, message: "业务实体不能为空", trigger: "change" }, - ], - assetCode: [ - { required: true, message: "资产编号不能为空", trigger: "change" }, - ], - }, + rules: {}, organizationList: [], siteOptions: [], //归档位置数据 siteArray: [], //归档位置选中值 @@ -639,9 +433,9 @@ export default { this.form.contractAttachment = res.data.url; }, /** - * 文件预览 - * @param fileUrl - */ + * 文件预览 + * @param fileUrl + */ openLink(fileUrl) { const url = process.env.VUE_APP_ONLINE_API + @@ -733,7 +527,7 @@ export default { deptName: undefined, assetCode: undefined, assetName: undefined, - contractAttachment: undefined, + contractAttachment:undefined, assetDescription: undefined, assetType: undefined, purchaseDate: undefined, @@ -779,15 +573,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) => { @@ -800,8 +590,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; @@ -839,7 +627,6 @@ export default { return; } // 添加的提交 - this.form.cherks = 0; createElectronicAssets(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.open = false; @@ -859,7 +646,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -877,7 +664,7 @@ export default { this.$download.excel(response, "资产档案.xls"); this.exportLoading = false; }) - .catch(() => {}); + .catch(() => { }); }, }, };