From a208e8bfa0ddaa54cd23e306f9bc75cd03e39db6 Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Mon, 22 Apr 2024 09:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E6=B3=95=E7=99=BB=E8=AE=B0=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E8=8D=89=E7=A8=BF=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enforce.js | 2 + src/components/header-nav/index.vue | 2 +- src/views/administrative/appointment.vue | 10 ++++- src/views/enforce/sign.vue | 51 ++++++++++++++++++++++-- 4 files changed, 59 insertions(+), 6 deletions(-) diff --git a/src/api/enforce.js b/src/api/enforce.js index 625944d..c8d0704 100644 --- a/src/api/enforce.js +++ b/src/api/enforce.js @@ -30,6 +30,8 @@ export const addEnforcementInspectionProgram = (params, success, error) =>_post( //保存执法信息登记 export const addEnforcementRegistration = (params, success, error) => _post("/code/registration/add",params,success,error) +export const editEnforcementRegistration = (params, success, error) => _post("/code/registration/edit",params,success,error) +export const getRegByUserIdAndZero = (id, success, error) => _get("/code/registration/getByUserIdAndZero",null,success,error) //查询历史检查信息 export const queryRegistrationList = (params, success, error) => _get("/code/registration/queryList",params,success,error) diff --git a/src/components/header-nav/index.vue b/src/components/header-nav/index.vue index 6597685..b7677d7 100644 --- a/src/components/header-nav/index.vue +++ b/src/components/header-nav/index.vue @@ -15,7 +15,7 @@ diff --git a/src/views/administrative/appointment.vue b/src/views/administrative/appointment.vue index 5fbe713..bd67e7c 100644 --- a/src/views/administrative/appointment.vue +++ b/src/views/administrative/appointment.vue @@ -2,7 +2,7 @@
- +
@@ -92,7 +92,8 @@
- 提交 + 保存 + 提交
@@ -285,10 +286,15 @@ const dataFillIn = () => { const tmpSave = () => { showSuccessToast('临时保存'); + console.log(submitData) addEnterpriseLawEnforcement(submitData,success =>{ //跳转企业二维码地址 if(success.success){ showSuccessToast('保存成功'); + router.push( + { + path: "/appointmentList" + }); } },error=>{ console.log("保存失败") diff --git a/src/views/enforce/sign.vue b/src/views/enforce/sign.vue index 8a95c84..a94b7f3 100644 --- a/src/views/enforce/sign.vue +++ b/src/views/enforce/sign.vue @@ -127,7 +127,7 @@ - 保存 + 保存 提交 @@ -158,7 +158,7 @@