{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\roomMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\roomMenu.vue","mtime":1670579919375},{"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":["//\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\r\nimport {\r\n\tTableMixin\r\n} from '@/mixins/tableMixin'\r\nimport roomMenuDialog from './components/roomMenuDialog.vue'\r\nimport roomMenu from '@/api/examination/roomMenu.js'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nexport default {\r\n\tmixins: [TableMixin],\r\n\tname: 'roomMenu',\r\n\tcomponents: {\r\n\t\troomMenuDialog,\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\turl: {\r\n\t\t\t\tdelete: '/exam/room/info/'\r\n\t\t\t},\r\n\t\t\tsortList: {},\r\n\t\t\ttableData: [],\r\n\t\t\tmultipleSelection: [],\r\n\t\t\ttotal: 0,\r\n\t\t\troomStatusList: [],\r\n\t\t\tquerys: [{\r\n\t\t\t\tgroup: 'main',\r\n\t\t\t\toperation: 'EQUAL',\r\n\t\t\t\tparentGroup: '',\r\n\t\t\t\tproperty: 'name',\r\n\t\t\t\trelation: 'AND',\r\n\t\t\t\tvalue: ''\r\n\t\t\t}]\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis.roomStatusList = dictUtils.getDictItemsFromCache('kczt')\r\n\t},\r\n\tmethods: {\r\n\t\tloadData(page) {\r\n\t\t\tif (page) {\r\n\t\t\t\tthis.queryParam.pageBean.page = page\r\n\t\t\t}\r\n\t\t\tthis.loading = true\r\n\t\t\tthis.tableData = []\r\n\t\t\tthis.queryParam.querys = []\r\n\t\t\tif (this.querys[0].value) {\r\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\r\n\t\t\t}\r\n\r\n\t\t\troomMenu.pagingQuery(this.queryParam, res => {\r\n\t\t\t\tthis.total = res.total\r\n\t\t\t\tthis.tableData = res.rows\r\n\t\t\t\tthis.tableData.forEach(e => {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t\tthis.roomStatusList.forEach(s => {\r\n\t\t\t\t\t\tconsole.log(s);\r\n\t\t\t\t\t\tif (e.roomStatus == s.value) {\r\n\t\t\t\t\t\t\te.roomStatusName = s.name\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t\tthis.$set(this.tableData)\r\n\t\t\t\tthis.loading = false\r\n\t\t\t})\r\n\t\t},\r\n\t\tinsort(val) {\r\n\t\t\tlet id = val.id\r\n\t\t\tlet value = val.sn\r\n\t\t\tthis.sortList[id] = value\r\n\t\t},\r\n\t\t//保存排序号\r\n\t\tsavePropertyf() {\r\n\t\t\troomMenu.saveSort(this.sortList, (res) => {\r\n\t\t\t\tif (res.state) {\r\n\t\t\t\t\tthis.$notify({\r\n\t\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\t\tmessage: res.message,\r\n\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.loadData()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$message.warning(res.message)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\ttableRowClassName({\r\n\t\t\trow,\r\n\t\t\trowIndex\r\n\t\t}) {\r\n\t\t\tconsole.log(rowIndex % 2 == 0);\r\n\t\t\tif (rowIndex % 2 == 0) {\r\n\t\t\t\treturn 'warning-row';\r\n\t\t\t} else {\r\n\t\t\t\treturn '';\r\n\t\t\t}\r\n\t\t},\r\n\t}\r\n}\r\n",null]}