{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ReserveItemManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ReserveItemManagement.vue","mtime":1681724620008},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport majorProjects from '@/api/MajorReformProjects/majorProjects.js';\nimport ReserveItemDialog from \"./components/ReserveItemDialog.vue\";\nexport default {\n name: 'MajorProjects',\n components: {\n pagination: pagination,\n ReserveItemDialog: ReserveItemDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n searchForm: {},\n loading: false,\n tableData: [],\n multipleSelection: [],\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'project_name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'leader_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'project_type_',\n relation: 'AND',\n value: ''\n }],\n typeValue: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n } // total: 0,\n // sortList: {},\n\n };\n },\n created: function created() {\n this.jbList = dictUtils.getDictItemsFromCache('subjec_type');\n this.getData();\n },\n mounted: function mounted() {},\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n handleSearch: function handleSearch() {\n this.getData(1);\n },\n //获取数据\n getData: function getData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n } // if (this.querys[3].value) {\n // \tthis.queryParam.querys.push(this.querys[3])\n // }\n // if (this.querys[4].value) {\n // \tthis.queryParam.querys.push(this.querys[4])\n // }\n\n\n majorProjects.reserveProject(this.queryParam, function (res) {\n if (res.rows) {\n _this.tableData = res.rows; // this.tableData.forEach((e) => {\n // \tthis.jbList.forEach((j) => {\n // \t\tlet typeName = ''\n // \t\te.type.split(',').forEach((t) => {\n // \t\t\tif (t == j.value) {\n // \t\t\t\ttypeName += j.name + ','\n // \t\t\t\tconsole.log(j.name)\n // \t\t\t}\n // \t\t})\n // \t\tif (typeName.length > 0) {\n // \t\t\te.typeName = typeName.substr(\n // \t\t\t\t0,\n // \t\t\t\ttypeName.length - 1\n // \t\t\t)\n // \t\t}\n // \t})\n // })\n\n _this.queryParam.pageBean.total = res.total;\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n }\n });\n },\n // expandHandle() {\n // \tthis.expandAll = !this.expandAll\n // \tthis.expandNodes(this.$refs.tree.store.root)\n // },\n // // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n // expandNodes(node) {\n // \tnode.expanded = this.expandAll\n // \tfor (let i = 0; i < node.childNodes.length; i++) {\n // \t\tnode.childNodes[i].expanded = this.expandAll\n // \t\tif (node.childNodes[i].childNodes.length > 0) {\n // \t\t\tthis.expandNodes(node.childNodes[i])\n // \t\t}\n // \t}\n // },\n // filterNode(value, data) {\n // \tif (!value) return true\n // \treturn data.name.indexOf(value) !== -1\n // },\n // //树选中\n // handleNodeClick(data) {\n // \tthis.parentId = data.id\n // \tthis.querys[2].value = data.id\n // \tthis.getData(1)\n // },\n //添加\n handleAdd: function handleAdd() {\n this.$refs.ReserveItemDialog.add();\n },\n //删除\n handleDelete: function handleDelete() {\n var _this2 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n majorProjects.delDate(_this2.multipleSelection, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n }\n\n _this2.getData();\n });\n }).catch(function () {});\n },\n //修改\n handleDbClick: function handleDbClick(data) {\n this.$refs.ReserveItemDialog.edit(data.id);\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(val) {\n var _this3 = this;\n\n this.multipleSelection = [];\n this.$refs.multipleSelection.selection.forEach(function (item) {\n _this3.multipleSelection.push(item.id);\n });\n },\n //展示数量\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getData();\n },\n //表格页数\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getData();\n } // //排序\n // insort(val) {\n // \tlet id = val.id\n // \tlet value = val.sn\n // \tthis.sortList[id] = value\n // },\n // 保存排序\n // savePropertyf() {\n // \tthis.$confirm(this.$t('common.sureSort'), this.$t('common.tips'), {\n // \t\t\tconfirmButtonText: this.$t('common.confirm'),\n // \t\t\tcancelButtonText: this.$t('common.cancel'),\n // \t\t\ttype: 'warning',\n // \t\t})\n // \t\t.then(() => {\n // \t\t\tmajorProjects.sortData(this.sortList, (res) => {\n // \t\t\t\tif (res.state) {\n // \t\t\t\t\tthis.$notify({\n // \t\t\t\t\t\ttype: 'success',\n // \t\t\t\t\t\tmessage: res.message,\n // \t\t\t\t\t\tduration: 2000,\n // \t\t\t\t\t})\n // \t\t\t\t\tthis.getData()\n // \t\t\t\t} else {\n // \t\t\t\t\tthis.$message.warning(res.message)\n // \t\t\t\t}\n // \t\t\t})\n // \t\t})\n // \t\t.catch(() => {})\n // },\n //修改树\n // editTree() {\n // \tthis.$refs.internationTree.add()\n // },\n // callData() {\n // \tthis.loadDataTree()\n // \tthis.getData()\n // },\n\n }\n};",null]}