From 817079b757f7602a08c1ef6f6f87b5f06b0c98d1 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 18 Mar 2024 16:17:23 +0800 Subject: [PATCH] =?UTF-8?q?bug#1042=E6=99=BA=E8=83=BD=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=9C=AA=E9=80=89=E6=8B=A9=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=BD=91=E7=BB=9C=E5=BC=80=E5=B0=8F=E5=B7=AE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20bug#1039=E4=B8=8B=E8=BD=BD=E6=A8=A1=E6=9D=BF=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/smartImport/cpts/createdTask.vue | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/views/modules/base/smartImport/cpts/createdTask.vue b/src/views/modules/base/smartImport/cpts/createdTask.vue index daed43032..3afdd5cb6 100644 --- a/src/views/modules/base/smartImport/cpts/createdTask.vue +++ b/src/views/modules/base/smartImport/cpts/createdTask.vue @@ -3,19 +3,20 @@

基本信息

- + @@ -26,10 +27,11 @@ {{ this.$store.state.user.agencyName + categoryName || "" - }}导入模板.xlsx + }} + 导入模板.xlsx + 请先选择任务类型 点击下载点击下载 @@ -236,6 +238,9 @@ export default { await this.loadPersonGroup(); }, methods: { + handelClearCategory(){ + this.categoryName = null; + }, async loadPersonGroup() { const url = "/oper/customize/icformitemgroup/list"; // const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/isServiceProject/service/serviceScopeTree' @@ -378,7 +383,7 @@ export default { const aLink = document.createElement("a"); aLink.style.display = "none"; aLink.href = url; - aLink.setAttribute("download", "人员导入模板.zip"); + aLink.setAttribute("download", "全部模板"); document.body.appendChild(aLink); aLink.click(); document.body.removeChild(aLink); @@ -439,6 +444,10 @@ export default { }, async saveImportResiHouseExcel(){ const { fileCode, dataList } = this; + if(!fileCode){ + this.$message.error("请先上传文件"); + return + } let obj = dataList.reduce((acc, item) => { if (item.userTableHeader) { acc[item.userTableHeader] = item.itemId;