diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index 7c61ccd..0000000
Binary files a/dist.zip and /dev/null differ
diff --git a/src/answerObj.js b/src/answerObj.js
index 8626966..b859b5f 100644
--- a/src/answerObj.js
+++ b/src/answerObj.js
@@ -1,5 +1,5 @@
export let answer = {
- kqwk: "",
- wkgzfs: "",
- wkms: "",
+ kqwk: "1",
+ wkgzfs: "2",
+ wkms: "3",
};
diff --git a/src/components/AddPolicy.vue b/src/components/AddPolicy.vue
index fcf4ea4..0d0445b 100644
--- a/src/components/AddPolicy.vue
+++ b/src/components/AddPolicy.vue
@@ -51,96 +51,46 @@
-
-
+
+
-
+
+
+ .
+
+
.
-
-
-
-
-
+
.
-
-
-
-
-
+
- .
-
-
-
-
-
-
-
- .
-
-
+
+
-
-
+
+
-
+
+
+ .
+
+
.
-
-
-
-
-
+
.
-
-
-
-
-
+
- .
-
-
-
-
-
-
-
- .
-
-
+
+
@@ -214,114 +164,69 @@
-
+
+
+
-
-
+
+
-
+
+
+ .
+
+
.
-
-
-
-
-
+
.
-
-
-
-
-
+
- .
-
-
-
-
-
-
-
- .
-
-
+
+
-
-
+
+
-
+
+
+ .
+
+
.
-
-
-
-
-
+
.
-
-
-
-
-
+
- .
-
-
-
-
-
-
-
- .
-
-
+
+
+
+
+
+
+
-
-
-
-
-
{
@@ -1119,12 +972,4 @@ export default {
height: 30px;
}
}
-
-/deep/ .el-form-item__error {
- min-width: 50px;
-}
-
-/deep/.el-col-1 {
- height: 10px !important;
-}
diff --git a/src/components/GatewayConfiguration.vue b/src/components/GatewayConfiguration.vue
index 3c4f249..82c725a 100644
--- a/src/components/GatewayConfiguration.vue
+++ b/src/components/GatewayConfiguration.vue
@@ -23,10 +23,6 @@
新建网关
删除
-
-
+
@@ -105,8 +101,6 @@
-
@@ -117,14 +111,6 @@
-
@@ -135,14 +121,6 @@
-
@@ -220,17 +198,31 @@ export default {
});
},
//删除
- handleDelete(a, b) {
+ async handleDelete(a, b) {
this.wgpz.splice(a, 1);
localStorage.setItem("wgpz", JSON.stringify(this.wgpz));
- this.SaveUserAnswer();
+ let { data } = await SaveUserAnswer({
+ mark: "YDPZYM_wgpz",
+ user_id: `${this.user_id}`,
+ // user_id: "USER202307301109254198",
+ mark_value: JSON.stringify(this.wgpz),
+ });
+ if (data.state) {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ });
+ } else {
+ this.$message.error("保存失败");
+ return;
+ }
},
//多选
handleSelectionChange(val) {
this.multipleSelection = val;
},
//多选删除
- deleteSelectedRows() {
+ async deleteSelectedRows() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "请先选择数据",
@@ -243,7 +235,21 @@ export default {
);
this.multipleSelection = [];
localStorage.setItem("wgpz", JSON.stringify(this.wgpz));
- this.SaveUserAnswer();
+ let { data } = await SaveUserAnswer({
+ mark: "YDPZYM_wgpz",
+ user_id: `${this.user_id}`,
+ // user_id: "USER202307301109254198",
+ mark_value: JSON.stringify(this.wgpz),
+ });
+ if (data.state) {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ });
+ } else {
+ this.$message.error("保存失败");
+ return;
+ }
},
//查看
chakan(a, b) {
@@ -255,6 +261,7 @@ export default {
let { data } = await GetUserAnswer({
mark: "YDPZYM_wgpz",
user_id: `${this.user_id}`,
+ // user_id: "USER202307301109254198",
});
console.log(data.data);
if (data.data && data.state) {
@@ -263,18 +270,27 @@ export default {
},
//保存数据
async SaveUserAnswer() {
+ this.wgpz.push({
+ wglx: this.ruleForm.wglx,
+ wgid: this.ruleForm.wgid,
+ wgbh: this.ruleForm.wgbh,
+ wgmc: this.ruleForm.wgmc,
+ });
let { data } = await SaveUserAnswer({
mark: "YDPZYM_wgpz",
user_id: `${this.user_id}`,
+ // user_id: "USER202307301109254198",
mark_value: JSON.stringify(this.wgpz),
});
if (data.state) {
- this.wgpz.push(this.ruleForm);
this.$message({
message: "操作成功",
type: "success",
});
- this.flag = true;
+ this.flag = false;
+ for (let key in this.ruleForm) {
+ this.ruleForm[key] = "";
+ }
} else {
this.$message.error("保存失败");
return;
diff --git a/src/components/GatewayMaintenance.vue b/src/components/GatewayMaintenance.vue
index 347f204..dfabbce 100644
--- a/src/components/GatewayMaintenance.vue
+++ b/src/components/GatewayMaintenance.vue
@@ -262,6 +262,7 @@ export default {
let { data } = await GetUserAnswer({
mark: "YDPZYM_wgwh",
user_id: `${this.user_id}`,
+ // user_id: "USER202307301109254198",
});
console.log(data);
if (data.data && data.state) {
@@ -289,17 +290,30 @@ export default {
});
},
//删除
- handleDelete(a, b) {
+ async handleDelete(a, b) {
this.tableData.splice(a, 1);
localStorage.setItem("wgwh", JSON.stringify(this.tableData));
- this.SaveUserAnswer();
+ let { data } = await SaveUserAnswer({
+ mark: "YDPZYM_wgwh",
+ user_id: this.user_id,
+ // user_id: "USER202307301109254198",
+ mark_value: JSON.stringify(this.tableData),
+ });
+ if (data.state) {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ });
+ } else {
+ this.$message.error("操作失败");
+ }
},
//多选
handleSelectionChange(val) {
this.multipleSelection = val;
},
//多选删除
- deleteSelectedRows() {
+ async deleteSelectedRows() {
if (this.multipleSelection.length == 0) {
this.$message({
message: "请先选择要删除的数据",
@@ -312,7 +326,20 @@ export default {
);
this.multipleSelection = [];
localStorage.setItem("wgwh", JSON.stringify(this.tableData));
- this.SaveUserAnswer();
+ let { data } = await SaveUserAnswer({
+ mark: "YDPZYM_wgwh",
+ user_id: this.user_id,
+ // user_id: "USER202307301109254198",
+ mark_value: JSON.stringify(this.tableData),
+ });
+ if (data.state) {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ });
+ } else {
+ this.$message.error("操作失败");
+ }
},
chakan(a, b) {
console.log(b);
@@ -327,15 +354,28 @@ export default {
}
let { data } = await SaveUserAnswer({
mark: "YDPZYM_wgwh",
- user_id: `${this.user_id}`,
+ user_id: this.user_id,
+ // user_id: "USER202307301109254198",
mark_value: JSON.stringify(this.tableData),
});
if (data.state) {
- this.tableData.push(this.ruleForm);
+ let obj = {
+ sswg: this.ruleForm.sswg,
+ csname: this.ruleForm.csname,
+ // sfyxbz: "",
+ sdz: this.ruleForm.sdz,
+ cskey: this.ruleForm.cskey,
+ xsws: this.ruleForm.xsws,
+ pcz: this.ruleForm.pcz,
+ };
+ this.tableData.push(obj);
this.$message({
message: "操作成功",
type: "success",
});
+ for (let key in this.ruleForm) {
+ this.ruleForm[key] = "";
+ }
} else {
this.$message.error(data.message);
}
diff --git a/src/components/NetworkConfiguration.vue b/src/components/NetworkConfiguration.vue
index e21a2a0..b16f7ee 100644
--- a/src/components/NetworkConfiguration.vue
+++ b/src/components/NetworkConfiguration.vue
@@ -49,13 +49,14 @@