| | |
| | | if (response.data) { |
| | | |
| | | if (response.data.tjdj.length === 0) { |
| | | |
| | | this.PieChart = [] |
| | | this.PieChart = [ |
| | | { |
| | |
| | | }] |
| | | }) |
| | | |
| | | if (response.data.tjyc.length === 0) { |
| | | if(response.data.tjyc == 0){ |
| | | this.PieChart2 = [] |
| | | this.PieChart2 = [ |
| | | { |
| | | "name": "体检结果异常人数分布", |
| | | "count": 1, |
| | | "value": 10 |
| | | }, |
| | | |
| | | ] |
| | | }else if (response.data.tjyc.length === 0) { |
| | | this.PieChart2 = [] |
| | | this.PieChart2 = [ |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | // window.onresize = function () { |
| | | // myChart2.resize() |
| | | // myChart3.resize() |
| | | // } |
| | | window.onresize = function () { |
| | | myChart2.resize() |
| | | myChart3.resize() |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`, |
| | | target: `http://192.168.1.113:5011`, |
| | | // target: `http://192.168.1.113:5011`, |
| | | // // target: `http://192.168.0.99:8080/ltkj-admin`, |
| | | // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, |
| | | target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, |
| | | // target: `http://10.168.0.9:5011`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |