{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorProjectManagement\\ReadyStart\\StartCreateEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorProjectManagement\\ReadyStart\\StartCreateEntry.vue","mtime":1741235516720},{"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\r\nimport pagination from '@/components/pagination'\r\nimport { TableMixin } from '@/mixins/tableMixin'\r\nimport utils from '@/utils.js'\r\nimport apiList from '@/api/MajorProject'\r\nimport ProjectDialog from '../ProjectDialog.vue'\r\nimport synchronizationDialog from '../synchronizationDialog.vue'\r\nexport default {\r\n name: 'StartCreateEntry',\r\n components: {\r\n pagination,\r\n ProjectDialog,\r\n synchronizationDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n markLoading: false,\r\n searchForm: {},\r\n loading: false,\r\n tableData: [],\r\n multipleSelection: [],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\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: 'LIKE',\r\n parentGroup: '',\r\n property: 'group_Name_',\r\n relation: 'AND',\r\n value: '',\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: 'EQUAL',\r\n parentGroup: '',\r\n property: 'year(create_time_)',\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_Field_',\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_Runway_',\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: 2,\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'm.Status_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n property: 'project_Category_',\r\n relation: 'AND',\r\n value: ''\r\n },\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 // 同步\r\n synchronization() {\r\n this.$refs.synchronizationDialog.add(2)\r\n },\r\n // selectHandle(row) {\r\n // if (!row.status) {\r\n // return true\r\n // }\r\n // },\r\n handleLock() {\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 apiList.projectAdjustById(this.multipleSelection, (res) => {\r\n if (res.state) {\r\n this.$message.success('项目状态修改成功')\r\n this.getData()\r\n }\r\n })\r\n })\r\n },\r\n // 试点层级筛选\r\n // handleCommand(command, typeIndex) {\r\n // console.log(11111111);\r\n // this.queryParam.querys[6].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 if (page) {\r\n this.queryParam.pageBean.page = page\r\n }\r\n this.getData()\r\n },\r\n //获取数据\r\n getData() {\r\n this.loading = true\r\n this.tableData = []\r\n apiList.getMajorProjectData(this.queryParam, (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 handleDelete() {\r\n this.$confirm(\r\n this.$t('common.sureDelete'),\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 )\r\n .then(() => {\r\n apiList.deleteTableData(this.multipleSelection, (res) => {\r\n if (res.state) {\r\n this.$message.success('删除成功')\r\n this.getData()\r\n }\r\n })\r\n })\r\n .catch(() => { })\r\n },\r\n //新增 修改 查看详情\r\n handleDbClick(title, data) {\r\n this.$refs.majorProjectsDialog.openDialog(title, data)\r\n },\r\n //下发\r\n handleDetailsk(data) {\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 data.status = 1\r\n apiList.majorProjectUpdate(data, res => {\r\n if (res.state) {\r\n this.$message.success('下发成功')\r\n }\r\n this.markLoading = false\r\n })\r\n })\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 console.log(this.multipleSelection);\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 createReport(row) {\r\n this.$confirm(`确认撤回吗?`, '提示', {\r\n confirmButtonText: '确认',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n this.markLoading = true\r\n let data = {\r\n id: row.id,\r\n status: 0,\r\n }\r\n apiList.updateCreateById(data, res => {\r\n if (res.state) {\r\n this.$message.success(`撤回成功`)\r\n row.status = 0\r\n }\r\n this.markLoading = false\r\n })\r\n })\r\n }\r\n },\r\n}\r\n",null]}