diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue
index 36a1de7..84641c7 100644
--- a/src/components/ConfigManager/SiteManagement.vue
+++ b/src/components/ConfigManager/SiteManagement.vue
@@ -27,7 +27,12 @@
>
-
名称 | " +
d.graphic._graphicsLayer._singles[0].attributes
@@ -1159,13 +1161,13 @@
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
});
}
)
- .catch((err) => {
+ .catch(err => {
// handle any script or module loading errors
// console.error(err);
});
@@ -1175,17 +1177,14 @@
REFSFunctionToGis(type) {
if (!type) {
//加载黑色arcgis午夜蓝图
- this.arcgiswhiteMap.hide()
- this.arcgisMap.show()
- }
- else
- {
+ this.arcgiswhiteMap.hide();
+ this.arcgisMap.show();
+ } else {
//加载蓝色底图
this.arcgisMap.hide()
this.arcgiswhiteMap.show()
}
-
- },
+ }
},
computed: {
switchStatus: function () {
@@ -1211,16 +1210,16 @@
// 默认加载项目站点覆盖排名
this.loadQuyuPaiMing();
- this.$nextTick(function () {
+ this.$nextTick(function() {
this.timer = setInterval(this.ScrollUp, 100);
});
// 默认从本地session srotage里面读取历史搜索记录ZZJ
this.getItem();
},
- destroyed: function () {
+ destroyed: function() {
clearInterval(this.timer);
- },
+ }
};
diff --git a/src/components/newFiber/NewFiberSearch.vue b/src/components/newFiber/NewFiberSearch.vue
index 4226c58..a81dedf 100644
--- a/src/components/newFiber/NewFiberSearch.vue
+++ b/src/components/newFiber/NewFiberSearch.vue
@@ -887,7 +887,7 @@
axisPointer: {
type: "cross",
crossStyle: {
- color: "#333"
+ color: "#3398DB"
}
}
},
@@ -899,7 +899,7 @@
legend: {
data: [this.SiteYinziZn, this.SiteYinzi2Zn],
textStyle: {
- color: "#ffffff" //字体颜色
+ color: "#3398DB" //字体颜色
}
},
xAxis: [
@@ -912,12 +912,12 @@
axisLabel: {
show: true,
textStyle: {
- color: "#999" //这里用参数代替了
+ color: "#3398DB" //这里用参数代替了
}
},
axisLine: {
lineStyle: {
- color: "#333" // 颜色
+ color: "#3398DB" // 颜色
}
}
}
@@ -929,12 +929,12 @@
axisLabel: {
show: true,
textStyle: {
- color: "#999" //这里用参数代替了
+ color: "#3398DB" //这里用参数代替了
}
},
axisLine: {
lineStyle: {
- color: "#333" // 颜色
+ color: "#3398DB" // 颜色
}
}
},
@@ -944,12 +944,12 @@
axisLabel: {
show: true,
textStyle: {
- color: "#999" //这里用参数代替了
+ color: "#3398DB" //这里用参数代替了
}
},
axisLine: {
lineStyle: {
- color: "#333" // 颜色
+ color: "#3398DB" // 颜色
}
}
}
diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue
index c358964..00afbdd 100644
--- a/src/components/site/previewOfSiteStatus.vue
+++ b/src/components/site/previewOfSiteStatus.vue
@@ -339,7 +339,9 @@
effect="dark"
open-delay="300"
:enterable="false"
- :content="`${item.factorsName}${item.warnTypeDesc},${item.warnTypeDesc}值为:${item.warnValue}`"
+ :content="
+ `${item.factorsName}${item.warnTypeDesc},${item.warnTypeDesc}值为:${item.warnValue}`
+ "
placement="top"
>
@@ -405,8 +407,8 @@
offLine: 0,
offLinePercentage: 0,
total: 0,
- totalPercentage: 0,
- },
+ totalPercentage: 0
+ }
],
dynamic: 0,
ChecksplatformCode: "", //选取的平台的编号
@@ -423,7 +425,7 @@
// 实时值
EAll: 0,
EOn: 0,
- EOff: 0,
+ EOff: 0
},
Project: {
// 初始值
@@ -433,7 +435,7 @@
// 实时值
EAll: 0,
EOn: 0,
- EOff: 0,
+ EOff: 0
},
// 平台站点数量及状态统计B
// 项目站点覆盖排名A
@@ -462,8 +464,8 @@
namelist: [
{ name: "全部", platform: "", type: "", select: true },
{ name: "合同", platform: "", type: "0", select: false },
- { name: "临测", platform: "", type: "1", select: false },
- ],
+ { name: "临测", platform: "", type: "1", select: false }
+ ]
};
},
methods: {
@@ -478,14 +480,14 @@
"&pageSize=" +
999
)
- .then((response) => {
+ .then(response => {
if (response.status === 200) {
this.ProjectList = this.ProjectList.concat(response.data.data);
} else {
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
@@ -495,9 +497,9 @@
this.$http
.post(this.nozzle.getSiteNum, {
- data: { platform: this.ChecksplatformCode, type: this.platformtype },
+ data: { platform: this.ChecksplatformCode, type: this.platformtype }
})
- .then((response) => {
+ .then(response => {
if (response.status === 200) {
// 将当前数据设置成数字滚动的初始值
this.Site.SAll = this.Site.EAll;
@@ -517,14 +519,14 @@
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
// 单击显示平台站点
allpreview(index, item, event) {
// console.log(index, platform, event.target);
- this.namelist.forEach((item) => {
+ this.namelist.forEach(item => {
item.select = false;
});
this.namelist[index].select = true;
@@ -534,9 +536,9 @@
this.$http
.post(this.nozzle.getSiteNum, {
- data: { platform: this.ChecksplatformCode, type: this.platformtype },
+ data: { platform: this.ChecksplatformCode, type: this.platformtype }
})
- .then((response) => {
+ .then(response => {
if (response.status === 200) {
// 将当前数据设置成数字滚动的初始值
this.Site.SAll = this.Site.EAll;
@@ -556,7 +558,7 @@
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
@@ -564,14 +566,14 @@
loadQuyuPaiMing() {
this.$http
.post(this.nozzle.sysPlatformGetAllSiteCount)
- .then((response) => {
+ .then(response => {
if (response.data.code === 200) {
this.Region = response.data.data;
} else {
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
@@ -580,10 +582,10 @@
this.$http
.post(this.nozzle.platEquipmentGetEquipStatistics, {
data: {
- platform: this.ChecksplatformCode,
- },
+ platform: this.ChecksplatformCode
+ }
})
- .then((response) => {
+ .then(response => {
if (response.data.code === 200) {
this.loadRegionEcharts(
response.data.data.title,
@@ -596,7 +598,7 @@
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
@@ -605,10 +607,10 @@
this.$http
.post(this.nozzle.sysPlatformGetSiteStateStatistics, {
data: {
- platform: this.ChecksplatformCode,
- },
+ platform: this.ChecksplatformCode
+ }
})
- .then((response) => {
+ .then(response => {
if (response.data.code === 200) {
this.loadRegionEcharts2(
response.data.data.xdata,
@@ -621,7 +623,7 @@
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
@@ -637,10 +639,10 @@
platForm: this.ChecksplatformCode,
endTime: "",
startTime: "",
- siteName: "",
- },
+ siteName: ""
+ }
})
- .then((response) => {
+ .then(response => {
if (response.data.code === 200) {
if (response.data.data.total > 0) {
// 没有数据 显示暂无数据的提示
@@ -651,7 +653,7 @@
message(response);
}
})
- .catch((response) => {
+ .catch(response => {
message(response);
});
},
@@ -691,7 +693,7 @@
this.ProjectList[index].longitude,
this.ProjectList[index].latitude,
new esri.SpatialReference({
- wkid: 4326,
+ wkid: 4326
})
);
this.map.centerAndZoom(MapPoint, this.ProjectList[index].zoomLevel);
@@ -700,7 +702,7 @@
// 点击历史搜索的文字
HistoryClick(item) {
this.ChecksplatformCodeTest = item;
- this.ProjectList.forEach((item1) => {
+ this.ProjectList.forEach(item1 => {
if (item1["groupName"] == item) {
this.ChecksplatformCode = item1["groupNo"];
// 根据平台渲染站点数量统计及状态统计
@@ -721,7 +723,7 @@
item1.longitude,
item1.latitude,
new esri.SpatialReference({
- wkid: 4326,
+ wkid: 4326
})
);
this.map.centerAndZoom(MapPoint, item1.zoomLevel);
@@ -758,12 +760,12 @@
this.myChart.setOption({
color: ["red"],
tooltip: {
- trigger: "axis",
+ trigger: "axis"
},
legend: {
x: "center",
data: ["现有设备", "搭建设备"],
- show: false,
+ show: false
},
radar: [
{
@@ -773,17 +775,17 @@
name: {
formatter: "{value}",
textStyle: {
- color: "red",
- },
- },
- },
+ color: "red"
+ }
+ }
+ }
],
series: [
{
type: "radar",
itemStyle: { normal: { areaStyle: { type: "default" } } },
tooltip: {
- trigger: "item",
+ trigger: "item"
},
data: [
{
@@ -791,44 +793,44 @@
value: XianYouData,
areaStyle: {
normal: {
- color: "rgb(255, 217, 0)",
- },
+ color: "rgb(255, 217, 0)"
+ }
},
itemStyle: {
normal: {
color: "rgb(255, 217, 0)",
lineStyle: {
- color: "rgb(255, 217, 0)",
+ color: "rgb(255, 217, 0)"
},
areaStyle: {
- type: "default",
- },
- },
- },
+ type: "default"
+ }
+ }
+ }
},
{
name: "搭建设备",
value: DaJianData,
areaStyle: {
normal: {
- color: "rgb(0, 119, 254)", // 选择项目颜色
- },
+ color: "rgb(0, 119, 254)" // 选择项目颜色
+ }
},
itemStyle: {
normal: {
color: "rgb(0, 119, 254)",
lineStyle: {
- color: "rgb(0, 119, 254)",
+ color: "rgb(0, 119, 254)"
},
areaStyle: {
- type: "default",
- },
- },
- },
- },
- ],
- },
- ],
+ type: "default"
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
});
},
// 加载项目设备环比增长的ecahrts
@@ -843,24 +845,24 @@
"rgb(140,143,146)",
"rgb(255,214,0)",
"rgb(229,132,12)",
- "rgb(211,22,22)",
+ "rgb(211,22,22)"
],
tooltip: {
- trigger: "axis",
+ trigger: "axis"
},
legend: {
data: ["离线数量", "预警数量", "故障数量", "报警数量"],
textStyle: {
//图例文字的样式
color: "rgb(0, 119, 254)",
- fontSize: 12,
- },
+ fontSize: 12
+ }
},
grid: {
left: "3%",
right: "6%",
bottom: "3%",
- containLabel: true,
+ containLabel: true
},
xAxis: {
type: "category",
@@ -870,13 +872,13 @@
formatter: "{value}",
textStyle: {
//改变刻度字体样式
- color: "rgb(0, 119, 254)",
+ color: "rgb(0, 119, 254)"
},
- fontSize: 12, //字体大小
+ fontSize: 12 //字体大小
},
splitLine: {
- show: false,
- },
+ show: false
+ }
},
yAxis: {
type: "value",
@@ -884,13 +886,13 @@
formatter: "{value}",
textStyle: {
//改变刻度字体样式
- color: "rgb(0, 119, 254)",
+ color: "rgb(0, 119, 254)"
},
- fontSize: 12, //字体大小
+ fontSize: 12 //字体大小
},
splitLine: {
- show: false,
- },
+ show: false
+ }
},
series: [
{
@@ -898,30 +900,30 @@
type: "line",
data: V1,
smooth: true,
- symbol: "none", //取消折点圆圈
+ symbol: "none" //取消折点圆圈
},
{
name: "预警数量",
type: "line",
data: V2,
smooth: true,
- symbol: "none", //取消折点圆圈
+ symbol: "none" //取消折点圆圈
},
{
name: "故障数量",
type: "line",
data: V3,
smooth: true,
- symbol: "none", //取消折点圆圈
+ symbol: "none" //取消折点圆圈
},
{
name: "报警数量",
type: "line",
data: V4,
smooth: true,
- symbol: "none", //取消折点圆圈
- },
- ],
+ symbol: "none" //取消折点圆圈
+ }
+ ]
});
},
// 预警报警信息滚动
@@ -976,7 +978,7 @@
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
- "dojo/domReady!",
+ "dojo/domReady!"
])
.then(
([
@@ -1000,17 +1002,17 @@
Point,
webMercatorUtils,
ArcGISTiledMapServiceLayer,
- ClusterLayer,
+ ClusterLayer
]) => {
// create map with the given options at a DOM node w/ id 'mapNode'
_this.map = new Map("previewOfSiteStatusMaps", {
center: [100, 35],
zoom: 5,
logo: false,
- slider: false,
+ slider: false
});
-
- this.arcgiswhiteMap = new ArcGISTiledMapServiceLayer(
+
+ this.arcgiswhiteMap = new ArcGISTiledMapServiceLayer(
//"http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
"http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineCommunity_Mobile/MapServer"
);
@@ -1028,20 +1030,20 @@
_this.map.on("click", function(e) {
}); */
- _this.map.on("load", function () {
+ _this.map.on("load", function() {
_this.$http
.post(_this.nozzle.listStationBase, {
- data: {},
+ data: {}
})
- .then((response) => {
+ .then(response => {
if (response.data.code === 200) {
let photoInfo = {};
let wgs = new SpatialReference({
- wkid: 4326,
+ wkid: 4326
});
photoInfo.data = arrayUtils.map(
response.data.data,
- function (p) {
+ function(p) {
/* if(p.lon!=null){
} */
let latlng = new Point(
@@ -1054,12 +1056,12 @@
);
let attributes = {
stName: p.stName,
- stCode: p.stCode,
+ stCode: p.stCode
};
return {
x: webMercator.x,
y: webMercator.y,
- attributes: attributes,
+ attributes: attributes
};
}
);
@@ -1070,14 +1072,14 @@
{
fieldName: "stName",
label: "名称:",
- visible: true,
+ visible: true
},
{
fieldName: "stCode",
label: "编号:",
- visible: true,
- },
- ],
+ visible: true
+ }
+ ]
});
let clusterLayer = new ClusterLayer({
data: photoInfo.data,
@@ -1087,7 +1089,7 @@
labelOffset: 10,
resolution: _this.map.extent.getWidth() / _this.map.width,
singleColor: "#888",
- singleTemplate: popupTemplate,
+ singleTemplate: popupTemplate
});
let defaultSym = new SimpleMarkerSymbol().setSize(4);
let renderer = new ClassBreaksRenderer(
@@ -1118,7 +1120,7 @@
clusterLayer.setRenderer(renderer);
_this.map.addLayer(clusterLayer);
- clusterLayer.on("click", function (res) {
+ clusterLayer.on("click", function(res) {
if (res.graphic._graphicsLayer._singles.length == 0) {
return;
}
@@ -1128,10 +1130,10 @@
data: {
stCode:
d.graphic._graphicsLayer._singles[0].attributes
- .stCode,
- },
+ .stCode
+ }
})
- .then((resP) => {
+ .then(resP => {
let textContent =
"
|