{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\SixthConferenceImplementation\\specialTeamReview.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\SixthConferenceImplementation\\specialTeamReview.vue","mtime":1735627367919},{"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\r\nimport pagination from '@/components/pagination'\r\nimport { TableMixin } from '@/mixins/tableMixin'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport utils from '@/utils.js'\r\nimport projectsAPI from '@/api/SixthConferenceImplementation/index.js'\r\nimport projectsDialog from './components/projectsDialog.vue'\r\nimport req from '@/request'\r\nconst portal = window.context.portal\r\nexport default {\r\n name: 'projectCreated',\r\n components: {\r\n pagination,\r\n projectsDialog,\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n downloading: false,\r\n markLoading: false,\r\n searchForm: {},\r\n loading: false,\r\n tableData: [],\r\n multipleSelection: [],\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'project_name_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'project_type_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'send_status_',\r\n relation: 'AND',\r\n value: '1',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'unit_name_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'status_',\r\n relation: 'AND',\r\n value: ['3'],\r\n },\r\n ],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\r\n },\r\n }\r\n },\r\n created() {\r\n this.getData()\r\n },\r\n mounted() { },\r\n methods: {\r\n download() {\r\n this.downloading = true\r\n let api = '/majorProjects/BizMeetingMunicipal/v1/export'\r\n this.queryParam.querys = []\r\n this.querys.forEach((item) => {\r\n if (item.value !== undefined) {\r\n this.queryParam.querys.push(item)\r\n }\r\n })\r\n let params = JSON.parse(JSON.stringify(this.queryParam))\r\n params.pageBean.pageSize = -1\r\n req.request({\r\n method: 'post',\r\n url: portal + api,\r\n data: params,\r\n 'Content-type': 'application/x-www-form-urlencoded',\r\n responseType: 'blob',\r\n }).then((res) => {\r\n this.downloading = false\r\n if (res.status == 200) {\r\n this.$message.success('下载成功')\r\n } else {\r\n this.$message.error('下载失败')\r\n }\r\n })\r\n },\r\n handleSwitch(bol) {\r\n this.switchStatus = bol\r\n if (bol) {\r\n // 已办\r\n this.operation = 'IN'\r\n this.querys[4].value = ['4','5']\r\n } else {\r\n // 代办\r\n this.operation = 'EQUAL'\r\n this.querys[4].value = ['3']\r\n }\r\n this.handleSearch()\r\n },\r\n // 撤回\r\n propelRevocation(row) {\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 this.markLoading = true\r\n let data = {\r\n id: row.detailsId,\r\n status: 3\r\n }\r\n projectsAPI.propelRevocation(data).then(res => {\r\n if (res.state) {\r\n this.$message.success('撤回成功')\r\n row.status = 3\r\n this.markLoading = false\r\n }\r\n })\r\n })\r\n },\r\n selectHandle(row) {\r\n if (row.closing == 1) {\r\n return true\r\n }\r\n },\r\n // 下发状态筛选\r\n handleCommand(command, typeIndex) {\r\n this.querys[typeIndex].value = command\r\n this.handleSearch(1)\r\n },\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n handleSearch(page) {\r\n this.queryParam.querys = []\r\n this.querys.forEach((item) => {\r\n if (item.value !== undefined) {\r\n this.queryParam.querys.push(item)\r\n }\r\n })\r\n if (page) {\r\n this.queryParam.pageBean.page = page\r\n }\r\n this.getData()\r\n },\r\n // 下发\r\n handlePublish(data) {\r\n this.$confirm(\r\n this.$t('确认下发选中数据吗?'),\r\n this.$t('common.tips'),\r\n {\r\n confirmButtonText: this.$t('common.confirm'),\r\n cancelButtonText: this.$t('common.cancel'),\r\n type: 'warning',\r\n }\r\n ).then(() => {\r\n projectsAPI.publishPorject([data]).then((res) => {\r\n console.log(res, 'this.getData()')\r\n this.getData()\r\n })\r\n })\r\n },\r\n //获取数据\r\n getData() {\r\n this.loading = true\r\n this.tableData = []\r\n this.queryParam.querys = []\r\n this.querys.forEach((item) => {\r\n if (item.value !== undefined) {\r\n this.queryParam.querys.push(item)\r\n }\r\n })\r\n projectsAPI.getProjectByGroup(this.queryParam, status).then((res) => {\r\n if (res.rows) {\r\n this.tableData = res.rows\r\n this.queryParam.pageBean.page = res.page\r\n this.queryParam.pageBean.total = res.total\r\n this.$set(this.tableData)\r\n this.loading = false\r\n }\r\n })\r\n },\r\n //修改\r\n handleDbClick(data, title) {\r\n this.$refs.ProjectsDialog.edit(data, title)\r\n },\r\n //详情\r\n handleDetailsk(data, type) {\r\n this.$refs.ProjectsDialog.detail(data, type)\r\n },\r\n //表格选中\r\n handleSelectionChange(val) {\r\n this.multipleSelection = []\r\n this.$refs.multipleSelection.selection.forEach((item) => {\r\n this.multipleSelection.push(item.id)\r\n })\r\n },\r\n //展示数量\r\n handleSizeChange(val) {\r\n this.queryParam.pageBean.pageSize = val\r\n this.handleSearch(1)\r\n },\r\n //表格页数\r\n handleCurrentChange(val) {\r\n this.queryParam.pageBean.page = val\r\n this.handleSearch(val)\r\n },\r\n },\r\n}\r\n",null]}