Browse Source

配置接口路径

master
lucky 5 years ago
parent
commit
068cbdf658
  1. 2
      .env
  2. 8
      .env.development
  3. 8
      .env.production
  4. 4
      package-lock.json
  5. 2
      package.json
  6. 6
      src/App.vue
  7. 6
      src/components/BtnCom/BtnCon.vue
  8. 17
      src/config/api.js
  9. 26
      src/router/index.js
  10. 16
      src/views/CaseAnalysis/CaseAnalysis.vue
  11. 38
      src/views/CaseSearch/CaseSearch.vue
  12. 2
      src/views/MeetingPreview/MeetingPreview.vue
  13. 16
      src/views/PatientInfo/PatientInfo.vue
  14. 16
      src/views/SelectPatient/SelectPatient.vue

2
.env

@ -1,3 +1,3 @@
VUE_APP_MODE=production
VUE_APP_PREVIEW=false
VUE_APP_URL=http://www.tall.wiki/
VUE_APP_URL=https://www.tall.wiki/

8
.env.development

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

8
.env.production

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

4
package-lock.json

@ -1,11 +1,11 @@
{
"name": "salt-lake-hospital",
"name": "中医药大学课题数据库",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "salt-lake-hospital",
"name": "中医药大学课题数据库",
"version": "0.1.0",
"dependencies": {
"ant-design-vue": "^1.2.4",

2
package.json

@ -1,5 +1,5 @@
{
"name": "salt-lake-hospital",
"name": "chinese-medicine",
"version": "0.1.0",
"private": true,
"scripts": {

6
src/App.vue

@ -22,9 +22,9 @@ export default {
computed: mapState('home', ['anyringToken']),
created() {
// const userId = '1338747522436435968';
// const params = { userId };
// this.getUserId(params);
const userId = '1218763410024566784';
const params = { userId };
this.getUserId(params);
},
methods: mapActions('home', ['getUserId']),

6
src/components/BtnCom/BtnCon.vue

@ -1,7 +1,11 @@
<template>
<div class="btn-box pa-3">
<div @click="jump('/')" class="btn">首页数据统计</div>
<div @click="jump('/Meeting')" class="btn">会议纪要</div>
<div @click="jump('/meeting')" class="btn">会议纪要</div>
<div @click="jump('/selectPatient')" class="btn">选择患者信息</div>
<div @click="jump('/patientInfo')" class="btn">患者信息录入</div>
<div @click="jump('/caseSearch')" class="btn">病例搜索</div>
<div @click="jump('/caseAnalysis')" class="btn">病例分析</div>
</div>
</template>

17
src/config/api.js

@ -1,8 +1,17 @@
import axios from 'axios';
let { proxyUrl, msgUrl } = require('@/config/setting');
const wisdomcar = `${proxyUrl}/wisdomcar`; // 盐湖医院分路径
const statistics = `${wisdomcar}/statistics`; // 盐湖医院相关接口
const tcm = `${proxyUrl}/tcm`;
const patient = `${tcm}/patient`; // 患者相关接口
// 急救时长分析统计图数据
// export const getPointTime = params => axios.post(`${statistics}/getPointTime`, params);
// 保存患者病例信息
export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params);
// 添加患者基本信息
export const savePatientMes = params => axios.post(`${patient}/savePatientMes`, params);
// 通过搜索条件查询患者病例的信息
export const selPatientMesList = params => axios.post(`${patient}/selPatientMesList`, params);
// 通过查询搜索条件
export const selSearchCriteriaList = params => axios.post(`${patient}/selSearchCriteriaList`, params);

26
src/router/index.js

@ -20,7 +20,7 @@ const routes = [
},
// 会议纪要
{
path: '/Meeting',
path: '/meeting',
name: 'Meeting',
component: () => import('@/views/Meeting/Meeting.vue'),
},
@ -30,6 +30,30 @@ const routes = [
name: 'MeetingPreview',
component: () => import('@/views/MeetingPreview/MeetingPreview.vue'),
},
// 选择患者信息
{
path: '/selectPatient',
name: 'SelectPatient',
component: () => import('@/views/SelectPatient/SelectPatient.vue'),
},
// 患者信息录入
{
path: '/patientInfo',
name: 'PatientInfo',
component: () => import('@/views/PatientInfo/PatientInfo.vue'),
},
// 病例搜索
{
path: '/caseSearch',
name: 'CaseSearch',
component: () => import('@/views/CaseSearch/CaseSearch.vue'),
},
// 病例分析
{
path: '/caseAnalysis',
name: 'CaseAnalysis',
component: () => import('@/views/CaseAnalysis/CaseAnalysis.vue'),
},
];
const router = new VueRouter({

16
src/views/CaseAnalysis/CaseAnalysis.vue

@ -0,0 +1,16 @@
<template>
<div>病例分析</div>
</template>
<script>
export default {
name: 'CaseAnalysis',
data() {
return {};
},
methods: {},
};
</script>
<style lang="stylus" scoped></style>

38
src/views/CaseSearch/CaseSearch.vue

@ -0,0 +1,38 @@
<template>
<div>病例搜索</div>
</template>
<script>
import { selSearchCriteriaList } from 'config/api';
export default {
name: 'CaseSearch',
data() {
return {};
},
created() {
this.handleSearchCriteriaList();
},
methods: {
async handleSearchCriteriaList() {
try {
const params = {};
const res = await selSearchCriteriaList(params);
const { code, msg, data } = res.data;
if (code === 200) {
console.log('data: ', data);
} else {
this.$message.error(msg || '查询失败');
throw msg;
}
} catch (error) {
throw new Error(`CaseSearch.vue method selSearchCriteriaList: ${error}`);
}
},
},
};
</script>
<style lang="stylus" scoped></style>

2
src/views/MeetingPreview/MeetingPreview.vue

@ -3,7 +3,7 @@
<div class="fill-width">
<a-card :bordered="false" title="会议记录预览">
<div slot="extra">
<a-button @click="$router.push('/Meeting')" type="primary">返回</a-button>
<a-button @click="$router.push('/meeting')" type="primary">返回</a-button>
</div>
<a-list bordered class="metting">
<a-list-item>

16
src/views/PatientInfo/PatientInfo.vue

@ -0,0 +1,16 @@
<template>
<div>患者信息录入</div>
</template>
<script>
export default {
name: 'PatientInfo',
data() {
return {};
},
methods: {},
};
</script>
<style lang="stylus" scoped></style>

16
src/views/SelectPatient/SelectPatient.vue

@ -0,0 +1,16 @@
<template>
<div>选择患者信息</div>
</template>
<script>
export default {
name: 'SelectPatient',
data() {
return {};
},
methods: {},
};
</script>
<style lang="stylus" scoped></style>
Loading…
Cancel
Save