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