Portal/potal_admin/up-portal-admin-1.0.1/js/chunk-d6594f84.62ccf59f.js

1 line
22 KiB
JavaScript
Raw Normal View History

2025-03-10 17:41:02 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d6594f84","chunk-1d7a8d9e","chunk-09486942"],{"0f32":function(e,t,a){var r=a("b047"),i=a("1a8c"),l="Expected a function";function o(e,t,a){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(l);return i(a)&&(o="leading"in a?!!a.leading:o,s="trailing"in a?!!a.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}e.exports=o},"168f":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("el-form",{ref:"ruleForm",attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getDataList()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"pieDevicename"}},[a("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.dataForm.pieDevicename,callback:function(t){e.$set(e.dataForm,"pieDevicename",t)},expression:"dataForm.pieDevicename"}})],1),a("el-form-item",{attrs:{label:"设备状态",prop:"pieStatus"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.dataForm.pieStatus,callback:function(t){e.$set(e.dataForm,"pieStatus",t)},expression:"dataForm.pieStatus"}},e._l(e.statusList,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.getDataList()}}},[e._v(e._s(e.$t("query")))])],1),a("el-form-item",[a("el-button",{attrs:{type:"warning"},on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addOrUpdateHandle()}}},[e._v(e._s(e.$t("add")))])],1),a("el-form-item",[a("el-button",{attrs:{type:"success"},on:{click:function(t){return e.importHandle()}}},[e._v("导入")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"100",align:"center"}}),a("el-table-column",{attrs:{prop:"pieDevicename",label:"设备名称","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"pieEquipsn",label:"设备序列号","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"pieIpaddr",label:"IP地址","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"pieStatus",label:"设备状态","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.pieStatus?a("span",{staticStyle:{color:"#67C23A"}},[e._v(" "+e._s(e.$getDictLabel("equipment_status",t.row.pieStatus)))]):a("span",{staticStyle:{color:"#f56c6c"}},[e._v(" "+e._s(e.$getDictLabel("equipment_status",t.row.pieStatus)))])]}}])}),a("el-table-column",{attrs:{prop:"pieSetupaddr",label:"安装位置","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"pieSetupdate",label:"安装时间","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{label:e.$t("handle"),fixed:"right","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addOrUpdateHandle(t.row.pieId)}}},[e._v(e._s(e.$t("update")))]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.deleteHandle(t.row.pieId)}}},[e._v(e._s(e.$t("delete")))])]}}])})],1),a("el-pagination",{attrs:{"current-page":e.page,"page-sizes":[10,20,50,100],"page-size":e.limit,total:e.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.pageSizeChangeHandle,"current-change":e.pageCurrentChangeHandle}}),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e(),e.configureVisible?a("witness-configure",{ref:"configure",on:{refreshDataList:e.getDataList}}):e._e(),e._v("s\n\t"),a("upload",{ref:"studentUploadExcel",attrs:{"template-url":"./t