diff --git a/src/views/accounting/report/index.vue b/src/views/accounting/report/index.vue index d7a0ba89..02f68116 100644 --- a/src/views/accounting/report/index.vue +++ b/src/views/accounting/report/index.vue @@ -206,7 +206,6 @@ :title="title" :visible.sync="open" width="1000px" - v-dialogDrag append-to-body > diff --git a/src/views/accounting/voucherDetails/index.vue b/src/views/accounting/voucherDetails/index.vue index 52f71395..fcada5f5 100644 --- a/src/views/accounting/voucherDetails/index.vue +++ b/src/views/accounting/voucherDetails/index.vue @@ -149,7 +149,6 @@ :title="title" :visible.sync="open" width="1000px" - v-dialogDrag append-to-body > diff --git a/src/views/archives/turnOver/index.vue b/src/views/archives/turnOver/index.vue index bd1d675f..7c3707d0 100644 --- a/src/views/archives/turnOver/index.vue +++ b/src/views/archives/turnOver/index.vue @@ -185,7 +185,6 @@ :title="title" :visible.sync="open" width="1100px" - v-dialogDrag append-to-body > diff --git a/src/views/ea/electronicAttachment/index.vue b/src/views/ea/electronicAttachment/index.vue index 3f2a6477..960694b9 100644 --- a/src/views/ea/electronicAttachment/index.vue +++ b/src/views/ea/electronicAttachment/index.vue @@ -1,13 +1,24 @@ - + - + - + - +
将文件拖到此处,或点击上传
- + - + - + - + @@ -197,7 +271,7 @@ - + @@ -205,7 +279,7 @@ - + @@ -231,9 +305,9 @@ import { deleteElectronicAttachment, getElectronicAttachment, getElectronicAttachmentPage, - exportElectronicAttachmentExcel + exportElectronicAttachmentExcel, } from "@/api/ea/electronicAttachment/electronicAttachment"; -import {getAccessToken, getTenantId} from "@/utils/auth"; +import { getAccessToken, getTenantId } from "@/utils/auth"; export default { name: "ElectronicAttachment", @@ -277,7 +351,8 @@ export default { }, fileList: [], // 文件列表 uploadUrl: - process.env.VUE_APP_BASE_API + "/admin-api/ea/electronic-attachment/upload", // 上传地址地址 + process.env.VUE_APP_BASE_API + + "/admin-api/ea/electronic-attachment/upload", // 上传地址地址 headers: { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), @@ -286,9 +361,13 @@ export default { form: {}, // 表单校验 rules: { - businessId: [{required: true, message: "业务id不能为空", trigger: "blur"}], - businessType: [{required: true, message: "业务类型不能为空", trigger: "change"}], - } + businessId: [ + { required: true, message: "业务id不能为空", trigger: "blur" }, + ], + businessType: [ + { required: true, message: "业务类型不能为空", trigger: "change" }, + ], + }, }; }, created() { @@ -299,7 +378,7 @@ export default { getList() { this.loading = true; // 执行查询 - getElectronicAttachmentPage(this.queryParams).then(response => { + getElectronicAttachmentPage(this.queryParams).then((response) => { this.list = response.data.list; this.total = response.data.total; this.loading = false; @@ -338,7 +417,8 @@ export default { this.form.fileUrl = res.data.url; }, openLink(fileUrl) { - const url = process.env.VUE_APP_ONLINE_API + + const url = + process.env.VUE_APP_ONLINE_API + `/onlinePreview?url=${encodeURIComponent(this.base64Encode(fileUrl))}`; window.open(url); }, @@ -363,7 +443,7 @@ export default { handleUpdate(row) { this.reset(); const id = row.id; - getElectronicAttachment(id).then(response => { + getElectronicAttachment(id).then((response) => { this.form = response.data; this.open = true; this.title = "修改电子档案附件"; @@ -371,13 +451,13 @@ export default { }, /** 提交按钮 */ submitForm() { - this.$refs["form"].validate(valid => { + this.$refs["form"].validate((valid) => { if (!valid) { return; } // 修改的提交 if (this.form.id != null) { - updateElectronicAttachment(this.form).then(response => { + updateElectronicAttachment(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); @@ -385,7 +465,7 @@ export default { return; } // 添加的提交 - createElectronicAttachment(this.form).then(response => { + createElectronicAttachment(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); @@ -395,29 +475,35 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const id = row.id; - this.$modal.confirm('是否确认删除电子档案附件编号为"' + id + '"的数据项?').then(function () { - return deleteElectronicAttachment(id); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => { - }); + this.$modal + .confirm('是否确认删除电子档案附件编号为"' + id + '"的数据项?') + .then(function () { + return deleteElectronicAttachment(id); + }) + .then(() => { + this.getList(); + this.$modal.msgSuccess("删除成功"); + }) + .catch(() => {}); }, /** 导出按钮操作 */ handleExport() { // 处理查询参数 - let params = {...this.queryParams}; + let params = { ...this.queryParams }; params.pageNo = undefined; params.pageSize = undefined; - this.$modal.confirm('是否确认导出所有电子档案附件数据项?').then(() => { - this.exportLoading = true; - return exportElectronicAttachmentExcel(params); - }).then(response => { - this.$download.excel(response, '电子档案附件.xls'); - this.exportLoading = false; - }).catch(() => { - }); - } - } + this.$modal + .confirm("是否确认导出所有电子档案附件数据项?") + .then(() => { + this.exportLoading = true; + return exportElectronicAttachmentExcel(params); + }) + .then((response) => { + this.$download.excel(response, "电子档案附件.xls"); + this.exportLoading = false; + }) + .catch(() => {}); + }, + }, }; diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue index 0cdd329d..d68b0df4 100644 --- a/src/views/ea/electronicConsultation/index.vue +++ b/src/views/ea/electronicConsultation/index.vue @@ -317,16 +317,31 @@ :title="title" :visible.sync="open" width="1000px" - v-dialogDrag append-to-body > - - -
将文件拖到此处,或点击上传
-
+ + +
将文件拖到此处,或点击上传
+
- + @@ -497,7 +512,6 @@ /> - @@ -586,7 +600,7 @@ export default { createTime: [], company: null, systemDept: null, - contractAttachment:null, + contractAttachment: null, consultationId: null, consultationType: null, consultationTitle: null, @@ -629,15 +643,15 @@ export default { this.loading = false; }); }, - // 上传成功的函数 - handleSuccess(res) { + // 上传成功的函数 + handleSuccess(res) { console.log(res); this.form.contractAttachment = res.data.url; }, /** - * 文件预览 - * @param fileUrl - */ + * 文件预览 + * @param fileUrl + */ openLink(fileUrl) { const url = process.env.VUE_APP_ONLINE_API + @@ -728,7 +742,7 @@ export default { systemDept: undefined, consultationId: undefined, consultationType: undefined, - contractAttachment:undefined, + contractAttachment: undefined, consultationTitle: undefined, consultationContent: undefined, consultorName: undefined, diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue index 0e39bb23..e1882364 100644 --- a/src/views/ea/electronicCustomerComplaint/index.vue +++ b/src/views/ea/electronicCustomerComplaint/index.vue @@ -274,7 +274,6 @@ width="180px" >
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +