1 line
9.0 KiB
JSON
1 line
9.0 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\\equipmentManage\\witness.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\witness.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport AddOrUpdate from \"./witness-add-or-update\";\nimport WitnessConfigure from \"./witness-configure\";\nimport mixinViewModule from '@/mixins/view-module';\nimport upload from '@/components/public/upload-excel-or-img';\nimport { getDictDataList } from '@/utils';\nexport default {\n name: \"pir\",\n components: {\n AddOrUpdate: AddOrUpdate,\n WitnessConfigure: WitnessConfigure,\n upload: upload\n },\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/scpersonidequip/page',\n getDataListIsPage: true,\n deleteURL: '/system/scpersonidequip'\n },\n dataForm: {\n pieDevicename: \"\",\n pieStatus: \"\"\n },\n configureVisible: false // 配置弹框状态\n\n };\n },\n computed: {\n statusList: function statusList() {\n return getDictDataList(\"equipment_status\");\n }\n },\n methods: {\n handleConfigure: function handleConfigure(id) {\n var _this = this;\n\n this.configureVisible = true;\n this.$nextTick(function () {\n _this.$refs.configure.init(id);\n });\n },\n importHandle: function importHandle() {\n this.$refs['studentUploadExcel'].init();\n }\n }\n};",{"version":3,"sources":["witness.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,OAAA,WAAA;AACA,OAAA,gBAAA;AACA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,MAAA,MAAA,yCAAA;AACA,SACA,eADA,QAEA,SAFA;AAGA,eAAA;AACA,EAAA,IAAA,EAAA,KADA;AAEA,EAAA,UAAA,EAAA;AACA,IAAA,WAAA,EAAA,WADA;AAEA,IAAA,gBAAA,EAAA,gBAFA;AAGA,IAAA,MAAA,EAAA;AAHA,GAFA;AAOA,EAAA,MAAA,EAAA,CAAA,eAAA,CAPA;AAQA,EAAA,IARA,kBAQA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,8BADA;AAEA,QAAA,iBAAA,EAAA,IAFA;AAGA,QAAA,SAAA,EAAA;AAHA,OADA;AAMA,MAAA,QAAA,EAAA;AACA,QAAA,aAAA,EAAA,EADA;AAEA,QAAA,SAAA,EAAA;AAFA,OANA;AAUA,MAAA,gBAAA,EAAA,KAVA,CAUA;;AAVA,KAAA;AAYA,GArBA;AAsBA,EAAA,QAAA,EAAA;AACA,IAAA,UADA,wBACA;AACA,aAAA,eAAA,CAAA,kBAAA,CAAA;AACA;AAHA,GAtBA;AA2BA,EAAA,OAAA,EAAA;AACA,IAAA,eADA,2BACA,EADA,EACA;AAAA;;AACA,WAAA,gBAAA,GAAA,IAAA;AACA,WAAA,SAAA,CAAA,YAAA;AACA,QAAA,KAAA,CAAA,KAAA,CAAA,SAAA,CAAA,IAAA,CAAA,EAAA;AACA,OAFA;AAGA,KANA;AAOA,IAAA,YAPA,0BAOA;AACA,WAAA,KAAA,CAAA,oBAAA,EAAA,IAAA;AACA;AATA;AA3BA,CAAA","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\" ref=\"ruleForm\">\n\t\t\t<el-form-item label=\"设备名称\" prop=\"pieDevicename\">\n\t\t\t\t<el-input v-model=\"dataForm.pieDevicename\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"设备状态\" prop=\"pieStatus\">\n\t\t\t\t<el-select v-model=\"dataForm.pieStatus\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t<el-option v-for=\"item in statusList\" :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=\"getDataList()\">{{ $t('query') }}</el-button>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button type=\"warning\" @click=\"resetForm('ruleForm')\">重置</el-button>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button type=\"primary\" @click=\"addOrUpdateHandle()\">{{ $t('add') }}</el-button>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button type=\"success\" @click=\"importHandle()\">导入</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table v-loading=\"dataListLoading\" :data=\"dataList\" style=\"width: 100%;\">\n\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"100\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"pieDevicename\" label=\"设备名称\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"pieEquipsn\" label=\"设备序列号\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"pieIpaddr\" label=\"IP地址\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"pieStatus\" label=\"设备状态\" header-align=\"center\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.pieStatus==0\" style=\"color:#67C23A;\"> {{ $getDictLabel(\"equipment_status\", scope.row.pieStatus) }}</span>\n\t\t\t\t\t<span v-else style=\"color:#f56c6c;\"> {{ $getDictLabel(\"equipment_status\", scope.row.pieStatus) }}</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"pieSetupaddr\" label=\"安装位置\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"pieSetupdate\" label=\"安装时间\" header-align=\"center\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column :label=\"$t('handle')\" fixed=\"right\" header-align=\"center\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<!-- <el-button type=\"text\" size=\"small\" @click=\"handleConfigure(scope.row.pieEquipsn)\">配置</el-button> -->\n\t\t\t\t\t<el-button type=\"text\" @click=\"addOrUpdateHandle(scope.row.pieId)\">{{ $t('update') }}</el-button>\n\t\t\t\t\t<el-button type=\"text\" @click=\"deleteHandle(scope.row.pieId)\">{{ $t('delete') }}</el-button>\n\t\t\t\t</template>\n\t\t\t</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\t<!-- 弹窗, 新增 / 修改 -->\n\t\t<add-or-update v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\" @refreshDataList=\"getDataList\"></add-or-update>\n\t\t<!-- 配置 -->\n\t\t<witness-configure v-if=\"configureVisible\" ref=\"configure\" @refreshDataList=\"getDataList\"></witness-configure>\n\t\t<!-- 批量上传信息 -->s\n\t\t<upload ref=\"studentUploadExcel\" template-url=\"./template/equipment/人证设备表导入模板.xls\" upload-url=\"/system/scpersonidequipconf/importExcel\"></upload>\n\t</el-card>\n</template>\n\n<script>\n\timport AddOrUpdate from './witness-add-or-update'\n\timport WitnessConfigure from './witness-configure'\n\timport mixinViewModule from '@/mixins/view-module'\n\timport upload from '@/components/public/upload-excel-or-img'\n\timport {\n\t\tgetDictDataList\n\t} from '@/utils'\n\texport default {\n\t\tname: \"pir\",\n\t\tcomponents: {\n\t\t\tAddOrUpdate,\n\t\t\tWitnessConfigure,\n\t\t\tupload\n\t\t},\n\t\tmixins: [mixinViewModule],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: '/system/scpersonidequip/page',\n\t\t\t\t\tgetDataListIsPage: true,\n\t\t\t\t\tdeleteURL: '/system/scpersonidequip',\n\t\t\t\t},\n\t\t\t\tdataForm: {\n\t\t\t\t\tpieDevicename: \"\",\n\t\t\t\t\tpieStatus: \"\",\n\t\t\t\t},\n\t\t\t\tconfigureVisible: false, // 配置弹框状态\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\tstatusList() {\n\t\t\t\treturn getDictDataList(\"equipment_status\")\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\thandleConfigure(id) {\n\t\t\t\tthis.configureVisible = true\n\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\tthis.$refs.configure.init(id)\n\t\t\t\t})\n\t\t\t},\n\t\t\timportHandle() {\n\t\t\t\tthis.$refs['studentUploadExcel'].init()\n\t\t\t},\n\t\t}\n\t}\n</script>\n<style scoped lang=\"scss\">\n\t.el-table {\n\t\t.el-button--text {\n\t\t\tpadding: 8px 0;\n\n\t\t\t&.hide-text {\n\t\t\t\tmax-width: 120px;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\toverflow: hidden;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\tword-break: break-all;\n\t\t\t}\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/equipmentManage"}]} |