{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\WorkItems\\WorkReportsAudit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\WorkItems\\WorkReportsAudit.vue","mtime":1695498095010},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\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//\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//\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//\n//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport FormDialog from \"./components/newsR-dialog.vue\";\nimport newsRelease from '@/api/newsRelease.js';\nimport utils from '@/utils.js';\nimport moment from 'moment';\nexport default {\n name: 'WorkReportsAudit',\n components: {\n FormDialog: FormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n searchData: {},\n params: {\n classifyId: ''\n },\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'STATUS_',\n relation: 'AND',\n value: [1, 2, 3]\n }]\n },\n showFormDia: false,\n tableData: [],\n total: 0,\n pId: null,\n classifyNames: [{\n name: '区县工作动态',\n value: '1635207542319882240'\n }, {\n name: '领导关注',\n value: '1635207757647060992'\n }, {\n name: '工作部署',\n value: '1635207810117804032'\n }],\n multipleSelection: [],\n // 复选框\n basAdNames: [],\n //行政区\n fileList: [],\n sortList: {},\n tableLoading: false,\n options: [{\n label: '一般',\n value: 0\n }, {\n label: '优秀',\n value: 1\n }]\n };\n },\n created: function created() {\n this.getDateList();\n },\n methods: {\n // 撤销\n revokeReview: function revokeReview(item) {\n var _this = this;\n\n this.$confirm('确认执行撤销操作吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this.markLoading = true;\n var data = JSON.parse(JSON.stringify(item));\n delete data.createTime;\n data.approvalResults = 2;\n data.status = 1;\n newsRelease.dynamicSaveOrUpdate(data, function (res) {\n if (res.state) {\n _this.$message.success('撤销操作成功');\n\n _this.getDateList();\n } else {\n _this.$message.success('撤销操作失败');\n\n _this.getDateList();\n }\n\n _this.markLoading = false;\n });\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getDateList: function getDateList() {\n var _this2 = this;\n\n this.tableLoading = true;\n this.tableData = [];\n newsRelease.ListGet(this.queryParam, false, function (res) {\n if (res.state) {\n // res.rows.sort((a, b) => {\n // return a.sn - b.sn\n // })\n _this2.tableData = res.value.rows.map(function (item) {\n item.createTime = moment(item.createTime).format('YYYY-MM-DD');\n return item;\n });\n _this2.total = res.value.total;\n _this2.tableLoading = false;\n }\n });\n },\n onClickSearch: function onClickSearch() {\n this.tableLoading = true;\n var obj = JSON.parse(JSON.stringify(this.searchData));\n var querys = [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'STATUS_',\n relation: 'AND',\n value: [1, 2, 3]\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'title' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.queryParam.querys = querys;\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n resetQuery: function resetQuery() {\n this.params = {};\n this.queryParam.querys = [];\n this.getDateList();\n },\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n savePropertyf: function savePropertyf() {\n var _this3 = this;\n\n newsRelease.saveProperty(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.getDateList();\n } else {\n _this3.$message.warning(res.message);\n }\n });\n },\n //导入\n handleChange: function handleChange(file, fileList) {\n if (fileList.length > 1) {\n fileList.splice(0, 1);\n }\n\n if (file.raw.name.split('.')[1] != 'xlsx') {\n this.$apiMessage.warning('请上传xlsx格式文件!');\n fileList.splice(0);\n } else {\n this.upLoadFile(file.raw);\n }\n },\n //自定义上传方法(覆盖默认上传行为)\n upLoadFile: function upLoadFile(file) {\n var _this4 = this;\n\n var formData = new FormData();\n formData.append('file', file);\n formData.append('paperId', this.queryParam.params.paperId);\n flashFloods.upload(formData, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n\n _this4.queryParam.pageBean.page = 1;\n\n _this4.getDateList();\n } else {\n _this4.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this4.getDateList();\n }\n });\n },\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.showFormDia = true;\n },\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.showFormDia = true;\n },\n handleAudit: function handleAudit(row) {\n this.title = '审核';\n this.pId = row.id;\n this.showFormDia = true;\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n // // 批量删除\n deleteSelect: function deleteSelect() {\n var _this5 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n var ids = _this5.multipleSelection.join(',');\n\n newsRelease.remove(ids, function (res) {\n if (res.state) {\n _this5.$refs.multipleSelection.clearSelection();\n\n _this5.queryParam.pageBean.page = 1;\n\n _this5.getDateList();\n\n _this5.$message.success('删除数据成功');\n }\n }); // .then((res) => {\n // if (res.state) {\n // this.$notify({\n // type: 'success',\n // message: '删除成功',\n // duration: 2000,\n // // offset: 80\n // })\n // // this.multipleSelection = [];\n //\n // }\n // })\n // .catch((res) => {\n // this.$notify({\n // type: 'error',\n // message: res.message,\n // duration: 2000,\n // offset: 80,\n // })\n // this.getDateList()\n // })\n }).catch(function () {});\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList();\n },\n // 指定一个key标识这一行的数据\n getRowKeys: function getRowKeys(row) {\n return row.id;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n console.log(val);\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n }\n }\n};",null]}