{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformPilotManage\\DistrictPromotioneEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformPilotManage\\DistrictPromotioneEntry.vue","mtime":1687933939321},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport ReformPilotManageDialog from './components/ReformPilotManageDialog.vue'\r\nimport detailDialog from './components/detailDialog'\r\nimport pilotprojects from '@/api/pilotprojects'\r\nimport utils from '@/utils.js'\r\nexport default {\r\n name: 'InternationalSubject',\r\n components: {\r\n pagination,\r\n ReformPilotManageDialog,\r\n detailDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n districtData: [],\r\n searchForm: {},\r\n tableMaxHeight: 400,\r\n tableData: [],\r\n pageResult: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0\r\n },\r\n tableLoading: false,\r\n deleteIds: '',\r\n markLoading: false\r\n // userId: ''\r\n }\r\n },\r\n\r\n created() {\r\n this.getData()\r\n this.setPilotLevelList()\r\n },\r\n computed: {\r\n userId() {\r\n return this.$store.state.user.currentUserDetail\r\n ? this.$store.state.user.currentUserDetail.user.userId\r\n : ''\r\n }\r\n },\r\n methods: {\r\n //获取数据\r\n getData() {\r\n this.tableLoading = true\r\n let data = {\r\n page: this.pageResult.page,\r\n size: this.pageResult.pageSize\r\n }\r\n pilotprojects.getDistrictInputList(data, false, res => {\r\n this.pageResult.total = res.value.total\r\n this.tableLoading = false\r\n this.tableData = res.value.rows\r\n })\r\n },\r\n // 过滤\r\n filterHandler(value, row, column) {\r\n return row.pilotLevel == value\r\n },\r\n // 上报\r\n handleVerify(item) {\r\n let data = {\r\n status: 6,\r\n id: item.recId\r\n }\r\n this.$confirm('确认上报吗?', this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'success'\r\n }).then(() => {\r\n this.markLoading = true\r\n pilotprojects.districtAuditsById(data, res => {\r\n if (res.state) {\r\n item.recordsStatus = 6\r\n this.markLoading = false\r\n this.$message.success('上报成功')\r\n }\r\n })\r\n })\r\n },\r\n // 录入更新\r\n handleEdit(item) {\r\n this.$refs.reformPilotManageDialog.title = '更新'\r\n this.$refs.reformPilotManageDialog.reqLoading = true\r\n this.$refs.reformPilotManageDialog.isUpdate = false\r\n this.$refs.reformPilotManageDialog.add(item)\r\n },\r\n // 修改\r\n handleUpdate(item) {\r\n this.$refs.reformPilotManageDialog.title = '编辑'\r\n this.$refs.reformPilotManageDialog.editOrUpdate = true\r\n this.$refs.reformPilotManageDialog.historyShow = true\r\n this.$refs.reformPilotManageDialog.reqLoading = true\r\n this.$refs.reformPilotManageDialog.isUpdate = true\r\n this.$refs.reformPilotManageDialog.add(item)\r\n },\r\n // 查看详情\r\n handleDetils(item) {\r\n this.$refs.detailDialog.title = '详情'\r\n this.$refs.detailDialog.reqLoading = true\r\n this.$refs.detailDialog.listShow = true\r\n this.$refs.detailDialog.openDialog(item)\r\n },\r\n // 更新\r\n handleHistroy(item) {\r\n this.markLoading = true\r\n pilotprojects.doneOrNot(item.id, res => {\r\n if (res) {\r\n this.$refs.reformPilotManageDialog.reqLoading = true\r\n this.$refs.reformPilotManageDialog.isUpdate = false\r\n // this.$refs.reformPilotManageDialog.isUpdate =\r\n // item.recordsStatus === 12 ? false : true\r\n this.$refs.reformPilotManageDialog.editOrUpdate = false\r\n this.$refs.reformPilotManageDialog.title = '更新'\r\n this.$refs.reformPilotManageDialog.historyShow = true\r\n this.markLoading = false\r\n this.$refs.reformPilotManageDialog.add(item)\r\n } else {\r\n this.markLoading = false\r\n this.$confirm('存在未审核数据,请等待审核之后再更新!', '提示', {\r\n cancelButtonText: '关闭',\r\n iconClass: 'el-icon-info',\r\n showConfirmButton: false\r\n })\r\n .then(() => {})\r\n .catch(() => {})\r\n }\r\n })\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n handleSearch(page) {\r\n this.tableLoading = true\r\n let data = JSON.parse(JSON.stringify(this.searchForm))\r\n // if (data.status == 5) {\r\n // data.status = -1\r\n // }\r\n data.page = page\r\n this.pageResult.page = page\r\n data.size = this.pageResult.pageSize\r\n pilotprojects.getDistrictInputList(data, false, res => {\r\n this.tableData = res.value.rows\r\n this.pageResult.total = res.value.total\r\n this.tableLoading = false\r\n })\r\n },\r\n //删除\r\n handleDelete() {\r\n this.$confirm('确认删除吗?', this.$t('common.tips'), {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n pilotprojects.deletePilotProject(this.deleteIds, res => {\r\n if (res.state) {\r\n this.getData()\r\n this.$message.success('删除成功')\r\n }\r\n })\r\n })\r\n },\r\n //表格选中\r\n handleSelectionChange(val) {\r\n let arr = val.map(item => item.id)\r\n this.deleteIds = arr.join(',')\r\n },\r\n // 分页\r\n handleCurrentChange(page) {\r\n this.pageResult.page = page\r\n this.handleSearch(page)\r\n },\r\n handleSizeChange(pageSize) {\r\n this.pageResult.pageSize = pageSize\r\n this.handleSearch(1)\r\n },\r\n callData() {\r\n // this.getData()\r\n this.handleSearch(this.pageResult.page)\r\n }\r\n }\r\n}\r\n",null]}