1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45206724","chunk-722c5e57","chunk-46e6d1bb"],{3568:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"device-add-wrap"},[r("el-dialog",{attrs:{title:e.$t("device.device-edit.148398-84"),visible:e.open,width:"900px"},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{xs:24,sm:24,md:24,lg:12,xl:12}},[r("el-form-item",{attrs:{label:e.$t("device.device-edit.148398-1"),prop:"deviceName"}},[r("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:e.$t("device.device-edit.148398-2")},model:{value:e.form.deviceName,callback:function(t){e.$set(e.form,"deviceName",t)},expression:"form.deviceName"}})],1),r("el-form-item",{attrs:{label:"",prop:"productName"}},[r("template",{slot:"label"},[r("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" "+e._s(e.$t("device.device-edit.148398-4"))+" ")]),r("el-input",{staticStyle:{width:"300px"},attrs:{readonly:"",placeholder:e.$t("device.device-edit.148398-5")},model:{value:e.form.productName,callback:function(t){e.$set(e.form,"productName",t)},expression:"form.productName"}},[r("el-button",{attrs:{slot:"append"},on:{click:function(t){return e.selectProduct()}},slot:"append"},[e._v(e._s(e.$t("device.device-edit.148398-6")))])],1)],2),r("el-form-item",{attrs:{label:"",prop:"serialNumber"}},[r("template",{slot:"label"},[r("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" "+e._s(e.$t("device.device-edit.148398-7"))+" ")]),r("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:e.$t("device.device-edit.148398-8"),maxlength:"32",readonly:3===e.form.deviceType},model:{value:e.form.serialNumber,callback:function(t){e.$set(e.form,"serialNumber",t)},expression:"form.serialNumber"}},[3!==e.form.deviceType?r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:device:add"],expression:"['iot:device:add']"}],attrs:{slot:"append",loading:e.genDisabled},on:{click:e.generateNum},slot:"append"},[e._v(" "+e._s(e.$t("device.device-edit.148398-9"))+" ")]):e._e(),3===e.form.deviceType?r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:device:add"],expression:"['iot:device:add']"}],attrs:{slot:"append"},on:{click:function(t){return e.genSipID()}},slot:"append"},[e._v(" "+e._s(e.$t("device.device-edit.148398-9"))+" ")]):e._e()],1),e.openServerTip?r("el-alert",{staticClass:"alert-wrap",attrs:{type:"info","show-icon":"",description:e.$t("device.device-edit.148398-10")}}):e._e()],2)],1),r("el-col",{attrs:{xs:24,sm:24,md:24,lg:12,xl:12}},[r("el-form-item",{attrs:{label:e.$t("device.device-edit.148398-12"),prop:"firmwareVersion"}},[r("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:e.$t("device.device-edit.148398-13"),type:"number",step:"0.1",disabled:3===e.form.deviceType},model:{value:e.form.firmwareVersion,callback:function(t){e.$set(e.form,"firmwareVersion",t)},expression:"form.firmwareVersion"}},[r("template",{slot:"prepend"},[e._v("Version")]),r("template",{slot:"append"},[e._v(e._s(1===e.form.firmwareType?e.$t("firmware.index.222541-52"):e.$t("firmware.index.222541-53")))])],2)],1),r("el-form-item",{attrs:{label:e.$t("device.device-edit.148398-19"),prop:"locationWay"}},[r("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:e.$t("device.device-edit.148398-20")},model:{value:e.form.locationWay,callback:function(t){e.$set(e.form,"locationWay",t)},expression:"form.locationWay"}},e._l(e.dict.type.iot_location_way,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:Number(e.value)}})})),1)],1),3!==e.form.deviceType?r("el-form-item",{attrs:{label:e.$t("device.device-edit.148398-15"),prop:"isShadow"}},[r("el-radio-group",{model:{value:e.form.isShadow,callback:function(t){e.$set(e.form,"isShadow",t)},expression:"form.isShadow"}},[r("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("device.device-edit.148398-85")))]),r("el-radio",{attrs:{label:0}},[e._v(e._s(
|