<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { Alert } from "element-ui";
import { queryallanswer } from "./api/answer";
export default {
  name: "App",
  data() {
    return {
      grade: 0,
    };
  },
  created() {
    this.queryallanswer();
  },
  methods: {
    //请求正确答案
    // async queryallanswer() {
    //   let { data } = await queryallanswer();
    //   let arr = [];
    //   arr = data.data;
    //   arr.forEach((item) => {
    //     item.answer = JSON.parse(item.answer);
    //   });
    //   console.log(arr);
    //   let obj = {
    //     cjdpz_beilv: "2",
    //     cjdpz_cjsjlx: "uint16",
    //     cjdpz_dxsx: "只读131111",
    //     cjdpz_jcqdz: "8195",
    //     cjdpz_mc: "产量",
    //     cjdpz_sjq: "4X (Holding Register)",
    //     cjdpz_tagid: "MachinePamHID910",
    //     cjdpz_zjx: "Null",
    //     ippz_dns_by: "114.114.114.114",
    //     ippz_dns_sx: "8.8.8.8",
    //     ippz_ip: "192.168.32.3",
    //     ippz_mac: "3C:2D:50:20:30:3D",
    //     ippz_mrwg: "192.168.32.1",
    //     ippz_wangkou: "ETH1",
    //     ippz_zwym: "255.255.255.192",
    //     mqtt_cjd_sbmc: "有线区精雕1",
    //     mqtt_cjd_tagid: "MachinePamHID910",
    //     mqtt_ip: "124.70.210.118",
    //     mqtt_port: "1883",
    //     mqtt_qiyong: "1",
    //     mqtt_qos: "qos1",
    //     mqtt_retained: "0",
    //     mqtt_scms: "周期上传",
    //     mqtt_sczq: "5",
    //     mqtt_sjgl: "采集成功",
    //     mqtt_sssjfbzt: "dbzn/gateway/iotlite/2000808010",
    //     mqtt_wgsn: "2000808010",
    //     sbpz_jdzxz: "1",
    //     sbpz_jysb: "0",
    //     sbpz_mac: "3C:2D:50:20:30:3D",
    //     sbpz_sbid: "有线区加工设备1",
    //     sbpz_sbmc: "有线区精雕1",
    //     tdpz_050F: "auto",
    //     tdpz_0610: "auto",
    //     tdpz_cfcs: "3",
    //     tdpz_cjsylxdz: "1",
    //     tdpz_cssj: "500",
    //     tdpz_dxzkb: "1:1",
    //     tdpz_ip: "192.168.32.2",
    //     tdpz_jgsj: "500",
    //     tdpz_lxsj: "0",
    //     tdpz_port: "502",
    //     tdpz_qdmc: "ModbusTCPClient",
    //     tdpz_td: "网口",
    //     tdpz_tdmc: "有线区Channel1",
    //     tdpz_watchtime: "1",
    //     wgpz_wgid: "LAN-BOX1",
    //     wgpz_wglx: "MODBUS网关",
    //     wgpz_wgmc: "有线区网关1",
    //   };
    //   let newArr = [
    //     {
    //       cskey: "MachinePamHID917",
    //       csname: "主轴转速",
    //       pcz: "100",
    //       sdz: "2000",
    //       sfbjbz: "是",
    //       sfyxbz: "是",
    //       sswg: "lan-box2",
    //       xsws: "0",
    //     },
    //     {
    //       cskey: "MachinePamHID910",
    //       csname: "产量",
    //       pcz: "5",
    //       sdz: "20",
    //       sfbjbz: "是",
    //       sfyxbz: "是",
    //       sswg: "lan-box1",
    //       xsws: "0",
    //     },
    //     {
    //       cskey: "MachinePamHID909",
    //       csname: "急停状态",
    //       pcz: "0",
    //       sdz: "1",
    //       sfbjbz: "是",
    //       sfyxbz: "是",
    //       sswg: "wlan-box1",
    //       xsws: "0",
    //     },
    //     {
    //       cskey: "MachinePamHID928",
    //       csname: "切削速度",
    //       pcz: "50",
    //       sdz: "500",
    //       sfbjbz: "是",
    //       sfyxbz: "是",
    //       sswg: "wlan-box2",
    //       xsws: "0",
    //     },
    //   ];
    //   // console.log(this.getAllGrades(arr[0].answer, obj, arr[0].r1));
    //   console.log(this.getAllGrades(newArr, newArr, arr[9].r1));
    //   // this.getAllGrades(arr[9].answer, newArr, arr[9].r1);
    // },
    //obj1:答案对象   obj：用户对象   r1 模块分数
    // getAllGrades(obj1, obj2, r1) {
    //   var arr = [];
    //   let grade = 0;
    //   if (!Array.isArray(obj1)) {
    //     const keys = Object.keys(obj1);
    //     for (let key of keys) {
    //       if (obj1[key] !== obj2[key]) {
    //         arr.push({
    //           [key]: {
    //             answer: obj1[key],
    //             user: obj2[key],
    //           },
    //         });
    //       }
    //     }
    //     if (arr.length > 0) {
    //       grade = 0;
    //     } else {
    //       grade = r1;
    //     }
    //   } else {
    //     if (obj1.length !== obj2.length) {
    //       return false;
    //     }
    //     let flagArr = [];
    //     for (let i = 0; i < obj1.length; i++) {
    //       for (let j = 0; j < obj2.length; j++) {
    //         let flag = this.isArrEqual(
    //           Object.values(obj1[i]),
    //           Object.values(obj2[j])
    //         );
    //         flagArr.push(flag);
    //       }
    //     }
    //     let counter = 0;
    //     let target = true;
    //     for (let a of flagArr) {
    //       if (a == target) {
    //         counter++;
    //       }
    //     }
    //     if (counter == obj1.length) {
    //       grade = r1;
    //       console.log(grade);
    //     } else {
    //       grade = 0;
    //     }
    //   }
    //   // 返回此模块分数以及错误的字段;
    //   return {
    //     arr,
    //     grade: Number(grade),
    //   };
    // },
    // isArrEqual(arr1, arr2) {
    //   return (
    //     arr1.length === arr2.length && arr1.every((ele) => arr2.includes(ele))
    //   );
    // },
  },
  mounted() {
    console.log(
      { "state": true, "message": "", "data": [{ "id": "10001", "mark": "DB-IotLite_yx", "topic": "DB-IotLite网关有线", "answer": "{\r\n  \"ippz_wangkou\": \"ETH1\",\r\n  \"ippz_ip\": \"192.168.32.3\",\r\n  \"ippz_zwym\": \"255.255.255.192\",\r\n  \"ippz_mrwg\": \"192.168.32.1\",\r\n  \"ippz_dns_sx\": \"8.8.8.8\",\r\n  \"ippz_dns_by\": \"114.114.114.114\",\r\n  \"ippz_mac\": \"3C:2D:50:20:30:3D\",\r\n\r\n  \"wgpz_wgmc\": \"有线区网关1\",\r\n  \"wgpz_wgid\": \"LAN-BOX1\",\r\n  \"wgpz_wglx\": \"MODBUS网关\",\r\n\r\n  \"tdpz_tdmc\": \"有线区Channel1\",\r\n  \"tdpz_td\": \"网口\",\r\n  \"tdpz_qdmc\": \"ModbusTCPClient\",\r\n  \"tdpz_ip\": \"192.168.32.2\",\r\n  \"tdpz_port\": \"502\",\r\n  \"tdpz_cssj\": \"500\",\r\n  \"tdpz_jgsj\": \"500\",\r\n  \"tdpz_lxsj\": \"0\",\r\n  \"tdpz_cfcs\": \"3\",\r\n  \"tdpz_watchtime\": \"1\",\r\n  \"tdpz_cjsylxdz\": \"1\",\r\n  \"tdpz_dxzkb\": \"1:1\",\r\n  \"tdpz_050F\": \"auto\",\r\n  \"tdpz_0610\": \"auto\",\r\n\r\n  \"sbpz_sbid\": \"有线区加工设备1\",\r\n  \"sbpz_sbmc\": \"有线区精雕1\",\r\n  \"sbpz_mac\": \"3C:2D:50:20:30:3D\",\r\n  \"sbpz_jysb\": \"0\",\r\n  \"sbpz_jdzxz\": \"1\",\r\n\r\n  \"cjdpz_tagid\": \"MachinePamHID910\",\r\n  \"cjdpz_mc\": \"产量\",\r\n  \"cjdpz_sjq\": \"4X (Holding Register)\",\r\n  \"cjdpz_jcqdz\": \"8195\",\r\n  \"cjdpz_cjsjlx\": \"uint16\",\r\n  \"cjdpz_zjx\": \"Null\",\r\n  \"cjdpz_dxsx\": \"只读\",\r\n  \"cjdpz_beilv\": \"1\",\r\n\r\n  \"mqtt_qiyong\": \"1\",\r\n  \"mqtt_ip\": \"124.70.210.118\",\r\n  \"mqtt_port\": \"1883\",\r\n  \"mqtt_wgsn\": \"2000808010\",\r\n  \"mqtt_sssjfbzt\": \"dbzn/gateway/iotlite/2000808010\",\r\n  \"mqtt_qos\": \"qos1\",\r\n  \"mqtt_retained\": \"0\",\r\n  \"mqtt_scms\": \"周期上传\",\r\n  \"mqtt_sczq\": \"5\",\r\n  \"mqtt_sjgl\": \"采集成功\",\r\n  \"mqtt_cjd_sbmc\": \"有线区精雕1\",\r\n  \"mqtt_cjd_tagid\": \"MachinePamHID910\"\r\n\r\n}", "update_time": "2023-10-31 10:20:14", "r1": "4", "r2": "", "r3": "" }, { "id": "10002", "mark": "DB-IotLite_wx", "topic": "DB-IotLite网关无线", "answer": "{\r\n  \"ippz_lwfs\": \"无线\",\r\n  \"ippz_wangkou\": \"ETH0\",\r\n\r\n  \"ippz_wifi_ssid\": \"无线区无线网\",\r\n  \"ippz_wifi_mm\": \"admin1234!\",\r\n  \"ippz_ip\": \"192.168.40.1\",\r\n  \"ippz_zwym\": \"255.255.255.192\",\r\n  \"ippz_mrwg\": \"192.168.32.1\",\r\n  \"ippz_dns_sx\": \"8.8.8.8\",\r\n  \"ippz_dns_by\": \"114.114.114.114\",\r\n  \"ippz_mac\": \"3C:2D:50:20:30:3D\",\r\n\r\n  \"wgpz_wgmc\": \"无线区网关1\",\r\n  \"wgpz_wgid\": \"WLAN-BOX1\",\r\n  \"wgpz_wglx\": \"MODBUS网关\",\r\n\r\n  \"tdpz_tdmc\": \"无线区Channel1\",\r\n  \"tdpz_td\": \"串口\",\r\n  \"tdpz_qdmc\": \"ModbusRTUClient\",\r\n  \"tdpz_chuankou\": \"com1\",\r\n  \"tdpz_btl\": \"9600\",\r\n  \"tdpz_sjw\": \"8\",\r\n  \"tdpz_tzw\": \"1\",\r\n  \"tdpz_jojy\": \"无校验（none）\",\r\n  \"tdpz_cgsj\": \"1000\",\r\n  \"tdpz_jgsj\": \"500\",\r\n  \"tdpz_lxsj\": \"0\",\r\n  \"tdpz_cfcs\": \"3\",\r\n  \"tdpz_watchtime\": \"1\",\r\n  \"tdpz_cjsylxdz\": \"1\",\r\n  \"tdpz_dxzkb\": \"1:1\",\r\n  \"tdpz_050F\": \"auto\",\r\n  \"tdpz_0610\": \"auto\",\r\n\r\n  \"sbpz_sbid\": \"无线区加工设备1\",\r\n  \"sbpz_sbmc\": \"无线区精雕1\",\r\n  \"sbpz_sbdz\": \"1\",\r\n  \"sbpz_jysb\": \"0\",\r\n  \"sbpz_jdzxz\": \"1\",\r\n\r\n  \"cjdpz_tagid\": \"MachinePamHID909\",\r\n  \"cjdpz_mc\": \"急停状态\",\r\n  \"cjdpz_sjq\": \"4X (Holding Register)\",\r\n  \"cjdpz_jcqdz\": \"8195\",\r\n  \"cjdpz_cjsjlx\": \"uint16\",\r\n  \"cjdpz_zjx\": \"Null\",\r\n  \"cjdpz_dxsx\": \"只读\",\r\n  \"cjdpz_beilv\": \"1\",\r\n\r\n  \"mqtt_qiyong\": \"1\",\r\n  \"mqtt_ip\": \"124.70.210.118\",\r\n  \"mqtt_port\": \"1883\",\r\n  \"mqtt_wgsn\": \"2000808012\",\r\n  \"mqtt_sssjfbzt\": \"dbzn/gateway/iotlite/2000808012\",\r\n  \"mqtt_qos\": \"qos1\",\r\n  \"mqtt_retained\": \"0\",\r\n  \"mqtt_scms\": \"周期上传\",\r\n  \"mqtt_sczq\": \"5\",\r\n  \"mqtt_sjgl\": \"采集成功\",\r\n  \"mqtt_cjd_sbmc\": \"无线区精雕1\",\r\n  \"mqtt_cjd_tagid\": \"MachinePamHID909\"\r\n\r\n}", "update_time": "2023-10-31 16:38:34", "r1": "3", "r2": "", "r3": "" }, { "id": "10003", "mark": "CHGYWG_yx", "topic": "斥候工业网关有线 ", "answer": "{\r\n  \"ippz_wllx\": \"静态IP\",\r\n  \"ippz_ip\": \"192.168.36.4\",\r\n  \"ippz_zwym\": \"255.255.255.192\",\r\n  \"ippz_wg\": \"192.168.32.1\",\r\n  \"ippz_dns\": \"223.5.5.5\",\r\n  \"ippz_dns_by\": \"114.114.114.114\",\r\n\r\n\r\n  \"wgpz_wgmc\": \"有线区网关2\",\r\n  \"wgpz_wgid\": \"LAN-BOX2\",\r\n\r\n  \"sbpz_sbmc\": \"有线区精雕2\",\r\n  \"sbpz_kzqxy\": \"Modbus TCP\",\r\n  \"sbpz_ip\": \"192.168.36.3\",\r\n  \"sbpz_port\": \"502\",\r\n  \"sbpz_czdz\": \"2\",\r\n  \"sbpz_lxzq\": \"10\",\r\n  \"sbpz_qyhmcj\": \"0\",\r\n  \"sbpz_qyplcj\": \"1\",\r\n  \"sbpz_zdplcjs\": \"64\",\r\n  \"sbpz_cjcgsj\": \"10000\",\r\n  \"sbpz_zqsbonchange\": \"0\",\r\n  \"sbpz_txsjjg\": \"3\",\r\n  \"sbpz_xqjcqxr\": \"05\",\r\n  \"sbpz_bcjcqxr\": \"06\",\r\n\r\n\r\n\r\n  \"cjdpz_tagid\": \"MachinePamHID917\",\r\n  \"cjdpz_mc\": \"主轴转速\",\r\n  \"cjdpz_sjq\": \"4X (Holding Register)\",\r\n  \"cjdpz_jcqdz\": \"8210\",\r\n  \"cjdpz_cjsjlx\": \"INT（16位有符号整数）\",\r\n  \"cjdpz_dxsx\": \"只读\",\r\n  \"cjdpz_scms\": \"Periodic\",\r\n\r\n\r\n  \"mqtt_ip\": \"124.70.210.118\",\r\n  \"mqtt_wgsn\": \"2000808011\",\r\n  \"mqtt_port\": \"1883\",\r\n  \"mqtt_keepalive\": \"60\",\r\n  \"mqtt_tls\": \"0\",\r\n  \"mqtt_clearsession\": \"0\",\r\n  \"mqtt_sssjfbzt\": \"dbzn/gateway/iotlite/2000808011\",\r\n  \"mqtt_qos\": \"1\",\r\n\r\n  \"mqtt_cjd_sbmc\": \"有线区精雕2\",\r\n  \"mqtt_cjd_tagid\": \"MachinePamHID917\"\r\n\r\n}", "update_time": "2023-11-01 15:33:00", "r1": "3", "r2": "", "r3": "" }, { "id": "10004", "mark": "CHGYWG_wx", "topic": "斥候工业网关无线 ", "answer": "{\r\n  \"ippz_ssid\": \"无线区无线网\",\r\n  \"ippz_rzfs\": \"WPA2-PSK\",\r\n  \"ippz_jmfs\": \"AES\",\r\n  \"ippz_mm\": \"admin1234!\",\r\n\r\n\r\n\r\n  \"wgpz_wgmc\": \"无线区网关2\",\r\n  \"wgpz_wgid\": \"WLAN-BOX2\",\r\n\r\n  \"sbpz_sbmc\": \"无线区精雕2\",\r\n  \"sbpz_kzqxy\": \"Modbus TCP\",\r\n  \"sbpz_ip\": \"192.168.42.5\",\r\n  \"sbpz_port\": \"502\",\r\n  \"sbpz_czdz\": \"2\",\r\n  \"sbpz_lxzq\": \"10\",\r\n  \"sbpz_qyhmcj\": \"0\",\r\n  \"sbpz_qyplcj\": \"1\",\r\n  \"sbpz_zdplcjs\": \"64\",\r\n  \"sbpz_cjcgsj\": \"10000\",\r\n  \"sbpz_zqsbonchange\": \"0\",\r\n  \"sbpz_txsjjg\": \"3\",\r\n  \"sbpz_xqjcqxr\": \"05\",\r\n  \"sbpz_bcjcqxr\": \"06\",\r\n\r\n\r\n\r\n  \"cjdpz_tagid\": \"MachinePamHID928\",\r\n  \"cjdpz_mc\": \"切削速度\",\r\n  \"cjdpz_sjq\": \"4X (Holding Register)\",\r\n  \"cjdpz_jcqdz\": \"8227\",\r\n  \"cjdpz_cjsjlx\": \"INT（16位有符号整数）\",\r\n  \"cjdpz_dxsx\": \"只读\",\r\n  \"cjdpz_scms\": \"Periodic\",\r\n\r\n\r\n  \"mqtt_ip\": \"124.70.210.118\",\r\n  \"mqtt_wgsn\": \"2000808013\",\r\n  \"mqtt_port\": \"1883\",\r\n  \"mqtt_keepalive\": \"60\",\r\n  \"mqtt_tls\": \"0\",\r\n  \"mqtt_clearsession\": \"0\",\r\n  \"mqtt_sssjfbzt\": \"dbzn/gateway/iotlite/2000808013\",\r\n  \"mqtt_qos\": \"1\",\r\n\r\n  \"mqtt_cjd_sbmc\": \"无线区精雕2\",\r\n  \"mqtt_cjd_tagid\": \"MachinePamHID928\"\r\n\r\n}", "update_time": "2023-11-01 15:33:03", "r1": "3", "r2": "", "r3": "" }, { "id": "10005", "mark": "CKFWQ_yx", "topic": "串口服务器有线", "answer": "{\r\n  \"ippz_ip_hqfs\": \"Static IP\",\r\n  \"ippz_dns_hqfs\": \"手动设定\",\r\n  \"ippz_ip\": \"192.168.40.5\",\r\n  \"ippz_zwym\": \"255.255.255.192\",\r\n  \"ippz_mrwg\": \"192.168.32.1\",\r\n  \"ippz_dns_zy\": \"223.5.5.5\",\r\n  \"ippz_dns_by\": \"114.114.114.114\",\r\n\r\n\r\n  \"dkpz_btl\": \"115200\",\r\n  \"dkpz_sjw\": \"8\",\r\n  \"dkpz_jyw\": \"无校验（none）\",\r\n  \"dkpz_tzw\": \"1\",\r\n  \"dkpz_lkms\": \"None\",\r\n  \"dkpz_dbcd\": \"0\",\r\n  \"dkpz_dbsj\": \"0\",\r\n  \"dkpz_tbbtl\": \"启用\",\r\n  \"dkpz_snckxtb\": \"0\"\r\n}", "update_time": "2023-11-01 15:33:05", "r1": "2", "r2": "", "r3": "" }, { "id": "10006", "mark": "CKFWQ_wx", "topic": "串口服务器无线", "answer": "{\r\n  \"ckcssz_btl\": \"9600\",\r\n  \"ckcssz_sjw\": \"8\",\r\n  \"ckcssz_jyw\": \"无校验（none）\",\r\n  \"ckcssz_tzw\": \"1\",\r\n  \"ckcssz_lk\": \"关闭\",\r\n  \"ckcssz_485\": \"开启\",\r\n  \"ckcssz_zdybtl\": \"开启\",\r\n\r\n  \"qtsz_ckzdcz\": \"关闭\",\r\n  \"qtsz_zcblx\": \"关闭\",\r\n  \"qtsz_zdyxtb\": \"关闭\",\r\n  \"qtsz_tjzffgn\": \"关闭\",\r\n\r\n\r\n\r\n  \"ytwgn_kqwk\": \"开启\",\r\n  \"ytwgn_wkgzfs\": \"LAN口\",\r\n  \"wkmssz_wkms\": \"n\",\r\n \r\n\r\n  \"wxpz_gzms\": \"STA模式\",\r\n  \"wxpz_wlmc\": \"无线区无线网\",\r\n  \"wxpz_mac\": \"3C:2D:50:20:30:1A\",\r\n  \"wxpz_jmms\": \"WPA2PSK\",\r\n  \"wxpz_jmsf\": \"AES\",\r\n  \"wxpz_mm\": \"admin1234!\"\r\n}", "update_time": "2023-11-03 13:30:00", "r1": "2", "r2": "", "r3": "" }, { "id": "10007", "mark": "GYWZ_yx", "topic": "工业网闸有线", "answer": "{\r\n  \"wlgl_nw_name\": \"有线区网闸（内网）\",\r\n  \"wlgl_nw_ip\": \"192.168.36.4\",\r\n  \"wlgl_nw_zwym\": \"255.255.255.192\",\r\n  \"wlgl_ww_name\": \"有线区网闸（外网）\",\r\n  \"wlgl_ww_ip\": \"192.168.36.11\",\r\n  \"wlgl_ww_zwym\": \"114.114.114.114\",\r\n\r\n  \"dxgl\": [\r\n    {\r\n      \"dx_name\": \"有线区交换机\",\r\n      \"iplx\": \"IPV4\",\r\n      \"ip\": \"192.168.32.3\"\r\n    },\r\n    {\r\n      \"dx_name\": \"数采服务器\",\r\n      \"iplx\": \"IPV4\",\r\n      \"ip\": \"192.168.43.7\"\r\n    }\r\n  ],\r\n  \"clgl_name\": \"有线区策略\",\r\n  \"clgl_xy\": \"Modbus(TCP)\",\r\n  \"clgl_gzms\": \"透明模式\",\r\n  \"clgl_ydx\": \"有线区交换机\",\r\n  \"clgl_ydk\": \"5200\",\r\n\r\n  \"clgl_mddx\": \"数采服务器\",\r\n  \"clgl_mddk\": \"1883\",\r\n  \"clgl_rkwg\": \"192.168.32.1\",\r\n  \"clgl_rkwk\": \"有线区网闸（内网）\",\r\n  \"clgl_rkip\": \"192.168.36.4\",\r\n  \"clgl_dldk\": \"\",\r\n  \"clgl_ckwg\": \"192.168.36.1\",\r\n  \"clgl_ckwk\": \"有线区网闸（外网）\",\r\n  \"clgl_ckip\": \"192.168.36.11\",\r\n  \"clgl_wdyml\": \"拒绝\",\r\n\r\n  \"cmdlist_ml\": \"读线圈状态\",\r\n  \"cmdlist_sbid\": \"有线区交换机命令\",\r\n  \"cmdlist_qsdz\": \"0\",\r\n  \"cmdlist_dzcd\": \"65535\",\r\n  \"cmdlist_ms\": \"有线区交换机命令，允许Modbus(TCP)协议通行\",\r\n  \"cmdlist_dz\": \"允许\"\r\n\r\n}", "update_time": "2023-11-01 15:33:09", "r1": "3", "r2": "", "r3": "" }, { "id": "10008", "mark": "GYWZ_wx", "topic": "工业网闸无线", "answer": "{\r\n  \"wlgl_nw_name\": \"无线区网闸（内网）\",\r\n  \"wlgl_nw_ip\": \"192.168.41.5\",\r\n  \"wlgl_nw_zwym\": \"255.255.255.192\",\r\n  \"wlgl_ww_name\": \"无线区网闸（外网）\",\r\n  \"wlgl_ww_ip\": \"192.168.41.11\",\r\n  \"wlgl_ww_zwym\": \"255.255.255.192\",\r\n\r\n  \"dxgl\": [\r\n    {\r\n      \"dx_name\": \"无线路由器\",\r\n      \"iplx\": \"IPV4\",\r\n      \"ip\": \"192.168.40.5\"\r\n    },\r\n    {\r\n      \"dx_name\": \"数采服务器\",\r\n      \"iplx\": \"IPV4\",\r\n      \"ip\": \"192.168.43.7\"\r\n    }\r\n  ],\r\n  \"clgl_name\": \"无线区策略\",\r\n  \"clgl_xy\": \"Modbus(TCP)\",\r\n  \"clgl_gzms\": \"透明模式\",\r\n  \"clgl_ydx\": \"有线区交换机\",\r\n  \"clgl_ydk\": \"5200\",\r\n\r\n  \"clgl_mddx\": \"数采服务器\",\r\n  \"clgl_mddk\": \"1883\",\r\n  \"clgl_rkwg\": \"192.168.41.1\",\r\n  \"clgl_rkwk\": \"无线区网闸（内网）\",\r\n  \"clgl_rkip\": \"192.168.41.5\",\r\n  \"clgl_dldk\": \"\",\r\n  \"clgl_ckwg\": \"192.168.41.1\",\r\n  \"clgl_ckwk\": \"无线区网闸（外网）\",\r\n  \"clgl_ckip\": \"192.168.41.11\",\r\n  \"clgl_wdyml\": \"拒绝\",\r\n\r\n  \"cmdlist_ml\": \"读线圈状态\",\r\n  \"cmdlist_sbid\": \"无线区路由器命令\",\r\n  \"cmdlist_qsdz\": \"0\",\r\n  \"cmdlist_dzcd\": \"65535\",\r\n  \"cmdlist_ms\": \"无线区路由器命令1，允许Modbus(TCP)协议通行\",\r\n  \"cmdlist_dz\": \"允许\"\r\n\r\n}", "update_time": "2023-11-01 15:33:12", "r1": "3", "r2": "", "r3": "" }, { "id": "10009", "mark": "YDPZYM_wgpz", "topic": "云端配置页面网关配置", "answer": " [\r\n    {\r\n      \"wglx\": \"box\",\r\n      \"wgid\": \"lan-box1\",\r\n      \"wgbh\": \"2000808010\",\r\n      \"wgmc\": \"有线区网关1\"\r\n    },\r\n    {\r\n      \"wglx\": \"box\",\r\n      \"wgid\": \"lan-box2\",\r\n      \"wgbh\": \"2000808011\",\r\n      \"wgmc\": \"有线区网关2\"\r\n    },\r\n    {\r\n      \"wglx\": \"box\",\r\n      \"wgid\": \"wlan-box1\",\r\n      \"wgbh\": \"2000808012\",\r\n      \"wgmc\": \"无线区网关1\"\r\n    },\r\n    {\r\n      \"wglx\": \"box\",\r\n      \"wgid\": \"wlan-box2\",\r\n      \"wgbh\": \"2000808013\",\r\n      \"wgmc\": \"无线区网关2\"\r\n    }\r\n  ]", "update_time": "2023-11-01 15:33:14", "r1": "2", "r2": "", "r3": "" }, { "id": "10010", "mark": "YDPZYM_wgwh", "topic": "云端配置页面网关维护", "answer": " [\r\n    {\r\n      \"sswg\": \"lan-box1\",\r\n      \"cskey\": \"MachinePamHID910\",\r\n      \"csname\": \"产量\",\r\n      \"xsws\": \"0\",\r\n      \"sfyxbz\": \"是\",\r\n      \"sfbjbz\": \"是\",\r\n      \"sdz\": \"20\",\r\n      \"pcz\": \"5\"\r\n    },\r\n    {\r\n      \"sswg\": \"lan-box2\",\r\n      \"cskey\": \"MachinePamHID917\",\r\n      \"csname\": \"主轴转速\",\r\n      \"xsws\": \"0\",\r\n      \"sfyxbz\": \"是\",\r\n      \"sfbjbz\": \"是\",\r\n      \"sdz\": \"2000\",\r\n      \"pcz\": \"100\"\r\n    },\r\n    {\r\n      \"sswg\": \"wlan-box1\",\r\n      \"cskey\": \"MachinePamHID909\",\r\n      \"csname\": \"急停状态\",\r\n      \"xsws\": \"0\",\r\n      \"sfyxbz\": \"是\",\r\n      \"sfbjbz\": \"是\",\r\n      \"sdz\": \"1\",\r\n      \"pcz\": \"0\"\r\n    },\r\n    {\r\n      \"sswg\": \"wlan-box2\",\r\n      \"cskey\": \"MachinePamHID928\",\r\n      \"csname\": \"切削速度\",\r\n      \"xsws\": \"0\",\r\n      \"sfyxbz\": \"是\",\r\n      \"sfbjbz\": \"是\",\r\n      \"sdz\": \"500\",\r\n      \"pcz\": \"50\"\r\n    }\r\n  ]", "update_time": "2023-11-03 13:30:03", "r1": "2", "r2": "", "r3": "" }] }
    )
  },
  components: {},
};
</script>

