eaa2b278 by 杨炀

no message

1 parent 369a6c91
......@@ -128,14 +128,15 @@ const init = () => {
}
function getdata() {
total = 0
api.getDegree().then(res => {
list.value = res.data
for (let n in list.value) {
total = total + list.value[n]
total = total + (list.value[n]||0)
}
liquid1 = setQ1(q1.value, [list.value['非常满意'] / total, list.value['非常满意'] / total])
liquid2 = setQ1(q2.value, [list.value['满意'] / total, list.value['满意'] / total])
liquid3 = setQ1(q3.value, [list.value['基本满意'] / total, list.value['基本满意'] / total])
// liquid3 = setQ1(q3.value, [list.value['基本满意'] / total, list.value['基本满意'] / total])
liquid4 = setQ1(q4.value, [list.value['不满意'] / total, list.value['不满意'] / total])
// liquid5 = setQ1(q5.value, [list.value['非常不满意'] / total, list.value['非常不满意'] / total])
})
......@@ -144,7 +145,7 @@ function getdata() {
function handleResize() {
liquid1.resize()
liquid2.resize()
liquid3.resize()
// liquid3.resize()
liquid4.resize()
// liquid5.resize()
}
......
......@@ -81,7 +81,7 @@ export default defineConfig(({ mode, command }) => {
rewrite: (p) => p.replace(/^\/dev-api\/ztx-webSite/, '')
},
'/dev-api': {
target: 'http://192.168.1.67:5511/',
target: 'http://192.168.1.207:5511/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!