diff --git a/.history/src/components/TreeView_20231109193416.vue b/.history/src/components/TreeView_20231109193416.vue new file mode 100644 index 0000000..487db70 --- /dev/null +++ b/.history/src/components/TreeView_20231109193416.vue @@ -0,0 +1,771 @@ + + + + + + diff --git a/src/api/user.js b/src/api/user.js index 762d6be..8890907 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -8,7 +8,7 @@ export const SaveUserAnswer = (data) => { ); }; export const GetUserAnswer = (data) => { - return axios.get( + axios.get( `/wangguan?action=querycache&mark=${data.mark}&user_id=${data.user_id}` ); }; @@ -25,6 +25,11 @@ export const SendTree = (data) => { //最新拿缓存请求接口 // export let GetUserAnswer = (data) => { // return axios.get( -// `/Handler/Config.ash?action=querycache&mark=${data.mark}&user_id=${data.user_id}` +// `/Handler/Config.ashx?action=querycache&mark=${data.mark}&user_id=${data.user_id}` // ); // }; + +//避免考生中途换电脑的解决方案 在每次拿取考试缓存数据的时候本地存储一份 +// function(mark,data) { +// sessionStorage.setItem(`${mark}`,JSON.stringify(data)) +// } diff --git a/src/components/AddPolicy.vue b/src/components/AddPolicy.vue index 8072bf4..b209435 100644 --- a/src/components/AddPolicy.vue +++ b/src/components/AddPolicy.vue @@ -379,7 +379,12 @@ size="small" >编辑 - 删除 + 删除 @@ -1027,6 +1032,31 @@ export default { }); } }, + //删除命令 + async handleDel(index, row) { + this.tableData1 = []; + let obj = JSON.parse(sessionStorage.getItem("GYWZ_yx")); + obj.cmdlist_ml = ""; + obj.cmdlist_sbid = ""; + obj.cmdlist_qsdz = ""; + obj.cmdlist_dzcd = ""; + obj.cmdlist_ms = ""; + obj.cmdlist_dz = ""; + localStorage.setItem("GYWZ_yx", JSON.stringify(obj)); + let { data } = await SaveUserAnswer({ + mark: "GYWZ_yx", + user_id: "USER202307301114011710", + mark_value: JSON.stringify(obj), + }); + if (data.state) { + this.$message({ + message: "删除成功", + type: "success", + }); + } else { + this.$message.error("删除失败"); + } + }, }, }; diff --git a/src/components/ChiClone.vue b/src/components/ChiClone.vue index 1e12fb1..26ea4ce 100644 --- a/src/components/ChiClone.vue +++ b/src/components/ChiClone.vue @@ -5,16 +5,26 @@
- +
-

标准 MQTT

+

标准 MQTT

- + @@ -24,22 +34,42 @@ - + - + . - + . - + . - + @@ -47,31 +77,62 @@ - - + + - - + + - - + +
2-60000
- - + + @@ -97,9 +158,22 @@ - - - + + + @@ -148,16 +222,24 @@ @@ -168,8 +250,14 @@
- + 保 存 @@ -179,7 +267,7 @@
- + - + - \ No newline at end of file diff --git a/src/components/ChiClonewifi.vue b/src/components/ChiClonewifi.vue index 2725014..01252fe 100644 --- a/src/components/ChiClonewifi.vue +++ b/src/components/ChiClonewifi.vue @@ -5,7 +5,12 @@
- +
@@ -14,7 +19,12 @@

标准 MQTT

- + @@ -24,22 +34,42 @@ - + - + . - + . - + . - + @@ -47,31 +77,62 @@ - - + + - - + + - - + +
2-60000
- - + + @@ -97,9 +158,22 @@ - - - + + + @@ -148,16 +222,24 @@ @@ -168,8 +250,14 @@
- + 保 存 @@ -198,6 +286,7 @@ export default { data() { return { loading: false, + user_id: "", formData: { mqtt_qiyong: true, mqtt_ip: "", @@ -469,7 +558,14 @@ export default { }, }; }, + created() { + let that = this; + window.getParameter = that.getParameter; + }, methods: { + getParameter(data) { + this.user_id = data; + }, treeNodeClick() { this.add_passage = true; }, diff --git a/src/components/ChiGate.vue b/src/components/ChiGate.vue index 428b7bc..c4ea207 100644 --- a/src/components/ChiGate.vue +++ b/src/components/ChiGate.vue @@ -9,11 +9,23 @@
- + - - + + @@ -21,7 +33,12 @@ - + @@ -31,7 +48,12 @@ - + @@ -39,8 +61,15 @@ - - + + @@ -55,12 +84,13 @@ \ No newline at end of file + diff --git a/src/components/CloneWifi.vue b/src/components/CloneWifi.vue index cf63c1f..ff286ed 100644 --- a/src/components/CloneWifi.vue +++ b/src/components/CloneWifi.vue @@ -1,104 +1,215 @@ \ No newline at end of file + diff --git a/src/components/DataAcquire.vue b/src/components/DataAcquire.vue index 3a0c18a..cc74b76 100644 --- a/src/components/DataAcquire.vue +++ b/src/components/DataAcquire.vue @@ -1,38 +1,85 @@ diff --git a/src/components/IpConfiguration.vue b/src/components/IpConfiguration.vue index 1b57b6d..e9768f2 100644 --- a/src/components/IpConfiguration.vue +++ b/src/components/IpConfiguration.vue @@ -153,11 +153,11 @@