-
+
-
+
+
+
+
-
-
+
+
+
+
+
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
- 编辑
- 删除
+ 详情
+ 患者画像
+
@@ -84,25 +205,72 @@
+
+
+ 选取文件
+ 上传
+
+
+
+
+ // 疫情网下载
+ private downloadYQ() {
+ const params = {
+ illnessState: '',
+ page: 1,
+ size: 10,
+ suffererCard: '',
+ suffererName: '',
+ suffererStatus: '',
+ suffererTel: '',
+ suffererType: '',
+ };
+ diseaseInfoServer.downloadList(params).then((res: any) => {
+ this.downloadFun(res);
+ });
+ }
-
+
+
diff --git a/src/components/feature/DiseaseInfoGL/PeopleInfoAdd.vue b/src/components/feature/DiseaseInfoGL/PeopleInfoAdd.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2358b37c22f888abae344ce3abf0bac007fa2797
--- /dev/null
+++ b/src/components/feature/DiseaseInfoGL/PeopleInfoAdd.vue
@@ -0,0 +1,659 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoGL/PeopleInfoDetail.vue b/src/components/feature/DiseaseInfoGL/PeopleInfoDetail.vue
new file mode 100644
index 0000000000000000000000000000000000000000..f783cd9f6c633623b5f87430906874b626975089
--- /dev/null
+++ b/src/components/feature/DiseaseInfoGL/PeopleInfoDetail.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoGL/PeopleInfoEdit.vue b/src/components/feature/DiseaseInfoGL/PeopleInfoEdit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b49ed91a7e29aa6a1488bdae844c1cf7236d3bfc
--- /dev/null
+++ b/src/components/feature/DiseaseInfoGL/PeopleInfoEdit.vue
@@ -0,0 +1,690 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalDD/DiseaseInfoHospitalDD.vue b/src/components/feature/DiseaseInfoHospitalDD/DiseaseInfoHospitalDD.vue
new file mode 100644
index 0000000000000000000000000000000000000000..dbe75aa186e4159fcfc4b6310898eadb458d946e
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalDD/DiseaseInfoHospitalDD.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalDD/DiseaseList.vue b/src/components/feature/DiseaseInfoHospitalDD/DiseaseList.vue
new file mode 100644
index 0000000000000000000000000000000000000000..8ddd9873c7df15c8cf92bcc30707832c21c1fb1c
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalDD/DiseaseList.vue
@@ -0,0 +1,580 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 患者画像
+
+
+
+
+
+
+
+
+
+ 选取文件
+ 上传
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoAdd.vue b/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoAdd.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2358b37c22f888abae344ce3abf0bac007fa2797
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoAdd.vue
@@ -0,0 +1,659 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoDetail.vue b/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoDetail.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a2a3b7c8f0b37648cbacc0b152d7a8abb8b2f864
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoDetail.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoEdit.vue b/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoEdit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a906ea7b3074f03d686f96ad56ced07e6f52bbc4
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalDD/PeopleInfoEdit.vue
@@ -0,0 +1,594 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalFC/DiseaseInfoHospitalFC.vue b/src/components/feature/DiseaseInfoHospitalFC/DiseaseInfoHospitalFC.vue
new file mode 100644
index 0000000000000000000000000000000000000000..06cd8568fe655c5ccbde525b331bd8854d6d1cee
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalFC/DiseaseInfoHospitalFC.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalFC/DiseaseList.vue b/src/components/feature/DiseaseInfoHospitalFC/DiseaseList.vue
new file mode 100644
index 0000000000000000000000000000000000000000..44faa3bd30e980d98b193360c27bb5bf7b52bab3
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalFC/DiseaseList.vue
@@ -0,0 +1,552 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 患者画像
+
+
+
+
+
+
+
+
+
+ 选取文件
+ 上传
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoAdd.vue b/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoAdd.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2358b37c22f888abae344ce3abf0bac007fa2797
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoAdd.vue
@@ -0,0 +1,659 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoDetail.vue b/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoDetail.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a2a3b7c8f0b37648cbacc0b152d7a8abb8b2f864
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoDetail.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoEdit.vue b/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoEdit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..fa2d4cc751a9f22424daee397fd52ce47293bd38
--- /dev/null
+++ b/src/components/feature/DiseaseInfoHospitalFC/PeopleInfoEdit.vue
@@ -0,0 +1,616 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoYQ/DiseaseInfoYQ.vue b/src/components/feature/DiseaseInfoYQ/DiseaseInfoYQ.vue
new file mode 100644
index 0000000000000000000000000000000000000000..de396090235987ec770b356c7fe75c51a472ffe2
--- /dev/null
+++ b/src/components/feature/DiseaseInfoYQ/DiseaseInfoYQ.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoYQ/DiseaseList.vue b/src/components/feature/DiseaseInfoYQ/DiseaseList.vue
new file mode 100644
index 0000000000000000000000000000000000000000..ab106c60aeea90da916a4ce0e7d14d667a748169
--- /dev/null
+++ b/src/components/feature/DiseaseInfoYQ/DiseaseList.vue
@@ -0,0 +1,598 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 患者画像
+
+
+
+
+
+
+
+
+
+ 选取文件
+ 上传
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoYQ/PeopleInfoAdd.vue b/src/components/feature/DiseaseInfoYQ/PeopleInfoAdd.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2358b37c22f888abae344ce3abf0bac007fa2797
--- /dev/null
+++ b/src/components/feature/DiseaseInfoYQ/PeopleInfoAdd.vue
@@ -0,0 +1,659 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoYQ/PeopleInfoDetail.vue b/src/components/feature/DiseaseInfoYQ/PeopleInfoDetail.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a2a3b7c8f0b37648cbacc0b152d7a8abb8b2f864
--- /dev/null
+++ b/src/components/feature/DiseaseInfoYQ/PeopleInfoDetail.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
diff --git a/src/components/feature/DiseaseInfoYQ/PeopleInfoEdit.vue b/src/components/feature/DiseaseInfoYQ/PeopleInfoEdit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..fa3fdab0d537b57edde6067aab898b8acc5a9ca5
--- /dev/null
+++ b/src/components/feature/DiseaseInfoYQ/PeopleInfoEdit.vue
@@ -0,0 +1,819 @@
+
+
+
+
+
+
diff --git a/src/components/feature/IsolationPointStatistics/IsolateItem.vue b/src/components/feature/IsolationPointStatistics/IsolateItem.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2e2944690d9f5aaef73968a6e673a9599f4f59bd
--- /dev/null
+++ b/src/components/feature/IsolationPointStatistics/IsolateItem.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/IsolationPointStatistics/IsolationPointStatistics.vue b/src/components/feature/IsolationPointStatistics/IsolationPointStatistics.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d2164a4eab72b6f3ecc9b91c6a79a2a30ec997be
--- /dev/null
+++ b/src/components/feature/IsolationPointStatistics/IsolationPointStatistics.vue
@@ -0,0 +1,215 @@
+
+
+
+ 隔离点数据统计分析: 截止{{
+ expiryDate
+ }}
+ 24时江夏区隔离人数统计数据如下
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/feature/IsolationPointStatistics/IsolationPointStatisticsOLDDER.vue b/src/components/feature/IsolationPointStatistics/IsolationPointStatisticsOLDDER.vue
new file mode 100644
index 0000000000000000000000000000000000000000..0937181c2c51fc02cab8c726ad5e7c546597a50d
--- /dev/null
+++ b/src/components/feature/IsolationPointStatistics/IsolationPointStatisticsOLDDER.vue
@@ -0,0 +1,261 @@
+
+
+
+ 隔离点数据统计分析: 截止{{
+ expiryDate
+ }}
+ 24时江夏区隔离人数统计数据如下(隔离人员总数:{{ topTotal }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/config/build.js b/src/config/build.js
index c0de7539a578663da7367a907c2b7412b0caa171..d48bac4c42e4b7c3c67d7b5bd78add7ccecbebb6 100644
--- a/src/config/build.js
+++ b/src/config/build.js
@@ -1,9 +1,9 @@
// 部署环境配置项
const globalPath = {
- jsonPath: '/yqt_web',
- servePath: "http://114.67.117.97:3001/",
- webSocketServer : "http://114.67.117.97:3001/"
-}
+ jsonPath: '/yqt_web',
+ servePath: 'https://ncp.gsafety.com/cdcapi/',
+ webSocketServer: 'http://114.67.117.97:3001/',
+};
-module.exports = globalPath
\ No newline at end of file
+module.exports = globalPath;
diff --git a/src/config/env.js b/src/config/env.js
index 808dbbe78c4f4fea3eaecc4c05a41567a70f94dd..0ceb582c48074e7e367ba0d3b69fa76d171b418e 100644
--- a/src/config/env.js
+++ b/src/config/env.js
@@ -1,6 +1,7 @@
// 开发环境配置项
module.exports = {
- jsonPath: '/',
- servePath: '/',
- webSocketServer: 'ws://172.17.38.202:8080/ws'
-};
\ No newline at end of file
+ jsonPath: '/',
+ servePath: 'https://ncp.gsafety.com/cdcapi',
+ // servePath: 'http://16957179rs.51mypc.cn',
+ webSocketServer: 'ws://172.17.38.202:8080/ws',
+};
diff --git a/src/main.ts b/src/main.ts
index 0b9bb98b8a88d1de9de0c8a3c1f24d269dacf526..f33575416cac18f04587b347223f472162084b5e 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -2,6 +2,7 @@ import Vue from 'vue';
import App from './App.vue';
import router from './router/router';
import store from './store/index';
+import moment from 'moment';
import './assets/css/global.less';
import 'element-ui/packages/theme-chalk/lib/index.css';
@@ -11,9 +12,10 @@ Vue.config.productionTip = false;
import * as ElementUI from 'element-ui';
Vue.use(ElementUI);
+Vue.prototype.$moment = moment;
new Vue({
router,
store,
- render: (h) => h(App),
+ render: (h: any) => h(App),
}).$mount('#app');
diff --git a/src/router/router.ts b/src/router/router.ts
index 4c0e70f21ae39ffec3354ce70cfb073056e3b3ff..441ef0951a441be32c619da004a4086ba6207495 100644
--- a/src/router/router.ts
+++ b/src/router/router.ts
@@ -1,38 +1,196 @@
import Vue from 'vue';
-import Router from 'vue-router';
+import Router, { Route } from 'vue-router';
// import Home from '../views/common/Home.vue';
-import LayoutHome from '../views/theme/classic/LayoutHome.vue';
-import DiseaseList from '../components/common/DiseaseInfo/DiseaseList.vue'; // 疫情信息列表页面
-import DiseaseAdd from '../components/common/DiseaseInfo/DiseaseAdd.vue'; // 疫情信息列表页面
-import DiseaseEdit from '../components/common/DiseaseInfo/DiseaseEdit.vue'; // 疫情信息编辑页面
+// import LayoutHome from '../views/theme/classic/LayoutHome.vue';
+import Login from '../views/Login.vue'; // 登录页面
+import DiseaseList from '../components/feature/DiseaseInfoGL/DiseaseList.vue'; // 疫情信息列表页面
+import PeopleInfoAdd from '../components/feature/DiseaseInfoGL/PeopleInfoAdd.vue'; // 人员新增/转入
+import PeopleInfoEdit from '../components/feature/DiseaseInfoGL/PeopleInfoEdit.vue'; // 人员编辑
+import PeopleInfoDetail from '../components/feature/DiseaseInfoGL/PeopleInfoDetail.vue'; // 病情追溯
+import DiseaseInfoGL from '../components/feature/DiseaseInfoGL/DiseaseInfoGL.vue'; // 统计局人员列表
+
+import DiseaseInfoYQ from '../components/feature/DiseaseInfoYQ/DiseaseInfoYQ.vue'; // 疫情网人员列表
+import DiseaseListYQ from '../components/feature/DiseaseInfoYQ/DiseaseList.vue'; // 疫情信息列表页面
+import PeopleInfoAddYQ from '../components/feature/DiseaseInfoYQ/PeopleInfoAdd.vue'; // 人员新增/转入
+import PeopleInfoEditYQ from '../components/feature/DiseaseInfoYQ/PeopleInfoEdit.vue'; // 人员编辑
+import PeopleInfoDetailYQ from '../components/feature/DiseaseInfoYQ/PeopleInfoDetail.vue'; // 病情追溯
+
+import DiseaseInfoHospitalDD from '../components/feature/DiseaseInfoHospitalDD/DiseaseInfoHospitalDD.vue'; // 定点医院人员列表
+import DiseaseListDD from '../components/feature/DiseaseInfoHospitalDD/DiseaseList.vue'; // 疫情信息列表页面
+import PeopleInfoAddDD from '../components/feature/DiseaseInfoHospitalDD/PeopleInfoAdd.vue'; // 人员新增/转入
+import PeopleInfoEditDD from '../components/feature/DiseaseInfoHospitalDD/PeopleInfoEdit.vue'; // 人员编辑
+import PeopleInfoDetailDD from '../components/feature/DiseaseInfoHospitalDD/PeopleInfoDetail.vue'; // 病情追溯
+
+import DiseaseInfoHospitalFC from '../components/feature/DiseaseInfoHospitalFC/DiseaseInfoHospitalFC.vue'; // 方舱医院人员列表
+import DiseaseListFC from '../components/feature/DiseaseInfoHospitalFC/DiseaseList.vue'; // 疫情信息列表页面
+import PeopleInfoAddFC from '../components/feature/DiseaseInfoHospitalFC/PeopleInfoAdd.vue'; // 人员新增/转入
+import PeopleInfoEditFC from '../components/feature/DiseaseInfoHospitalFC/PeopleInfoEdit.vue'; // 人员编辑
+import PeopleInfoDetailFC from '../components/feature/DiseaseInfoHospitalFC/PeopleInfoDetail.vue'; // 病情追溯
+
+import IsolationStatistics from '../components/feature/IsolationPointStatistics/IsolationPointStatistics.vue'; // 隔离点
+import AccumulativeStatistics from '../components/feature/AccumulativeStatistics/AccumulativeStatistics.vue'; // 累计统计
+import PatientPortrayal from '../views/PatientPortrayal.vue'; // 患者画像
+import LayoutHome from '../views/LayoutHome.vue'; // 首页
+import DataCompare from '../components/feature/DataCompare/DataCompare.vue'; // 数据对比
Vue.use(Router);
-export default new Router({
+const router = new Router({
mode: 'hash',
base: process.env.BASE_URL,
routes: [
{
path: '/',
- redirect: '/DiseaseList',
+ redirect: '/Login',
+ },
+ {
+ path: '/Login',
+ name: 'Login',
+ component: Login,
},
{
- // 疫情信息列表页面
- path: '/DiseaseList',
- name: 'DiseaseList',
- component: DiseaseList,
+ path: '/PatientPortrayal',
+ name: 'PatientPortrayal',
+ component: PatientPortrayal,
},
{
- // 疫情信息添加页面
- path: '/DiseaseAdd',
- name: 'DiseaseAdd',
- component: DiseaseAdd,
+ path: '/LayoutHome',
+ name: 'LayoutHome',
+ component: LayoutHome,
+ children: [
+ {
+ path: 'DiseaseInfoYQ',
+ redirect: '/LayoutHome/DiseaseInfoYQ/DiseaseList',
+ name: 'DiseaseInfoYQ',
+ component: DiseaseInfoYQ,
+ children: [
+ {
+ path: 'DiseaseList',
+ name: 'DiseaseListYQ',
+ component: DiseaseListYQ,
+ },
+ {
+ path: 'PeopleInfoAdd',
+ name: 'PeopleInfoAddYQ',
+ component: PeopleInfoAddYQ,
+ },
+ {
+ path: 'PeopleInfoEdit/:id',
+ name: 'PeopleInfoEditYQ',
+ component: PeopleInfoEditYQ,
+ },
+ {
+ path: 'PeopleInfoDetail/:id',
+ name: 'PeopleInfoDetailYQ',
+ component: PeopleInfoDetailYQ,
+ },
+ ],
+ },
+ {
+ path: 'DiseaseInfoGL',
+ redirect: '/LayoutHome/DiseaseInfoGL/DiseaseList',
+ name: 'DiseaseInfoGL',
+ component: DiseaseInfoGL,
+ children: [
+ {
+ path: 'DiseaseList',
+ name: 'DiseaseList',
+ component: DiseaseList,
+ },
+ {
+ path: 'PeopleInfoAdd',
+ name: 'PeopleInfoAdd',
+ component: PeopleInfoAdd,
+ },
+ {
+ path: 'PeopleInfoEdit/:id',
+ name: 'PeopleInfoEdit',
+ component: PeopleInfoEdit,
+ },
+ {
+ path: 'PeopleInfoDetail/:id',
+ name: 'PeopleInfoDetail',
+ component: PeopleInfoDetail,
+ },
+ ],
+ },
+ {
+ path: 'DiseaseInfoHospitalDD',
+ redirect: '/LayoutHome/DiseaseInfoHospitalDD/DiseaseList',
+ name: 'DiseaseInfoHospitalDD',
+ component: DiseaseInfoHospitalDD,
+ children: [
+ {
+ path: 'DiseaseList',
+ name: 'DiseaseListDD',
+ component: DiseaseListDD,
+ },
+ {
+ path: 'PeopleInfoAdd',
+ name: 'PeopleInfoAddDD',
+ component: PeopleInfoAddDD,
+ },
+ {
+ path: 'PeopleInfoEdit/:id',
+ name: 'PeopleInfoEditDD',
+ component: PeopleInfoEditDD,
+ },
+ {
+ path: 'PeopleInfoDetail/:id',
+ name: 'PeopleInfoDetailDD',
+ component: PeopleInfoDetailDD,
+ },
+ ],
+ },
+ {
+ path: 'DiseaseInfoHospitalFC',
+ redirect: '/LayoutHome/DiseaseInfoHospitalFC/DiseaseList',
+ name: 'DiseaseInfoHospitalFC',
+ component: DiseaseInfoHospitalFC,
+ children: [
+ {
+ path: 'DiseaseList',
+ name: 'DiseaseListFC',
+ component: DiseaseListFC,
+ },
+ {
+ path: 'PeopleInfoAdd',
+ name: 'PeopleInfoAddFC',
+ component: PeopleInfoAddFC,
+ },
+ {
+ path: 'PeopleInfoEdit/:id',
+ name: 'PeopleInfoEditFC',
+ component: PeopleInfoEditFC,
+ },
+ {
+ path: 'PeopleInfoDetail/:id',
+ name: 'PeopleInfoDetailFC',
+ component: PeopleInfoDetailFC,
+ },
+ ],
+ },
+ {
+ path: 'AccumulativeStatistics',
+ name: 'AccumulativeStatistics',
+ component: AccumulativeStatistics,
+ },
+ {
+ path: 'IsolationPointStatistics',
+ name: 'IsolationPointStatistics',
+ component: IsolationStatistics,
+ },
+ ],
},
{
- // 疫情信息编辑页面
- path: '/DiseaseEdit/:id',
- name: 'DiseaseEdit',
- component: DiseaseEdit,
- props: true,
+ path: '/dataCompare',
+ name: 'DataCompare',
+ component: DataCompare,
},
],
});
+// router.beforeEach((to, from, next) => {
+// // 登录校验
+// console.log(to);
+// next();
+// });
+export default router;
diff --git a/src/types/extend-vue.d.ts b/src/types/extend-vue.d.ts
index 2efde4d276ba52972875105a78d39fcf99761c03..09814d95d6d576274280bca5043ade4b1cdea247 100644
--- a/src/types/extend-vue.d.ts
+++ b/src/types/extend-vue.d.ts
@@ -1,13 +1,14 @@
import Vue from 'vue';
declare module 'vue/types/vue' {
- interface Vue {
- onMapClick : any
- }
+ interface Vue {
+ onMapClick: any;
+ $moment: any;
+ }
}
declare global {
- interface Window {
- G: any
- }
+ interface Window {
+ G: any;
+ }
}
diff --git a/src/util/commonUtils.ts b/src/util/commonUtils.ts
new file mode 100644
index 0000000000000000000000000000000000000000..8d1a2f71a863575ad8bc2a412d56d6efa1b4550e
--- /dev/null
+++ b/src/util/commonUtils.ts
@@ -0,0 +1,51 @@
+// 同步资源导出的方法
+export const downloadFuncs = (obj: any) => {
+ // 兼容ie的文件下载方法
+ const flag =
+ window.navigator.userAgent.indexOf('Trident') > -1 &&
+ window.navigator.userAgent.indexOf('rv:11.0') > -1;
+ if (flag) {
+ try {
+ window.navigator.msSaveBlob(obj.blobStream, obj.filename);
+ } catch (e) {
+ throw Error;
+ // console.log(e);
+ }
+ } else {
+ // 谷歌的下载方法
+ const downloadElement = document.createElement('a');
+ downloadElement.href = obj.url;
+ downloadElement.target = '_blank';
+ downloadElement.download = obj.filename;
+ document.body.appendChild(downloadElement);
+ downloadElement.click();
+ document.body.removeChild(downloadElement);
+ window.URL.revokeObjectURL(obj.url); // 释放掉blob对象
+ }
+};
+
+export const downloadFunc = (file: any) => {
+ const blob = new Blob([JSON.stringify(file, null, 2)], {
+ type: 'application/json',
+ });
+ const href = window.URL.createObjectURL(blob);
+ // 兼容ie的文件下载方法
+ if (window.navigator.msSaveBlob) {
+ try {
+ window.navigator.msSaveBlob(blob, file.name);
+ } catch (e) {
+ throw Error;
+ // console.log(e);
+ }
+ } else {
+ // 谷歌的下载方法
+ const downloadElement = document.createElement('a');
+ downloadElement.href = href;
+ downloadElement.target = '_blank';
+ downloadElement.download = file.name;
+ document.body.appendChild(downloadElement);
+ downloadElement.click();
+ document.body.removeChild(downloadElement);
+ window.URL.revokeObjectURL(href); // 释放掉blob对象
+ }
+};
diff --git a/src/util/downRequest.ts b/src/util/downRequest.ts
new file mode 100644
index 0000000000000000000000000000000000000000..2035c534877c49cd225327033139fbb2121a21c7
--- /dev/null
+++ b/src/util/downRequest.ts
@@ -0,0 +1,19 @@
+import axios from 'axios';
+
+export class DownloadRequestServer {
+ public downloadRequest: any;
+ constructor(opt: object) {
+ const obj = Object.assign(
+ {
+ headers: { client: 'Web' },
+ responseType: 'blob',
+ },
+ opt,
+ );
+ this.downloadRequest = axios.create(obj);
+ this.downloadRequest.interceptors.request.use((item: any) => {
+ item.headers.token = localStorage.getItem('token');
+ return item;
+ });
+ }
+}
diff --git a/src/util/request.ts b/src/util/request.ts
index 04ca949d4b200ee5c691e8e17cca7543d0ebfd41..01f82d5cff90c7948a85ded7aa9a98dc3773ce8e 100644
--- a/src/util/request.ts
+++ b/src/util/request.ts
@@ -1,14 +1,47 @@
-
import axios from 'axios';
+import { config } from '@vue/test-utils';
+import { Message } from 'element-ui';
+import route from '../router/router';
+import _ from 'lodash';
+import { loginServer } from '@/api/installServer';
+// const aa = function alertTips(errorMessage: any) {
+// Message.error(errorMessage);
+// if (errorMessage === '用户已注销,请重新登录') {
+// route.push('/Login');
+// }
+// };
export class RequestServerClass {
+ public serverObj: any;
+ // private static login: any = true;
- public serverObj: any;
-
- constructor(opt: object) {
- const obj = Object.assign({}, opt);
- this.serverObj = axios.create(
- obj,
- );
- }
+ constructor(opt: object) {
+ const obj = Object.assign(
+ {
+ headers: { client: 'Web' },
+ },
+ opt,
+ );
+ this.serverObj = axios.create(obj);
+ this.serverObj.interceptors.request.use((item: any) => {
+ item.headers.token = localStorage.getItem('token');
+ return item;
+ });
+ this.serverObj.interceptors.response.use(
+ (response: any) => {
+ // 对响应数据做点什么
+ return response;
+ },
+ (error: any) => {
+ const errorMessage = error.response.data.message;
+ Message.error(errorMessage);
+ if (errorMessage === '用户已注销,请重新登录') {
+ route.push('/Login');
+ }
+ // _.throttle(aa, 2000)(errorMessage);
+ // 对响应错误做点什么
+ return Promise.reject(error);
+ },
+ );
+ }
}
diff --git a/src/views/LayoutHome.vue b/src/views/LayoutHome.vue
new file mode 100644
index 0000000000000000000000000000000000000000..f505d8f1e391989e9c7c5695eaeb9ba17ce31432
--- /dev/null
+++ b/src/views/LayoutHome.vue
@@ -0,0 +1,112 @@
+
+
+
+
+
病患溯源管理系统
+
欢迎您, {{ userName }}
+
+ 注销
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Login.vue b/src/views/Login.vue
new file mode 100644
index 0000000000000000000000000000000000000000..5954db42f55f60e5e120650ec22484c8d640c85a
--- /dev/null
+++ b/src/views/Login.vue
@@ -0,0 +1,158 @@
+
+
+
+ 病患溯源管理系统
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 登录
+
+
+
+
+
+
+
+
diff --git a/src/views/MenuList.vue b/src/views/MenuList.vue
new file mode 100644
index 0000000000000000000000000000000000000000..44c3d06126aeff175dc13a3943429cb4fd37b9aa
--- /dev/null
+++ b/src/views/MenuList.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
diff --git a/src/views/PatientPortrayal.vue b/src/views/PatientPortrayal.vue
new file mode 100644
index 0000000000000000000000000000000000000000..c5026aed5da83904ac5196694738f808d58d544b
--- /dev/null
+++ b/src/views/PatientPortrayal.vue
@@ -0,0 +1,756 @@
+
+
+
+
+
+
+
+
+
+
{{item.ccRelation}}
+
+
+
+ 姓名:
+ {{item.ccName}}
+
+
+ 性别/年龄:
+ {{item.ccSex}}{{item.ccAge}}
+
+
+ 联系电话:
+ {{item.ccTelphone}}
+
+
+ 身份证:
+ {{item.suffererIdno}}
+
+
+ 病患位置:
+ {{item.ccAddress}}
+
+
+
+
+
+
+
+
+
+ 姓名:
+ {{sufferData.suffererName}}
+
+
+ 身份证:
+ {{sufferData.idNo}}
+
+
+ 性别/年龄:
+ {{sufferData.sex}} {{sufferData.age}}
+
+
+ 电话:
+ {{sufferData.telphone || '-'}}
+
+
+ 病患类型:
+ {{sufferData.caseType || '-'}}
+
+
+ 病患位置:
+ {{sufferData.curLocation || '-'}}
+
+
+
上一页
+
下一页
+
+ {{params.nowPage + 1}}/{{pageData.totalPage==0?1:pageData.totalPage}}页
+ 共{{pageData.total}}位
+
+
+
+
+
+
+
+
+
diff --git a/vue.config.js b/vue.config.js
index 601c4d25ff37fb8eac74cc5c2f7b65306b21c74e..dd92f6d06fb39ad41ef0624dc76b22e49245fc3e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -5,28 +5,39 @@ const globalPath = require('./src/config/index.js');
* 配置前端代理,以及开发环境配置
*/
module.exports = {
- publicPath: globalPath.jsonPath,
- pages : {
- index : {
- entry : ['node_modules/core-js' ,'src/main.ts']
- }
+ publicPath: globalPath.jsonPath,
+ pages: {
+ index: {
+ entry: ['node_modules/core-js', 'src/main.ts'],
},
- devServer: {
- port: "8888",
- open: true,
- proxy: {
- '/apis/*': {
- target: "http://172.17.38.202:8081",
- pathRewrite: {
- "/apis": ""
- }
- },
- '/virusapi': {
- target: "http://114.67.117.97:3001",
- pathRewrite: {
- "/virusapi": "/"
- }
- }
- }
- }
-}
\ No newline at end of file
+ },
+ devServer: {
+ port: '8888',
+ open: true,
+ proxy: {
+ '/apis/*': {
+ target: 'http://172.17.38.202:8081',
+ pathRewrite: {
+ '/apis': '',
+ },
+ },
+ '/virusapi': {
+ // target: 'http://114.67.117.97:3001',
+ // target: 'http://zxiao.vipgz2.idcfengye.com',
+ target: 'http://114.67.117.97:9090',
+ pathRewrite: {
+ '/virusapi': '/cdcapi',
+ },
+ },
+ '/cdcapi': {
+ // target: "http://114.67.117.97:3001",
+ // target: 'http://zxiao.vipgz2.idcfengye.com',
+ // target: 'https://ncp.gsafety.com',
+ target: 'http://114.67.117.97:9090',
+ pathRewrite: {
+ '/cdcapi': '/cdcapi',
+ },
+ },
+ },
+ },
+};