2 lines
28 KiB
JavaScript
2 lines
28 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42df534a"],{"00fa":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"decorate"}),i("div",{staticClass:"filter-container"},[i("el-cascader",{staticClass:"filter-item",attrs:{"show-all-levels":!1,placeholder:e.$t("listQuery.deptId"),options:e.deptIdList,props:{checkStrictly:!0,emitPath:!1,props:{}},clearable:""},on:{change:function(t){return e.handleFilter("deptId")}},model:{value:e.listQuery.deptId,callback:function(t){e.$set(e.listQuery,"deptId",t)},expression:"listQuery.deptId"}}),i("el-select",{staticClass:"filter-item",attrs:{placeholder:e.$t("listQuery.siteCode")},on:{change:e.handleFilter},model:{value:e.listQuery.siteCode,callback:function(t){e.$set(e.listQuery,"siteCode",t)},expression:"listQuery.siteCode"}},e._l(e.siteCodeList,(function(e){return i("el-option",{key:e.siteCode,attrs:{label:e.siteName,value:e.siteCode}})})),1),i("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("device.deviceCode")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter.apply(null,arguments)}},model:{value:e.listQuery.deviceCode,callback:function(t){e.$set(e.listQuery,"deviceCode",t)},expression:"listQuery.deviceCode"}}),i("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("device.deviceName")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter.apply(null,arguments)}},model:{value:e.listQuery.deviceName,callback:function(t){e.$set(e.listQuery,"deviceName",t)},expression:"listQuery.deviceName"}}),i("span",{staticClass:"btn-item",on:{click:e.handleFilter}},[i("i",{staticClass:"iconfont icon-sousuo"}),e._v(e._s(e.$t("btn.search")))]),i("span",{staticClass:"btn-item",on:{click:e.clearListQuery}},[i("i",{staticClass:"el-icon-refresh-left"}),e._v(" "+e._s(e.$t("btn.resetting")))]),i("div",{staticClass:"control-container"},[i("el-upload",{ref:"upload",attrs:{action:"","file-list":e.fileList,"before-upload":e.beforeUploads,"on-success":e.handleFileSuccess,"on-error":e.handleFileError,"http-request":e.addCabinetsImport}},[i("span",{staticClass:"btn-item",attrs:{slot:"trigger"},slot:"trigger"},[i("i",{staticClass:"iconfont icon-a-"}),e._v(e._s(e.$t("btn.adds")))])]),i("span",{staticClass:"btn-item",on:{click:function(t){return e.handleCreate()}}},[i("i",{staticClass:"iconfont icon-a-"}),e._v(e._s(e.$t("btn.addDevice")))]),i("span",{staticClass:"btn-item delete",on:{click:e.deleteList}},[i("i",{staticClass:"iconfont icon-shanchu"}),e._v(e._s(e.$t("btn.delete")))])],1)],1),i("div",{staticClass:"table-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",attrs:{data:e.list,fit:"","max-height":"580","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{property:"deviceCode",align:"left",label:e.$t("device.deviceCode")}}),i("el-table-column",{attrs:{property:"deviceName",align:"left",label:e.$t("device.deviceName")}}),i("el-table-column",{attrs:{property:"typeName",align:"left",label:e.$t("device.typeName")}}),i("el-table-column",{attrs:{property:"deptName",align:"left",label:e.$t("listQuery.deptId")}}),i("el-table-column",{attrs:{label:e.$t("device.cabinetType"),align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.cabinetType?i("span",[e._v(e._s(e.$t("device.cabinetType1")))]):e._e(),2===t.row.cabinetType?i("span",[e._v(e._s(e.$t("device.cabinetType2")))]):e._e()]}}])}),i("el-table-column",{attrs:{property:"siteName",align:"left",label:e.$t("listQuery.siteCode")}}),i("el-table-column",{attrs:{property:"address",align:"left",label:e.$t("table.address")}}),i("el-table-column",{attrs:{property:"online",align:"left",label:e.$t("device.online")},scopedSlots:e._u([{key:"d
|
||
|
//# sourceMappingURL=chunk-42df534a.f87cf368.js.map
|