Browse Source

测试暴风眼联调修改

master
aBin 4 years ago
parent
commit
2cf1a29427
  1. 6
      .env.development
  2. 6
      .env.production
  3. 7
      src/App.vue
  4. 2
      src/components/Duration/Duration.js
  5. 2
      src/components/Panel/Panel.vue
  6. 5
      src/components/Statistics/Statistics.js
  7. 7
      src/config/api.js
  8. 3
      src/mixins/socket.js
  9. 26
      src/views/BtnPage/BtnPage.vue

6
.env.development

@ -1,10 +1,10 @@
VUE_APP_MODE=development VUE_APP_MODE=development
VUE_APP_NODE_ENV=development VUE_APP_NODE_ENV=development
VUE_APP_SCENE=wisdomcar VUE_APP_SCENE=wisdomcar
VUE_APP_BASE_URL=http://www.tall.wiki/ VUE_APP_BASE_URL=http://test.tall.wiki/
VUE_APP_API_URL=http://www.tall.wiki/gateway VUE_APP_API_URL=http://test.tall.wiki/gateway
VUE_APP_PROXY_URL=/gateway VUE_APP_PROXY_URL=/gateway
VUE_APP_PUBLIC_PATH=/wisdomcar VUE_APP_PUBLIC_PATH=/wisdomcar
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_TITLE=盐湖区人民医院数字看板 VUE_APP_TITLE=盐湖区人民医院数字看板
VUE_APP_DESCRIPTION=盐湖区人民医院数字看板s VUE_APP_DESCRIPTION=盐湖区人民医院数字看板s

6
.env.production

@ -1,10 +1,10 @@
VUE_APP_MODE=production VUE_APP_MODE=production
VUE_APP_NODE_ENV=production VUE_APP_NODE_ENV=production
VUE_APP_SCENE=wisdomcar VUE_APP_SCENE=wisdomcar
VUE_APP_BASE_URL=http://www.tall.wiki/ VUE_APP_BASE_URL=http://test.tall.wiki/
VUE_APP_API_URL=http://www.tall.wiki/gateway VUE_APP_API_URL=http://test.tall.wiki/gateway
VUE_APP_PROXY_URL=/gateway VUE_APP_PROXY_URL=/gateway
VUE_APP_PUBLIC_PATH=/wisdomcar VUE_APP_PUBLIC_PATH=/wisdomcar
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_TITLE=盐湖区人民医院数字看板 VUE_APP_TITLE=盐湖区人民医院数字看板
VUE_APP_DESCRIPTION=盐湖区人民医院数字看板 VUE_APP_DESCRIPTION=盐湖区人民医院数字看板

7
src/App.vue

