From 9d50729c7f7f3d1b8bf704e44de692ed0a364104 Mon Sep 17 00:00:00 2001 From: huangyuxuan Date: Thu, 20 Mar 2025 08:42:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD](hyx=5F20?= =?UTF-8?q?25-03-20=5FoldXgf):=20-=20=E6=96=B0=E5=A2=9E=E7=89=B9=E7=A7=8D?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E8=AF=81=E4=BB=B6=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/index.js | 1 + pages/certificate_information/add.vue | 14 +++++++++-- pages/certificate_information/index.vue | 31 ++++++++++++++++++++++++- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/api/index.js b/api/index.js index 1808746..5586ffc 100644 --- a/api/index.js +++ b/api/index.js @@ -36,6 +36,7 @@ export const setCertificateInformationEditPost = (params) => post("/app/specialU export const getDeptTree = (params) => post("/api/department/listzTree", params) //用户信息 export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID", params) //获取EMPLOYMENTAPPLYMANAGEMENTID +export const deleteCertificateInformation = (params) => post("/app/specialUser/deleteSpecialUser",params) // 以下接口八项作业流程使用 export const getCorpInfoList = (params) => post("/app/util/getCorp", params) //获取公司列表 diff --git a/pages/certificate_information/add.vue b/pages/certificate_information/add.vue index 0ae6497..7b62422 100644 --- a/pages/certificate_information/add.vue +++ b/pages/certificate_information/add.vue @@ -335,7 +335,12 @@ export default { this.form.REVIEW_TIME = uni.$u.timeFormat(event.value, 'yyyy-mm-dd') }, fnAfterRead(event) { - var houzhui = event.file.url.replace(/.+\./, ""); + var houzhui + if(event.file.name){ + houzhui = event.file.name.split('.').pop().toLowerCase(); + }else { + houzhui = event.file.url.replace(/.+\./, ""); + } console.log(houzhui); if (houzhui == "jpg" || houzhui == "png") { this.form.fileList.push(event.file) @@ -346,7 +351,12 @@ export default { } }, fnAfterRead1(event) { - var houzhui = event.file.url.replace(/.+\./, ""); + var houzhui + if(event.file.name){ + houzhui = event.file.name.split('.').pop().toLowerCase(); + }else { + houzhui = event.file.url.replace(/.+\./, ""); + } console.log(houzhui); if (houzhui == "jpg" || houzhui == "png") { this.form.fileListBack.push(event.file) diff --git a/pages/certificate_information/index.vue b/pages/certificate_information/index.vue index 553bd30..b27dd6d 100644 --- a/pages/certificate_information/index.vue +++ b/pages/certificate_information/index.vue @@ -25,6 +25,10 @@ + + + @@ -37,7 +41,7 @@