forked from zhurui/management
1 line
11 KiB
JSON
1 line
11 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!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\\sys\\access-version-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\sys\\access-version-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\\babel-loader\\lib\\index.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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport mixinViewModule from '@/mixins/view-module';\nimport { getDictLabel, getDictDataList } from '@/utils';\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/scaidooreight/page',\n deleteURL: '/system/scaidooreight',\n getDataListIsPage: true\n },\n limit: 10,\n dataForm: {\n aeClientip: \"\",\n devicename: '',\n state: ''\n },\n dialogVisible: false,\n dataList: [],\n checkedList: [],\n equipStatusList: getDictDataList('equipment_status')\n };\n },\n methods: {\n init: function init() {\n this.dialogVisible = true;\n this.page = 1;\n this.query();\n },\n search: function search() {\n this.page = 1;\n this.query();\n },\n selectionChange: function selectionChange(data) {\n this.checkedList = data;\n },\n formatterType: function formatterType(row) {\n return getDictLabel('accessEquipType', row.aeSigntype);\n },\n formatterDevinceType: function formatterDevinceType(row) {\n return getDictLabel('accessDevinceType', row.aeDevicetype);\n },\n formatterState: function formatterState(row) {\n return getDictLabel('equipment_status', row.aeState);\n },\n updateEquip: function updateEquip() {\n var _this = this;\n\n var updateAllState = false;\n\n if (this.checkedList.length == 0) {\n updateAllState = true;\n }\n\n this.$confirm(updateAllState ? '将对全部设备升级' : '将对已选中设备升级', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this.$http({\n url: updateAllState ? \"/system/scaidooreight/updateAlldevice\" : \"/system/scaidooreight/updatedevicelist\",\n method: updateAllState ? \"get\" : 'post',\n data: _this.checkedList.map(function (item) {\n return item.aeId;\n })\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code != 0) {\n return _this.$message.error(res.msg);\n }\n\n _this.$message.success(res.msg);\n });\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["access-version-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,OAAA,eAAA,MAAA,sBAAA;AACA,SACA,YADA,EAEA,eAFA,QAGA,SAHA;AAIA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,4BADA;AAEA,QAAA,SAAA,EAAA,uBAFA;AAGA,QAAA,iBAAA,EAAA;AAHA,OADA;AAMA,MAAA,KAAA,EAAA,EANA;AAOA,MAAA,QAAA,EAAA;AACA,QAAA,UAAA,EAAA,EADA;AAE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ACA,UAAA,GAAA,EAAA,cAAA,GAAA,uCAAA,GAAA,wCADA;AAEA,UAAA,MAAA,EAAA,cAAA,GAAA,KAAA,GAAA,MAFA;AAGA,UAAA,IAAA,EAAA,KAAA,CAAA,WAAA,CAAA,GAAA,CAAA,UAAA,IAAA;AAAA,mBAAA,IAAA,CAAA,IAAA;AAAA,WAAA;AAHA,SAAA,EAIA,IAJA,CAIA,gBAEA;AAAA,cADA,GACA,QADA,IACA;;AACA,cAAA,GAAA,CAAA,IAAA,IAAA,CAAA,EAAA;AACA,mBAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,UAAA,KAAA,CAAA,QAAA,CAAA,OAAA,CAAA,GAAA,CAAA,GAAA;AACA,SAXA;AAYA,OAjBA,EAiBA,KAjBA,CAiBA,YAAA,CAAA,CAjBA;AAkBA;AA9CA;AAtBA,CAAA","sourcesContent":["<template>\n\t<el-dialog title=\"固件升级\" :visible.sync=\"dialogVisible\" :close-on-click-modal=\"false\" width=\"70%\">\n\t\t<el-form ref=\"ruleForm\" :model=\"dataForm\" label-width=\"100px\" inline>\n\t\t\t<el-form-item label=\"设备IP\" prop=\"aeClientip\">\n\t\t\t\t<el-input v-model=\"dataForm.aeClientip\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"设备名称\" prop=\"devicename\">\n\t\t\t\t<el-input v-model=\"dataForm.devicename\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"设备状态\" prop=\"state\">\n\t\t\t\t<el-select v-model=\"dataForm.state\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t<el-option v-for=\"item in equipStatusList\" :key=\"item.dictValue\" :label=\"item.dictLabel\" :value=\"item.dictValue\">\n\t\t\t\t\t</el-option>\n\t\t\t\t</el-select>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button @click=\"search\">查询</el-button>\n\t\t\t\t<el-button type=\"success\" @click=\"updateEquip\">升级</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table :data=\"dataList\" @selection-change=\"selectionChange\" height=\"50vh\">\n\t\t\t<el-table-column type=\"selection\" label=\"全选\" width=\"50\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"50\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"aeClientip\" label=\"设备IP\" width=\"200\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"aeDevicename\" label=\"设备名称\" width=\"200\" align=\"center\" show-overflow-tooltip></el-table-column>\n\t\t\t<el-table-column prop=\"aeVersionname\" label=\"设备程序版本号\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"aeState\" label=\"设备状态\" :formatter=\"formatterState\" width=\"100\" align=\"center\"></el-table-column>\n\t\t\t<!-- <el-table-column prop=\"aeSigntype\" label=\"设备签到类型\" :formatter=\"formatterType\" align=\"center\"></el-table-column> -->\n\t\t\t<!-- <el-table-column prop=\"aeDevicetype\" label=\"设备类型\" :formatter=\"formatterDevinceType\" align=\"center\"></el-table-column> -->\n\t\t\t<el-table-column prop=\"floorName\" label=\"安装位置\" align=\"center\"></el-table-column>\n\t\t\t<!-- <el-table-column prop=\"aeSetupdate\" label=\"安装时间\" align=\"center\"></el-table-column> -->\n\t\t\t<!-- <el-table-column prop=\"aeExpirydate\" label=\"有效期\" align=\"center\"></el-table-column> -->\n\t\t</el-table>\n\t\t<el-pagination :current-page=\"page\" :page-sizes=\"[10, 20, 50, 100]\" :page-size=\"limit\" :total=\"total\" layout=\"total, sizes, prev, pager, next, jumper\"\n\t\t @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\">\n\t\t</el-pagination>\n\t</el-dialog>\n</template>\n\n<script>\n\timport mixinViewModule from '@/mixins/view-module'\n\timport {\n\t\tgetDictLabel,\n\t\tgetDictDataList\n\t} from '@/utils'\n\texport default {\n\t\tmixins: [mixinViewModule],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: '/system/scaidooreight/page',\n\t\t\t\t\tdeleteURL: '/system/scaidooreight',\n\t\t\t\t\tgetDataListIsPage: true\n\t\t\t\t},\n\t\t\t\tlimit: 10,\n\t\t\t\tdataForm: {\n\t\t\t\t\taeClientip: \"\",\n\t\t\t\t\tdevicename: '',\n\t\t\t\t\tstate: ''\n\t\t\t\t},\n\t\t\t\tdialogVisible: false,\n\t\t\t\tdataList: [],\n\t\t\t\tcheckedList: [],\n\t\t\t\tequipStatusList: getDictDataList('equipment_status'),\n\t\t\t}\n\t\t},\n\n\t\tmethods: {\n\t\t\tinit() {\n\t\t\t\tthis.dialogVisible = true;\n\t\t\t\tthis.page = 1;\n\t\t\t\tthis.query();\n\t\t\t},\n\t\t\tsearch() {\n\t\t\t\tthis.page = 1;\n\t\t\t\tthis.query();\n\t\t\t},\n\t\t\tselectionChange(data) {\n\t\t\t\tthis.checkedList = data;\n\t\t\t},\n\t\t\tformatterType(row) {\n\t\t\t\treturn getDictLabel('accessEquipType', row.aeSigntype)\n\t\t\t},\n\t\t\tformatterDevinceType(row) {\n\t\t\t\treturn getDictLabel('accessDevinceType', row.aeDevicetype)\n\t\t\t},\n\t\t\tformatterState(row) {\n\t\t\t\treturn getDictLabel('equipment_status', row.aeState)\n\n\t\t\t},\n\t\t\tupdateEquip() {\n\t\t\t\tlet updateAllState = false;\n\t\t\t\tif (this.checkedList.length == 0) {\n\t\t\t\t\tupdateAllState = true;\n\t\t\t\t}\n\t\t\t\tthis.$confirm(updateAllState ? '将对全部设备升级' : '将对已选中设备升级', '提示', {\n\t\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\t\tcancelButtonText: '取消',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tthis.$http({\n\t\t\t\t\t\turl: updateAllState ? \"/system/scaidooreight/updateAlldevice\" : \"/system/scaidooreight/updatedevicelist\",\n\t\t\t\t\t\tmethod: updateAllState ? \"get\" : 'post',\n\t\t\t\t\t\tdata: this.checkedList.map(item => item.aeId)\n\t\t\t\t\t}).then(({\n\t\t\t\t\t\tdata: res\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t})\n\t\t\t\t}).catch(() => {})\n\t\t\t},\n\t\t}\n\t}\n</script>\n<style lang=\"scss\" scoped>\n\t.el-table {\n\t\t.el-button--text {\n\t\t\tpadding: 8px 0;\n\t\t}\n\n\t\t.el-dropdown {\n\t\t\tmargin-left: 10px;\n\t\t}\n\t}\n\n\t.el-dropdown-menu__item {\n\t\t&.danger {\n\t\t\tcolor: #F56C6C !important;\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/sys"}]} |