{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\deviceMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\deviceMenu.vue","mtime":1670579919375},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport deviceMenuDialog from \"./components/deviceMenuDialog.vue\";\nimport deviceMenu from '@/api/examination/deviceMenu.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n mixins: [TableMixin],\n name: 'deviceMenu',\n components: {\n deviceMenuDialog: deviceMenuDialog\n },\n data: function data() {\n return {\n url: {\n delete: '/exam/camera/info/'\n },\n tableData: [],\n multipleSelection: [],\n total: 0,\n sortList: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }],\n typeList: [],\n roomList: []\n };\n },\n created: function created() {\n this.getRoomQuery();\n this.typeList = dictUtils.getDictItemsFromCache('sblx');\n },\n methods: {\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n deviceMenu.pagingQuery(this.queryParam, function (res) {\n _this.total = res.total;\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (e) {\n _this.typeList.forEach(function (s) {\n if (e.type == s.value) {\n e.typeName = s.name;\n }\n });\n\n _this.roomList.forEach(function (s) {\n if (e.roomId == s.id) {\n e.roomName = s.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n //获取考场\n getRoomQuery: function getRoomQuery() {\n var _this2 = this;\n\n deviceMenu.roomQuery(this.queryParam, function (res) {\n if (res.rows) {\n _this2.roomList = res.rows;\n\n _this2.loadData(1);\n }\n });\n },\n //保存排序号\n savePropertyf: function savePropertyf() {\n var _this3 = this;\n\n deviceMenu.saveSort(this.sortList, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this3.loadData();\n } else {\n _this3.$message.warning(res.message);\n }\n });\n },\n tableRowClassName: function tableRowClassName(_ref) {\n var row = _ref.row,\n rowIndex = _ref.rowIndex;\n console.log(rowIndex % 2 == 0);\n\n if (rowIndex % 2 == 0) {\n return 'warning-row';\n } else {\n return '';\n }\n }\n }\n};",null]}