Commit 59ac0963 by nlp97

fix 编译错误

parent ee93039e
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "suvalue-cli", "name": "suvalue-cli",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vue-cli-service serve --open ", "dev": "vue-cli-service serve --open ",
"build": "vue-cli-service build ", "build": "vue-cli-service build ",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
},
"dependencies": {
"@vue/composition-api": "^1.6.2",
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"jquery": "^3.6.0",
"js-cookie": "^3.0.1",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.4.0",
"@vue/cli-plugin-eslint": "~4.4.0",
"@vue/cli-service": "~4.4.0",
"axios": "^0.19.2",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.18.0",
"sass-loader": "^7.1.0",
"sessionstorage": "^0.1.0",
"vue-router": "^3.3.2",
"vue-template-compiler": "^2.6.11",
"vuex": "^3.4.0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
}, },
"extends": [ "dependencies": {
"plugin:vue/essential", "@vue/composition-api": "^1.6.2",
"eslint:recommended" "core-js": "^3.6.5",
], "element-ui": "^2.15.6",
"parserOptions": { "jquery": "^3.6.0",
"parser": "babel-eslint" "js-cookie": "^3.0.1",
"vue": "^2.6.11"
}, },
"rules": {} "devDependencies": {
}, "@vue/cli-plugin-babel": "~4.4.0",
"browserslist": [ "@vue/cli-plugin-eslint": "~4.4.0",
"> 1%", "@vue/cli-service": "~4.4.0",
"last 2 versions", "axios": "^0.19.2",
"not dead" "babel-eslint": "^10.1.0",
] "echarts": "^5.3.2",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.18.0",
"sass-loader": "^7.1.0",
"sessionstorage": "^0.1.0",
"vue-router": "^3.3.2",
"vue-template-compiler": "^2.6.11",
"vuex": "^3.4.0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-06-07 00:31:25 * @Date: 2022-06-07 00:31:25
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-06-07 10:24:33 * @LastEditTime: 2022-06-07 14:16:26
* @Description: * @Description:
*/ */
import Vue from "vue"; import Vue from "vue";
...@@ -12,123 +12,39 @@ import { getItem, clear } from "@/utils/auth"; ...@@ -12,123 +12,39 @@ import { getItem, clear } from "@/utils/auth";
import outseeQualityControl from "@/views/outseeQualityControl.vue"; import outseeQualityControl from "@/views/outseeQualityControl.vue";
import outpatientDetails from "@/views/outpatientDetails.vue"; import outpatientDetails from "@/views/outpatientDetails.vue";
import outHistorygrouping from "@/views/outHistorygrouping.vue"; import outHistorygrouping from "@/views/outHistorygrouping.vue";
import login from "@/views/login.vue";
Vue.use(Router); Vue.use(Router);
const router = new Router({ const router = new Router({
routes: [{ routes: [{
path: "*", path: "*",
component: (resolve) => require(["@/components/404.vue"], resolve), component: (resolve) => require(["@/components/404.vue"], resolve),
}, },
// {
// path: "/login", // 查看质控
// name: "login", {
// component: login, path: "/outseeQualityControl",
// }, name: "outseeQualityControl",
// 查看质控 component: outseeQualityControl,
{ },
path: "/outseeQualityControl", // 患者详情
name: "outseeQualityControl", {
component: outseeQualityControl, path: "/outpatientDetails",
}, name: "outpatientDetails",
// 患者详情 component: outpatientDetails,
{ },
path: "/outpatientDetails", // 智能分组
name: "outpatientDetails", {
component: outpatientDetails, path: "/outHistorygrouping",
}, name: "outHistorygrouping",
// 智能分组 component: outHistorygrouping,
{ }
path: "/outHistorygrouping",
name: "outHistorygrouping",
component: outHistorygrouping,
}
// {
// path: "/",
// name: "home",
// component: HelloWorld,
// },
// {
// path: "/",
// name: "home",
// component: HelloWorld,
// },
], ],
}); });
//路由跳转前判断(登录权限) //路由跳转前判断(登录权限)
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
next(); next();
//console.log(to, from, next);
// const token = getItem("svToken"); //获取用户id
// console.log(token);
// if (token) {
// //有登录权限
// if (to.path == "/login") {
// next("/");
// } else {
// //console.log(to);
// next();
// }
// } else {
// //没有登录权限
// if (to.path == "/login") {
// next();
// } else {
// //不然就跳转到登录;
// next("/login");
// }
// }
}); });
// router.beforeEach(async(to, from, next) => {
// const hasToken = getToken()
// if (hasToken) {
// if (to.path === '/login') {
// next({ path: '/' })
// } else {
// const hasGetUserInfo = store.getters.token
// if (hasGetUserInfo) {
// next()
// } else {
// try {
// // get user info
// await store.dispatch('user/getInfo')
// next()
// } catch (error) {
// await store.dispatch('user/resetToken')
// next(`/login?redirect=${encodeURIComponent(to.fullPath)}`)
// }
// }
// }
// } else {
// if (to.matched.some(rocode => rocode.meta.requireAuth)) {
// next(`/login?redirect=${encodeURIComponent(to.fullPath)}`)
// } else {
// next()
// }
// }
// })
export default router; export default router;
\ No newline at end of file
...@@ -46,7 +46,7 @@ export function categoryChart(data, tcolor) { ...@@ -46,7 +46,7 @@ export function categoryChart(data, tcolor) {
fontFamily: 'Arial', fontFamily: 'Arial',
foontWeight: '600', foontWeight: '600',
}, },
}, ], },],
polar: { polar: {
radius: ['100%', '60%'], radius: ['100%', '60%'],
center: ['50%', '50%'], center: ['50%', '50%'],
...@@ -76,10 +76,10 @@ export function categoryChart(data, tcolor) { ...@@ -76,10 +76,10 @@ export function categoryChart(data, tcolor) {
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0, offset: 0,
color: tcolor, //填色颜色 color: tcolor, //填色颜色
}, ]), },]),
}, },
}, },
}, ], },],
}; };
return option; return option;
...@@ -89,27 +89,27 @@ export function categoryChart(data, tcolor) { ...@@ -89,27 +89,27 @@ export function categoryChart(data, tcolor) {
export function categoryChart11(text, data, tcolor) { export function categoryChart11(text, data, tcolor) {
const option = { const option = {
title: [{ title: [{
text: text, text: text,
x: 'center', x: 'center',
top: '52%', top: '52%',
textStyle: { textStyle: {
fontSize: '14', //百分比的样式 fontSize: '14', //百分比的样式
color: tcolor, color: tcolor,
fontFamily: 'PingFang SC', fontFamily: 'PingFang SC',
foontWeight: '300', foontWeight: '300',
},
}, },
{ },
text: data + `%`, {
x: 'center', text: data + `%`,
top: '28%', x: 'center',
textStyle: { top: '28%',
fontSize: '20', //百分比的样式 textStyle: {
color: tcolor, fontSize: '20', //百分比的样式
fontFamily: 'Arial', color: tcolor,
foontWeight: '600', fontFamily: 'Arial',
}, foontWeight: '600',
}, },
},
], ],
polar: { polar: {
radius: ['100%', '60%'], radius: ['100%', '60%'],
...@@ -140,10 +140,10 @@ export function categoryChart11(text, data, tcolor) { ...@@ -140,10 +140,10 @@ export function categoryChart11(text, data, tcolor) {
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0, offset: 0,
color: tcolor, //填色颜色 color: tcolor, //填色颜色
}, ]), },]),
}, },
}, },
}, ], },],
}; };
return option; return option;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment