{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ProjectCreationEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ProjectCreationEntry.vue","mtime":1682516191954},{"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\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 treeData: [],\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 typeValue: [],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\r\n },\r\n timeValue: '',\r\n unitValue: [],\r\n // total: 0,\r\n // sortList: {},\r\n }\r\n },\r\n\r\n created() {\r\n this.jbList = dictUtils.getDictItemsFromCache('subjec_type')\r\n this.getData()\r\n },\r\n mounted() {},\r\n methods: {\r\n getDictName(code, value) {\r\n console.log(code, value)\r\n return utils.getDictName(code, value)\r\n },\r\n changeUnit(value) {\r\n let nodesObj = this.$refs['cascader'].getCheckedNodes()\r\n if (nodesObj != []) {\r\n this.querys[2].value = nodesObj[0].data.id\r\n } else {\r\n this.querys[2].value = ''\r\n }\r\n },\r\n handleSearch() {\r\n if (this.timeValue) {\r\n this.querys[2].value = [\r\n this.timeValue + ' 00:00:00',\r\n this.timeValue + ' 23:59:59',\r\n ]\r\n }\r\n console.log(this.querys)\r\n this.getData(1)\r\n },\r\n //获取数据\r\n getData(page) {\r\n console.log(this.typeValue)\r\n if (page) {\r\n this.queryParam.pageBean.page = page\r\n }\r\n this.loading = true\r\n this.tableData = []\r\n this.queryParam.querys = []\r\n if (this.querys[0].value) {\r\n this.queryParam.querys.push(this.querys[0])\r\n }\r\n if (this.querys[1].value) {\r\n this.queryParam.querys.push(this.querys[1])\r\n }\r\n if (this.querys[2].value) {\r\n this.queryParam.querys.push(this.querys[2])\r\n }\r\n majorProjects.pageQuery(this.queryParam, (res) => {\r\n if (res.rows) {\r\n this.tableData = res.rows\r\n // this.tableData.forEach((e) => {\r\n // \tthis.jbList.forEach((j) => {\r\n // \t\tlet typeName = ''\r\n // \t\te.type.split(',').forEach((t) => {\r\n // \t\t\tif (t == j.value) {\r\n // \t\t\t\ttypeName += j.name + ','\r\n // \t\t\t\tconsole.log(j.name)\r\n // \t\t\t}\r\n // \t\t})\r\n // \t\tif (typeName.length > 0) {\r\n // \t\t\te.typeName = typeName.substr(\r\n // \t\t\t\t0,\r\n // \t\t\t\ttypeName.length - 1\r\n // \t\t\t)\r\n // \t\t}\r\n // \t})\r\n // })\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 // expandHandle() {\r\n // \tthis.expandAll = !this.expandAll\r\n // \tthis.expandNodes(this.$refs.tree.store.root)\r\n // },\r\n // // 遍历树形数据,设置每一项的expanded属性,实现展开收起\r\n // expandNodes(node) {\r\n // \tnode.expanded = this.expandAll\r\n // \tfor (let i = 0; i < node.childNodes.length; i++) {\r\n // \t\tnode.childNodes[i].expanded = this.expandAll\r\n // \t\tif (node.childNodes[i].childNodes.length > 0) {\r\n // \t\t\tthis.expandNodes(node.childNodes[i])\r\n // \t\t}\r\n // \t}\r\n // },\r\n // filterNode(value, data) {\r\n // \tif (!value) return true\r\n // \treturn data.name.indexOf(value) !== -1\r\n // },\r\n // //树选中\r\n // handleNodeClick(data) {\r\n // \tthis.parentId = data.id\r\n // \tthis.querys[2].value = data.id\r\n // \tthis.getData(1)\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) {\r\n this.$refs.majorProjectsDialog.edit(data.id)\r\n },\r\n //详情\r\n handleDetailsk(data) {\r\n this.$refs.majorProjectsDialog.detail(data.id)\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.getData()\r\n },\r\n //表格页数\r\n handleCurrentChange(val) {\r\n this.queryParam.pageBean.page = val\r\n this.getData()\r\n },\r\n // //排序\r\n // insort(val) {\r\n // \tlet id = val.id\r\n // \tlet value = val.sn\r\n // \tthis.sortList[id] = value\r\n // },\r\n // 保存排序\r\n // savePropertyf() {\r\n // \tthis.$confirm(this.$t('common.sureSort'), this.$t('common.tips'), {\r\n // \t\t\tconfirmButtonText: this.$t('common.confirm'),\r\n // \t\t\tcancelButtonText: this.$t('common.cancel'),\r\n // \t\t\ttype: 'warning',\r\n // \t\t})\r\n // \t\t.then(() => {\r\n // \t\t\tmajorProjects.sortData(this.sortList, (res) => {\r\n // \t\t\t\tif (res.state) {\r\n // \t\t\t\t\tthis.$notify({\r\n // \t\t\t\t\t\ttype: 'success',\r\n // \t\t\t\t\t\tmessage: res.message,\r\n // \t\t\t\t\t\tduration: 2000,\r\n // \t\t\t\t\t})\r\n // \t\t\t\t\tthis.getData()\r\n // \t\t\t\t} else {\r\n // \t\t\t\t\tthis.$message.warning(res.message)\r\n // \t\t\t\t}\r\n // \t\t\t})\r\n // \t\t})\r\n // \t\t.catch(() => {})\r\n // },\r\n //修改树\r\n // editTree() {\r\n // \tthis.$refs.internationTree.add()\r\n // },\r\n // callData() {\r\n // \tthis.loadDataTree()\r\n // \tthis.getData()\r\n // },\r\n },\r\n}\r\n",null]}