gyhlw_dotnet/网站项目/dist/dist1125英文版/js/466.2e6a3611.js

2 lines
27 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunkproject"]=self["webpackChunkproject"]||[]).push([[466],{4466:function(t,a,e){e.d(a,{Z:function(){return _}});var l=function(){var t=this,a=t._self._c;return a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:t.dialogVisible,expression:"dialogVisible"}],staticClass:"tree_menu"},[a("el-tree",{ref:"tree",attrs:{data:t.trees,"node-key":"id",props:t.defaultProps,"default-expand-all":""},on:{"node-contextmenu":t.rightClick,"node-click":t.treeNodeClick},scopedSlots:t._u([{key:"default",fn:function({node:e,data:l}){return a("span",{staticClass:"custom-tree-node"},[1==l.editing&&t.flag?[a("el-input",{staticStyle:{width:"260px"},on:{change:t.changeInput},model:{value:t.gateway,callback:function(a){t.gateway=a},expression:"gateway"}})]:[t._v(t._s(l.label))]],2)}}])}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.menuShow,expression:"menuShow"}],staticClass:"tree_rightmenu",style:{...t.rightMenu}},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"#0078FE"},on:{select:t.selectMenuNode}},[a("el-menu-item",{staticStyle:{"font-size":"12px"},attrs:{id:"menuitem",index:"1"}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("addChannel")))])]),a("el-menu-item",{staticStyle:{"font-size":"12px"},attrs:{index:"2"}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.$t("cancel")))])])],1)],1)],1),a("div",{class:"en"===t.$i18n.locale?"pas_params":"zh pas_params"},[a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{title:t.$t("channelconfig.title"),visible:t.add_passage,width:"765px"},on:{"update:visible":function(a){t.add_passage=a}}},[a("el-form",{ref:"formData",attrs:{model:t.formData,"label-position":t.labelPosition,rules:t.rules}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.name"),"label-width":t.formLabelWidth,prop:"tdpz_tdmc"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_tdmc,callback:function(a){t.$set(t.formData,"tdpz_tdmc",a)},expression:"formData.tdpz_tdmc"}},t._l(t.options1,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.channel"),"label-width":t.formLabelWidth,prop:"tdpz_td"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_td,callback:function(a){t.$set(t.formData,"tdpz_td",a)},expression:"formData.tdpz_td"}},t._l(t.options2,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.driverName"),"label-width":t.formLabelWidth,prop:"tdpz_qdmc"}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:"",disabled:""},model:{value:t.formData.tdpz_qdmc,callback:function(a){t.$set(t.formData,"tdpz_qdmc",a)},expression:"formData.tdpz_qdmc"}}),"zh"===t.$i18n.locale?a("el-button",{staticStyle:{width:"50px",height:"30px",position:"absolute",right:"-4px",top:"4px"},on:{click:t.getDriveName}},[t._v("...")]):t._e()],1),a("el-col",{attrs:{span:6}},["en"===t.$i18n.locale?a("el-button",{staticStyle:{width:"50px",height:"30px"},on:{click:t.getDriveName}},[t._v("...")]):t._e()],1)],1)],1)],1)],1),"网口"==t.formData.tdpz_td?a("div",[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"IP地址:","label-width":t.formLabelWidth}},[a("el-row",[a("el-col",{attrs:{span:5}},[a("el-input",{staticStyle:{width:"43px",height:"30px"},model:{value:t.tdpz_ip1,callback:function(a){t.tdpz_ip1=a},expression:"tdpz_ip1"}})],1),a("el-col",{staticStyle:{color:"#fff"},attrs:{span:1}},[t._v(". ")]),a("el-col",{attrs:{span:5}},[a("el-input",{staticStyle:{width:"43px",height:"30px"},model:{value:t.tdpz_ip2,callback:function(a){t.tdpz_ip2=a},expression:"tdpz_ip2"}})],1),a("el-col",{staticStyle:{color:"#fff"},attrs:{span:1}},[t._v(".")]),a("el-col",{attrs:{span:5}},[a("el-input",{staticStyle:{width:"43px",height:"30px"},model:{value:t.tdpz_ip3,callback:function(a){t.tdpz_ip3=a},expression:"tdpz_ip3"}})],1),a("el-col",{staticStyle:{color:"#fff"},attrs:{span:1}},[t._v(".")]),a("el-col",{attrs:{span:5}},[a("el-input",{staticStyle:{width:"43px",height:"30px"},model:{value:t.tdpz_ip4,callback:function(a){t.tdpz_ip4=a},expression:"tdpz_ip4"}})],1)],1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"端口号:","label-width":t.formLabelWidth}},[a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.tdpz_port,callback:function(a){t.tdpz_port=a},expression:"tdpz_port"}})],1)],1)],1)],1):a("div",[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.serialPort"),"label-width":t.formLabelWidth,prop:"tdpz_chuankou"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_chuankou,callback:function(a){t.$set(t.formData,"tdpz_chuankou",a)},expression:"formData.tdpz_chuankou"}},t._l(t.options3,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.baudRate"),"label-width":t.formLabelWidth,prop:"tdpz_btl"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_btl,callback:function(a){t.$set(t.formData,"tdpz_btl",a)},expression:"formData.tdpz_btl"}},t._l(t.options4,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.dataBits"),"label-width":t.formLabelWidth,prop:"tdpz_sjw"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_sjw,callback:function(a){t.$set(t.formData,"tdpz_sjw",a)},expression:"formData.tdpz_sjw"}},t._l(t.options5,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.stopBit"),"label-width":t.formLabelWidth,prop:"tdpz_tzw"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_tzw,callback:function(a){t.$set(t.formData,"tdpz_tzw",a)},expression:"formData.tdpz_tzw"}},t._l(t.options6,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.parityCheck"),"label-width":t.formLabelWidth,prop:"tdpz_jojy"}},[a("el-select",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_jojy,callback:function(a){t.$set(t.formData,"tdpz_jojy",a)},expression:"formData.tdpz_jojy"}},t._l(t.options7,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.overTime"),"label-width":t.formLabelWidth,prop:"tdpz_cgsj"}},[a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_cgsj,callback:function(a){t.$set(t.formData,"tdpz_cgsj",a)},expression:"formData.tdpz_cgsj"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.intervalTime"),"label-width":t.formLabelWidth,prop:"tdpz_jgsj"}},[a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_jgsj,callback:function(a){t.$set(t.formData,"tdpz_jgsj",a)},expression:"formData.tdpz_jgsj"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.pollTime"),"label-width":t.formLabelWidth,prop:"tdpz_lxsj"}},[a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_lxsj,callback:function(a){t.$set(t.formData,"tdpz_lxsj",a)},expression:"formData.tdpz_lxsj"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.retryCount"),"label-width":t.formLabelWidth,prop:"tdpz_cfcs"}},[a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:""},model:{value:t.formData.tdpz_cfcs,callback:function(a){t.$set(t.formData,"tdpz_cfcs",a)},expression:"formData.tdpz_cfcs"}})],1)],1)],1)],1),a("div",{staticClass:"super_parmams"},[a("h3",[t._v(t._s(t.$t("channelconfig.title1")))]),a("div",[t.is_retract?a("i",{staticClass:"el-icon-caret-bottom"}):a("i",{staticClass:"el-icon-caret-top"}),a("el-button",{staticStyle:{border:"none",color:"rgba(16, 16, 16, 1)","font-size":"14px","text-align":"left"},attrs:{type:"text",plain:""},on:{click:t.getRetract}},[t._v(" "+t._s(t.$t("put")))])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.is_retract,expression:"is_retract"}],staticClass:"super_con"},[a("el-form",{ref:"ruleForm",attrs:{"label-position":t.labelPosition,rules:t.rules}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",[a("el-checkbox",{model:{value:t.formData.tdpz_watchtime,callback:function(a){t.$set(t.formData,"tdpz_watchtime",a)},expression:"formData.tdpz_watchtime"}},[t._v("watch time(s)")]),a("el-input",{staticStyle:{width:"200px",height:"30px"},attrs:{placeholder:"",disabled:t.isdisabled},model:{value:t.input1,callback:function(a){t.input1=a},expression:"input1"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("el-checkbox",{model:{value:t.formData.tdpz_cjsylxdz,callback:function(a){t.$set(t.formData,"tdpz_cjsylxdz",a)},expression:"formData.tdpz_cjsylxdz"}},[t._v(t._s(t.$t("channelconfig.check")))])],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:t.$t("channelconfig.reading"),"label-width":t.formLabelWidth}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-input",{staticStyle:{width:"91px",height:"30px"},model:{value:t.tdpz_dxzkb1,callback:function(a){t.tdpz_dxzkb1=a},expression:"tdpz_dxzkb1"}})],1),a("el-col",{attrs:{span:4}},[t._v(": ")]),a("el-col",{attrs:{span:10}},[a("el-input",{staticStyle:{width:"91px",height:"30px"},model:{value:t.tdpz_dxzkb2,callback:function(a){t.tdpz_dxzkb2=a},expression:"tdpz_dxzkb2"}})],1)],1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"05/0F:","label-width":t.formLabelWidth}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-radio",{attrs:{label:"auto"},model:{value:t.formData.tdpz_050F,callback:function(a){t.$set(t.formData,"tdpz_050F",a)},expression:"formData.tdpz_050F"}},[t._v("auto")])],1),a("el-col",{attrs:{span:8}},[a("el-radio",{attrs:{label:"05"},model:{value:t.formData.tdpz_050F,callback:function(a){t.$set(t.formData,"tdpz_050F",a)},expression:"formData.tdpz_050F"}},[t._v("05")])],1),a("el-col",{attrs:{span:8}},[a("el-radio",{attrs:{label:"0F"},model:{value:t.formData.tdpz_050F,callback:function(a){t.$set(t.formData,"tdpz_050F",a)},expression:"formData.tdpz_050F"}},[t._v("0F")])],1)],1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"06/10:","label-width":t.formLabelWidth}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-radio",{attrs:{label:"auto"},model:{value:t.formData.tdpz_0610,callback:function(a){t.$set(t.formData,"tdpz_0610",a)},expression:"formData.tdpz_0610"}},[t._v("auto")])],1),a("el-col",{attrs:{span:8}},[a("el-radio",{attrs:{label:"06"},model:{value:t.formData.tdpz_0610,callback:function(a){t.$set(t.formData,"tdpz_0610",a)},expression:"formData.tdpz_0610"}},[t._v("06")])],1),a("el-col",{attrs:{span:8}},[a("el-radio",{attrs:{label:"10"},model:{value:t.formData.tdpz_0610,callback:function(a){t.$set(t.formData,"tdpz_0610",a)},expression:"formData.tdpz_0610"}},[t._v("10")])],1)],1)],1)],1)],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("save")))]),a("el-button",{on:{click:function(a){t.add_passage=!1}}},[t._v(t._s(t.$t("cancel")))])],1)],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.diag_drive,expression:"diag_drive"}],staticClass:"drvieName_All"},[a("div",{staticClass:"title"},[a("p",{staticClass:"title_l"},[t._v(t._s(t.$t("channelconfig.agreementName")))]),a("i",{staticClass:"el-icon-close title_r",on:{click:function(a){t.diag_drive=!1}}})]),a("el-divider"),a("el-tree",{attrs:{data:t.datas2,props:t.defaultProps,"default-expand-all":""},on:{"node-click":t.handleDetailClick}})],1),a("div",{staticClass:"gateway"},[a("el-dialog",{attrs:{title:t.$t("dbcollectiongate.title"),visible:t.outerVisible,width:"382px"},on:{"update:visible":function(a){t.outerVisible=a}}},[a("el-form",{ref:"gateWay",staticClass:"demo-ruleForm",attrs:{model:t.formData,rules:t.rulesGate,"label-width":"zh"===t.$i18n.locale?"130px":"85px"}},[a("el-form-item",{attrs:{label:t.$t("dbcollectiongate.name"),prop:"wgpz_wgmc"}},[a("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("select")},model:{value:t.formData.wgpz_wgmc,callback:function(a){t.$set(t.formData,"wgpz_wgmc",a)},expression:"formData.wgpz_wgmc"}},t._l(t.opts1,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:t.$t("dbcollectiongate.ID"),prop:"wgpz_wgid"}},[a("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("select")},model:{value:t.formData.wgpz_wgid,callback:function(a){t.$set(t.formData,"wgpz_wgid",a)},expression:"formData.wgpz_wgid"}},t._l(t.opts2,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:t.$t("dbcollectiongate.type"),prop:"wgpz_wglx"}},[a("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("select")},model:{value:t.formData.wgpz_wglx,callback:function(a){t.$set(t.formData,"wgpz_wglx",a)},expression:"formData.wgpz_wglx"}},t._l(t.opts3,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("div",{staticClass:"dialog-footer-outer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitGate}},[t._v(t._s(t.$t("save")))]),a("el-button",{on:{click:function(a){t.outerVisible=!1}}},[t._v(t._s(t.$t("cancel")))])],1)],1)],1)])},s=[],i=(e(560),e(4806)),o=e.n(i),p=e(1876),r={name:"TestTreeView",data(){return{tdpz_port:"",tdpz_ip1:"",tdpz_ip2:"",tdpz_ip3:"",tdpz_ip4:"",user_id:"",loading:!1,flag:!1,gateway:"",nodekey:"",trees:[],formData:{ippz_wangkou:"",ippz_lwfs:"",ippz_zwym:"",ippz_mrwg:"",ippz_dns_sx:"",ippz_dns_by:"",ippz_ip:"",ippz_mac:"",ippz_wifi_ssid:"",ippz_wifi_mm:"",wgpz_wgmc:"",wgpz_wgid:"",wgpz_wglx:"",tdpz_tdmc:"",tdpz_td:"",tdpz_qdmc:"",tdpz_chuankou:"",tdpz_btl:"",tdpz_sjw:"8",tdpz_tzw:"",tdpz_jojy:"",tdpz_cgsj:"",tdpz_jgsj:"",tdpz_lxsj:"",tdpz_cfcs:"",tdpz_watchtime:!1,tdpz_cjsylxdz:!0,tdpz_dxzkb:"",tdpz_050F:"05",tdpz_0610:"auto",sbpz_sbid:"",sbpz_sbmc:"",sbpz_sbdz:"",sbpz_jysb:"",sbpz_jdzxz:"",cjdpz_tagid:"",cjdpz_mc:"",cjdpz_sjq:"",cjdpz_jcqdz:"",cjdpz_cjsjlx:"",cjdpz_zjx:"",cjdpz_dxsx:"",cjdpz_beilv:"",mqtt_qiyong:"",mqtt_ip:"",mqtt_port:"",mqtt_wgsn:"",mqtt_sssjfbzt:"",mqtt_qos:"",mqtt_scms:"",mqtt_sczq:"",mqtt_sjgl:"",mqtt_cjd_sbmc:"",mqtt_cjd_tagid:"",mqtt_retained:""},tdpz_dxzkb1:"1",tdpz_dxzkb2:"1",diag_drive:!1,options1:this.$t("channelconfig.options1"),options2:this.$t("channelconfig.options"),options3:[{value:"com1",label:"com1"},{value:"com2",label:"com2"},{value:"com3",label:"com3"},{value:"com4",label:"com4"},{value:"com5",label:"com5"},{value:"com6",label:"com6"},{value:"com7",label:"com7"},{value:"com8",label:"com8"},{value:"com9",label:"com9"},{value:"com10",label:"com10"},{value:"com11",label:"com11"},{value:"com12",label:"com12"},{value:"com13",label:"com13"},{value:"com14",label:"com14"},{value:"com15",label:"com15"},{value:"com16",label:"com16"},{value:"com17",label:"com17"},{value:"com18",label:"com18"},{value:"com19",label:"com19"},{value:"com20",label:"com20"},{value:"com21",label:"com21"},{value:"com22",label:"com22"},{value:"com23",label:"com23"},{value:"com24",label:"com24"},{value:"com25",label:"com25"},{value:"com26",label:"com26"},{value:"com27",label:"com27"},{value:"com28",label:"com28"},{value:"com29",label:"com29"},{value:"com30",label:"com30"},{value:"com31",label:"com31"},{value:"com32",label:"com32"},{value:"com33",label:"com33"},{value:"com34",label:"com34"},{value:"com35",label:"com35"},{value:"com36",label:"com36"},{value:"com37",label:"com37"},{value:"com38",label:"com38"},{value:"com39",label:"com39"},{value:"com40",label:"com40"},{value:"com41",label:"com41"},{value:"com42",label:"com42"},{value:"com43",label:"com43"},{value:"com44",label:"com44"},{value:"com45",label:"com45"},{value:"com46",label:"com46"},{value:"com47",label:"com47"},{value:"com48",label:"com48"},{value:"com49",label:"com49"},{value:"com50",label:"com50"}],options4:[{value:"1200",label:"1200"},{value:"2400",label:"2400"},{value:"4800",label:"4800"},{value:"9600",label:"9600"},{value:"115200",label:"115200"}],options5:[{value:"8",label:"8"},{value:"7",label:"7"}],options6:[{value:"1",label:"1"},{value:"2",label:"2"}],options7:[{value:"奇校验",label:"奇校验"},{value:"偶校验",label:"偶校验"},{value:"无校验none",label:"无校验none"}],isdisabled:!0,is_retract:!0,labelPosition:"left",formLabelWidth:"zh"===this.$i18n.locale?"155px":"116px",input1:10,add_passage:!1,rightMenu:"",dialogVisible:!0,menuShow:!1,datas2:this.$t("channelconfig.agreement"),defaultProps:{children:"children",label:"label"},rules:{tdpz_tdmc:[{required:!0,message:this.$t("channelconfig.rules.tdpz_tdmc"),trigger:"change"}],tdpz_td:[{required:!0,message:this.$t("channelconfig.rules.tdpz_td"),trigger:"change"}],tdpz_qdmc:[{required:!0,message:this.$t("channelconfig.rules.tdpz_qdmc"),trigger:"change"}],tdpz_chuankou:[{required:!0,message:this.$t("channelconfig.rules.tdpz_chuankou"),trigger:"change"}],tdpz_btl:[{required:!0,message:this.$t("channelconfig.rules.tdpz_btl"),trigger:"change"}],tdpz_tzw:[{required:!0,message:this.$t("channelconfig.rules.tdpz_tzw"),trigger:"change"}],tdpz_sjw:[{required:!0,message:this.$t("channelconfig.rules.tdpz_sjw"),trigger:"change"}],tdpz_jojy:[{required:!0,message:this.$t("channelconfig.rules.tdpz_jojy"),trigger:"change"}],tdpz_cgsj:[{required:!0,message:this.$t("channelconfig.rules.tdpz_cssj"),trigger:"blur"}],tdpz_jgsj:[{required:!0,message:this.$t("channelconfig.rules.tdpz_jgsj"),trigger:"blur"}],tdpz_lxsj:[{required:!0,message:this.$t("channelconfig.rules.tdpz_lxsj"),trigger:"blur"}],tdpz_cfcs:[{required:!0,message:this.$t("channelconfig.rules.tdpz_cfcs"),trigger:"blur"}],tdpz_ip:[{required:!0,message:"请输入IP地址",trigger:"blur"}],tdpz_port:[{required:!0,message:"请输入端口号",trigger:"blur"}]},outerVisible:!1,rulesGate:{wgpz_wgmc:[{required:!0,message:"请选择网关名称",trigger:"blur"}],wgpz_wgid:[{required:!0,message:"请选择网关id",trigger:"blur"}],wgpz_wglx:[{required:!0,message:"请选择网关类型",trigger:"blur"}]},opts1:this.$t("dbcollectiongate.options1"),opts2:[{value:"LAN-BOX1",label:"LAN-BOX1"},{value:"WLAN-BOX1",label:"WLAN-BOX1"}],opts3:this.$t("dbcollectiongate.options3")}},methods:{submitForm:o().debounce((function(t){this.$refs["formData"].validate((t=>{if(!t)return console.log("error submit!!"),!1;this.saveGate()}))}),1e3),async rightClick(t,a,e){a.editing&&(this.outerVisible=!0,this.GetUserAnswer()),3==e.level&&"I/O点"==a.label&&(this.nodekey=a.id,this.menuShow=!1,this.menuShow=!0,t.preventDefault(),this.rightMenu={top:t.pageY+"px",left:t.pageX+"px"},document.addEventListener("click",(t=>{t.stopImmediatePropagation(),t.target!==document.querySelector(".el-menu-item.is-active")&&this.foo()})))},selectMenuNode(t,a){console.log(t),1==t?(this.add_passage=!0,this.formData.tdpz_050F="auto",this.formData.tdpz_0610="auto"):this.menuShow=!1},foo(){this.menuShow=!1,document.removeEventListener("click",this.foo)},treeNodeClick(){this.foo()},getRetract(){1==this.is_retract?this.is_retract=!1:this.is_retract=!0},getDriveName(){this.diag_drive=!0},closeMenu(t){console.log({ev:t}),this.dialogVisible=!1},handleDetailClick(t,a,e){console.log(t.label),2==a.level&&(this.formData.tdpz_qdmc=t.label,this.diag_drive=!1)},async saveGate(){var t={tdpz_tdmc:this.formData.tdpz_tdmc,tdpz_td:this.formData.tdpz_td,tdpz_qdmc:this.formData.tdpz_qdmc,tdpz_port:this.formData.tdpz_port,tdpz_chuankou:this.formData.tdpz_chuankou,tdpz_btl:this.formData.tdpz_btl,tdpz_sjw:this.formData.tdpz_sjw,tdpz_tzw:this.formData.tdpz_tzw,tdpz_jojy:this.formData.tdpz_jojy,tdpz_cgsj:this.formData.tdpz_cgsj,tdpz_jgsj:this.formData.tdpz_jgsj,tdpz_lxsj:this.formData.tdpz_lxsj,tdpz_cfcs:this.formData.tdpz_cfcs,tdpz_watchtime:String(Number(this.formData.tdpz_watchtime)),tdpz_cjsylxdz:String(Number(this.formData.tdpz_cjsylxdz)),tdpz_dxzkb:this.tdpz_dxzkb1+":"+this.tdpz_dxzkb2,tdpz_050F:this.formData.tdpz_050F,tdpz_0610:this.formData.tdpz_0610};this.add_passage=!1;let a={...this.formData,...t},e=await(0,p.uu)({mark:"DB-IotLite_wx",user_id:this.user_id,mark_value:JSON.stringify(a),step:"2"});console.log(e),e.data.state?(this.$message({message:"保存成功",type:"success"}),sessionStorage.setItem("DB-IotLite_wx",JSON.stringify(a)),this.$refs["tree"].append({id:this.nodekey+1e3,label:this.formData.tdpz_tdmc},this.nodekey),this.sendTree(),this.$router.push(`/dbserialdevice?user_id=${this.user_id}`)):this.$message({message:"保存失败",type:"error"})},async GetUserAnswer(){this.loading=!0;let t=await(0,p.Xo)({mark:"DB-IotLite_wx",user_id:this.user_id});if(this.loading=!1,console.log(t),t.data.state||(0,p.Y5)({mark:"DB-IotLite_wx",user_id:this.user_id}).then((t=>{let a=JSON.parse(t.data.data.r3);a.tdpz_dxzkb&&(this.tdpz_dxzkb1=a.tdpz_dxzkb.split(":")[0],this.tdpz_dxzkb2=a.tdpz_dxzkb.split(":")[1],this.formData.tdpz_watchtime=Boolean(Number(a.tdpz_watchtime)),this.formData.tdpz_cjsylxdz=Boolean(Number(a.tdpz_cjsylxdz))),a.tdpz_050F&&(this.formData.tdpz_050F=a.tdpz_050F,this.formData.tdpz_0610=a.tdpz_0610),this.formData.tdpz_tdmc=a.tdpz_tdmc,this.formData.tdpz_td=a.tdpz_td,this.formData.tdpz_qdmc=a.tdpz_qdmc,this.formData.tdpz_chuankou=a.tdpz_chuankou,this.formData.tdpz_btl=a.tdpz_btl,this.formData.tdpz_sjw=a.tdpz_sjw,this.formData.tdpz_tzw=a.tdpz_tzw,this.formData.tdpz_jojy=a.tdpz_jojy,this.formData.tdpz_port=a.tdpz_port,this.formData.tdpz_cgsj=a.tdpz_cgsj,this.formData.tdpz_jgsj=a.tdpz_jgsj,this.formData.tdpz_lxsj=a.tdpz_lxsj,this.formData.tdpz_cfcs=a.tdpz_cfcs,this.formData.tdpz_dxzkb=a.tdpz_dxzkb,this.formData.wgpz_wgid=a.wgpz_wgid,console.log(this.formData.wgpz_wgid),this.formData.wgpz_wgmc=a.wgpz_wgmc,this.formData.wgpz_wglx=a.wgpz_wglx,this.formData.ippz_wangkou=a.ippz_wangkou,this.formData.ippz_lwfs=a.ippz_lwfs,this.formData.ippz_ip=a.ippz_ip,this.formData.ippz_zwym=a.ippz_zwym,this.formData.ippz_mrwg=a.ippz_mrwg,this.formData.ippz_dns_sx=a.ippz_dns_sx,this.formData.ippz_dns_by=a.ippz_dns_by,this.formData.ippz_mac=a.ippz_mac,this.formData.ippz_wifi_ssid=a.ippz_wifi_ssid,this.formData.ippz_wifi_mm=a.ippz_wifi_mm,this.formData.sbpz_sbid=a.sbpz_sbid,this.formData.sbpz_sbmc=a.sbpz_sbmc,this.formData.sbpz_sbdz=a.sbpz_sbdz,this.formData.sbpz_jysb=a.sbpz_jysb,this.formData.sbpz_jdzxz=a.sbpz_jdzxz,this.formData.cjdpz_tagid=a.cjdpz_tagid,this.formData.cjdpz_mc=a.cjdpz_mc,this.formData.cjdpz_sjq=a.cjdpz_sjq,this.formData.cjdpz_jcqdz=a.cjdpz_jcqdz,this.formData.cjdpz_cjsjlx=a.cjdpz_cjsjlx,this.formData.cjdpz_zjx=a.cjdpz_zjx,this.formData.cjdpz_dxsx=a.cjdpz_dxsx,this.formData.cjdpz_beilv=a.cjdpz_beilv,this.formData.mqtt_qiyong=a.mqtt_qiyong,this.formData.mqtt_ip=a.mqtt_ip,this.formData.mqtt_port=a.mqtt_port,this.formData.mqtt_wgsn=a.mqtt_wgsn,this.formData.mqtt_sssjfbzt=a.mqtt_sssjfbzt,this.formData.mqtt_qos=a.mqtt_qos,this.formData.mqtt_scms=a.mqtt_scms,this.formData.mqtt_sczq=a.mqtt_sczq,this.formData.mqtt_sjgl=a.mqtt_sjgl,this.formData.mqtt_cjd_sbmc=a.mqtt_cjd_sbmc,this.formData.mqtt_cjd_tagid=a.mqtt_cjd_tagid})),t.data.data&&t.data.state){let a=JSON.parse(t.data.data.mark_value);a.tdpz_dxzkb&&(this.tdpz_dxzkb1=a.tdpz_dxzkb.split(":")[0],this.tdpz_dxzkb2=a.tdpz_dxzkb.split(":")[1],this.formData.tdpz_watchtime=Boolean(Number(a.tdpz_watchtime)),this.formData.tdpz_cjsylxdz=Boolean(Number(a.tdpz_cjsylxdz))),a.tdpz_050F&&(this.formData.tdpz_050F=a.tdpz_050F,this.formData.tdpz_0610=a.tdpz_0610),this.formData.tdpz_tdmc=a.tdpz_tdmc,this.formData.tdpz_td=a.tdpz_td,this.formData.tdpz_qdmc=a.tdpz_qdmc,this.formData.tdpz_chuankou=a.tdpz_chuankou,this.formData.tdpz_btl=a.tdpz_btl,this.formData.tdpz_sjw=a.tdpz_sjw,this.formData.tdpz_tzw=a.tdpz_tzw,this.formData.tdpz_jojy=a.tdpz_jojy,this.formData.tdpz_port=a.tdpz_port,this.formData.tdpz_cgsj=a.tdpz_cgsj,this.formData.tdpz_jgsj=a.tdpz_jgsj,this.formData.tdpz_lxsj=a.tdpz_lxsj,this.formData.tdpz_cfcs=a.tdpz_cfcs,this.formData.tdpz_dxzkb=a.tdpz_dxzkb,this.formData.wgpz_wgid=a.wgpz_wgid,console.log(this.formData.wgpz_wgid),this.formData.wgpz_wgmc=a.wgpz_wgmc,this.formData.wgpz_wglx=a.wgpz_wglx,this.formData.ippz_wangkou=a.ippz_wangkou,this.formData.ippz_lwfs=a.ippz_lwfs,this.formData.ippz_ip=a.ippz_ip,this.formData.ippz_zwym=a.ippz_zwym,this.formData.ippz_mrwg=a.ippz_mrwg,this.formData.ippz_dns_sx=a.ippz_dns_sx,this.formData.ippz_dns_by=a.ippz_dns_by,this.formData.ippz_mac=a.ippz_mac,this.formData.ippz_wifi_ssid=a.ippz_wifi_ssid,this.formData.ippz_wifi_mm=a.ippz_wifi_mm,this.formData.sbpz_sbid=a.sbpz_sbid,this.formData.sbpz_sbmc=a.sbpz_sbmc,this.formData.sbpz_sbdz=a.sbpz_sbdz,this.formData.sbpz_jysb=a.sbpz_jysb,this.formData.sbpz_jdzxz=a.sbpz_jdzxz,this.formData.cjdpz_tagid=a.cjdpz_tagid,this.formData.cjdpz_mc=a.cjdpz_mc,this.formData.cjdpz_sjq=a.cjdpz_sjq,this.formData.cjdpz_jcqdz=a.cjdpz_jcqdz,this.formData.cjdpz_cjsjlx=a.cjdpz_cjsjlx,this.formData.cjdpz_zjx=a.cjdpz_zjx,this.formData.cjdpz_dxsx=a.cjdpz_dxsx,this.formData.cjdpz_beilv=a.cjdpz_beilv,this.formData.mqtt_qiyong=a.mqtt_qiyong,this.formData.mqtt_ip=a.mqtt_ip,this.formData.mqtt_port=a.mqtt_port,this.formData.mqtt_wgsn=a.mqtt_wgsn,this.formData.mqtt_sssjfbzt=a.mqtt_sssjfbzt,this.formData.mqtt_qos=a.mqtt_qos,this.formData.mqtt_scms=a.mqtt_scms,this.formData.mqtt_sczq=a.mqtt_sczq,this.formData.mqtt_sjgl=a.mqtt_sjgl,this.formData.mqtt_cjd_sbmc=a.mqtt_cjd_sbmc,this.formData.mqtt_cjd_tagid=a.mqtt_cjd_tagid}},async sendTree(){let t=await(0,p.Wh)({user_id:this.user_id,data:JSON.stringify(this.trees),type:"2"});console.log(t)},async submitGate(){this.$refs["gateWay"].validate((t=>{if(!t)return console.log("error submit!!"),!1;this.saveGates()}))},async saveGates(){this.outerVisible=!1;let t=await(0,p.uu)({mark:"DB-IotLite_wx",user_id:this.user_id,mark_value:JSON.stringify(this.formData),step:"1"});t.data.state?(this.$message({message:"修改成功",type:"success"}),this.trees[0].label=this.formData.wgpz_wgid,this.sendTree()):this.$message({message:`保存失败,原因是${t.data.message}`,type:"error"}),console.log(t)}},mounted(){this.user_id=this.$route.query.user_id,"undefined"!=this.user_id&&(0,p.EQ)({user_id:this.user_id,type:"2"}).then((t=>{console.log(t),console.log(JSON.parse(t.data.data.data)),this.trees=JSON.parse(t.data.data.data)})),this.GetUserAnswer()}},d=r,c=e(1001),m=(0,c.Z)(d,l,s,!1,null,"51cc19e2",null),_=m.exports}}]);
//# sourceMappingURL=466.2e6a3611.js.map