<style lang="less">
* {
  margin: 0;
  padding: 0;
}

#app {
  width: 100%;
  height: 100vh;
  /* background-color: white !important; */
}

.v-modal {
  position: static;
  background-color: transparent !important;
}

.el-dialog__header,
.el-table {
  background-image: url(./assets/image/bg.png);
  background-size: 100% 100%;
}

.el-dialog__body {
  color: #FFFFFF !important;
  background-image: url(./assets/image/bg.png);
  background-size: 100% 100%;
}

.el-dialog__footer {
  text-align: center;
  background-image: url(./assets/image/bg.png);
  background-size: 100% 100%;
}

.el-form-item label {
  color: white;
}

.el-dialog,
.el-pager li,
.tree_menu {
  color: #ffffff;
  background-image: url(./assets/image/bg.png);
  background-size: cover;
}

/* //将el-dialog__header、el-dialog__body、el-dialog__footer背景设置为透明 */
.el-dialog__header .el-dialog__title,
.el-dialog__headerbtn .el-dialog__close {
  color: #fff !important;
}

.el-dialog__header {
  color: #FFFFFF;
  background-image: url(./assets/image/bg.png);
  background-size: cover;
}

.el-dialog__body {
  color: #ffffff;
  background-image: url(./assets/image/bg.png);
  background-size: cover;
}

.el-dialog__footer {
  text-align: center;
  background-image: url(./assets/image/bg.png);
  background-size: cover;
}

.el-form-item label {
  color: white;
}

.el-button {
  width: 80px;
  height: 30px;
  line-height: 0.5 !important;
}

/* .el-tree-node__content:hover {
  background-image: url(./assets/image/bg.png);
  background-size: cover;
}
.el-tree-node.is-current>.el-tree-node__content {
  background-image: url(./assets/image/bg.png);
  background-size: cover;
}
.el-tree-node:focus>.el-tree-node__content {
  background-image: url(./assets/image/bg.png);
  background-size: cover;
} */

/* 弹窗 */
</style>
