From 30bf6b05e53b62afb9a63e1de78b5e9104a04b2c Mon Sep 17 00:00:00 2001 From: pengqiang Date: Tue, 26 Dec 2023 17:47:20 +0800 Subject: [PATCH] peter --- .../360View/afterPart/index-copy.vue | 24 +++++++++++++++++ src/components/360View/afterPart/index.vue | 7 +++++ .../followUpRecord/formList/invalid.vue | 8 +++--- .../followUpRecord/formList/outFollow.vue | 6 +++-- .../followUpRecord/formList/phoneFollow.vue | 6 +++-- .../360View/forePart/index-copy.vue | 26 +++++++++++++++++++ src/components/360View/index.vue | 4 +-- src/components/360View/special/index.vue | 4 +-- src/page-subspecialty/views/main-navbar.vue | 7 ++++- src/page-subspecialty/views/main.vue | 6 +++-- src/page-subspecialty/views/pages/login.vue | 4 ++- 11 files changed, 87 insertions(+), 15 deletions(-) diff --git a/src/components/360View/afterPart/index-copy.vue b/src/components/360View/afterPart/index-copy.vue index 4b1fe23..919dced 100644 --- a/src/components/360View/afterPart/index-copy.vue +++ b/src/components/360View/afterPart/index-copy.vue @@ -237,6 +237,7 @@ export default { dialogFormVisible: false, dataForm: { id: '', + idList: [], caseId: '', patientId: '', bltOd: '', // 玻璃体 vitreous @@ -639,6 +640,22 @@ export default { if (res.code === 0) { if (res.data) { this.dataForm = this.handleData(res.data) + const idList = this.dataForm.idList || [] + if (idList.length) { + idList.forEach(item => { + this.tableData.forEach(row => { + if (item == row.id) { + row.flag = true + this.$refs.multipleTable.toggleRowSelection(row, true) + } + }) + }) + } else { + this.tableData.forEach(row => { + row.flag = false + this.$refs.multipleTable.toggleRowSelection(row, false) + }) + } } } else { this.$message.error(res.msg) @@ -646,6 +663,13 @@ export default { }, // 点击保存模板后弹框 handleTemplate() { + this.dataForm.idList = [] + this.tableData.forEach(item => { + if (item.flag && item.id) { + this.dataForm.idList.push(item.id) + } + }) + if (!this.dataForm.idList.length) return this.$message.warning('请选择检查项!') this.form.name = '' this.queryTemplate() this.templateFlag = true diff --git a/src/components/360View/afterPart/index.vue b/src/components/360View/afterPart/index.vue index d69d721..8f3a75c 100644 --- a/src/components/360View/afterPart/index.vue +++ b/src/components/360View/afterPart/index.vue @@ -644,6 +644,13 @@ export default { }, // 点击保存模板后弹框 handleTemplate() { + this.dataForm.idList = [] + this.tableData.forEach(item => { + if (item.flag && item.id) { + this.dataForm.idList.push(item.id) + } + }) + if (!this.dataForm.idList.length) return this.$message.warning('请选择检查项!') this.form.name = '' this.queryTemplate() this.templateFlag = true diff --git a/src/components/360View/followUpRecord/formList/invalid.vue b/src/components/360View/followUpRecord/formList/invalid.vue index 7ef0f66..1a5a4cb 100644 --- a/src/components/360View/followUpRecord/formList/invalid.vue +++ b/src/components/360View/followUpRecord/formList/invalid.vue @@ -3,9 +3,9 @@ - + - 翔安医院 + 翔安医院 个案管理信息表 @@ -37,7 +37,8 @@ export default { }, data() { return { - radio: '0' + radio: '0', + isDev: false } }, watch: { @@ -51,6 +52,7 @@ export default { } }, created() { + this.isDev = window.SITE_CONFIG['apiURL'].includes('47') if (this.jsonText) { this.radio = this.jsonText && JSON.parse(this.jsonText).radio } else { diff --git a/src/components/360View/followUpRecord/formList/outFollow.vue b/src/components/360View/followUpRecord/formList/outFollow.vue index 8c0dffa..c3c02cf 100644 --- a/src/components/360View/followUpRecord/formList/outFollow.vue +++ b/src/components/360View/followUpRecord/formList/outFollow.vue @@ -4,9 +4,9 @@ - + - 翔安医院 + 翔安医院 个案管理信息表 @@ -127,6 +127,7 @@ export default { data() { return { initData: {}, + isDev: false, patientData: { followDate: '', mainSuit: '', @@ -277,6 +278,7 @@ export default { } }, created() { + this.isDev = window.SITE_CONFIG['apiURL'].includes('47') // 初始化赋空 const data = { patientData: this.patientData, diff --git a/src/components/360View/followUpRecord/formList/phoneFollow.vue b/src/components/360View/followUpRecord/formList/phoneFollow.vue index a1ccfbb..69aacc4 100644 --- a/src/components/360View/followUpRecord/formList/phoneFollow.vue +++ b/src/components/360View/followUpRecord/formList/phoneFollow.vue @@ -3,9 +3,9 @@ - + - 翔安医院 + 翔安医院 个案管理信息表 @@ -116,6 +116,7 @@ export default { data() { return { initData: {}, + isDev: false, followData: { followDate: '', followDesc: '', @@ -150,6 +151,7 @@ export default { } }, created() { + this.isDev = window.SITE_CONFIG['apiURL'].includes('47') this.initData = _.cloneDeep(this.followData) if (this.jsonText) { this.followData = JSON.parse(this.jsonText) diff --git a/src/components/360View/forePart/index-copy.vue b/src/components/360View/forePart/index-copy.vue index 25ae608..7d7705b 100644 --- a/src/components/360View/forePart/index-copy.vue +++ b/src/components/360View/forePart/index-copy.vue @@ -574,6 +574,7 @@ export default { dialogFormVisible: false, dataForm: { id: '', + idList: [], patientId: '', hongmOd: '', // 虹膜 hongmOs: '', // 虹膜 @@ -772,6 +773,7 @@ export default { }, // 表格复选框 selection(selection, val) { + console.log(arguments) if (!val.id) { const data = this.tableData.filter(item => item.name === val.name) if (val.flag) { @@ -903,6 +905,7 @@ export default { this.dataForm[resKey] = this.dataForm[resKey].join(',') } } + if (!this.dataForm.caseId) this.dataForm.caseId = this.caseId const { data: res } = await this.$http.post('/mjz/saveMjzQdjc', this.dataForm) if (res.code === 0) { await this.getforeList() @@ -1019,6 +1022,22 @@ export default { if (res.code === 0) { if (res.data) { this.dataForm = this.handleData(res.data) + const idList = this.dataForm.idList || [] + if (idList.length) { + idList.forEach(item => { + this.tableData.forEach(row => { + if (item == row.id) { + row.flag = true + this.$refs.multipleTable.toggleRowSelection(row, true) + } + }) + }) + } else { + this.tableData.forEach(row => { + row.flag = false + this.$refs.multipleTable.toggleRowSelection(row, false) + }) + } } } else { this.$message.error(res.msg) @@ -1026,6 +1045,13 @@ export default { }, // 点击保存模板后弹框 handleTemplate() { + this.dataForm.idList = [] + this.tableData.forEach(item => { + if (item.flag && item.id) { + this.dataForm.idList.push(item.id) + } + }) + if (!this.dataForm.idList.length) return this.$message.warning('请选择检查项!') this.form.name = '' this.treeId = '' this.queryTemplate() diff --git a/src/components/360View/index.vue b/src/components/360View/index.vue index eae0c92..5d61a44 100644 --- a/src/components/360View/index.vue +++ b/src/components/360View/index.vue @@ -425,8 +425,8 @@ export default { // 360浏览器 handlePacs() { // const baseUrl = 'http://z1.huimucloud.com:8085' - const baseUrl = 'http://10.80.5.32:8026' - // const baseUrl = 'http://192.168.0.85:8001' + // const baseUrl = 'http://10.80.5.32:8026' + const baseUrl = 'http://192.168.0.85:8001' const href = `${baseUrl}/EXAMINE_Report/InterFace?PatID=${this.patientId}&DoctorID=${this.employeeId}&PatIdKey=&ExamNo=` window.open(href, '_blank') // const { href } = this.$router.resolve({ diff --git a/src/components/360View/special/index.vue b/src/components/360View/special/index.vue index 64d4662..10bf446 100644 --- a/src/components/360View/special/index.vue +++ b/src/components/360View/special/index.vue @@ -217,8 +217,8 @@ export default { // } // }) // const baseUrl = 'http://z1.huimucloud.com:8085' - const baseUrl = 'http://10.80.5.32:8026' - // const baseUrl = 'http://192.168.0.85:8001' + // const baseUrl = 'http://10.80.5.32:8026' + const baseUrl = 'http://192.168.0.85:8001' const href = `${baseUrl}/EXAMINE_Report/InterFace?PatID=${this.patientId}&DoctorID=${this.employeeId}&PatIdKey=&ExamNo=` window.open(href, '_blank') }, diff --git a/src/page-subspecialty/views/main-navbar.vue b/src/page-subspecialty/views/main-navbar.vue index 100614b..f50178a 100644 --- a/src/page-subspecialty/views/main-navbar.vue +++ b/src/page-subspecialty/views/main-navbar.vue @@ -4,7 +4,7 @@

- +
眼科工作平台

@@ -58,6 +58,11 @@ import { clearLoginInfo } from '@/page-subspecialty/utils/request.js' import breadCrumb from '@/components/bread-crumb' import { resetRouter } from '@/page-subspecialty/router/index.js' export default { + props: { + isDev: { + type: Boolean + } + }, inject: ['refresh'], components: { UpdatePassword, diff --git a/src/page-subspecialty/views/main.vue b/src/page-subspecialty/views/main.vue index c9d025e..971eaf6 100644 --- a/src/page-subspecialty/views/main.vue +++ b/src/page-subspecialty/views/main.vue @@ -1,7 +1,7 @@