diff --git a/dist.zip b/dist.zip
index 1262a24..8ef03ec 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/dist.zip b/dist.zip
index 1262a24..8ef03ec 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/components/LED/LEDConfig.vue b/src/components/LED/LEDConfig.vue
index 6ae3e39..f6147a5 100644
--- a/src/components/LED/LEDConfig.vue
+++ b/src/components/LED/LEDConfig.vue
@@ -26,9 +26,9 @@
- 查询
- 新增
- 分组管理
+ 查询
+ 新增
+ 分组管理
@@ -70,10 +70,10 @@
-
+
-
+
@@ -312,6 +312,7 @@
ProjectOptions: [], //分组的数据源
Project: "", //分组ID
Site: "", //站点
+ SiteNAME: "", //站点名称
SiteOptions: [], //站点的数据源
deleteflag: false,
FenZuflag: false, //分组管理弹窗
@@ -331,7 +332,8 @@
PRDatagridDataLength: 0, //分页上显示的数据总条数
PRSize: 10, //分页上显示的每页的条数
multipleSelection: [],
- loadNoFPSiteInput: "" //模糊搜索未分配站点
+ loadNoFPSiteInput: "", //模糊搜索未分配站点
+ NoADD: true //当没有站点时 不允许新增
};
},
mounted() {
@@ -343,6 +345,10 @@
search() {},
// 获取分组信息
LoadFenZu() {
+ this.SiteOptions = [];
+ this.Site = "";
+ this.ProjectOptions = [];
+ this.Project = "";
this.$http
.post(this.nozzle.subtitlesledQuerySiteGroup)
.then(response => {
@@ -356,6 +362,7 @@
message: "无分组",
type: "warning"
});
+ this.NoADD = true;
}
})
.catch(response => {
@@ -378,7 +385,10 @@
if (response.data.data.list.length > 0) {
this.SiteOptions = response.data.data.list;
this.Site = this.SiteOptions[0].siteNo;
+ console.log();
this.getleddata();
+
+ this.NoADD = false;
} else {
this.$message({
showClose: true,
@@ -386,6 +396,7 @@
type: "warning"
});
this.list = [];
+ this.NoADD = true;
}
})
.catch(response => {
@@ -394,6 +405,7 @@
},
// 获取设备信息
getleddata() {
+ this.list = [];
let url = this.nozzle.subtitlesLedQuery;
this.$http
.post(url, {
@@ -444,17 +456,21 @@
});
},
addform(formName) {
+ this.yzaddflag = true;
+ this.selflag = false;
+
+ if (this.$refs[formName] !== undefined) {
+ this.$refs[formName].resetFields();
+ }
+
+ console.log(this.Site);
this.title = "新增";
this.ruleForm.siteNo = this.Site;
for (var i = 0; i < this.SiteOptions.length; i++) {
- if (this.Site == this.SiteOptions[0].siteNo) {
- this.ruleForm.siteName = this.SiteOptions[0].siteName;
+ if (this.Site == this.SiteOptions[i].siteNo) {
+ this.ruleForm.siteName = this.SiteOptions[i].siteName;
}
}
-
- this.yzaddflag = true;
- this.selflag = false;
- this.$refs[formName].resetFields();
},
confirm(formName) {
this.$refs[formName].validate(valid => {
@@ -467,16 +483,16 @@
}
this.$http.post(url, this.ruleForm).then(res => {
- if (res.data.code == 0) {
+ if (res.data.code == 200) {
this.$message({
- message: res.data.data,
+ message: res.data.msg,
type: "success"
});
this.yzaddflag = false;
this.getleddata();
} else {
this.$message({
- message: res.data.data,
+ message: res.data.msg,
type: "error"
});
}