980e109f by zhangmeng

看板

1 parent 6ee62e76
import request from '@/utils/request'
const urlCopy = new URL(window.location.href);
const params = new URLSearchParams(urlCopy.search);
const sidValue = params.get('sid');
console.log(sidValue)
let url = '5342b777-d86a-4967-a18b-7329a3fca56b'
/**
* 用户信息
* @returns {*}
......@@ -9,7 +17,7 @@ export function getYS000() {
method: 'post',
data: {
'INTERFACEID': 'YS000',
'USERCONTEXT': '5342b777-d86a-4967-a18b-7329a3fca56b'
'USERCONTEXT': url
}
})
}
......@@ -24,7 +32,7 @@ export function getYS001() {
method: 'post',
data: {
'INTERFACEID': 'YS001',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -38,7 +46,7 @@ export function getYS002() {
method: 'post',
data: {
'INTERFACEID': 'YS002',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -52,7 +60,7 @@ export function getYS003() {
method: 'post',
data: {
'INTERFACEID': 'YS003',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -66,7 +74,7 @@ export function getYS004() {
method: 'post',
data: {
'INTERFACEID': 'YS004',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -80,7 +88,7 @@ export function getYS005() {
method: 'post',
data: {
'INTERFACEID': 'YS005',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -94,7 +102,7 @@ export function getYS006() {
method: 'post',
data: {
'INTERFACEID': 'YS006',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -108,7 +116,7 @@ export function getYS007() {
method: 'post',
data: {
'INTERFACEID': 'YS007',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -123,7 +131,7 @@ export function getYS008() {
method: 'post',
data: {
'INTERFACEID': 'YS008',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......@@ -137,7 +145,7 @@ export function getYS009() {
method: 'post',
data: {
'INTERFACEID': 'YS009',
'USERCONTEXT': 'a6c49439-f01c-0292-1757-30563fb41c77'
'USERCONTEXT': url
}
})
}
......
import router from './routerPc/cn'
import { ElMessage } from 'element-plus'
import {ElMessage} from 'element-plus'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import { getToken, setToken } from '@/utils/auth'
import { isRelogin } from '@/utils/request'
import {getToken, setToken} from '@/utils/auth'
import {isRelogin} from '@/utils/request'
import useUserStore from '@/store/modules/user'
NProgress.configure({ showSpinner: false })
NProgress.configure({showSpinner: false})
router.beforeEach((to, from, next) => {
console.log('to', to)
NProgress.start()
if (getToken()) {
// 判断当前用户是否已拉取完user_info信息
......@@ -21,7 +20,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => {
useUserStore().logOut().then(() => {
ElMessage.error(err)
next({ path: '/' })
next({path: '/'})
})
})
} else {
......
......@@ -21,11 +21,16 @@ import CenterPage from "@/viewsPc/vip/centerPage"
import RightPage from "@/viewsPc/vip/rightPage"
import {getYS000} from '@/api/server.js'
const fullUrl = window.location.href;
const type = ref(null)
// url.value = window.location.host + '/pc.html#/match/list/'
handelGetYS000()
console.log(window.location.host)
async function handelGetYS000() {
const res = await getYS000()
type.value = res.data.IFBASE
console.log(res)
}
......
......@@ -214,6 +214,47 @@ let chartB
let chartC
let intervalA = null
let color1 = {
color: {
type: 'linear',
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 162, 255, .3)'}, // 顶部颜色
{offset: 1, color: 'rgba(34, 117, 255, .3)'} // 底部颜色
],
},
}
let color2 = {
color: {
type: 'linear',
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 162, 255, 1)'}, // 顶部颜色
{offset: 1, color: 'rgba(34, 117, 255,1)'} // 底部颜色
],
},
}
let color3 = {
color: {
type: 'linear',
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 255, 190, .5)'}, // 顶部颜色
{offset: 1, color: 'rgba(8, 130, 160, .3)'} // 底部颜色
],
},
}
let color4 = {
color: {
type: 'linear',
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 255, 190, 1)'}, // 顶部颜色
{offset: 1, color: 'rgba(8, 130, 160, 1)'} // 底部颜色
],
},
}
onMounted(() => {
init()
window.addEventListener('resize', handleResize);
......@@ -250,12 +291,13 @@ async function handelGetYS007() {
})
arr1.push({
value: Math.round(val.PLANCOST / 10000),
value2: Math.round(val.EXECOST / 10000),
itemStyle: val.EXERATIO * 100 >= 90 ? color1 : color3,
name: (val.EXERATIO * 100).toFixed() + '%',
})
arr2.push({
value: Math.round(val.EXECOST / 10000),
name: (val.EXERATIO * 100).toFixed() + '%',
itemStyle: val.EXERATIO * 100 >= 90 ? color2 : color4
})
arr3.push(val.EXERATIO)
}
......@@ -278,12 +320,13 @@ function handelSelect7() {
})
arr1.push({
value: Math.round(val.PLANCOST / 10000),
value2: Math.round(val.EXECOST / 10000),
name: (val.EXERATIO * 100).toFixed() + '%',
itemStyle: val.EXERATIO * 100 >= 90 ? color1 : color3
})
arr2.push({
value: Math.round(val.EXECOST / 10000),
name: (val.EXERATIO * 100).toFixed() + '%',
itemStyle: val.EXERATIO * 100 >= 90 ? color2 : color4
})
arr3.push(val.EXERATIO)
}
......@@ -338,15 +381,13 @@ function handelType8() {
async function handelGetYS009() {
const res = await getYS009()
console.log(res)
console.log(res)
list9.value = res.data.list
let arrY = []
let arr1 = []
let arr2 = []
let arr3 = []
for (const val of list9.value) {
arrY.push(val.BASE)
arrY.push(val.BASEJC)
arr1.push(Math.round(val.WKPCOSTONE / 10000))
arr2.push(Math.round(val.WKPCOSTTWO / 10000))
arr3.push(Math.round(val.WKPCOSTTHREE / 10000))
......@@ -375,7 +416,7 @@ const getA = () => {
const setA = (arrY, arr1, arr2, arr3) => {
console.log(arrY)
console.log(arr1, arr2)
chartA = echarts.init(zhuRef.value)
const option = {
......@@ -481,16 +522,16 @@ const setA = (arrY, arr1, arr2, arr3) => {
},
// data: [320, 302, 301, 334, 390, 330, 320, 330, 320],
data: arr1,
itemStyle: {
color: {
type: 'linear',
x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
colorStops: [
{offset: 0, color: 'rgba(0, 162, 255, .5)'}, // 顶部颜色
{offset: 1, color: 'rgba(34, 117, 255, .5)'} // 底部颜色
],
},
},
// itemStyle: {
// color: {
// type: 'linear',
// x: 0, y: 0, x2: 1, y2: 1, // 垂直渐变
// colorStops: [
// {offset: 0, color: 'rgba(0, 162, 255, .3)'}, // 顶部颜色
// {offset: 1, color: 'rgba(34, 117, 255, .3)'} // 底部颜色
// ],
// },
// },
},
{
name: '执行金额',
......@@ -535,10 +576,13 @@ const setA = (arrY, arr1, arr2, arr3) => {
yAxis: 4, // 在Y轴150的位置画垂直线
lineStyle: {
color: 'rgba(255, 252, 40, 1)',
type: 'dashed'
type: 'dashed',
lineWidth: 2
},
label: {
formatter: ''
formatter: '90%',
position: 'end', // 可选值: 'start', 'middle', 'end'
distance: [-20, 40]
}
}
]
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!