@ -19,9 +19,10 @@ export default {
computed: mapState('home', ['anyringToken']), computed: mapState('home', ['anyringToken']),
created() { created() {
// const userId = '1338747522436435968'; const query = this.$route.query;
// const params = { userId }; let userId = query && query.userId ? query.userId : '1338747522436435968';
// this.getUserId(params); const params = { userId };
this.getUserId(params);
}, },
methods: mapActions('home', ['getUserId']), methods: mapActions('home', ['getUserId']),

2
src/components/Duration/Duration.js

@ -112,7 +112,7 @@ const mixin = {
methods: { methods: {
async getData() { async getData() {
try { try {
const params = { param: { id: 0 } }; const params = { param: { projectId: '1420645306093281280', type: 0 } };
const res = await getPointTime(params); const res = await getPointTime(params);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {

2
src/components/Panel/Panel.vue

@ -59,7 +59,7 @@ export default {
computed: mapState('messages', ['weightMessage', 'bolusDose', 'maintenanceDose', 'thrombolyticDose', 'startMessages', 'rfidMessage']), computed: mapState('messages', ['weightMessage', 'bolusDose', 'maintenanceDose', 'thrombolyticDose', 'startMessages', 'rfidMessage']),
watch: { watch: {
rfidMessage(val) { rfidMessage(val) {
if (this.startMessages) { if (this.startMessages || val.step === '0') {
this.percent = 0; this.percent = 0;
this.percentA = 0; this.percentA = 0;
this.info = '呼叫'; this.info = '呼叫';

5
src/components/Statistics/Statistics.js

@ -151,8 +151,9 @@ const mixin = {
try { try {
const params = { const params = {
param: { param: {
hospitalId: 0, projectId: '1420645306093281280',
year: '2020', year: '2021',
type: 0,
}, },
}; };
const res = await selResult(params); const res = await selResult(params);

7
src/config/api.js

@ -10,6 +10,7 @@ import axios from 'axios';
let { proxyUrl, msgUrl } = require('@/config/setting'); let { proxyUrl, msgUrl } = require('@/config/setting');
const wisdomcar = `${proxyUrl}/wisdomcar`; // 盐湖医院分路径 const wisdomcar = `${proxyUrl}/wisdomcar`; // 盐湖医院分路径
const qcp = `${proxyUrl}/qcp/v3.0`; // 盐湖医院分路径
const statistics = `${wisdomcar}/statistics`; // 盐湖医院相关接口 const statistics = `${wisdomcar}/statistics`; // 盐湖医院相关接口
const rfid = `${wisdomcar}/rfid`; // rfid增删改查界面相关 const rfid = `${wisdomcar}/rfid`; // rfid增删改查界面相关
@ -17,12 +18,12 @@ const rfid = `${wisdomcar}/rfid`; // rfid增删改查界面相关
export const WS_BASE_URL = msgUrl; export const WS_BASE_URL = msgUrl;
// 按钮模拟信息发送 // 按钮模拟信息发送
export const record = params => axios.post(`${wisdomcar}/debug/record`, params); export const record = params => axios.post(`${qcp}/debug/record`, params);
// 急救数量统计图数据 // 急救数量统计图数据
export const selResult = params => axios.post(`${statistics}/get/selResult`, params); export const selResult = params => axios.post(`${qcp}/statistical/selResult`, params);
// 急救时长分析统计图数据 // 急救时长分析统计图数据
export const getPointTime = params => axios.post(`${statistics}/getPointTime`, params); export const getPointTime = params => axios.post(`${qcp}/statistical/getPointTime`, params);
// 环节查询 // 环节查询
export const queryStepList = params => axios.post(`${rfid}/queryStepList`, params); export const queryStepList = params => axios.post(`${rfid}/queryStepList`, params);

3
src/mixins/socket.js

@ -193,7 +193,8 @@ const mixin = {
auth() { auth() {
// const token = sessionStorage.getItem('anyringToken'); // const token = sessionStorage.getItem('anyringToken');
// if (!token) return; // if (!token) return;
const userId = '1338747522436435968'; const query = this.$route.query;
const userId = query && query.userId ? query.userId : '1338747522436435968';
const data = { type: 'Auth', data: { userId }, major: 1, minor: 1 }; const data = { type: 'Auth', data: { userId }, major: 1, minor: 1 };
this.sendSocketMessage(data); this.sendSocketMessage(data);
}, },

26
src/views/BtnPage/BtnPage.vue

@ -20,55 +20,55 @@ export default {
nameList: [ nameList: [
{ {
name: '呼叫', name: '呼叫',
value: '1', value: '000101000001',
}, },
{ {
name: '分诊', name: '分诊',
value: '2', value: '000102000001',
}, },
{ {
name: '一线', name: '一线',
value: '3', value: '000101000003',
}, },
{ {
name: '采血', name: '采血',
value: '4', value: '000101000004',
}, },
{ {
name: '心电', name: '心电',
value: '5', value: '000101000005',
}, },
{ {
name: 'CT', name: 'CT',
value: '6', value: '000102000003',
}, },
{ {
name: '二线', name: '二线',
value: '7', value: '000101000007',
}, },
{ {
name: '谈话', name: '谈话',
value: '8', value: '000101000008',
}, },
{ {
name: '签字', name: '签字',
value: '9', value: '000101000009',
}, },
{ {
name: '团注', name: '团注',
value: '10', value: '00010100000A',
}, },
{ {
name: '介入', name: '介入',
value: '11', value: '000102000005',
}, },
{ {
name: '置鞘', name: '置鞘',
value: '12', value: '00010100000C',
}, },
{ {
name: '病房', name: '病房',
value: '13', value: '00010100000D',
}, },
// { // {
// name: '', // name: '',

Loading…
Cancel
Save