From b3b07ef3df21910036a0d82ac96354adb60125f2 Mon Sep 17 00:00:00 2001 From: guoweilong Date: Thu, 6 Jun 2024 13:06:23 +0800 Subject: [PATCH] feat:流程问题 --- App.vue | 1 + api/auth.js | 2 ++ common/config.js | 4 ++-- components/popUpComponent/popUpComponent.vue | 20 -------------------- components/popUpFillIn/popUpFillIn.vue | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------ main.js | 6 ++++++ pages/charge/constructionMaintenance/index.vue | 16 +++++++++++----- pages/charge/ignitionMaintenance/index.vue | 4 ++-- pages/charge/visitsAndFees/createaVisit.vue | 2 +- pages/charge/visitsAndFees/index.vue | 25 ++++++++++++++++--------- pages/login/workbench.vue | 4 ++-- static/images/icon/charge.png | Bin 0 -> 1903 bytes static/images/icon/insight.png | Bin 0 -> 2175 bytes store/getters.js | 5 +++++ store/mudules/user.js | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- utils/constant.js | 8 ++++++++ utils/permission.js | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ utils/storage.js | 32 ++++++++++++++++++++++++++++++++ 18 files changed, 440 insertions(+), 91 deletions(-) create mode 100644 static/images/icon/charge.png create mode 100644 static/images/icon/insight.png create mode 100644 utils/constant.js create mode 100644 utils/permission.js create mode 100644 utils/storage.js diff --git a/App.vue b/App.vue index e9837fe..8274a37 100644 --- a/App.vue +++ b/App.vue @@ -18,6 +18,7 @@ }, onShow: function() { console.log(this); + this.$store.dispatch('GetInfo') let workName = uni.getStorageSync('tabName'); this.$store.dispatch('setTab', {data: workName}); uni.hideTabBar(); diff --git a/api/auth.js b/api/auth.js index 6366a81..2d150e6 100644 --- a/api/auth.js +++ b/api/auth.js @@ -39,6 +39,8 @@ export const smsLogin = data => http.post('/member/auth/sms-login', data) export const weixinMiniAppLogin = data => http.post('/member/auth/weixin-mini-app-login', data) // 获取验证码 export const getCodeImg = params => http.get('/captchaImage') + +export const getInfo = params => http.get('/system/user/getInfo') //刷新令牌 export const refreshToken = data => http.post('/member/auth/refresh-token', { data diff --git a/common/config.js b/common/config.js index 8de31b6..94d44c8 100644 --- a/common/config.js +++ b/common/config.js @@ -1,8 +1,8 @@ module.exports = { //后端接口地址 // baseUrl: 'http://10.11.38.240:9001', //内网开发环境 - // baseUrl: 'http://192.168.0.8:8001', //内网开发环境 - baseUrl: 'http://hqpnzc.natappfree.cc', //内网穿透开发环境 + baseUrl: 'http://192.168.0.8:8001', //内网开发环境 + // baseUrl: 'http://hqpnzc.natappfree.cc', //内网穿透开发环境 // baseUrl: 'http://172.17.56.37:18082/api', //测试环境 // baseUrl: 'http://172.17.56.16:18082/api', //ip正式环境 // baseUrl: 'https://scdcapp.chinagasholdings.com/api', //域名正式环境 diff --git a/components/popUpComponent/popUpComponent.vue b/components/popUpComponent/popUpComponent.vue index 63071b1..1b9fa5a 100644 --- a/components/popUpComponent/popUpComponent.vue +++ b/components/popUpComponent/popUpComponent.vue @@ -88,26 +88,6 @@ } } - if (this.publishStatus === 'PENDING_LEVEL_1_AUDIT') { - const result = await submitAuditOne(data); - if (result.code === 200) { - that.$emit('getList'); - uni.$u.toast(`${this.title}成功`) - } else { - uni.$u.toast(result.msg) - } - } - - if (this.publishStatus === 'PENDING_LEVEL_2_AUDIT') { - const result = await submitAuditTwo(data); - if (result.code === 200) { - that.$emit('getList'); - uni.$u.toast(`${this.title}成功`) - } else { - uni.$u.toast(result.msg) - } - } - if (this.publishStatus === 'APPROVED' && this.modificationStatus === 'PENDING_LEVEL_1_AUDIT') { const result = await submitModificationOne(data); if (result.code === 200) { diff --git a/components/popUpFillIn/popUpFillIn.vue b/components/popUpFillIn/popUpFillIn.vue index e1f9949..bbeb6fa 100644 --- a/components/popUpFillIn/popUpFillIn.vue +++ b/components/popUpFillIn/popUpFillIn.vue @@ -26,12 +26,22 @@ + + + + + + + + + + 基本维护 - + @@ -39,20 +49,35 @@ - + + - - - + + + - - - + + + - - + + + + + + + + + + + + + + + + @@ -77,7 +102,9 @@