diff --git a/.env.development b/.env.development index e0995db..4593667 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ VUE_APP_NODE_ENV=development -VUE_APP_BASE_URL=http://101.201.226.163 -VUE_APP_API_URL=http://101.201.226.163/gateway -VUE_APP_MSG_URL=ws://101.201.226.163/websocket/message/v4.0/ws -VUE_APP_PROJECT_PATH=http://101.201.226.163/carBasicTall -VUE_APP_QUESTION_PATH=http://101.201.226.163/carbasics +VUE_APP_BASE_URL=https://www.tall.wiki +VUE_APP_API_URL=https://www.tall.wiki/gateway +VUE_APP_MSG_URL=ws://www.tall.wiki/websocket/message/v4.0/ws +VUE_APP_PROJECT_PATH=https://www.tall.wiki/carBasicTall +VUE_APP_QUESTION_PATH=https://www.tall.wiki/carbasics VUE_APP_VERSION=v3.1.0 VUE_APP_PUBLIC_PATH=/carBasicCalendar/ diff --git a/.env.production b/.env.production index e719192..158f804 100644 --- a/.env.production +++ b/.env.production @@ -1,8 +1,8 @@ VUE_APP_NODE_ENV=production -VUE_APP_BASE_URL=https://test.tall.wiki -VUE_APP_API_URL=https://test.tall.wiki/gateway -VUE_APP_MSG_URL=ws://101.201.226.163/websocket/message/v4.0/ws -VUE_APP_PROJECT_PATH=https://test.tall.wiki/carBasicTall -VUE_APP_QUESTION_PATH=https://test.tall.wiki/carbasics +VUE_APP_BASE_URL=https://www.tall.wiki +VUE_APP_API_URL=https://www.tall.wiki/gateway +VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws +VUE_APP_PROJECT_PATH=https://www.tall.wiki/carBasicTall +VUE_APP_QUESTION_PATH=https://www.tall.wiki/carbasics VUE_APP_VERSION=v3.1.0 VUE_APP_PUBLIC_PATH=/carBasicCalendar/ diff --git a/src/common/styles/tailwind.scss b/src/common/styles/tailwind.scss index fb52d94..9264c22 100644 --- a/src/common/styles/tailwind.scss +++ b/src/common/styles/tailwind.scss @@ -3729,6 +3729,10 @@ line-height: 1.75rem; } +.fz-16 { + font-size: 16px; +} + .text-xl { font-size: 1.25rem; line-height: 1.75rem; diff --git a/src/components/Globals/Globals.vue b/src/components/Globals/Globals.vue index 2719a1e..c064ac0 100644 --- a/src/components/Globals/Globals.vue +++ b/src/components/Globals/Globals.vue @@ -27,6 +27,7 @@ export default { }, created() { var obj = JSON.parse(this.globals[0].plugins[0][0].param); + // console.log('obj: ', obj); this.setGlobalData(obj); this.global[0] = this.globals[0]; this.globalTabs = [...this.globals]; @@ -39,6 +40,7 @@ export default { if (e !== this.globals.length) { this.global[0] = this.globals[e]; var obj = JSON.parse(this.globals[e].plugins[0][0].param); + // console.log('obj: ', obj); this.setGlobalData(obj); this.$emit('changeShowLine', false); this.showLine = false; diff --git a/src/components/PatientList/PatientList.vue b/src/components/PatientList/PatientList.vue index b218abe..c456987 100644 --- a/src/components/PatientList/PatientList.vue +++ b/src/components/PatientList/PatientList.vue @@ -60,7 +60,7 @@ >
@@ -154,7 +154,7 @@ export default { isMove: false, // 当前是否处于滑动状态 }), computed: { - ...mapState('carbasics', ['detailsData', 'globalData', 'refreshList']), + ...mapState('carbasics', ['globalData', 'refreshList']), ...mapGetters('project', ['projectId']), }, mounted() { @@ -167,7 +167,7 @@ export default { this.getData(true); }, methods: { - ...mapMutations('carbasics', ['setFirstAidId']), + ...mapMutations('carbasics', ['setFirstAidId', 'setDetailValueType']), jump() { uni.navigateTo({ url: `/pages/establish/establish?role=${this.role}` }); }, @@ -221,12 +221,14 @@ export default { // 用户点击患者card时,判断是否已经被接诊 // 如果没有被接诊,这自动选择接诊该患者 // 如果已经接诊,则直接跳转到患者的信息录入目录中 - changeTimeLine(recordUserId, firstAidId, caseType) { + changeTimeLine(recordUserId, firstAidId, caseType, demonstrate) { try { if (!(recordUserId - 0)) { - this.changeShow(firstAidId); + this.changeShow(firstAidId, caseType, demonstrate); } else { + console.log('firstAidId: ', firstAidId); this.setFirstAidId(firstAidId); + this.setDetailValueType(demonstrate); // this.$router.push(`/patient-line`); uni.navigateTo({ url: `/pages/patientLine/patientLine?caseType=${caseType}` }); } @@ -239,17 +241,17 @@ export default { } }, // 判断当前用户是否为医生,如果是医生,则将该患者加入急救 - changeShow(id) { + changeShow(id, caseType, demonstrate) { if (this.role === 'YiSheng') { // 只有加入急救的时候用到了这个急救id,但还是存了起来 // 这里存起来的原因,是因为目前只有神内路线,当神外路线打开后,需要选择神内/神外才能加入,所以需要存储 this.firstAidId = id; - this.handleOk(this.detailsData.type); + this.handleOk(this.globalData.createAuth - 0 === 0 ? 1 : 0, caseType, demonstrate); // this.visible = true; // 神内/神外选择加入 } }, // 将患者加入急救 - async handleOk(type) { + async handleOk(type, caseType, demonstrate) { try { const { projectId, firstAidId } = this; const param = { @@ -258,7 +260,6 @@ export default { type, }; const res = await uni.$u.api.joinAid(param); - console.log('res: ', res); if (res) { this.$refs.uToast.show({ title: '加入成功', @@ -284,6 +285,10 @@ export default { }; uni.$u.api.setRecord(setParam); this.getData(true); + this.setFirstAidId(firstAidId); + this.setDetailValueType(demonstrate); + // this.$router.push(`/patient-line`); + uni.navigateTo({ url: `/pages/patientLine/patientLine?caseType=${caseType}` }); } else { this.$refs.uToast.show({ title: '加入失败', @@ -340,6 +345,7 @@ export default { } this.total = data.page.total; this.role = data.role; + console.log('this.role: ', this.role); } else { this.$t.ui.showToast('没有更多数据'); } diff --git a/src/components/PrettyExchange/PrettyExchange.vue b/src/components/PrettyExchange/PrettyExchange.vue index 4fdae1f..7202aa5 100644 --- a/src/components/PrettyExchange/PrettyExchange.vue +++ b/src/components/PrettyExchange/PrettyExchange.vue @@ -111,7 +111,7 @@ - v1.7.1 + v2.0.0 diff --git a/src/components/Projects/ProjectItem.vue b/src/components/Projects/ProjectItem.vue index c08e388..4746e1b 100644 --- a/src/components/Projects/ProjectItem.vue +++ b/src/components/Projects/ProjectItem.vue @@ -84,7 +84,7 @@ diff --git a/src/pages/establish/establish.vue b/src/pages/establish/establish.vue index 2058e75..af60abf 100644 --- a/src/pages/establish/establish.vue +++ b/src/pages/establish/establish.vue @@ -317,6 +317,7 @@ export default { this.firstAidId = data.firstAidId; this.isSubmit = false; if (this.role === 'YiSheng') { + console.log('data: ', data); // this.visible = true; this.handleOk(this.globalData.createAuth - 0 === 0 ? 1 : 0); uni.navigateBack(); diff --git a/src/pages/inner/inner.vue b/src/pages/inner/inner.vue index 4f4f831..fe44422 100644 --- a/src/pages/inner/inner.vue +++ b/src/pages/inner/inner.vue @@ -1,11 +1,12 @@