no message
Showing
2 changed files
with
5 additions
and
4 deletions
| ... | @@ -128,14 +128,15 @@ const init = () => { | ... | @@ -128,14 +128,15 @@ const init = () => { |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | function getdata() { | 130 | function getdata() { |
| 131 | total = 0 | ||
| 131 | api.getDegree().then(res => { | 132 | api.getDegree().then(res => { |
| 132 | list.value = res.data | 133 | list.value = res.data |
| 133 | for (let n in list.value) { | 134 | for (let n in list.value) { |
| 134 | total = total + list.value[n] | 135 | total = total + (list.value[n]||0) |
| 135 | } | 136 | } |
| 136 | liquid1 = setQ1(q1.value, [list.value['非常满意'] / total, list.value['非常满意'] / total]) | 137 | liquid1 = setQ1(q1.value, [list.value['非常满意'] / total, list.value['非常满意'] / total]) |
| 137 | liquid2 = setQ1(q2.value, [list.value['满意'] / total, list.value['满意'] / total]) | 138 | liquid2 = setQ1(q2.value, [list.value['满意'] / total, list.value['满意'] / total]) |
| 138 | liquid3 = setQ1(q3.value, [list.value['基本满意'] / total, list.value['基本满意'] / total]) | 139 | // liquid3 = setQ1(q3.value, [list.value['基本满意'] / total, list.value['基本满意'] / total]) |
| 139 | liquid4 = setQ1(q4.value, [list.value['不满意'] / total, list.value['不满意'] / total]) | 140 | liquid4 = setQ1(q4.value, [list.value['不满意'] / total, list.value['不满意'] / total]) |
| 140 | // liquid5 = setQ1(q5.value, [list.value['非常不满意'] / total, list.value['非常不满意'] / total]) | 141 | // liquid5 = setQ1(q5.value, [list.value['非常不满意'] / total, list.value['非常不满意'] / total]) |
| 141 | }) | 142 | }) |
| ... | @@ -144,7 +145,7 @@ function getdata() { | ... | @@ -144,7 +145,7 @@ function getdata() { |
| 144 | function handleResize() { | 145 | function handleResize() { |
| 145 | liquid1.resize() | 146 | liquid1.resize() |
| 146 | liquid2.resize() | 147 | liquid2.resize() |
| 147 | liquid3.resize() | 148 | // liquid3.resize() |
| 148 | liquid4.resize() | 149 | liquid4.resize() |
| 149 | // liquid5.resize() | 150 | // liquid5.resize() |
| 150 | } | 151 | } | ... | ... |
| ... | @@ -81,7 +81,7 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -81,7 +81,7 @@ export default defineConfig(({ mode, command }) => { |
| 81 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') | 81 | rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '') |
| 82 | }, | 82 | }, |
| 83 | '/dev-api': { | 83 | '/dev-api': { |
| 84 | target: 'http://192.168.1.67:5511/', | 84 | target: 'http://192.168.1.207:5511/', |
| 85 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | 85 | // target: 'https://jijin.wtwuxicenter.com/stage-api', |
| 86 | changeOrigin: true, | 86 | changeOrigin: true, |
| 87 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 87 | rewrite: (p) => p.replace(/^\/dev-api/, '') | ... | ... |
-
Please register or sign in to post a comment