{"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\\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\\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//\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 noticeMenuDialog from \"./components/noticeMenuDialog.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport noticeMenu from '@/api/examination/noticeMenu.js';\nexport default {\n  name: 'noticeMenu',\n  components: {\n    noticeMenuDialog: noticeMenuDialog\n  },\n  mixins: [TableMixin],\n  data: function data() {\n    return {\n      url: {\n        delete: '/exam/notice/'\n      },\n      multipleSelection: [],\n      tableData: [],\n      querys: [{\n        group: 'main',\n        operation: 'LIKE',\n        parentGroup: '',\n        property: 'exam_notice.title_',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'EQUAL',\n        parentGroup: '',\n        property: 'type',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'EQUAL',\n        parentGroup: '',\n        property: 'status',\n        relation: 'AND',\n        value: ''\n      }],\n      // 公告类型\n      NoticeTypeList: [],\n      // 公告状态\n      NoticeStatusList: [],\n      sortList: {}\n    };\n  },\n  created: function created() {\n    this.NoticeTypeList = dictUtils.getDictItemsFromCache('gglx');\n    this.NoticeStatusList = dictUtils.getDictItemsFromCache('ggzt');\n  },\n  mounted: function mounted() {},\n  methods: {\n    insort: function insort(val) {\n      var id = val.id;\n      var value = val.sn;\n      this.sortList[id] = value;\n    },\n    // 保存排序\n    savePropertyf: function savePropertyf() {\n      var _this = this;\n\n      noticeMenu.saveSort(this.sortList, function (res) {\n        if (res.state) {\n          _this.$notify({\n            type: 'success',\n            message: res.message,\n            duration: 2000\n          });\n\n          _this.loadData();\n        } else {\n          _this.$message.warning(res.message);\n        }\n      });\n    },\n    // 是否置顶\n    handleTopStatus: function handleTopStatus(val) {\n      var _this2 = this;\n\n      var title;\n      title = val.topStatus == 1 ? '取消置顶' : '置顶';\n      console.log(val);\n      var data = {\n        id: val.id\n      };\n      noticeMenu.Noticeflag(data, function (res) {\n        if (res.state) {\n          _this2.$message({\n            message: title + '成功',\n            type: 'success'\n          });\n        }\n      });\n    },\n    // 公告状态\n    handleStatus: function handleStatus(val) {\n      var _this3 = this;\n\n      var title;\n      title = val.status == 1 ? '公告状态关闭' : '公告状态开启';\n      var data = {\n        id: val.id\n      };\n      noticeMenu.NoticeStatus(data, function (res) {\n        if (res.state) {\n          _this3.$message({\n            message: title + '成功',\n            type: 'success'\n          }); // this.loadData()\n\n        }\n      });\n    },\n    // 重置\n    clearQuerys: function clearQuerys() {\n      this.querys[0].value = '';\n      this.querys[1].value = '';\n      this.querys[2].value = '';\n      this.loadData(1);\n    },\n    // 获取list\n    loadData: function loadData(page) {\n      var _this4 = 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      this.queryParam.sorter = [{\n        direction: \"DESC\",\n        property: \"createTime\"\n      }];\n\n      if (this.querys[0].value) {\n        this.queryParam.querys.push(this.querys[0]);\n      }\n\n      if (this.querys[1].value) {\n        this.queryParam.querys.push(this.querys[1]);\n      }\n\n      if (this.querys[2].value) {\n        this.queryParam.querys.push(this.querys[2]);\n      }\n\n      noticeMenu.getNotice(this.queryParam, function (res) {\n        _this4.total = res.total;\n        _this4.tableData = res.rows;\n\n        _this4.tableData.forEach(function (item) {\n          _this4.NoticeTypeList.forEach(function (ee) {\n            if (item.type == ee.value) {\n              item['typeName'] = ee.name;\n            }\n          });\n        });\n\n        _this4.$set(_this4.tableData);\n\n        _this4.loading = false;\n      });\n    }\n  }\n};",null]}