+
@@ -27,7 +34,11 @@
:width="fieldList.length === 0 ? '' : 60"
>
- {{ scope.$index + 1 + (listInfo.query.current - 1) * listInfo.query.size }}
+ {{
+ scope.$index +
+ 1 +
+ (listInfo.query.current - 1) * listInfo.query.size
+ }}
-
+
- {{ getDataName({dataList: listTypeInfo[item.list], value: 'value', label: 'key', data: scope.row[item.value]}) || '-' }}
+ {{
+ getDataName({
+ dataList: listTypeInfo[item.list],
+ value: "value",
+ label: "key",
+ data: scope.row[item.value]
+ }) || "-"
+ }}
@@ -77,9 +99,18 @@
-
+
-
diff --git a/src/components/configure/AlarmConfiguration.vue b/src/components/configure/AlarmConfiguration.vue
index d5bcd63..6805b5e 100644
--- a/src/components/configure/AlarmConfiguration.vue
+++ b/src/components/configure/AlarmConfiguration.vue
@@ -28,7 +28,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
diff --git a/src/components/configure/AlarmLog.vue b/src/components/configure/AlarmLog.vue
index 49c494a..6c8af0b 100644
--- a/src/components/configure/AlarmLog.vue
+++ b/src/components/configure/AlarmLog.vue
@@ -42,7 +42,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
diff --git a/src/components/configure/PushRules.vue b/src/components/configure/PushRules.vue
index 92562d7..69b9b5b 100644
--- a/src/components/configure/PushRules.vue
+++ b/src/components/configure/PushRules.vue
@@ -26,8 +26,10 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.8)"
>
+
+
diff --git a/src/components/configure/RtuConfig.vue b/src/components/configure/RtuConfig.vue
index 41964ed..1f7b5f9 100644
--- a/src/components/configure/RtuConfig.vue
+++ b/src/components/configure/RtuConfig.vue
@@ -424,13 +424,17 @@
},
temStorageEcho() {
// this.activeIndex = '0'
-
+ if(localStorage.getItem(name)){
+ this.formAll = JSON.parse(localStorage.getItem(name));
+ this.$message({ message: '暂存回显成功', type: "success" });
+ } else{
+ this.$message({ message: '无暂存内容', type: "warning" });
+ }
// console.log(JSON.parse(sessionStorage.getItem(name)),111)
- this.formAll = JSON.parse(sessionStorage.getItem(name));
},
temStorage() {
try {
- sessionStorage.setItem(name, JSON.stringify(this.formAll));
+ localStorage.setItem(name, JSON.stringify(this.formAll));
this.$message({ message: `保存成功`, type: "success" });
} catch (err) {
this.$message({ message: err, type: "warning" });
@@ -880,7 +884,7 @@
width: 100%;
/* background-color: #fff; */
}
- /deep/ .switchContent {
+ .switchContent {
// color: rgb(99, 96, 96);
color: red;
/* background-color: #fff; */
@@ -888,58 +892,81 @@
// color: white !important;
padding: 2%;
- .el-form-item__content .el-input .el-input__inner {
- color: var(--white);
- }
- .el-form-item .el-form-item__label{
- color: var(--white);
- }
- .el-form-item__content i{
- font-style:normal !important;
- padding-right: 5px !important;
- }
- .el-form-item, .el-form-item-input{
- margin:11px 0 11px 0 !important;
- }
- .rowClass .subTitle {
- /* height:40px!important; */
- line-height:51px !important;
- color:aqua !important;
- /* margin-top: 11px; */
- }
- .el-col .input-switch .el-form-item-input{
- /* display: flex; */
- margin: initial !important;
- }
- .rowClass .el-col{
- height: 51px !important;
- }
- .form-switch .el-form-item__label{
- width: 180px !important;
- }
- .form-switch .el-form-item__content{
- width: 150px !important;
- margin-left: 150px !important;
- }
- .input-switch .el-form-item__content{
- margin-left: 0 !important;
- }
- .input-switch-div{
- position:absolute !important;
- left:0 !important;
- top:0 !important;
- width:1000px !important;
- display:flex !important;
- }
- .el-col .input-switch-div .el-form-item__content{
- width: 66px !important
+ /deep/ .el-form{
+ .rowClass{
+ .el-col{
+ height: 51px !important;
+ .el-form-item{
+ .el-form-item__label{
+ text-align: right !important;
+ color: var(--white);
+ }
+ .el-form-item__content{
+ .el-input .el-input__inner {
+ color: var(--white);
+ }
+ }
+ }
+ // input的单位,i图标
+ .el-form-item__content i{
+ font-style:normal !important;
+ padding-right: 5px !important;
+ }
+ // 普通input框100,select框也100
+ .el-form-item, .el-form-item-input{
+ margin:11px 0 11px 0 !important;
+ .el-form-item__content{
+ .el-select, .el-input{
+ width: 100%;
+ }
+ }
+ }
+ // 小标题
+ &.subTitle {
+ /* height:40px!important; */
+ line-height:51px !important;
+ color:aqua !important;
+ /* margin-top: 11px; */
+ }
+
+ // 普通switch框,左180,右居中
+ .el-form-item-input.form-switch .el-form-item__label{
+ width: 180px !important;
+ }
+ .el-form-item-input.form-switch .el-form-item__content{
+ // width: 100% !important;
+ text-align: center !important;
+ margin-left: 180px !important;
+ }
+ // 土地商情哪里,input content左为0,.input-switch-div定位,el-form-item__content定位66px
+ .el-form-item-input.input-switch .el-form-item__content{
+ margin-left: 0 !important;
+ }
+ .el-form-item-input.input-switch .el-form-item-input{
+ /* display: flex; */
+ margin: initial !important;
+ }
+ .input-switch-div{
+ position:absolute !important;
+ left:0 !important;
+ top:0 !important;
+ width:1000px !important;
+ display:flex !important;
+ .el-form-item__content{
+ width: 66px !important
+ }
+ }
+
+ }
+ }
}
}
// /deep/.el-menu-item{
// background-color: #fff !important;
// }
- /deep/ .el-menu{
- // background-color: var(--dialogtitle)!important;
+ /deep/ .el-menu.el-menu-demo.el-menu--horizontal{
+ border-bottom: initial !important;
+ background-color: initial !important;
.el-menu-item{
background-color: #fff !important;
}
diff --git a/config/index.js b/config/index.js
index 83d2e65..45fc349 100644
--- a/config/index.js
+++ b/config/index.js
@@ -70,7 +70,7 @@
"/IotPc": {
// 物联网平台端信息汇总
// 'target': 'http://192.168.16.115:8288', // 接口域名
- target: "http://192.168.16.100:8289", // 接口域名
+ target: "http://132.232.115.20:8289", // 接口域名
changeOrigin: true, //是否跨域
pathRewrite: {
"^/IotPc": "" //需要rewrite重写的,
diff --git a/src/assets/css/index.css b/src/assets/css/index.css
index 2a68327..a2a46b0 100644
--- a/src/assets/css/index.css
+++ b/src/assets/css/index.css
@@ -11,9 +11,6 @@
--black: rgb(0, 0, 0);
/* 原色为黑色,切换后的颜色为白色,设置边框时使用 */
- --lightgray: #c1c5cc;
- --lightblue: rgb(102, 177, 255);
-
--dialogtitle: rgb(0, 255, 255);
/* 弹框高亮标题颜色 */
@@ -78,6 +75,14 @@
--selectlist: transparent;
/* 下拉框默认背景色为透明色 变为#f4f8ff*/
+
+ --shouselect: rgb(60, 57, 57);
+ /* 首页下拉框默认背景色 变为#f4f8ff */
+
+ --elmentbgc: rgb(58, 58, 60);
+
+ --diagiobgc: #000;
+ /* 弹框默认背景色 变为206, 223, 255 */
}
.form-cascader .el-cascader-panel .el-radio {
diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue
index 99f2424..f5013a7 100644
--- a/src/components/ConfigManager/SiteManagement.vue
+++ b/src/components/ConfigManager/SiteManagement.vue
@@ -154,7 +154,7 @@
v-loading="loading"
element-loading-text="正在上传图片..."
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
:auto-upload="false"
multiple
action="#"
diff --git a/src/components/ConfigManager/project.vue b/src/components/ConfigManager/project.vue
index b4fb535..6e87663 100644
--- a/src/components/ConfigManager/project.vue
+++ b/src/components/ConfigManager/project.vue
@@ -122,6 +122,7 @@
:field-list="projectFormInfo.fieldList"
:rules="projectFormInfo.rules"
:list-type-info="listTypeInfo"
+ :limit-time="projectFormInfo.limitTime"
:label-width="projectFormInfo.labelWidth"
:need-clear-nodes="projectFormInfo.needClearNodes"
:cascader-options="projectFormInfo.cascaderOptions"
@@ -475,8 +476,11 @@
rules: {},
labelWidth: "110px",
cascaderOptions: [], //区域级联数据源
- needClearNodes: false //是否清除级联上次数据高亮
- }
+ needClearNodes: false, //是否清除级联上次数据高亮
+ limitTime: true, //是否开启选择时间区段限制
+ },
+ //保存当前选中城市信息以便获取经纬度
+ currentCity: {},
};
},
watch: {
@@ -632,6 +636,7 @@
this.dialogInfo.visible = true;
this.projectFormInfo.needClearNodes = false;
this.projectFormInfo.cascaderOptions = this.removeEmptyChild(this.allCity);
+ console.log(8888,this.removeEmptyChild(this.allCity));
for (let key in data) {
if (key in this.projectFormInfo.data) {
this.projectFormInfo.data[key] = data[key];
@@ -643,6 +648,30 @@
this.initRules();
}, 0);
break;
+ //提交数据
+ case "submit":
+ let submitType = this.dialogInfo.type;
+ let submitApi, submitParams;
+ this.getCurrentCityJwd(this.projectFormInfo.data.area,this.projectFormInfo.cascaderOptions);
+ const { lat, lon } = this.currentCity;
+ this.projectFormInfo.data.longitude = lon;
+ this.projectFormInfo.data.latitude = lat;
+ if(submitType === "update" || submitType === "create") {
+ this.projectFormInfo.rules = this.$initRules(this.projectFormInfo.fieldList);
+ this.projectFormInfo.ref.validate(valid => {
+ if (valid) {
+ this.btnLoading = true;
+ submitApi = this.nozzle.sysPlatformAddOrUpdate;
+ submitParams = {
+ data: this.projectFormInfo.data
+ };
+ this.handleAjax(submitApi, submitParams);
+ }else{
+ return false;
+ }
+ });
+ }
+ break;
//项目删除按钮
case "delete":
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
@@ -762,30 +791,6 @@
})
}).catch(() =>{})
break;
- //提交数据
- case "submit":
- let submitType = this.dialogInfo.type;
- let submitApi, submitParams;
- console.log(333,this.getCurrentCityJwd(this.projectFormInfo.data.area,this.projectFormInfo.cascaderOptions));
- let {lat, lon} = this.getCurrentCityJwd(this.projectFormInfo.data.area,this.projectFormInfo.cascaderOptions);
- this.projectFormInfo.data.lat = lat;
- this.projectFormInfo.data.lon = lon;
- if(submitType === "update" || submitType === "create") {
- this.projectFormInfo.rules = this.$initRules(this.projectFormInfo.fieldList);
- this.projectFormInfo.ref.validate(valid => {
- if (valid) {
- this.btnLoading = true;
- submitApi = this.nozzle.sysPlatformAddOrUpdate;
- submitParams = {
- data: this.projectFormInfo.data
- };
- this.handleAjax(submitApi, submitParams);
- }else{
- return false;
- }
- });
- }
- break;
//添加站点到项目
case "insert":
if (this.UnRelateSiteTableInfo.selectList.length) {
@@ -991,23 +996,15 @@
},
//遍历城市数组取得选中城市的经纬度,arr城市数组,id当前所选城市id
getCurrentCityJwd(id, arr) {
- let currentCity;
- let flag = arr.some(item => {
+ arr.forEach(item => {
if (item.id === id) {
- currentCity = item;
- console.log(1111,currentCity);
- return true;
+ this.currentCity = {...item};
}else{
if (item.children && item.children.length) {
this.getCurrentCityJwd(id, item.children);
}
}
});
- if(flag) {
- console.log(currentCity);
- return currentCity;
- }
-
}
}
};
diff --git a/src/components/DataAnalysis/StatisticalReport.vue b/src/components/DataAnalysis/StatisticalReport.vue
index 3b7b097..6cea6d3 100644
--- a/src/components/DataAnalysis/StatisticalReport.vue
+++ b/src/components/DataAnalysis/StatisticalReport.vue
@@ -158,7 +158,7 @@
lock: true,
text: "Loading",
spinner: "el-icon-loading",
- background: "rgba(0, 0, 0, 0.7)"
+ background: "rgba(255, 255, 255, 0.3)"
});
this.getData1();
}
diff --git a/src/components/Engineering/HistoricalFault.vue b/src/components/Engineering/HistoricalFault.vue
index 432342d..f78a850 100644
--- a/src/components/Engineering/HistoricalFault.vue
+++ b/src/components/Engineering/HistoricalFault.vue
@@ -51,7 +51,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
diff --git a/src/components/Engineering/MyHomework_History.vue b/src/components/Engineering/MyHomework_History.vue
index c177569..58b258f 100644
--- a/src/components/Engineering/MyHomework_History.vue
+++ b/src/components/Engineering/MyHomework_History.vue
@@ -33,7 +33,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
@@ -175,6 +175,7 @@
text-align: center;
height: 60px;
line-height: 60px;
+ color: var(--white);
}
/* 主体内容 */
#MH_HCertent {
diff --git a/src/components/Engineering/MyHomework_Now.vue b/src/components/Engineering/MyHomework_Now.vue
index 2905bba..d979e4e 100644
--- a/src/components/Engineering/MyHomework_Now.vue
+++ b/src/components/Engineering/MyHomework_Now.vue
@@ -22,7 +22,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
@@ -166,5 +166,6 @@
#YuLanImg {
width: 100%;
height: auto;
+ /* a */
}
diff --git a/src/components/Engineering/Nowfault.vue b/src/components/Engineering/Nowfault.vue
index 19d5a74..e2b4b89 100644
--- a/src/components/Engineering/Nowfault.vue
+++ b/src/components/Engineering/Nowfault.vue
@@ -21,7 +21,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
diff --git a/src/components/MessageManagement/MessageQuery.vue b/src/components/MessageManagement/MessageQuery.vue
index ea96bfb..872660b 100644
--- a/src/components/MessageManagement/MessageQuery.vue
+++ b/src/components/MessageManagement/MessageQuery.vue
@@ -79,7 +79,7 @@
v-loading="loading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
+ element-loading-background="rgba(255, 255, 255, 0.3)"
>
diff --git a/src/components/NFCloudPlatform/Attic.vue b/src/components/NFCloudPlatform/Attic.vue
index c259fa3..a55aaaf 100644
--- a/src/components/NFCloudPlatform/Attic.vue
+++ b/src/components/NFCloudPlatform/Attic.vue
@@ -66,7 +66,7 @@
提示:阀门开度尽量不要超过50
- 阀门开度值:{{waterValue}}%
+ 阀门开度值:{{ waterValue }}%
@@ -79,9 +79,9 @@