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 @@
-
+
OCR
-
-
+
+
+
+
+
+ {{ item.name }}
+
+
{{ item.answer }}
+
+
+
@@ -46,6 +57,7 @@
diff --git a/src/pages/patientLine/patientLine.vue b/src/pages/patientLine/patientLine.vue
index 2702c9b..2e409d9 100644
--- a/src/pages/patientLine/patientLine.vue
+++ b/src/pages/patientLine/patientLine.vue
@@ -116,6 +116,7 @@ export default {
methods: {
...mapMutations('carbasics', ['setInputCode']),
jump(code, path) {
+ console.log('path: ', path);
this.setInputCode(code ? code : 'RYPG');
uni.navigateTo({ url: path });
},
diff --git a/src/pages/task-page/task-page.vue b/src/pages/task-page/task-page.vue
index 029e296..0a9805b 100644
--- a/src/pages/task-page/task-page.vue
+++ b/src/pages/task-page/task-page.vue
@@ -2,12 +2,16 @@
-
+
@@ -24,7 +28,7 @@ export default {
count: 0,
chooseItem: false,
name: '',
- url: '',
+ urlData: null,
showStatus: 0,
showPage: '',
};
@@ -35,9 +39,10 @@ export default {
...mapState('user', ['user', 'token']),
...mapState('role', ['visibleRoles', 'roleId']),
...mapState('project', ['project']),
+ ...mapState('carbasics', ['globalData']),
+ ...mapGetters('user', ['userId']),
...mapGetters('task', ['globals']),
...mapGetters('project', ['projectId']),
- ...mapState('carbasics', ['globalData']),
},
async onLoad(options) {
@@ -70,9 +75,24 @@ export default {
},
globalData(val) {
+ console.log('val: ', val);
+ this.urlData = val;
var strList = val.url.split('/');
this.showPage = strList[strList.length - 1];
},
+
+ showPage(val) {
+ if (val !== 'function') {
+ let jumpUrl = `/pages/detail-webview/detail-webview?jumpUrl=${this.urlData.url}&projectId=${this.projectId}&roleId=${this.roleId}&userId=${this.userId}`;
+ for (let key in this.urlData) {
+ if (key !== 'url') {
+ jumpUrl += `&${key}=${this.urlData[key]}`;
+ }
+ }
+ console.log('jumpUrl: ', jumpUrl);
+ uni.navigateTo({ url: jumpUrl });
+ }
+ },
},
mounted() {
@@ -92,6 +112,17 @@ export default {
...mapMutations('project', ['setProject', 'setProjectName', 'setOrganData']),
...mapMutations('role', ['setInvisibleRoles', 'setVisibleRoles', 'setRoleId']),
+ // 点击跳转到详情页
+ jumpDetail() {
+ let jumpUrl = `/pages/detail-webview/detail-webview?jumpUrl=${this.urlData.url}&projectId=${this.projectId}&roleId=${this.roleId}&userId=${this.userId}`;
+ for (let key in this.urlData) {
+ if (key !== 'url') {
+ jumpUrl += `&${key}=${this.urlData[key]}`;
+ }
+ }
+ uni.navigateTo({ url: jumpUrl });
+ },
+
// 初始化 定期任务
async initPlanTasks() {
this.setPrevPlaceholderTasks(); // 向上加载空数据
diff --git a/src/store/carbasics/mutations.js b/src/store/carbasics/mutations.js
index 4080528..eb268dc 100644
--- a/src/store/carbasics/mutations.js
+++ b/src/store/carbasics/mutations.js
@@ -7,6 +7,14 @@ const mutations = {
setFirstAidId(state, id) {
state.firstAidId = id;
},
+ /**
+ * 存储当前插件的param参数,包括url和其他具体参数
+ * @param { object } state
+ * @param { string } type
+ */
+ setDetailValueType(state, type) {
+ state.detailValueType = type;
+ },
/**
* 存储当前插件的param参数,包括url和其他具体参数
* @param { object } state
diff --git a/src/store/carbasics/state.js b/src/store/carbasics/state.js
index 14868b4..0206bfb 100644
--- a/src/store/carbasics/state.js
+++ b/src/store/carbasics/state.js
@@ -1,8 +1,5 @@
const state = {
- detailsData: {
- valueType: 1, // 是否是演示模式 0:正式,1:演示
- type: 0, // 急救类型: 0:神内,1:神外
- }, // 当前项目在暴风眼内的信息
+ detailValueType: 0, // 是否是演示模式 0:正式,1:演示
firstAidId: '', // 当前正在进行数据录入的患者的急救id
globalData: null, // 插件的跳转路径及参数
refreshList: 0, // 依据此值去重新请求病例列表(当从创建病例界面 创建了病例之后,修改此值,并且返回病例列表界面,病例列表重新查询数据)