cd08c1a0 by zrj

大屏1.6修改

1 parent 5e47f98e
......@@ -16,10 +16,10 @@ const isLoading = ref(false)
function handleChangeTheme(type) {
styleTheme.value = type
isLoading.value = true
setTimeout(() => {
isLoading.value = false
}, 3000)
// isLoading.value = true
// setTimeout(() => {
// isLoading.value = false
// }, 3000)
}
</script>
......
......@@ -60,7 +60,7 @@ const nowDate = ref(`${year}-${formatMonth(month)}`)
let selectBase = ref()
let baseList = ref()
let isLeader = ref(false)
// url.value = 'http://192.168.1.152:8899/login/sid=9cdeffd3-0a59-414c-944c-8e71a11b05cc#/'
// url.value = 'http://192.168.1.152:8899/login/sid=99afabdd-240a-4486-9b65-a9af641d6b51#/'
url.value = window.location.href
result.value = url.value?.split('=')[1]?.split('#')[0];
......
......@@ -538,14 +538,14 @@ async function handelGetYS0010() {
const res = await getYS0010(url.value, {"yeargroup": resYear1.value})
const TBdata = res.data.list.map(n => n.TBRATIO)
const HBdata = res.data.list.map(n => n.HBRATIO)
handelContrast(resYear1.value[0], resYear1.value[1], TBdata, HBdata, true)
handelContrast(resYear1.value[0], resYear1.value[1], TBdata, HBdata, true, 'SRJE')
}
async function handelGetYS0011() {
const res = await getYS0011(url.value, {"yeargroup": resYear2.value})
const TBdata = res.data.list.map(n => n.TBRATIO)
const HBdata = res.data.list.map(n => n.HBRATIO)
handelContrast(resYear1.value[0], resYear1.value[1], TBdata, HBdata, false)
handelContrast(resYear2.value[0], resYear2.value[1], TBdata, HBdata, false, 'YSCOST')
}
function contrastDialogShow(type) {
......@@ -2165,7 +2165,7 @@ const handelZhu4_2 = (listX1, dataList1,dataList2, arr1) => {
// autoHover(chart44, option, 0, 2000)
}
const handelContrast = (row1, row2, TBdata, HBdata, flag) => {
const handelContrast = (row1, row2, TBdata, HBdata, flag, type) => {
chartContrast = echarts.init(contrastRef.value)
let monthData = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
......@@ -2371,7 +2371,7 @@ const handelContrast = (row1, row2, TBdata, HBdata, flag) => {
focus: 'series'
},
data: row1.list.map(val => {
return (val.SRJE / 10000).toFixed()
return (val[type] / 10000).toFixed()
}),
itemStyle: {
color: {
......@@ -2397,7 +2397,7 @@ const handelContrast = (row1, row2, TBdata, HBdata, flag) => {
focus: 'series'
},
data: row2.list.map(val => {
return (val.SRJE / 10000).toFixed()
return (val[type] / 10000).toFixed()
}),
itemStyle: {
color: {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!