{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ProjectCreate\\ProjectCreationEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ProjectCreate\\ProjectCreationEntry.vue","mtime":1683192779286},{"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\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 majorProjects from '@/api/MajorReformProjects/majorProjects.js'\r\nimport MajorProjectsDialog from './components/MajorProjectsDialog.vue'\r\nexport default {\r\n name: 'ProjectCreationEntry',\r\n components: {\r\n pagination,\r\n MajorProjectsDialog,\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\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: 'LIKE',\r\n parentGroup: '',\r\n property: 'leader_',\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: 'BETWEEN',\r\n parentGroup: '',\r\n property: '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: 'send_status_',\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: 'closing_',\r\n relation: 'AND',\r\n value: '',\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 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 getData() {\r\n this.loading = true\r\n this.tableData = []\r\n majorProjects.pageQuery(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 handleAdd() {\r\n this.$refs.majorProjectsDialog.add()\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 majorProjects.delDate(this.multipleSelection, (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 }\r\n this.getData()\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n //关闭项目\r\n handleLock() {\r\n this.$confirm('确定关闭选中项目吗?', '提示', {\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 let data = ''\r\n this.multipleSelection.map((item) => {\r\n data += `ids=${item}&`\r\n })\r\n data = data.slice(0, data.length - 1)\r\n majorProjects.lockProject(data, (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 }\r\n this.getData()\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n //修改\r\n handleDbClick(data, type) {\r\n this.$refs.majorProjectsDialog.edit(data.id, type)\r\n },\r\n //详情\r\n handleDetailsk(data, type) {\r\n this.$refs.majorProjectsDialog.detail(data.id, 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]}