management/front/dkha-web-sz-main/node_modules/.cache/vue-loader/5b6631737ee47f575ce211e2f19...

1 line
7.3 KiB
JSON

{"remainingRequest":"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=style&index=0&id=6f80711a&lang=scss&scoped=true&","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\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"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\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\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\n\n\n\n.el-table {\n\t.el-button--text {\n\t\tpadding: 8px 0;\n\t}\n\n\t.el-dropdown {\n\t\tmargin-left: 10px;\n\t}\n}\n\n.el-dropdown-menu__item {\n\t&.danger {\n\t\tcolor: #F56C6C !important;\n\t}\n}\n",{"version":3,"sources":["access-version-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsHA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA","file":"access-version-update.vue","sourceRoot":"src/views/modules/sys","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"]}]}