修改
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<div class="dashboard-factory-all">
|
||||
<div id="map-container">
|
||||
<div v-if="visible" class="cdLine"></div>
|
||||
<div v-if="visible" class="zzLine"></div>
|
||||
<!-- <div v-if="visible" class="cdLine"></div> -->
|
||||
<!-- <div v-if="visible" class="zzLine"></div> -->
|
||||
<div v-if="visible" class="rcLine"></div>
|
||||
<div v-if="visible" class="rcLineTwo"></div>
|
||||
<div v-if="visible" class="hdLine"></div>
|
||||
<div v-if="visible" class="hdLineTwo"></div>
|
||||
<div v-if="visible" class="ksLine"></div>
|
||||
<div v-if="visible" class="bbLine"></div>
|
||||
<div v-if="visible" class="bbLineTwo"></div>
|
||||
<div v-if="visible" class="bbLineThree"></div>
|
||||
<div v-if="visible" class="jmsLine"></div>
|
||||
<div v-if="visible" class="jmsLineTwo"></div>
|
||||
<!-- <div v-if="visible" class="ksLine"></div> -->
|
||||
<!-- <div v-if="visible" class="bbLine"></div> -->
|
||||
<!-- <div v-if="visible" class="bbLineTwo"></div> -->
|
||||
<!-- <div v-if="visible" class="bbLineThree"></div> -->
|
||||
<!-- <div v-if="visible" class="jmsLine"></div> -->
|
||||
<!-- <div v-if="visible" class="jmsLineTwo"></div> -->
|
||||
<div class="databoard">
|
||||
<db-header class="db-header"></db-header>
|
||||
<div class="db-body">
|
||||
@@ -61,19 +61,19 @@ import StdChart from "./dashboard/charts/StdChart.vue";
|
||||
|
||||
const LOCATIONS = [
|
||||
// 佳木斯
|
||||
{ x: 67, y: 20, tx: 60, ty: 29, path: 'copilot/jmsIndex' },
|
||||
// { x: 67, y: 20, tx: 60, ty: 29, path: 'factoryData/jmsIndex' },
|
||||
// 成都
|
||||
{ x: 46, y: 56,tx:46,ty:93, path: 'copilot/cdIndex' },
|
||||
// { x: 46, y: 56, tx: 46, ty: 93, path: 'factoryData/cdIndex' },
|
||||
// 蚌埠1
|
||||
{ x: 60, y: 52, tx: 35.5, ty: 48.3, path: 'copilot/bbIndex' },
|
||||
// { x: 60, y: 52, tx: 35.5, ty: 48.3, path: 'factoryData/bbIndex' },
|
||||
// 蚌埠2
|
||||
{ x: 61, y: 53,tx:39,ty:68, path: 'copilot/ksIndex' },
|
||||
// { x: 61, y: 53, tx: 39, ty: 68, path: 'factoryData/ksIndex' },
|
||||
// 江西 瑞昌
|
||||
{ x: 60, y: 58, tx: 68, ty: 52, path: 'copilot/factory-data' },
|
||||
{ x: 60, y: 58, tx: 68, ty: 52, path: 'factoryData/factory-data' },
|
||||
// 湖南 株洲
|
||||
{ x: 56, y: 60, tx: 60, ty: 95, path: 'copilot/zzIndex' },
|
||||
// { x: 56, y: 60, tx: 60, ty: 95, path: 'factoryData/zzIndex' },
|
||||
// 邯郸
|
||||
{ x: 58, y: 45, tx: 47, ty: 34, path: 'copilot/hdIndex' },
|
||||
{ x: 58, y: 45, tx: 47, ty: 34, path: 'factoryData/hdIndex' },
|
||||
];
|
||||
|
||||
export default {
|
||||
@@ -213,39 +213,41 @@ export default {
|
||||
{ label: "标准组件产出", value: 0 }, // Math.floor(Math.random() * 1000000) },
|
||||
],
|
||||
};
|
||||
if (position === LOCATIONS[0]) {
|
||||
templateInfo.companyName = "佳木斯中建材";
|
||||
this.jmsHintPosition = position;
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest.current[3];
|
||||
templateInfo.items[2].value = this.homeStore.chipInvest.current[3];
|
||||
templateInfo.items[1].value = this.homeStore.chipOutput.current[3];
|
||||
templateInfo.items[3].value = this.homeStore.stdOutput.current[3];
|
||||
this.jmsInfo = templateInfo;
|
||||
} else if (position === LOCATIONS[1]) {
|
||||
this.cdHintPosition = position;
|
||||
templateInfo.companyName = "成都中建材";
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest?.current[4];
|
||||
templateInfo.items[2].value = this.homeStore.chipInvest.current[4];
|
||||
templateInfo.items[1].value = this.homeStore.chipOutput.current[4];
|
||||
templateInfo.items[3].value = this.homeStore.stdOutput.current[4];
|
||||
this.cdInfo = templateInfo;
|
||||
} else if (position === LOCATIONS[2]) {
|
||||
this.bbHintPosition = position;
|
||||
templateInfo.companyName = "蚌埠兴科";
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest?.current[6];
|
||||
templateInfo.items[2].value = this.homeStore.chipInvest.current[6];
|
||||
templateInfo.items[1].value = this.homeStore.chipOutput?.current[6];
|
||||
templateInfo.items[3].value = this.homeStore.stdOutput.current[6];
|
||||
this.bbInfo = templateInfo;
|
||||
} else if (position === LOCATIONS[3]) {
|
||||
this.ksHintPosition = position;
|
||||
templateInfo.companyName = "凯盛光伏";
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest?.current[5];
|
||||
templateInfo.items[2].value = this.homeStore.chipInvest.current[5];
|
||||
templateInfo.items[1].value = this.homeStore.chipOutput.current[5];
|
||||
templateInfo.items[3].value = this.homeStore.stdOutput.current[5];
|
||||
this.ksInfo = templateInfo;
|
||||
} else if (position === LOCATIONS[4]) {
|
||||
if
|
||||
// (position === LOCATIONS[0]) {
|
||||
// templateInfo.companyName = "佳木斯中建材";
|
||||
// this.jmsHintPosition = position;
|
||||
// templateInfo.items[0].value = this.homeStore.ftoInvest.current[3];
|
||||
// templateInfo.items[2].value = this.homeStore.chipInvest.current[3];
|
||||
// templateInfo.items[1].value = this.homeStore.chipOutput.current[3];
|
||||
// templateInfo.items[3].value = this.homeStore.stdOutput.current[3];
|
||||
// this.jmsInfo = templateInfo;
|
||||
// } else if (position === LOCATIONS[1]) {
|
||||
// this.cdHintPosition = position;
|
||||
// templateInfo.companyName = "成都中建材";
|
||||
// templateInfo.items[0].value = this.homeStore.ftoInvest?.current[4];
|
||||
// templateInfo.items[2].value = this.homeStore.chipInvest.current[4];
|
||||
// templateInfo.items[1].value = this.homeStore.chipOutput.current[4];
|
||||
// templateInfo.items[3].value = this.homeStore.stdOutput.current[4];
|
||||
// this.cdInfo = templateInfo;
|
||||
// } else if (position === LOCATIONS[2]) {
|
||||
// this.bbHintPosition = position;
|
||||
// templateInfo.companyName = "蚌埠兴科";
|
||||
// templateInfo.items[0].value = this.homeStore.ftoInvest?.current[6];
|
||||
// templateInfo.items[2].value = this.homeStore.chipInvest.current[6];
|
||||
// templateInfo.items[1].value = this.homeStore.chipOutput?.current[6];
|
||||
// templateInfo.items[3].value = this.homeStore.stdOutput.current[6];
|
||||
// this.bbInfo = templateInfo;
|
||||
// } else if (position === LOCATIONS[3]) {
|
||||
// this.ksHintPosition = position;
|
||||
// templateInfo.companyName = "凯盛光伏";
|
||||
// templateInfo.items[0].value = this.homeStore.ftoInvest?.current[5];
|
||||
// templateInfo.items[2].value = this.homeStore.chipInvest.current[5];
|
||||
// templateInfo.items[1].value = this.homeStore.chipOutput.current[5];
|
||||
// templateInfo.items[3].value = this.homeStore.stdOutput.current[5];
|
||||
// this.ksInfo = templateInfo;
|
||||
// }
|
||||
(position === LOCATIONS[0]) {
|
||||
this.rcHintPosition = position;
|
||||
templateInfo.companyName = "瑞昌中建材";
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest?.current[0];
|
||||
@@ -253,15 +255,15 @@ export default {
|
||||
templateInfo.items[1].value = this.homeStore.chipOutput.current[0];
|
||||
templateInfo.items[3].value = this.homeStore.stdOutput.current[0];
|
||||
this.info = templateInfo;
|
||||
} else if (position === LOCATIONS[5]) {
|
||||
this.zzHintPosition = position;
|
||||
templateInfo.companyName = "株洲中建材";
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest?.current[2];
|
||||
templateInfo.items[2].value = this.homeStore.chipInvest.current[2];
|
||||
templateInfo.items[1].value = this.homeStore.chipOutput.current[2];
|
||||
templateInfo.items[3].value = this.homeStore.stdOutput.current[2];
|
||||
this.zzInfo = templateInfo;
|
||||
} else if (position === LOCATIONS[6]) {
|
||||
// } else if (position === LOCATIONS[5]) {
|
||||
// this.zzHintPosition = position;
|
||||
// templateInfo.companyName = "株洲中建材";
|
||||
// templateInfo.items[0].value = this.homeStore.ftoInvest?.current[2];
|
||||
// templateInfo.items[2].value = this.homeStore.chipInvest.current[2];
|
||||
// templateInfo.items[1].value = this.homeStore.chipOutput.current[2];
|
||||
// templateInfo.items[3].value = this.homeStore.stdOutput.current[2];
|
||||
// this.zzInfo = templateInfo;
|
||||
} else if (position === LOCATIONS[1]) {
|
||||
this.hdHintPosition = position;
|
||||
templateInfo.companyName = "邯郸中建材";
|
||||
templateInfo.items[0].value = this.homeStore.ftoInvest?.current[1];
|
||||
|
||||
Reference in New Issue
Block a user