{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\publicNotice\\noticeMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\publicNotice\\noticeMenu.vue","mtime":1669196929508},{"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//\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 { TableMixin } from '@/mixins/tableMixin'\r\nimport noticeMenuDialog from './components/noticeMenuDialog.vue'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport noticeMenu from '@/api/examination/noticeMenu.js'\r\nexport default {\r\n\tname: 'noticeMenu',\r\n\tcomponents: {\r\n\t\tnoticeMenuDialog\r\n\t},\r\n\tmixins: [TableMixin],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\turl: {\r\n\t\t\t\tdelete: '/exam/notice/'\r\n\t\t\t},\r\n\t\t\tmultipleSelection: [],\r\n\t\t\ttableData: [],\r\n\t\t\tquerys: [\r\n\t\t\t\t{\r\n\t\t\t\t\tgroup: 'main',\r\n\t\t\t\t\toperation: 'LIKE',\r\n\t\t\t\t\tparentGroup: '',\r\n\t\t\t\t\tproperty: 'exam_notice.title_',\r\n\t\t\t\t\trelation: 'AND',\r\n\t\t\t\t\tvalue: ''\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tgroup: 'main',\r\n\t\t\t\t\toperation: 'EQUAL',\r\n\t\t\t\t\tparentGroup: '',\r\n\t\t\t\t\tproperty: 'type',\r\n\t\t\t\t\trelation: 'AND',\r\n\t\t\t\t\tvalue: ''\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tgroup: 'main',\r\n\t\t\t\t\toperation: 'EQUAL',\r\n\t\t\t\t\tparentGroup: '',\r\n\t\t\t\t\tproperty: 'status',\r\n\t\t\t\t\trelation: 'AND',\r\n\t\t\t\t\tvalue: ''\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t// 公告类型\r\n\t\t\tNoticeTypeList: [],\r\n\t\t\t// 公告状态\r\n\t\t\tNoticeStatusList: [],\r\n\t\t\tsortList: {}\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis.NoticeTypeList = dictUtils.getDictItemsFromCache('gglx')\r\n\t\tthis.NoticeStatusList = dictUtils.getDictItemsFromCache('ggzt')\r\n\t},\r\n\tmounted() { },\r\n\tmethods: {\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\tnoticeMenu.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\t// 是否置顶\r\n\t\thandleTopStatus(val) {\r\n\t\t\tlet title\r\n\t\t\ttitle = val.topStatus == 1 ? '取消置顶' : '置顶'\r\n\t\t\tconsole.log(val);\r\n\t\t\tlet data = {\r\n\t\t\t\tid: val.id,\r\n\t\t\t}\r\n\t\t\tnoticeMenu.Noticeflag(data, (res) => {\r\n\t\t\t\tif (res.state) {\r\n\t\t\t\t\tthis.$message({\r\n\t\t\t\t\t\tmessage: title + '成功',\r\n\t\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\t// 公告状态\r\n\t\thandleStatus(val) {\r\n\t\t\tlet title\r\n\t\t\ttitle = val.status == 1 ? '公告状态关闭' : '公告状态开启'\r\n\t\t\tlet data = {\r\n\t\t\t\tid: val.id,\r\n\t\t\t}\r\n\t\t\tnoticeMenu.NoticeStatus(data, (res) => {\r\n\t\t\t\tif (res.state) {\r\n\t\t\t\t\tthis.$message({\r\n\t\t\t\t\t\tmessage: title + '成功',\r\n\t\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\t})\r\n\t\t\t\t\t// this.loadData()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\t// 重置\r\n\t\tclearQuerys() {\r\n\t\t\tthis.querys[0].value = ''\r\n\t\t\tthis.querys[1].value = ''\r\n\t\t\tthis.querys[2].value = ''\r\n\t\t\tthis.loadData(1)\r\n\t\t},\r\n\t\t// 获取list\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\tthis.queryParam.sorter = [{\r\n\t\t\t\tdirection: \"DESC\",\r\n\t\t\t\tproperty: \"createTime\"\r\n\t\t\t}]\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\t\t\tif (this.querys[1].value) {\r\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\r\n\t\t\t}\r\n\t\t\tif (this.querys[2].value) {\r\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\r\n\t\t\t}\r\n\t\t\tnoticeMenu.getNotice(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(item => {\r\n\t\t\t\t\tthis.NoticeTypeList.forEach(ee => {\r\n\t\t\t\t\t\tif (item.type == ee.value) {\r\n\t\t\t\t\t\t\titem['typeName'] = ee.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}\r\n}\r\n",null]}