1 line
31 KiB
JSON
1 line
31 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\gateway-add-or-update.vue?vue&type=template&id=251c5450&scoped=true&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\gateway-add-or-update.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"el-dialog\",\n {\n attrs: {\n visible: _vm.visible,\n title: !_vm.dataForm.id ? _vm.$t(\"add\") : _vm.$t(\"update\"),\n \"close-on-click-modal\": false,\n \"close-on-press-escape\": false,\n width: \"85%\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.visible = $event\n }\n }\n },\n [\n _c(\n \"el-form\",\n {\n ref: \"dataForm\",\n attrs: {\n model: _vm.dataForm,\n rules: _vm.dataRule,\n \"label-width\": \"120px\"\n },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"enter\", 13, $event.key, \"Enter\")\n ) {\n return null\n }\n return _vm.dataFormSubmitHandle()\n }\n }\n },\n [\n _c(\n \"el-form-item\",\n {\n staticStyle: { display: \"none\" },\n attrs: { prop: \"gwId\", label: \"id\" }\n },\n [\n _c(\"el-input\", {\n attrs: { placeholder: \"请输入\", clearable: \"\" },\n model: {\n value: _vm.dataForm.gwId,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"gwId\", $$v)\n },\n expression: \"dataForm.gwId\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"gwIpgateway\", label: \"IP地址\" } },\n [\n _c(\"el-input\", {\n attrs: { placeholder: \"请输入\", clearable: \"\" },\n model: {\n value: _vm.dataForm.gwIpgateway,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"gwIpgateway\", $$v)\n },\n expression: \"dataForm.gwIpgateway\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"gwName\", label: \"设备名称\" } },\n [\n _c(\"el-input\", {\n attrs: { placeholder: \"请输入\", clearable: \"\" },\n model: {\n value: _vm.dataForm.gwName,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"gwName\", $$v)\n },\n expression: \"dataForm.gwName\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"mbdDevicetype\", label: \"设备类型\" } },\n [\n _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: _vm.dataForm.mbdDevicetype,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"mbdDevicetype\", $$v)\n },\n expression: \"dataForm.mbdDevicetype\"\n }\n },\n _vm._l(_vm.eqTypeList, function(item) {\n return _c(\"el-option\", {\n key: item.dictValue,\n attrs: { label: item.dictLabel, value: item.dictValue }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"gwSn\", label: \"设备序列号\" } },\n [\n _c(\"el-input\", {\n attrs: { placeholder: \"请输入\", clearable: \"\" },\n model: {\n value: _vm.dataForm.gwSn,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"gwSn\", $$v)\n },\n expression: \"dataForm.gwSn\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"gwExpirydate\", label: \"有效期\" } },\n [\n _c(\"el-date-picker\", {\n staticStyle: { width: \"100%\" },\n attrs: {\n type: \"date\",\n \"value-format\": \"yyyy-MM-dd\",\n placeholder: \"请选择\"\n },\n model: {\n value: _vm.dataForm.gwExpirydate,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"gwExpirydate\", $$v)\n },\n expression: \"dataForm.gwExpirydate\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"gwSetupaddr\", label: \"安装位置\" } },\n [\n _c(\"el-cascader\", {\n staticStyle: { width: \"100%\" },\n attrs: {\n props: {\n value: \"df_floorid\",\n label: \"df_floorname\",\n checkStrictly: true\n },\n clearable: \"\",\n placeholder: \"请选择\",\n options: _vm.tfSetupaddrList\n },\n model: {\n value: _vm.dataForm.gwSetupaddr,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"gwSetupaddr\", $$v)\n },\n expression: \"dataForm.gwSetupaddr\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { prop: \"scGatebusdeviceDTOList\", label: \"总线\" } },\n [\n _c(\n \"el-row\",\n [\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 2 } },\n [_vm._v(\"序号\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 3 } },\n [_vm._v(\"总线编号\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 3 } },\n [_vm._v(\"设备类型\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 3 } },\n [_vm._v(\"设备\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 2 } },\n [_vm._v(\"灯口编号\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 3 } },\n [_vm._v(\"接口编号\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 3 } },\n [_vm._v(\"分组编号\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 3 } },\n [_vm._v(\"围栏编号\")]\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 2 } },\n [\n _c(\"el-button\", {\n attrs: {\n size: \"small\",\n type: \"primary\",\n icon: \"el-icon-plus\",\n circle: \"\"\n },\n on: { click: _vm.handleAddClick }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._l(_vm.dataForm.scGatebusdeviceDTOList, function(\n item,\n index\n ) {\n return _c(\n \"el-row\",\n { key: index },\n [\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 2 } },\n [_vm._v(_vm._s(index + 1))]\n ),\n _c(\n \"el-col\",\n { attrs: { span: 3 } },\n [\n _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handleLineChange($event, item, index)\n }\n },\n model: {\n value: item.gbdLineNum,\n callback: function($$v) {\n _vm.$set(item, \"gbdLineNum\", $$v)\n },\n expression: \"item.gbdLineNum\"\n }\n },\n _vm._l(_vm.busList, function(item) {\n return _c(\"el-option\", {\n key: item.dictValue,\n attrs: {\n label: item.dictLabel,\n value: item.dictValue\n }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-col\",\n { attrs: { span: 3 } },\n [\n _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handleEqTypeChange(index)\n }\n },\n model: {\n value: item.gbdDevicetype,\n callback: function($$v) {\n _vm.$set(item, \"gbdDevicetype\", $$v)\n },\n expression: \"item.gbdDevicetype\"\n }\n },\n _vm._l(_vm.eqTypeList, function(item) {\n return _c(\"el-option\", {\n key: item.dictValue,\n attrs: {\n label: item.dictLabel,\n value: item.dictValue\n }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-col\",\n { attrs: { span: 3 } },\n [\n item.gbdDevicetype === \"0\"\n ? _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handleEqChange(\n $event,\n index,\n item\n )\n }\n },\n model: {\n value: item.mbdId,\n callback: function($$v) {\n _vm.$set(item, \"mbdId\", $$v)\n },\n expression: \"item.mbdId\"\n }\n },\n _vm._l(_vm.pirList, function(item) {\n return _c(\"el-option\", {\n key: item.mbdId,\n attrs: {\n label: item.mbdDevicename,\n value: item.mbdId\n }\n })\n }),\n 1\n )\n : item.gbdDevicetype == \"1\"\n ? _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handleEqChange(\n $event,\n index,\n item\n )\n }\n },\n model: {\n value: item.mbdId,\n callback: function($$v) {\n _vm.$set(item, \"mbdId\", $$v)\n },\n expression: \"item.mbdId\"\n }\n },\n _vm._l(_vm.lightList, function(item) {\n return _c(\"el-option\", {\n key: item.mbdId,\n attrs: {\n label: item.mbdDevicename,\n value: item.mbdId\n }\n })\n }),\n 1\n )\n : item.gbdDevicetype === \"2\"\n ? _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handleEqChange(\n $event,\n index,\n item\n )\n }\n },\n model: {\n value: item.mbdId,\n callback: function($$v) {\n _vm.$set(item, \"mbdId\", $$v)\n },\n expression: \"item.mbdId\"\n }\n },\n _vm._l(_vm.pm25List, function(item) {\n return _c(\"el-option\", {\n key: item.mbdId,\n attrs: {\n label: item.mbdDevicename,\n value: item.mbdId\n }\n })\n }),\n 1\n )\n : _c(\"el-select\", {\n staticStyle: { width: \"100%\" },\n attrs: {\n placeholder: \"请先选择设备类型\",\n disabled: \"\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-col\",\n { attrs: { span: 2 } },\n [\n item.fourEightTwelve == -1\n ? _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: item.lightroadnum,\n callback: function($$v) {\n _vm.$set(item, \"lightroadnum\", $$v)\n },\n expression: \"item.lightroadnum\"\n }\n },\n _vm._l(_vm.options, function(item) {\n return _c(\"el-option\", {\n key: item.value,\n attrs: {\n label: item.label,\n value: item.value\n }\n })\n }),\n 1\n )\n : item.fourEightTwelve == 0\n ? _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: item.lightroadnum,\n callback: function($$v) {\n _vm.$set(item, \"lightroadnum\", $$v)\n },\n expression: \"item.lightroadnum\"\n }\n },\n _vm._l(4, function(item) {\n return _c(\"el-option\", {\n key: item,\n attrs: { label: item, value: item }\n })\n }),\n 1\n )\n : item.fourEightTwelve == 1\n ? _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: item.lightroadnum,\n callback: function($$v) {\n _vm.$set(item, \"lightroadnum\", $$v)\n },\n expression: \"item.lightroadnum\"\n }\n },\n _vm._l(8, function(item) {\n return _c(\"el-option\", {\n key: item,\n attrs: { label: item, value: item }\n })\n }),\n 1\n )\n : _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: item.lightroadnum,\n callback: function($$v) {\n _vm.$set(item, \"lightroadnum\", $$v)\n },\n expression: \"item.lightroadnum\"\n }\n },\n _vm._l(12, function(item) {\n return _c(\"el-option\", {\n key: item,\n attrs: { label: item, value: item }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-col\",\n { attrs: { span: 3 } },\n [\n _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handleNumChange($event, item, index)\n }\n },\n model: {\n value: item.gbdAddr,\n callback: function($$v) {\n _vm.$set(item, \"gbdAddr\", $$v)\n },\n expression: \"item.gbdAddr\"\n }\n },\n _vm._l(31, function(item) {\n return _c(\"el-option\", {\n key: item,\n attrs: { label: item, value: item }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-col\",\n { attrs: { span: 3 } },\n [\n _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: item.gbdGroup,\n callback: function($$v) {\n _vm.$set(item, \"gbdGroup\", $$v)\n },\n expression: \"item.gbdGroup\"\n }\n },\n _vm._l(31, function(item) {\n return _c(\"el-option\", {\n key: item,\n attrs: { label: item, value: item }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-col\",\n { attrs: { span: 3 } },\n [\n _c(\n \"el-select\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\",\n clearable: \"\"\n },\n model: {\n value: item.gbdFenceId,\n callback: function($$v) {\n _vm.$set(item, \"gbdFenceId\", $$v)\n },\n expression: \"item.gbdFenceId\"\n }\n },\n _vm._l(_vm.uwbRegionList, function(item) {\n return _c(\"el-option\", {\n key: item.id,\n attrs: { label: item.fenceName, value: item.id }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-col\",\n { staticClass: \"col-title\", attrs: { span: 2 } },\n [\n _c(\"el-button\", {\n attrs: {\n size: \"small\",\n type: \"danger\",\n icon: \"el-icon-delete\",\n circle: \"\"\n },\n on: {\n click: function($event) {\n return _vm.handleDeleteClick(item, index)\n }\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n })\n ],\n 2\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"备注\", prop: \"remark\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"textarea\", clearable: \"\" },\n model: {\n value: _vm.dataForm.remark,\n callback: function($$v) {\n _vm.$set(_vm.dataForm, \"remark\", $$v)\n },\n expression: \"dataForm.remark\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"template\",\n { slot: \"footer\" },\n [\n _c(\n \"el-button\",\n {\n on: {\n click: function($event) {\n _vm.visible = false\n }\n }\n },\n [_vm._v(_vm._s(_vm.$t(\"cancel\")))]\n ),\n _c(\n \"el-button\",\n {\n directives: [\n {\n name: \"loading\",\n rawName: \"v-loading\",\n value: _vm.loading,\n expression: \"loading\"\n }\n ],\n attrs: { type: \"primary\" },\n on: {\n click: function($event) {\n return _vm.dataFormSubmitHandle()\n }\n }\n },\n [_vm._v(_vm._s(_vm.$t(\"confirm\")))]\n )\n ],\n 1\n )\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]} |