lepu-test-platform-web/dist/static/js/21.c6abdc20026b7dd23dca.js

2 lines
26 KiB
JavaScript

webpackJsonp([21],{"1qua":function(e,t){},WYal:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i("mvHQ"),a=i.n(l),o=(i("D/fc"),{data:function(){return{fileIsChange:!1,loading:!1,length:"",value:"",multipleSelection:[],fileList:[],deviceOptions:[],platformOptions:[],brandOptions:[],isUsedOptions:[{id:1,label:"未借出",value:0},{id:2,label:"已借出",value:1}],classificationOptions:[],belongOptions:[],devicelist:[],queryInfo:{name:"",pageNum:1,pageSize:10},currpage:1,total:0,addDialogVisible:!1,borrowDialogVisible:!1,editDialogVisible:!1,detailDialogVisible:!1,addForm:{name:"",model:"",code:"",platform:"",brand:"",belong:"",classification:"",systemVersion:"",uuid:"",comments:"",picture:""},detailForm:{},editForm:{},borrowForm:{borrower:"",borrowInstructions:""},addFormRules:{belong:[{required:!0,message:"请选择设备所属",trigger:"blur"}],classification:[{required:!0,message:"请选择设备分类",trigger:"blur"}],brand:[{required:!0,message:"请选择设备品牌",trigger:"blur"}],name:[{required:!0,message:"请输入设备名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],model:[{required:!0,message:"请输入设备型号",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入设备编号",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],platform:[{required:!0,message:"请选择操作系统",trigger:"blur"}],systemVersion:[{required:!0,message:"请输入系统版本",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],picture:[{required:!1,message:"请上传设备图片",trigger:"blur"}]},borrowFormRules:{borrower:[{required:!0,message:"请输入借用人",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],borrowInstructions:[{required:!1,message:"请输入借用说明",trigger:"blur"},{min:0,max:256,message:"长度在 0 到 256 个字符",trigger:"blur"}]}}},mounted:function(){this.getPlatformOptions(),this.getBrandOptions(),this.getClassificationOptions(),this.getBelongOptions()},created:function(){this.getDeviceList()},methods:{getPlatformOptions:function(){var e=this;this.$api.device.getPlatformOptions().then(function(t){e.platformOptions=t.data.data})},getBrandOptions:function(){var e=this;this.$api.device.getBrandOptions().then(function(t){e.brandOptions=t.data.data})},getClassificationOptions:function(){var e=this;this.$api.device.getClassificationOptions().then(function(t){e.classificationOptions=t.data.data})},getBelongOptions:function(){var e=this;this.$api.device.getBelongOptions().then(function(t){e.belongOptions=t.data.data})},handleSelectionChange:function(e){this.multipleSelection=e},statusFormat:function(e,t){return 0==e.isUsed?"未借出":"已借出"},query:function(){this.queryInfo.pageNum=1,this.total=0,this.getDeviceList()},getDeviceList:function(){var e=this;this.$api.device.queryAllDevice(a()(this.queryInfo)).then(function(t){e.devicelist=t.data.data,e.total=t.data.count,e.clearOptions()}).catch(function(){e.loading=!1})},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.getDeviceList()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.getDeviceList()},addDevice:function(){var e=this;this.$refs.addFormRef.validate(function(t){if(t){var i=new FormData,l=e.fileList[0];if(null!=l){l.name;i.append("file",l.raw),i.append("filename",l.name),e.$api.comm.uploadImg(i).then(function(t){200==t.data.code?(t.data.data.title,e.addForm.picture=t.data.data.src):e.$notify({type:"error",message:"上传失败"})}).catch(function(){})}setTimeout(function(){e.$api.device.addDevice(a()(e.addForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.addDialogVisible=!1,e.getDeviceList(),e.$refs.addFormRef.resetFields(),e.fileList=[]}).catch(function(){})},1e3)}})},borrowDevice:function(){var e=this;this.$refs.borrowFormRef.validate(function(t){if(t){var i=[];e.multipleSelection.forEach(function(t){var l={};l.id=t.id,l.borrower=e.borrowForm.borrower,l.borrowInstructions=e.borrowForm.borrowInstructions,i.push(l)}),e.$api.device.borrowDevice(a()(i)).then(function(t){e.$notify({type:"success",message:t.data.msg}),e.borrowDialogVisible=!1,e.$refs.borrowFormRef.resetFields(),e.getDeviceList()}).catch(function(){})}})},showBorrowForm:function(){if(0==this.multipleSelection.length)this.$notify({type:"warning",message:"请勾选需要借用的设备"});else{var e=!1,t=[];this.multipleSelection.forEach(function(e){1==e.isUsed&&t.push(e.status)}),0==t.length&&(e=!0),e?this.borrowDialogVisible=!0:this.$confirm("已借出的不能再次借出","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).catch(function(e){console.log(e)})}},returnDevice:function(){var e=this;if(0==this.multipleSelection.length)this.$notify({type:"warning",message:"请勾选需要归还的设备"});else{var t=this.multipleSelection,i=!1,l=[];t.forEach(function(e){0==e.isUsed&&l.push(e.status)}),0==l.length&&(i=!0),i?this.$confirm("归还设备前,请设备管理员确认设备完好,确定归还设备吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$api.device.returnDevice(a()(t)).then(function(t){e.loading=!1,e.$notify({type:"success",message:t.data.msg}),e.getDeviceList()}).catch(function(){e.loading=!1})}).catch(function(){e.loading=!1}):this.$confirm("未借出的不能归还","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})}},showEditDialog:function(e){var t=this;this.editDialogVisible=!0,this.$api.device.queryDeviceById(e).then(function(e){t.loading=!1,t.editForm=e.data.data}).catch(function(){t.loading=!1})},showDetailDialog:function(e){var t=this;this.detailDialogVisible=!0,this.cache,this.$api.device.queryDeviceById(e).then(function(e){t.loading=!1,t.detailForm=e.data.data}).catch(function(){t.loading=!1})},addDialogClose:function(){this.$refs.addFormRef.resetFields(),this.fileList=[]},addDialogCancel:function(){this.$refs.addFormRef.resetFields(),this.fileList=[],this.addDialogVisible=!1},borrowDialogClose:function(){this.$refs.borrowFormRef.resetFields()},editDialogClose:function(){this.fileList=[],this.$refs.editFormRef.resetFields()},editDialogCancel:function(){this.$refs.editFormRef.resetFields(),this.fileList=[],this.editDialogVisible=!1},editDevice:function(){var e=this;this.$refs.editFormRef.validate(function(t){if(t){var i=new FormData,l=e.fileList[0];if(null!=l){l.name;i.append("file",l.raw),i.append("filename",l.name),e.$api.comm.uploadImg(i).then(function(t){200==t.data.code?(t.data.data.title,e.editForm.picture=t.data.data.src):e.$notify({type:"error",message:"上传失败"})}).catch(function(){})}setTimeout(function(){e.$api.device.updateDevice(a()(e.editForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.editDialogVisible=!1,e.getDeviceList(),e.$refs.editForm.resetFields()}).catch(function(){})},1e3)}})},delDevice:function(e){var t=this;this.$confirm("确定删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$api.device.deleteDevice(e).then(function(e){t.$notify({message:e.data.msg,type:"success"}),t.getDeviceList()}).catch(function(){t.loading=!1})}).catch(function(){})},getRowKeys:function(e){return e.id},clearOptions:function(e){var t=this;e?e.forEach(function(e){t.$refs.multipleTable.toggleRowSelection(e)}):this.$refs.multipleTable.clearSelection()},handleRemove:function(e,t){this.fileList=[]},handleChange:function(e,t){this.fileList=t,this.fileList.length>1&&(this.fileList=[],this.fileList.push(e)),0==this.fileList.length&&(this.fileList=[],this.fileList.push(e))},batchExportDeviceList:function(){var e=this;0!=this.multipleSelection.length?(this.loading=!0,this.$api.device.batchExportDeviceListToExcel(a()(this.multipleSelection)).then(function(t){e.loading=!1,e.$notify({type:"success",message:t.data.msg}),e.$common.downloadFiles(t.data.data.fileName),e.$api.comm.deleteFile(t.data.data.fileName)}).catch(function(){})):this.$notify({type:"warning",message:"请勾选需要导出的记录"})},exportAllDeviceList:function(){var e=this;this.loading=!0;var t=this.queryInfo;t.pageNum=0,this.$api.device.exportAllDeviceListToExcel(a()(t)).then(function(t){e.loading=!1,200==t.data.code?(e.$notify({type:"success",message:t.data.msg}),e.$common.downloadFiles(t.data.data.fileName),e.$api.comm.deleteFile(t.data.data.fileName)):e.$notify({type:"error",message:t.data.msg})}).catch(function(){})}}}),r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"box"},[i("el-form",{staticClass:"item-form-inline",attrs:{inline:!0,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"设备品牌"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryInfo.brand,callback:function(t){e.$set(e.queryInfo,"brand",t)},expression:"queryInfo.brand"}},e._l(e.brandOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备名称"}},[i("el-input",{attrs:{placeholder:"请输入设备名称",clearable:""},model:{value:e.queryInfo.name,callback:function(t){e.$set(e.queryInfo,"name",t)},expression:"queryInfo.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"操作系统"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryInfo.platform,callback:function(t){e.$set(e.queryInfo,"platform",t)},expression:"queryInfo.platform"}},e._l(e.platformOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备分类"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryInfo.classification,callback:function(t){e.$set(e.queryInfo,"classification",t)},expression:"queryInfo.classification"}},e._l(e.classificationOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备状态"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryInfo.isUsed,callback:function(t){e.$set(e.queryInfo,"isUsed",t)},expression:"queryInfo.isUsed"}},e._l(e.isUsedOptions,function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"借用人"}},[i("el-input",{attrs:{placeholder:"请输入借用人",clearable:""},model:{value:e.queryInfo.borrower,callback:function(t){e.$set(e.queryInfo,"borrower",t)},expression:"queryInfo.borrower"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.query}},[e._v("查询")])],1)],1),e._v(" "),i("el-row",{staticClass:"add_button"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addDialogVisible=!0}}},[e._v("添加")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showBorrowForm}},[e._v("借用")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.returnDevice}},[e._v("归还")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.batchExportDeviceList}},[e._v("批量导出")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.exportAllDeviceList}},[e._v("全部导出")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{"tooltip-effect":"dark",data:e.devicelist.slice((e.currpage-1)*e.queryInfo.pageSize,e.currpage*e.queryInfo.pageSize),border:"",fit:!0,"row-key":e.getRowKeys},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"60","reserve-selection":!0,align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"设备图片",align:"center",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("el-image",{staticStyle:{width:"120px",height:"100px"},attrs:{src:e.row.picture,"preview-src-list":[e.row.picture],lazy:""}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"所属",prop:"belong",align:"center",width:"100px"}}),e._v(" "),i("el-table-column",{attrs:{label:"设备品牌",prop:"brand",align:"center",width:"150px"}}),e._v(" "),i("el-table-column",{attrs:{label:"设备名称",prop:"name",align:"center",width:"150px"}}),e._v(" "),i("el-table-column",{attrs:{label:"设备型号",prop:"model",align:"center",width:"150px"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作系统",prop:"platform",align:"center",width:"150px"}}),e._v(" "),i("el-table-column",{attrs:{label:"设备编号",prop:"code",align:"center",width:"150px"}}),e._v(" "),i("el-table-column",{attrs:{label:"设备状态",align:"center",prop:"isUsed",width:"100px",formatter:e.statusFormat}}),e._v(" "),i("el-table-column",{attrs:{label:"借用人",prop:"borrower",align:"center",width:"100px"}}),e._v(" "),i("el-table-column",{attrs:{label:"借用时间",prop:"borrowTime",align:"center",width:"180px"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.showDetailDialog(t.row.id)}}},[e._v("查看")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.showEditDialog(t.row.id)}}},[e._v("编辑")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.delDevice(t.row.id)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("el-pagination",{attrs:{"page-sizes":[5,10,20,30],"page-size":e.queryInfo.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),i("el-dialog",{attrs:{title:"添加设备",visible:e.addDialogVisible,width:"50%","close-on-click-modal":!1},on:{"update:visible":function(t){e.addDialogVisible=t},close:e.addDialogClose}},[i("el-form",{ref:"addFormRef",attrs:{model:e.addForm,rules:e.addFormRules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"设备所属",prop:"belong"}},[i("el-select",{attrs:{placeholder:"请选择设备所属",clearable:""},model:{value:e.addForm.belong,callback:function(t){e.$set(e.addForm,"belong",t)},expression:"addForm.belong"}},e._l(e.belongOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备分类",prop:"classification"}},[i("el-select",{attrs:{placeholder:"请选择设备分类",clearable:""},model:{value:e.addForm.classification,callback:function(t){e.$set(e.addForm,"classification",t)},expression:"addForm.classification"}},e._l(e.classificationOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备品牌",prop:"brand"}},[i("el-select",{attrs:{placeholder:"请选择设备品牌",clearable:""},model:{value:e.addForm.brand,callback:function(t){e.$set(e.addForm,"brand",t)},expression:"addForm.brand"}},e._l(e.brandOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备名称",prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入设备名称",clearable:""},model:{value:e.addForm.name,callback:function(t){e.$set(e.addForm,"name",t)},expression:"addForm.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备型号",prop:"model"}},[i("el-input",{attrs:{placeholder:"请输入设备型号",clearable:""},model:{value:e.addForm.model,callback:function(t){e.$set(e.addForm,"model",t)},expression:"addForm.model"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备编号",prop:"code"}},[i("el-input",{attrs:{placeholder:"请输入设备编号",clearable:""},model:{value:e.addForm.code,callback:function(t){e.$set(e.addForm,"code",t)},expression:"addForm.code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"操作系统",prop:"platform"}},[i("el-select",{attrs:{placeholder:"请选择操作系统",clearable:""},model:{value:e.addForm.platform,callback:function(t){e.$set(e.addForm,"platform",t)},expression:"addForm.platform"}},e._l(e.platformOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"系统版本",prop:"systemVersion"}},[i("el-input",{attrs:{placeholder:"请输入系统版本",clearable:""},model:{value:e.addForm.systemVersion,callback:function(t){e.$set(e.addForm,"systemVersion",t)},expression:"addForm.systemVersion"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"UUID",prop:"uuid"}},[i("el-input",{attrs:{placeholder:"请输入uuid",clearable:""},model:{value:e.addForm.uuid,callback:function(t){e.$set(e.addForm,"uuid",t)},expression:"addForm.uuid"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"备注",prop:"comments"}},[i("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息",rows:6},model:{value:e.addForm.comments,callback:function(t){e.$set(e.addForm,"comments",t)},expression:"addForm.comments"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备图片",prop:"picture"}},[i("el-upload",{staticClass:"upload",attrs:{action:"","on-change":e.handleChange,"on-remove":e.handleRemove,"auto-upload":!1,"show-file-list":!0,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary"},model:{value:e.addForm.picture,callback:function(t){e.$set(e.addForm,"picture",t)},expression:"addForm.picture"}},[e._v("点击上传")])],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.addDialogCancel}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.addDevice}},[e._v("确 定")])],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"申请借用设备",visible:e.borrowDialogVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.borrowDialogVisible=t},close:e.borrowDialogClose}},[i("el-form",{ref:"borrowFormRef",attrs:{model:e.borrowForm,rules:e.borrowFormRules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"借用人",prop:"borrower"}},[i("el-input",{attrs:{placeholder:"请输入借用人"},model:{value:e.borrowForm.borrower,callback:function(t){e.$set(e.borrowForm,"borrower",t)},expression:"borrowForm.borrower"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"借用说明",prop:"borrowInstructions"}},[i("el-input",{attrs:{type:"textarea",placeholder:"请输入借用说明"},model:{value:e.borrowForm.borrowInstructions,callback:function(t){e.$set(e.borrowForm,"borrowInstructions",t)},expression:"borrowForm.borrowInstructions"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.borrowDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.borrowDevice}},[e._v("确 定")])],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"查看设备详情",visible:e.detailDialogVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.detailDialogVisible=t}}},[i("el-form",{attrs:{model:e.detailForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"所属",prop:"belong"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.belong,callback:function(t){e.$set(e.detailForm,"belong",t)},expression:"detailForm.belong"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备分类",prop:"classification"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.classification,callback:function(t){e.$set(e.detailForm,"classification",t)},expression:"detailForm.classification"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备品牌",prop:"brand"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.brand,callback:function(t){e.$set(e.detailForm,"brand",t)},expression:"detailForm.brand"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备名称",prop:"name"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.name,callback:function(t){e.$set(e.detailForm,"name",t)},expression:"detailForm.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备型号",prop:"model"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.model,callback:function(t){e.$set(e.detailForm,"model",t)},expression:"detailForm.model"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备编号",prop:"code"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.code,callback:function(t){e.$set(e.detailForm,"code",t)},expression:"detailForm.code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"操作系统",prop:"platform"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.platform,callback:function(t){e.$set(e.detailForm,"platform",t)},expression:"detailForm.platform"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"系统版本",prop:"systemVersion"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.systemVersion,callback:function(t){e.$set(e.detailForm,"systemVersion",t)},expression:"detailForm.systemVersion"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"UUID",prop:"uuid"}},[i("el-input",{attrs:{disabled:""},model:{value:e.detailForm.uuid,callback:function(t){e.$set(e.detailForm,"uuid",t)},expression:"detailForm.uuid"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"备注",prop:"comments"}},[i("el-input",{attrs:{type:"textarea",rows:6,disabled:""},model:{value:e.detailForm.comments,callback:function(t){e.$set(e.detailForm,"comments",t)},expression:"detailForm.comments"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备图片"}},[i("el-image",{staticStyle:{width:"350px",height:"250px"},attrs:{src:e.detailForm.picture,lazy:""}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.detailDialogVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"编辑设备信息",visible:e.editDialogVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.editDialogVisible=t},close:e.editDialogClose}},[i("el-form",{ref:"editFormRef",attrs:{model:e.editForm,rules:e.addFormRules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"设备所属",prop:"belong"}},[i("el-select",{attrs:{clearable:""},model:{value:e.editForm.belong,callback:function(t){e.$set(e.editForm,"belong",t)},expression:"editForm.belong"}},e._l(e.belongOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备分类",prop:"classification"}},[i("el-select",{attrs:{clearable:""},model:{value:e.editForm.classification,callback:function(t){e.$set(e.editForm,"classification",t)},expression:"editForm.classification"}},e._l(e.classificationOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备品牌",prop:"brand"}},[i("el-select",{attrs:{clearable:""},model:{value:e.editForm.brand,callback:function(t){e.$set(e.editForm,"brand",t)},expression:"editForm.brand"}},e._l(e.brandOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"设备名称",prop:"name"}},[i("el-input",{attrs:{clearable:""},model:{value:e.editForm.name,callback:function(t){e.$set(e.editForm,"name",t)},expression:"editForm.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备型号",prop:"model"}},[i("el-input",{attrs:{clearable:""},model:{value:e.editForm.model,callback:function(t){e.$set(e.editForm,"model",t)},expression:"editForm.model"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备编号",prop:"code"}},[i("el-input",{attrs:{clearable:""},model:{value:e.editForm.code,callback:function(t){e.$set(e.editForm,"code",t)},expression:"editForm.code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"操作系统",prop:"platform"}},[i("el-select",{attrs:{clearable:""},model:{value:e.editForm.platform,callback:function(t){e.$set(e.editForm,"platform",t)},expression:"editForm.platform"}},e._l(e.platformOptions,function(e){return i("el-option",{key:e.dictCode,attrs:{label:e.dictValue,value:e.dictValue}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"系统版本",prop:"systemVersion"}},[i("el-input",{attrs:{clearable:""},model:{value:e.editForm.systemVersion,callback:function(t){e.$set(e.editForm,"systemVersion",t)},expression:"editForm.systemVersion"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"UUID",prop:"uuid"}},[i("el-input",{attrs:{clearable:""},model:{value:e.editForm.uuid,callback:function(t){e.$set(e.editForm,"uuid",t)},expression:"editForm.uuid"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"备注",prop:"comments"}},[i("el-input",{attrs:{type:"textarea",rows:6},model:{value:e.editForm.comments,callback:function(t){e.$set(e.editForm,"comments",t)},expression:"editForm.comments"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"设备图片",prop:"picture"},model:{value:e.editForm.picture,callback:function(t){e.$set(e.editForm,"picture",t)},expression:"editForm.picture"}},[i("el-upload",{staticClass:"upload",attrs:{action:"addForm.picture","on-change":e.handleChange,"on-remove":e.handleRemove,"auto-upload":!1,"show-file-list":!0,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.editDialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.editDevice}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=i("VU/8")(o,r,!1,function(e){i("1qua")},"data-v-136fd240",null);t.default=s.exports}});
//# sourceMappingURL=21.c6abdc20026b7dd23dca.js.map