flx:修改指挥部大屏样式问题

This commit is contained in:
X_Rian 2024-06-21 18:47:03 +08:00
parent cb90879199
commit 2695f1efd0
6 changed files with 29 additions and 18 deletions

View File

@ -29,8 +29,8 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL;
// export const COMPANY: string = "as"; //鞍山项目 // export const COMPANY: string = "as"; //鞍山项目
// export const COMPANY: string = "agjt"; //鞍钢集团 // export const COMPANY: string = "agjt"; //鞍钢集团
// export const COMPANY: string = "agjtLive"; //鞍钢集团现场大屏 // export const COMPANY: string = "agjtLive"; //鞍钢集团现场大屏
// export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏 export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏
export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏 // export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏
// export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览 // export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览
// export const COMPANY: string = "zkjc"; //中科佳成项目 // export const COMPANY: string = "zkjc"; //中科佳成项目
// export const COMPANY: string = "cqna"; //重庆南岸项目 // export const COMPANY: string = "cqna"; //重庆南岸项目

View File

@ -25,10 +25,10 @@ export const staticRouter: RouteRecordRaw[] = [
path: "/large", path: "/large",
name: "大屏", name: "大屏",
// component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版 // component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版
// component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏 component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏
// component: () => import("@/views/agjtLiveScreen/indexLive.vue"), //鞍钢现场大屏 // component: () => import("@/views/agjtLiveScreen/indexLive.vue"), //鞍钢现场大屏
// component: () => import("@/views/overviewScreen/indexCommand.vue"), //总览大屏 // component: () => import("@/views/overviewScreen/indexCommand.vue"), //总览大屏
component: () => import("@/views/agjtProjectKanban/indexL.vue"), //鞍钢集团项目看板大屏 // component: () => import("@/views/agjtProjectKanban/indexL.vue"), //鞍钢集团项目看板大屏
// component: () => import("@/views/sevenLargeScreen/indexL_syhy.vue"), // 只有一级路由(盘锦、嘉兴、鄱湖美湾医疗项目需切换至该首页) // component: () => import("@/views/sevenLargeScreen/indexL_syhy.vue"), // 只有一级路由(盘锦、嘉兴、鄱湖美湾医疗项目需切换至该首页)
children: [ children: [
{ {

View File

@ -179,6 +179,7 @@ const activeIfo = reactive({
}); });
const randerInfo = reactive({ const randerInfo = reactive({
id: "radarMap2", id: "radarMap2",
fontSize: 12,
isLegend: "right", isLegend: "right",
radarCenter: ["34%", "50%"], radarCenter: ["34%", "50%"],
radius: "63%", radius: "63%",
@ -231,6 +232,7 @@ const openDialogData = async () => {
res.result.forEach((item: any, index: number) => { res.result.forEach((item: any, index: number) => {
resultList.push({ resultList.push({
id: `list${index}`, id: `list${index}`,
fontSize: 12,
radius: "70%", radius: "70%",
isLegend: "top", isLegend: "top",
radarCenter: ["50%", "60%"], radarCenter: ["50%", "60%"],

View File

@ -164,6 +164,7 @@ const store = GlobalStore();
const randerInfo = reactive({ const randerInfo = reactive({
id: "radarMap1", id: "radarMap1",
fontSize: 12,
isLegend: "right", isLegend: "right",
radarCenter: ["34%", "50%"], radarCenter: ["34%", "50%"],
radius: "65%", radius: "65%",
@ -208,12 +209,13 @@ const openDialogData = async () => {
res.result.forEach((item: any, index: number) => { res.result.forEach((item: any, index: number) => {
resultList.push({ resultList.push({
id: `list${index}`, id: `list${index}`,
radius: "70%", fontSize: 12,
radius: "60%",
isLegend: "top", isLegend: "top",
radarCenter: ["50%", "60%"], radarCenter: ["50%", "56%"],
dataList: [ dataList: [
{ {
value: [item.age, 1, item.safe, item.workerType, item.security, item.exam], value: [item.age, 1, item.security, item.workerType, item.safe, item.exam],
name: item.enterpriseName name: item.enterpriseName
// areaStyle: {} // areaStyle: {}
} }
@ -232,7 +234,7 @@ const openDialogData = async () => {
percentage: item.area percentage: item.area
}, },
workerFlag: true, workerFlag: true,
workerList: [item.age, item.total, item.safe, item.workerType, item.security, item.exam] workerList: [item.age, item.total, item.security, item.workerType, item.safe, item.exam]
}); });
}); });
} }
@ -507,17 +509,17 @@ const getWorkerRiskByProject = async (showLoading: boolean, val: number) => {
randerInfo.dataList[0].value = [ randerInfo.dataList[0].value = [
res.result.age, res.result.age,
1, 1,
res.result.safe,
res.result.workerType,
res.result.security, res.result.security,
res.result.workerType,
res.result.safe,
res.result.exam res.result.exam
]; ];
randerInfo.workerList = [ randerInfo.workerList = [
res.result.age, res.result.age,
res.result.total, res.result.total,
res.result.safe,
res.result.workerType,
res.result.security, res.result.security,
res.result.workerType,
res.result.safe,
res.result.exam res.result.exam
]; ];
randerInfo.titleInfo.percentage = res.result.area; randerInfo.titleInfo.percentage = res.result.area;

View File

@ -223,6 +223,7 @@ const openDialogData = async () => {
res.result.forEach((item: any, index: number) => { res.result.forEach((item: any, index: number) => {
resultList.push({ resultList.push({
id: `list${index}`, id: `list${index}`,
fontSize: 12,
radius: "60%", radius: "60%",
isLegend: "top", isLegend: "top",
radarCenter: ["50%", "55%"], radarCenter: ["50%", "55%"],
@ -280,9 +281,10 @@ const activeInfo = reactive({
}); });
const randerInfo = reactive({ const randerInfo = reactive({
id: "radarMap3", id: "radarMap3",
fontSize: 10,
isLegend: "right", isLegend: "right",
radarCenter: ["34%", "50%"], radarCenter: ["34%", "50%"],
radius: "55%", radius: "68%",
dataList: [ dataList: [
{ {
value: [0, 0, 0, 0], value: [0, 0, 0, 0],
@ -306,9 +308,10 @@ const randerInfo = reactive({
}); });
const randerInfo2 = reactive({ const randerInfo2 = reactive({
id: "radarMap4", id: "radarMap4",
fontSize: 10,
isLegend: "right", isLegend: "right",
radarCenter: ["34%", "50%"], radarCenter: ["34%", "50%"],
radius: "55%", radius: "70%",
dataList: [ dataList: [
{ {
value: [0, 0, 0, 0, 0, 0, 0, 0], value: [0, 0, 0, 0, 0, 0, 0, 0],

View File

@ -104,13 +104,13 @@ function radarMapEchart() {
position: "inside" position: "inside"
} }
: { top: "2%" }; : { top: "2%" };
console.log(props.randerInfo.dataList); console.log(props.randerInfo.dataList, props.randerInfo.fontSize);
let option = { let option = {
legend: { legend: {
...isLegend, ...isLegend,
textStyle: { textStyle: {
color: "#AAAAAA", color: "#AAAAAA",
fontSize: 10 fontSize: props.randerInfo.fontSize > 10 ? props.randerInfo.fontSize : 10
}, },
itemWidth: 20, itemWidth: 20,
itemHeight: 10, itemHeight: 10,
@ -134,8 +134,12 @@ function radarMapEchart() {
}, },
axisName: { axisName: {
color: "#AAAAAA", color: "#AAAAAA",
fontSize: 10 fontSize: props.randerInfo.fontSize ? props.randerInfo.fontSize : 10
}, },
name: {
fontSize: props.randerInfo.fontSize ? props.randerInfo.fontSize : 10
},
nameGap: 8,
splitArea: { splitArea: {
areaStyle: { areaStyle: {
color: ["#3F3C54", "#373551"], color: ["#3F3C54", "#373551"],
@ -146,7 +150,7 @@ function radarMapEchart() {
}, },
series: [ series: [
{ {
name: "Budget vs spending", // name: "Budget vs spending",
type: "radar", type: "radar",
data: props.randerInfo.dataList data: props.randerInfo.dataList
} }