gz-att-web/gz-att/static/js/chunk-2d0c8846.dd083e38.js

1 line
9.2 KiB
JavaScript
Raw Normal View History

2024-10-18 18:10:38 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c8846"],{"54e6":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"考勤机",prop:"machineName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入考勤机名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.machineName,callback:function(t){e.$set(e.queryParams,"machineName",t)},expression:"queryParams.machineName"}})],1),a("el-form-item",{attrs:{label:"所在位置",prop:"attAddress"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入所在位置",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.attAddress,callback:function(t){e.$set(e.queryParams,"attAddress",t)},expression:"queryParams.attAddress"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["att:machine:add"],expression:"['att:machine:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.devList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",align:"center",width:"80",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s((e.queryParams.pageNum-1)*e.queryParams.pageSize+t.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"考勤机名称",align:"center",prop:"machineName"}}),a("el-table-column",{attrs:{label:"型号",align:"center",prop:"model","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"设备编码",align:"center",prop:"machineCode","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"IP地址",align:"center",prop:"ip","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"端口号",align:"center",prop:"port","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"考勤地址",align:"center",prop:"attAddress","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"设备状态",align:"center",prop:"status","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.statusList,value:t.row.status}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["att:machine:edit"],expression:"['att:machine:edit']"}],attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["att:machine:remove"],expression:"['att:machine:remove']"}],attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("pagination",{di