|
@@ -7,85 +7,86 @@
|
|
<div class="dot right bottom"></div>
|
|
<div class="dot right bottom"></div>
|
|
<Row>
|
|
<Row>
|
|
<Col :span="3">
|
|
<Col :span="3">
|
|
- <div class="panel-item-gf">
|
|
|
|
- <div class="panel-item-gf-left">
|
|
|
|
- <span class="svg-icon svg-icon-write svg-icon-md">
|
|
|
|
- <SvgIcon :svgid="panelData.first.icon"></SvgIcon>
|
|
|
|
|
|
+ <div class="panel-item-gf">
|
|
|
|
+ <div class="panel-item-gf-left">
|
|
|
|
+ <span class="svg-icon svg-icon-write svg-icon-md">
|
|
|
|
+ <SvgIcon :svgid="panelData.first.icon"></SvgIcon>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="panel-item-gf-right">
|
|
|
|
+ <div class="panel-item-gf-up">{{ panelData.first.text }}</div>
|
|
|
|
+ <div class="panel-item-gf-down">{{ sourceMap[panelData.first.key] || '---' }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col :span="3" v-for="(data, index) of panelData.datas" :key="index">
|
|
|
|
+ <div class="panel-item" :class="data.color">
|
|
|
|
+ <div class="panel-item-left">
|
|
|
|
+ <div class="panel-item-li">
|
|
|
|
+ <span>{{ data.name }}</span>
|
|
|
|
+ <span class="svg-icon svg-icon-sm" :class="'svg-icon-' + data.color">
|
|
|
|
+ <SvgIcon :svgid="data.nameIcon"></SvgIcon>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
- <div class="panel-item-gf-right">
|
|
|
|
- <div class="panel-item-gf-up">{{ panelData.first.text }}</div>
|
|
|
|
- <div class="panel-item-gf-down">{{ panelData.first.num }}</div>
|
|
|
|
|
|
+ <div class="panel-item-li">
|
|
|
|
+ <span v-if="data.calcStr && sourceMap">{{calcGfStr(data.calcStr) || '---'}}</span>
|
|
|
|
+ <span v-else>{{sourceMap[data.key] || '---'}}</span>
|
|
|
|
+ <span class="svg-icon svg-icon-sm" :class="'svg-icon-' + data.color">
|
|
|
|
+ <SvgIcon :svgid="data.numIcon"></SvgIcon>
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </Col>
|
|
|
|
- <Col :span="3" v-for="(data, index) of panelData.datas" :key="index">
|
|
|
|
- <div class="panel-item" :class="data.color">
|
|
|
|
- <div class="panel-item-left">
|
|
|
|
- <div class="panel-item-li">
|
|
|
|
- <span>{{ data.name }}</span>
|
|
|
|
- <span class="svg-icon svg-icon-sm" :class="'svg-icon-' + data.color">
|
|
|
|
- <SvgIcon :svgid="data.nameIcon"></SvgIcon>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-item-li">
|
|
|
|
- <span>{{ data.num }}</span>
|
|
|
|
- <span class="svg-icon svg-icon-sm" :class="'svg-icon-' + data.color">
|
|
|
|
- <SvgIcon :svgid="data.numIcon"></SvgIcon>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="panel-item-right">
|
|
|
|
+ <div class="panel-item-ri">
|
|
|
|
+ <span>{{ data.text1 }}</span>
|
|
|
|
+ <span>{{ sourceMap[data.key1] || '---' }}</span>
|
|
</div>
|
|
</div>
|
|
- <div class="panel-item-right">
|
|
|
|
- <div class="panel-item-ri">
|
|
|
|
- <span>{{ data.text1 }}</span>
|
|
|
|
- <span>{{ data.num1 }}</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="panel-item-ri">
|
|
|
|
- <span>{{ data.text2 }}</span>
|
|
|
|
- <span>{{ data.num2 }}</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="panel-item-ri">
|
|
|
|
+ <span>{{ data.text2 }}</span>
|
|
|
|
+ <span>{{ sourceMap[data.key2] || '---' }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
</Col>
|
|
</Col>
|
|
</Row>
|
|
</Row>
|
|
</div>
|
|
</div>
|
|
<div class="panel-box">
|
|
<div class="panel-box">
|
|
- <div v-for="(table, k) of tables" :key="k">
|
|
|
|
|
|
+ <div v-for="(pItem, pIndex) in sourceMap.fjmap" :key="pIndex">
|
|
<div class="panel-title">
|
|
<div class="panel-title">
|
|
<div class="panel-title-name">
|
|
<div class="panel-title-name">
|
|
<i class="fa fa-send"></i>
|
|
<i class="fa fa-send"></i>
|
|
- <span>某某某风电场</span>
|
|
|
|
- <div class="sub-title-item" v-for="(data, index) of table.subTitleDatas" :key="index">
|
|
|
|
|
|
+ <span>{{sourceMap.fczbmap[pItem[pIndex].wpId].name}}</span>
|
|
|
|
+ <div class="sub-title-item" v-for="(data, index) of tables[0].subTitleDatas" :key="index">
|
|
<span class="sub-title">{{ data.text }}</span>
|
|
<span class="sub-title">{{ data.text }}</span>
|
|
- <span class="sub-count" :class="data.color">{{ data.num }}</span>
|
|
|
|
|
|
+ <span class="sub-count" :class="data.color">{{ sourceMap.fczbmap[pItem[pIndex].wpId][data.key] }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
<table>
|
|
<table>
|
|
<tbody>
|
|
<tbody>
|
|
- <tr v-for="(row, i) of table.groupDatas" :key="i">
|
|
|
|
- <td v-for="(col, j) of row" :key="j">
|
|
|
|
- <div class="card" :class="col.color">
|
|
|
|
- <span class="center-icon svg-icon svg-icon-md" :class="col.color == 'write' ? 'svg-icon-black' : 'svg-icon-write'">
|
|
|
|
- <SvgIcon :svgid="mapping[col.color]"></SvgIcon>
|
|
|
|
|
|
+ <tr>
|
|
|
|
+ <td v-for="(cItem, cIndex) in pItem" :key="cIndex">
|
|
|
|
+ <div class="card" :class="cItem.color">
|
|
|
|
+ <span class="center-icon svg-icon svg-icon-md" :class="cItem.color == 'write' ? 'svg-icon-black' : 'svg-icon-write'">
|
|
|
|
+ <SvgIcon :svgid="mapping[cItem.color]"></SvgIcon>
|
|
</span>
|
|
</span>
|
|
<div class="card-panel">
|
|
<div class="card-panel">
|
|
<div class="card-left">
|
|
<div class="card-left">
|
|
- <div class="tag">{{ col.tag }}</div>
|
|
|
|
|
|
+ <div class="tag">{{ cItem.wtnum }}</div>
|
|
<div class="num">
|
|
<div class="num">
|
|
<i class="fa fa-user"></i>
|
|
<i class="fa fa-user"></i>
|
|
- <span>{{ col.num1 }}</span>
|
|
|
|
|
|
+ <span>{{ cItem.fdl }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-right">
|
|
<div class="card-right">
|
|
<div class="num">
|
|
<div class="num">
|
|
<i class="fa fa-user"></i>
|
|
<i class="fa fa-user"></i>
|
|
- <span>{{ col.num2 }}</span>
|
|
|
|
|
|
+ <span>{{ cItem.gl }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="num">
|
|
<div class="num">
|
|
<i class="fa fa-user"></i>
|
|
<i class="fa fa-user"></i>
|
|
- <span>{{ col.num3 }}</span>
|
|
|
|
|
|
+ <span>{{ cItem.fs }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -105,6 +106,10 @@ import Row from "@/components/coms/grid/row.vue";
|
|
import Col from "@/components/coms/grid/col.vue";
|
|
import Col from "@/components/coms/grid/col.vue";
|
|
import SvgIcon from "@com/coms/icon/svg-icon.vue";
|
|
import SvgIcon from "@com/coms/icon/svg-icon.vue";
|
|
import util from "@/helper/util.js";
|
|
import util from "@/helper/util.js";
|
|
|
|
+
|
|
|
|
+import { datainit, webtest } from "@tools/websocket.js";
|
|
|
|
+import store from "@store/index.js";
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
// 名称
|
|
// 名称
|
|
name: "LightMatrix3",
|
|
name: "LightMatrix3",
|
|
@@ -115,8 +120,11 @@ export default {
|
|
SvgIcon,
|
|
SvgIcon,
|
|
},
|
|
},
|
|
// 数据
|
|
// 数据
|
|
- data() {
|
|
|
|
|
|
+ data () {
|
|
return {
|
|
return {
|
|
|
|
+ loadingFlg: false, // 遮罩开关
|
|
|
|
+ websocketServe: null, // websocket 服务实例
|
|
|
|
+ sourceMap: {}, // 核心数据
|
|
mapping: {
|
|
mapping: {
|
|
green: "svg-standby",
|
|
green: "svg-standby",
|
|
blue: "svg-normal-power",
|
|
blue: "svg-normal-power",
|
|
@@ -129,87 +137,87 @@ export default {
|
|
panelData: {
|
|
panelData: {
|
|
first: {
|
|
first: {
|
|
icon: "svg-photovoltaic",
|
|
icon: "svg-photovoltaic",
|
|
- text: "接入光伏",
|
|
|
|
- num: 256,
|
|
|
|
|
|
+ text: "接入风场",
|
|
|
|
+ key: "fcjrnum",
|
|
},
|
|
},
|
|
datas: [
|
|
datas: [
|
|
{
|
|
{
|
|
color: "green",
|
|
color: "green",
|
|
name: "待机",
|
|
name: "待机",
|
|
nameIcon: "svg-standby",
|
|
nameIcon: "svg-standby",
|
|
- num: 50,
|
|
|
|
|
|
+ calcStr: ["fcdjnum", "fcsdtjnum"],
|
|
numIcon: "svg-manual",
|
|
numIcon: "svg-manual",
|
|
text1: "待风",
|
|
text1: "待风",
|
|
- num1: 30,
|
|
|
|
|
|
+ key1: "fcdjnum",
|
|
text2: "手动停机",
|
|
text2: "手动停机",
|
|
- num2: 30,
|
|
|
|
|
|
+ key2: "fcsdtjnum",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
color: "blue",
|
|
color: "blue",
|
|
name: "运行",
|
|
name: "运行",
|
|
nameIcon: "svg-normal-power",
|
|
nameIcon: "svg-normal-power",
|
|
- num: 50,
|
|
|
|
|
|
+ calcStr: ["fczcfdnum", "fcqxjclnum"],
|
|
numIcon: "svg-drop-output",
|
|
numIcon: "svg-drop-output",
|
|
text1: "正常发电",
|
|
text1: "正常发电",
|
|
- num1: 30,
|
|
|
|
- text2: "降出力",
|
|
|
|
- num2: 30,
|
|
|
|
|
|
+ key1: "fczcfdnum",
|
|
|
|
+ text2: "降出力运行",
|
|
|
|
+ key2: "fcqxjclnum",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
color: "purple",
|
|
color: "purple",
|
|
name: "限电",
|
|
name: "限电",
|
|
nameIcon: "svg-limit-power",
|
|
nameIcon: "svg-limit-power",
|
|
- num: 50,
|
|
|
|
|
|
+ calcStr: ["fcxdjclnum", "fcxdtjnum"],
|
|
numIcon: "svg-downtime",
|
|
numIcon: "svg-downtime",
|
|
- text1: "降出力",
|
|
|
|
- num1: 30,
|
|
|
|
|
|
+ text1: "限电降出力",
|
|
|
|
+ key1: "fcxdjclnum",
|
|
text2: "停机",
|
|
text2: "停机",
|
|
- num2: 30,
|
|
|
|
|
|
+ key2: "fcxdtjnum",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
color: "red",
|
|
color: "red",
|
|
name: "故障",
|
|
name: "故障",
|
|
nameIcon: "svg-gz-downtime",
|
|
nameIcon: "svg-gz-downtime",
|
|
- num: 50,
|
|
|
|
|
|
+ calcStr: ["fcgztjnum", "fccnsltjnum"],
|
|
numIcon: "svg-field-involved",
|
|
numIcon: "svg-field-involved",
|
|
text1: "故障停机",
|
|
text1: "故障停机",
|
|
- num1: 30,
|
|
|
|
|
|
+ key1: "fcgztjnum",
|
|
text2: "场内受累",
|
|
text2: "场内受累",
|
|
- num2: 30,
|
|
|
|
|
|
+ key2: "fccnsltjnum",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
color: "orange",
|
|
color: "orange",
|
|
- name: "检测",
|
|
|
|
|
|
+ name: "检休",
|
|
nameIcon: "svg-jx-downtime",
|
|
nameIcon: "svg-jx-downtime",
|
|
- num: 50,
|
|
|
|
|
|
+ calcStr: ["fcjcnum", "fccnsljxnum"],
|
|
numIcon: "svg-field-involved",
|
|
numIcon: "svg-field-involved",
|
|
text1: "检修停机",
|
|
text1: "检修停机",
|
|
- num1: 30,
|
|
|
|
|
|
+ key1: "fcjxtjnum",
|
|
text2: "产内受累",
|
|
text2: "产内受累",
|
|
- num2: 30,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- color: "gray",
|
|
|
|
- name: "离线",
|
|
|
|
- nameIcon: "svg-offline",
|
|
|
|
- num: 50,
|
|
|
|
- numIcon: "svg-unknown",
|
|
|
|
- text1: "离线",
|
|
|
|
- num1: 30,
|
|
|
|
- text2: "未知",
|
|
|
|
- num2: 30,
|
|
|
|
|
|
+ key2: "fccnsljxnum",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
color: "write",
|
|
color: "write",
|
|
name: "受累",
|
|
name: "受累",
|
|
|
|
+ calcStr: ["fcdwslnum", "fchjslnum"],
|
|
nameIcon: "svg-intranet-involvement",
|
|
nameIcon: "svg-intranet-involvement",
|
|
- num: 50,
|
|
|
|
numIcon: "svg-environment",
|
|
numIcon: "svg-environment",
|
|
text1: "电网",
|
|
text1: "电网",
|
|
- num1: 30,
|
|
|
|
|
|
+ key1: "fcdwslnum",
|
|
text2: "环境",
|
|
text2: "环境",
|
|
- num2: 30,
|
|
|
|
|
|
+ key2: "fchjslnum",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ color: "gray",
|
|
|
|
+ name: "离线",
|
|
|
|
+ nameIcon: "svg-offline",
|
|
|
|
+ key: "fclxnum",
|
|
|
|
+ numIcon: "svg-unknown",
|
|
|
|
+ text1: "离线",
|
|
|
|
+ key1: "fclxnum",
|
|
|
|
+ text2: "未知",
|
|
|
|
+ key2: "fcwznum",
|
|
|
|
+ }
|
|
],
|
|
],
|
|
},
|
|
},
|
|
tables: [
|
|
tables: [
|
|
@@ -218,78 +226,78 @@ export default {
|
|
subTitleDatas: [
|
|
subTitleDatas: [
|
|
{
|
|
{
|
|
text: "接入台数",
|
|
text: "接入台数",
|
|
- num: 256,
|
|
|
|
color: "write",
|
|
color: "write",
|
|
|
|
+ key: "jrts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "待机台数",
|
|
text: "待机台数",
|
|
- num: 256,
|
|
|
|
color: "green",
|
|
color: "green",
|
|
|
|
+ key: "djts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "并网台数",
|
|
text: "并网台数",
|
|
- num: 256,
|
|
|
|
color: "blue",
|
|
color: "blue",
|
|
|
|
+ key: "yxts",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "限电台数",
|
|
text: "限电台数",
|
|
- num: 256,
|
|
|
|
color: "purple",
|
|
color: "purple",
|
|
|
|
+ key: "xdts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "故障台数",
|
|
text: "故障台数",
|
|
- num: 256,
|
|
|
|
color: "red",
|
|
color: "red",
|
|
|
|
+ key: "gzts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "检修台数",
|
|
text: "检修台数",
|
|
- num: 256,
|
|
|
|
color: "orange",
|
|
color: "orange",
|
|
|
|
+ key: "whts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "受累台数",
|
|
text: "受累台数",
|
|
- num: 256,
|
|
|
|
color: "write",
|
|
color: "write",
|
|
|
|
+ key: "slts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "离线台数",
|
|
text: "离线台数",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "lxts"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "风速",
|
|
text: "风速",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "ssfs"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "预测功率",
|
|
text: "预测功率",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "ycgl"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "保证功率",
|
|
text: "保证功率",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "bzgl"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "应发功率",
|
|
text: "应发功率",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "yfgl"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "实际功率",
|
|
text: "实际功率",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "sjgl"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "AGC指令",
|
|
text: "AGC指令",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "agcygsd"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "出线功率",
|
|
text: "出线功率",
|
|
- num: 256,
|
|
|
|
color: "gray",
|
|
color: "gray",
|
|
|
|
+ key: "agccxyg"
|
|
},
|
|
},
|
|
],
|
|
],
|
|
datas: [
|
|
datas: [
|
|
@@ -308,7 +316,38 @@ export default {
|
|
},
|
|
},
|
|
// 函数
|
|
// 函数
|
|
methods: {
|
|
methods: {
|
|
- createGroupDatas: function(table) {
|
|
|
|
|
|
+ // 根据风机状态码返回对应 class
|
|
|
|
+ getColor (fjzt) {
|
|
|
|
+ switch (fjzt) {
|
|
|
|
+ case 0:
|
|
|
|
+ return 'green';
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ return 'blue';
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ return 'red';
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ return 'gray';
|
|
|
|
+ break;
|
|
|
|
+ case 4:
|
|
|
|
+ return 'orange';
|
|
|
|
+ break;
|
|
|
|
+ case 5:
|
|
|
|
+ return 'purple';
|
|
|
|
+ break;
|
|
|
|
+ case 6:
|
|
|
|
+ return 'write';
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ calcGfStr (calcStr) {
|
|
|
|
+ return (parseInt(this.sourceMap[calcStr[0]]) + parseInt(this.sourceMap[calcStr[1]])) + "";
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ createGroupDatas (table) {
|
|
table.groupDatas = [];
|
|
table.groupDatas = [];
|
|
let tempDatas = [];
|
|
let tempDatas = [];
|
|
table.datas.forEach((data, index) => {
|
|
table.datas.forEach((data, index) => {
|
|
@@ -326,11 +365,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- // 生命周期钩子
|
|
|
|
- beforeCreate() {
|
|
|
|
- // 创建前
|
|
|
|
- },
|
|
|
|
- created() {
|
|
|
|
|
|
+
|
|
|
|
+ created () {
|
|
// 创建后
|
|
// 创建后
|
|
let tempData = [];
|
|
let tempData = [];
|
|
for (let i = 0; i < 45; i++) {
|
|
for (let i = 0; i < 45; i++) {
|
|
@@ -360,18 +396,50 @@ export default {
|
|
this.tables.push(util.copy(this.tables[0]));
|
|
this.tables.push(util.copy(this.tables[0]));
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- beforeMount() {
|
|
|
|
- // 渲染前
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
|
|
+
|
|
|
|
+ mounted () {
|
|
// 渲染后
|
|
// 渲染后
|
|
|
|
+ let that = this;
|
|
|
|
+ that.loadingFlg = true;
|
|
|
|
+ that.BASE.showLoading();
|
|
|
|
+ that.$nextTick(() => {
|
|
|
|
+ that.websocketServe && that.websocketServe.disconnect();
|
|
|
|
+ that.API.requestData({
|
|
|
|
+ method: "POST",
|
|
|
|
+ subUrl: "admin/websocketdisconnect",
|
|
|
|
+ success () {
|
|
|
|
+ that.websocketServe = datainit("/topic/matrixdetialpushtask");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
},
|
|
},
|
|
- beforeUpdate() {
|
|
|
|
- // 数据更新前
|
|
|
|
- },
|
|
|
|
- updated() {
|
|
|
|
- // 数据更新后
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
|
|
+ watch: {
|
|
|
|
+ // 监听 websocket 回调并包装数据用于展示
|
|
|
|
+ '$store.state.windturbineMap': function (res) {
|
|
|
|
+ this.loadingFlg && this.BASE.closeLoading();
|
|
|
|
+ this.loadingFlg = false;
|
|
|
|
+ if (res) {
|
|
|
|
+ let sourceMap = JSON.parse(res);
|
|
|
|
+ for (let key in sourceMap) {
|
|
|
|
+ if (key !== 'fczbmap' && key !== 'fjmap') {
|
|
|
|
+ sourceMap[key] += '';
|
|
|
|
+ } else if (key === 'fjmap') {
|
|
|
|
+ sourceMap[key].forEach(pItem => {
|
|
|
|
+ pItem.forEach(cItem => {
|
|
|
|
+ cItem.color = this.getColor(cItem.fjzt);
|
|
|
|
+ cItem.isShow = true;
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.sourceMap = sourceMap;
|
|
|
|
+ } else {
|
|
|
|
+ this.sourceMap = {};
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -660,7 +728,7 @@ export default {
|
|
|
|
|
|
.sub-count {
|
|
.sub-count {
|
|
font-size: 1.296vh;
|
|
font-size: 1.296vh;
|
|
- font-family: "Bicubik";
|
|
|
|
|
|
+ font-family: 'Bicubik';
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
|
|
|
&.write {
|
|
&.write {
|