Merge branch 'dev' of https://code.itechtop.cn/yangyang/dangan_dataV into dev
Showing
6 changed files
with
65 additions
and
39 deletions
| ... | @@ -44,22 +44,22 @@ | ... | @@ -44,22 +44,22 @@ |
| 44 | </text> | 44 | </text> |
| 45 | </svg> | 45 | </svg> |
| 46 | </div> | 46 | </div> |
| 47 | <div class="q3box qqbox"> | 47 | <!-- <div class="q3box qqbox">--> |
| 48 | <!-- 液体球--> | 48 | <!-- <!– 液体球–>--> |
| 49 | <div ref="q3" style="width: 100%;height:calc(90*100vw/1920);"></div> | 49 | <!-- <div ref="q3" style="width: 100%;height:calc(90*100vw/1920);"></div>--> |
| 50 | <svg width="100%" :height="`calc(100*100vw/1920)`"> | 50 | <!-- <svg width="100%" :height="`calc(100*100vw/1920)`">--> |
| 51 | <linearGradient id="gradient" y1="0%" x1="100%" x2="100%" y2="100%"> | 51 | <!-- <linearGradient id="gradient" y1="0%" x1="100%" x2="100%" y2="100%">--> |
| 52 | <stop offset="0%" stop-color="#03AEFD"/> | 52 | <!-- <stop offset="0%" stop-color="#03AEFD"/>--> |
| 53 | <stop offset="10%" stop-color="#AEFFF3"/> | 53 | <!-- <stop offset="10%" stop-color="#AEFFF3"/>--> |
| 54 | </linearGradient> | 54 | <!-- </linearGradient>--> |
| 55 | <text x="50%" :y="`calc(15*100vw/1920)`" font-family="PingFang SC" text-anchor="middle" fill="#fff" | 55 | <!-- <text x="50%" :y="`calc(15*100vw/1920)`" font-family="PingFang SC" text-anchor="middle" fill="#fff"--> |
| 56 | :font-size="`calc(14*100vw/1920)`">基本满意 | 56 | <!-- :font-size="`calc(14*100vw/1920)`">基本满意--> |
| 57 | </text> | 57 | <!-- </text>--> |
| 58 | <text x="50%" :y="`calc(40*100vw/1920)`" font-family="DIN Alternate" text-anchor="middle" font-weight="bold" | 58 | <!-- <text x="50%" :y="`calc(40*100vw/1920)`" font-family="DIN Alternate" text-anchor="middle" font-weight="bold"--> |
| 59 | :font-size="`calc(16*100vw/1920)`" fill="url(#gradient)">{{ list['基本满意'] }} | 59 | <!-- :font-size="`calc(16*100vw/1920)`" fill="url(#gradient)">{{ list['基本满意'] }}--> |
| 60 | </text> | 60 | <!-- </text>--> |
| 61 | </svg> | 61 | <!-- </svg>--> |
| 62 | </div> | 62 | <!-- </div>--> |
| 63 | <div class="q4box qqbox"> | 63 | <div class="q4box qqbox"> |
| 64 | <!-- 液体球--> | 64 | <!-- 液体球--> |
| 65 | <div ref="q4" style="width: 100%;height:calc(90*100vw/1920);"></div> | 65 | <div ref="q4" style="width: 100%;height:calc(90*100vw/1920);"></div> |
| ... | @@ -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 | } |
| ... | @@ -245,11 +246,11 @@ const setQ1 = (ref, data) => { | ... | @@ -245,11 +246,11 @@ const setQ1 = (ref, data) => { |
| 245 | } | 246 | } |
| 246 | 247 | ||
| 247 | .partB { | 248 | .partB { |
| 248 | display: flex; | 249 | display: flex;justify-content: space-around; |
| 249 | } | 250 | } |
| 250 | 251 | ||
| 251 | .qqbox { | 252 | .qqbox { |
| 252 | width: 25%; | 253 | width: 33%; |
| 253 | position: relative; | 254 | position: relative; |
| 254 | top: calc(-20 * 100vw / 1920); | 255 | top: calc(-20 * 100vw / 1920); |
| 255 | background: url("@/assets/img/q1.png") no-repeat bottom center; | 256 | background: url("@/assets/img/q1.png") no-repeat bottom center; | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="pd20"> | 2 | <div class="pd20"> |
| 3 | <div class="chartCard"> | 3 | <div class="chartCard"> |
| 4 | <div class="title">查档接待情况</div> | 4 | <div class="title">档案出证情况</div> |
| 5 | 5 | ||
| 6 | <div class="po_right"> | 6 | <div class="po_right"> |
| 7 | <el-radio-group v-model="radioA" size="small" @change="radioAChange"> | 7 | <el-radio-group v-model="radioA" size="small" @change="radioAChange"> |
| ... | @@ -109,7 +109,7 @@ const setA = () => { | ... | @@ -109,7 +109,7 @@ const setA = () => { |
| 109 | axisLabel: { | 109 | axisLabel: { |
| 110 | inside: false, | 110 | inside: false, |
| 111 | color: '#7ECEF4', | 111 | color: '#7ECEF4', |
| 112 | fontSize: '1.5rem' | 112 | fontSize: '1.1rem' |
| 113 | }, | 113 | }, |
| 114 | axisTick: { | 114 | axisTick: { |
| 115 | show: false | 115 | show: false |
| ... | @@ -123,7 +123,7 @@ const setA = () => { | ... | @@ -123,7 +123,7 @@ const setA = () => { |
| 123 | z: 10 | 123 | z: 10 |
| 124 | }], | 124 | }], |
| 125 | yAxis: { | 125 | yAxis: { |
| 126 | name: '单位(K)', | 126 | name: '单位(次)', |
| 127 | nameTextStyle: { | 127 | nameTextStyle: { |
| 128 | color:'#7ECEF4', | 128 | color:'#7ECEF4', |
| 129 | fontSize:'1.2rem' | 129 | fontSize:'1.2rem' |
| ... | @@ -136,7 +136,7 @@ const setA = () => { | ... | @@ -136,7 +136,7 @@ const setA = () => { |
| 136 | }, | 136 | }, |
| 137 | axisLabel: { | 137 | axisLabel: { |
| 138 | color: '#7ECEF4', | 138 | color: '#7ECEF4', |
| 139 | fontSize: '1.5rem' | 139 | fontSize: '1.3rem' |
| 140 | }, | 140 | }, |
| 141 | splitLine: { | 141 | splitLine: { |
| 142 | show: true, | 142 | show: true, |
| ... | @@ -233,7 +233,7 @@ const setB = () => { | ... | @@ -233,7 +233,7 @@ const setB = () => { |
| 233 | }, | 233 | }, |
| 234 | axisLabel: { | 234 | axisLabel: { |
| 235 | color: '#7ECEF4', | 235 | color: '#7ECEF4', |
| 236 | fontSize: '1.5rem' | 236 | fontSize: '1.1rem' |
| 237 | }, | 237 | }, |
| 238 | axisLine: { | 238 | axisLine: { |
| 239 | show: true, | 239 | show: true, |
| ... | @@ -243,14 +243,14 @@ const setB = () => { | ... | @@ -243,14 +243,14 @@ const setB = () => { |
| 243 | }, | 243 | }, |
| 244 | }, | 244 | }, |
| 245 | yAxis: { | 245 | yAxis: { |
| 246 | name: '单位(K)', | 246 | name: '单位(次)', |
| 247 | nameTextStyle: { | 247 | nameTextStyle: { |
| 248 | color:'#7ECEF4', | 248 | color:'#7ECEF4', |
| 249 | fontSize:'1.2rem' | 249 | fontSize:'1.2rem' |
| 250 | }, | 250 | }, |
| 251 | type: 'value', | 251 | type: 'value', |
| 252 | axisLabel: { | 252 | axisLabel: { |
| 253 | fontSize: '1.5rem' | 253 | fontSize: '1.3rem' |
| 254 | }, | 254 | }, |
| 255 | axisLine: { | 255 | axisLine: { |
| 256 | lineStyle: { | 256 | lineStyle: { | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="pd20"> | 2 | <div class="pd20"> |
| 3 | <div class="chartCard"> | 3 | <div class="chartCard"> |
| 4 | <div class="title">档案借阅总览</div> | 4 | <div class="title">查档接待情况</div> |
| 5 | 5 | ||
| 6 | <div class="po_right"> | 6 | <div class="po_right"> |
| 7 | <el-radio-group v-model="radioA" size="small" @change="radioAChange"> | 7 | <el-radio-group v-model="radioA" size="small" @change="radioAChange"> |
| ... | @@ -95,7 +95,7 @@ const setA = () => { | ... | @@ -95,7 +95,7 @@ const setA = () => { |
| 95 | axisLabel: { | 95 | axisLabel: { |
| 96 | inside: false, | 96 | inside: false, |
| 97 | color: '#7ECEF4', | 97 | color: '#7ECEF4', |
| 98 | fontSize: '1.5rem' | 98 | fontSize: '1.1rem' |
| 99 | }, | 99 | }, |
| 100 | axisTick: { | 100 | axisTick: { |
| 101 | show: false | 101 | show: false |
| ... | @@ -109,7 +109,7 @@ const setA = () => { | ... | @@ -109,7 +109,7 @@ const setA = () => { |
| 109 | z: 10 | 109 | z: 10 |
| 110 | }], | 110 | }], |
| 111 | yAxis: { | 111 | yAxis: { |
| 112 | name: '单位(K)', | 112 | name: '单位(次)', |
| 113 | nameTextStyle: { | 113 | nameTextStyle: { |
| 114 | color: '#7ECEF4', | 114 | color: '#7ECEF4', |
| 115 | fontSize: '1.2rem' | 115 | fontSize: '1.2rem' |
| ... | @@ -122,7 +122,7 @@ const setA = () => { | ... | @@ -122,7 +122,7 @@ const setA = () => { |
| 122 | }, | 122 | }, |
| 123 | axisLabel: { | 123 | axisLabel: { |
| 124 | color: '#7ECEF4', | 124 | color: '#7ECEF4', |
| 125 | fontSize: '1.5rem' | 125 | fontSize: '1.3rem' |
| 126 | }, | 126 | }, |
| 127 | splitLine: { | 127 | splitLine: { |
| 128 | show: true, | 128 | show: true, |
| ... | @@ -235,7 +235,8 @@ const setB = () => { | ... | @@ -235,7 +235,8 @@ const setB = () => { |
| 235 | }, | 235 | }, |
| 236 | axisLabel: { | 236 | axisLabel: { |
| 237 | color: '#7ECEF4', | 237 | color: '#7ECEF4', |
| 238 | fontSize: '1.5rem' | 238 | fontSize: '1.1rem', |
| 239 | interval: 0 | ||
| 239 | }, | 240 | }, |
| 240 | axisLine: { | 241 | axisLine: { |
| 241 | show: true, | 242 | show: true, |
| ... | @@ -245,14 +246,14 @@ const setB = () => { | ... | @@ -245,14 +246,14 @@ const setB = () => { |
| 245 | }, | 246 | }, |
| 246 | }, | 247 | }, |
| 247 | yAxis: { | 248 | yAxis: { |
| 248 | name: '单位(份)', | 249 | name: '单位(卷/件)', |
| 249 | nameTextStyle: { | 250 | nameTextStyle: { |
| 250 | color: '#7ECEF4', | 251 | color: '#7ECEF4', |
| 251 | fontSize: '1.2rem' | 252 | fontSize: '1.2rem' |
| 252 | }, | 253 | }, |
| 253 | type: 'value', | 254 | type: 'value', |
| 254 | axisLabel: { | 255 | axisLabel: { |
| 255 | fontSize: '1.5rem' | 256 | fontSize: '1.3rem' |
| 256 | }, | 257 | }, |
| 257 | axisLine: { | 258 | axisLine: { |
| 258 | lineStyle: { | 259 | lineStyle: { | ... | ... |
| ... | @@ -9,7 +9,16 @@ | ... | @@ -9,7 +9,16 @@ |
| 9 | <img v-if="i==2" class="iconImg" src="@/assets/img/btn03.png"> | 9 | <img v-if="i==2" class="iconImg" src="@/assets/img/btn03.png"> |
| 10 | <img v-if="i==3" class="iconImg" src="@/assets/img/btn04.png"> | 10 | <img v-if="i==3" class="iconImg" src="@/assets/img/btn04.png"> |
| 11 | <img v-if="i==4" class="iconImg" src="@/assets/img/btn05.png"> | 11 | <img v-if="i==4" class="iconImg" src="@/assets/img/btn05.png"> |
| 12 | <el-statistic class="statistic" :title="n.name" :value="n.num" :value-style="statisticStyle"/> | 12 | <div class="statistic"> |
| 13 | <h3>{{n.name}}</h3> | ||
| 14 | <p v-if="Array.isArray(n.num)"> | ||
| 15 | {{Number(n.num[0]/10000).toFixed(2)}} 万卷/<br/> | ||
| 16 | {{Number(n.num[1]/10000).toFixed(2)}} 万件 | ||
| 17 | </p> | ||
| 18 | <p v-else>{{n.num}}</p> | ||
| 19 | </div> | ||
| 20 | |||
| 21 | <!-- <el-statistic class="statistic" :title="n.name" :value="Array.isArray(n.num)?`${n.num[0]}卷/${n.num[1]}件`:n.num" :value-style="statisticStyle"></el-statistic>--> | ||
| 13 | </div> | 22 | </div> |
| 14 | </div> | 23 | </div> |
| 15 | </div> | 24 | </div> |
| ... | @@ -84,7 +93,21 @@ function unpauseAn() { | ... | @@ -84,7 +93,21 @@ function unpauseAn() { |
| 84 | -webkit-background-clip: text; | 93 | -webkit-background-clip: text; |
| 85 | -webkit-text-fill-color: transparent; | 94 | -webkit-text-fill-color: transparent; |
| 86 | } | 95 | } |
| 87 | .statistic{--el-statistic-title-color: #fff;text-align: center;position: relative;top: calc(-15*100vw/1920); | 96 | .statistic{--el-statistic-title-color: #fff;text-align: center;position: relative; |
| 97 | top: calc(-20*100vw/1920); | ||
| 98 | h3{color: #fff; font-family: 'YouSheBiaoTiHei'; | ||
| 99 | background: linear-gradient(180deg, #fff 10%, #9CD2FF 100%); | ||
| 100 | -webkit-background-clip: text; | ||
| 101 | -webkit-text-fill-color: transparent; | ||
| 102 | font-size: calc(22*100vw/1920); | ||
| 103 | line-height: 1;margin: 0} | ||
| 104 | p{color: #fff; background: linear-gradient(180deg, #fff 20%, #9CD2FF 100%); | ||
| 105 | -webkit-background-clip: text; font-size: calc(26*100vw/1920); | ||
| 106 | font-family: 'DIN Alternate'; | ||
| 107 | -webkit-text-fill-color: transparent;line-height: 1;overflow: visible; | ||
| 108 | margin: 0;height: calc(60*100vw/1920);display: flex;align-items: center;justify-content: center; | ||
| 109 | span{font-size: calc(22*100vw/1920);} | ||
| 110 | } | ||
| 88 | } | 111 | } |
| 89 | .ellipse { | 112 | .ellipse { |
| 90 | position: relative; | 113 | position: relative; | ... | ... |
| ... | @@ -58,7 +58,7 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -58,7 +58,7 @@ export default defineConfig(({ mode, command }) => { |
| 58 | }, | 58 | }, |
| 59 | // vite 相关配置 | 59 | // vite 相关配置 |
| 60 | server: { | 60 | server: { |
| 61 | port: 5175, | 61 | port: 5180, |
| 62 | host: true, | 62 | host: true, |
| 63 | open: true, | 63 | open: true, |
| 64 | proxy: { | 64 | proxy: { |
| ... | @@ -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.95: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