From 2ee7cd0c527b5b5c920c81f52b5ddb9ef9714ba6 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 2 May 2024 00:06:10 +0800 Subject: [PATCH] view --- .../patientRegister/PatientRegisterItem.vue | 63 ++++++++++++++----- src/components/sumDoctorCheck/SumSug.vue | 5 +- src/views/doctorCheck/sumDoctorCheck.vue | 15 ++--- src/views/login/Login.vue | 39 ++++++------ 4 files changed, 81 insertions(+), 41 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index f87ec22..07d1d65 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -17,7 +17,17 @@ - + + + -
+
@@ -196,11 +197,11 @@ export default { // }); //支付方式 - getapi("/api/app/pay-mode").then((res) => { - if (res.code == 1) { - this.dict.payMode = res.data; - } - }); + // getapi("/api/app/pay-mode").then((res) => { + // if (res.code == 1) { + // this.dict.payMode = res.data; + // } + // }); //体检类别 树结构 getapi("/api/app/item-type/by-code-all").then((res) => { diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index a2d7749..01dcbfc 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -3,7 +3,8 @@
- + @@ -86,36 +87,38 @@ export default { isDevTool: false, // 壳端是否显示打开调试工具的按钮 } }, - LocalConfigInit:{} + LocalConfigInit: {} }; }, - created() { - if (this.$peisAPI) { - this.$peisAPI.lazyLoadMenuContrl() - .then(res =>{ - console.log('this.$peisAPI.lazyLoadMenuContrl',res) - }) - .catch(err => { - console.log('this.$peisAPI.lazyLoadMenuContrl err',err) - }); // 加载窗口按钮 dll - } + created() { this.LocalConfigInit = deepCopy(this.LocalConfig) let LocalConfig = window.localStorage.getItem("LocalConfig") || null try { - this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {}) + this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {}) } catch (error) { console.log('window.localStorage.getItem("LocalConfig")', error) } }, - async mounted() { - await this.getSysConfig() + async mounted() { + if (this.$peisAPI) { + this.$peisAPI.lazyLoadMenuContrl() + .then(res => { + console.log('this.$peisAPI.lazyLoadMenuContrl', res) + }) + .catch(err => { + console.log('this.$peisAPI.lazyLoadMenuContrl err', err) + }); // 加载窗口按钮 dll + } else { + console.log('this.$peisAPI undefind') + } + await this.getSysConfig() }, methods: { async getSysConfig() { try { let res = await axios.get('/sysConfig.json', { timeout: 50000 }) // , { timeout: 50000 } - console.log('axios.get /sysConfig.json',res) - if(!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` }) + console.log('axios.get /sysConfig.json', res) + if (!res.data.apiurl) this.$message.error({ showClose: true, message: `获取配置参数错误,请重新刷新本页面!` }) this.sysConfig = res.data window.sessionStorage.setItem('sysConfig', JSON.stringify(res.data)) } catch (error) { @@ -123,7 +126,7 @@ export default { } }, - //打开客户端调试工具 + //打开客户端调试工具 toggleDevTools() { if (!this.$peisAPI) { this.$message.info("此功能,需要在壳客户端才可运行!")