{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\Worktable\\components\\ReformProjectDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\Worktable\\components\\ReformProjectDetails.vue","mtime":1681724620244},{"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\nimport pagination from '@/components/pagination'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport utils from '@/utils.js'\nimport worktable from '@/api/worktable/worktable.js'\nimport ReformProjectDialog from './ReformProjectDialog.vue'\nexport default {\n\tname: 'ReformProjectDetails',\n\tcomponents: {\n\t\tpagination,\n\t\tReformProjectDialog,\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\tsearchForm: {},\n\t\t\tloading: false,\n\t\t\ttableData: [],\n\t\t\tmultipleSelection: [],\n\t\t\ttreeData: [],\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'project_name_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'leader_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\n\t\t\t],\n\t\t\ttypeValue: [],\n\t\t\tqueryParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpage: 1,\n\t\t\t\t\tpageSize: 20,\n\t\t\t\t\ttotal: 0,\n\t\t\t\t},\n\n\t\t\t},\n\t\t\tunitValue: []\n\t\t\t// total: 0,\n\t\t\t// sortList: {},\n\t\t}\n\t},\n\n\tcreated() {\n\t\tthis.jbList = dictUtils.getDictItemsFromCache('subjec_type')\n\t\tthis.getData()\n\t},\n\tmounted() {},\n\tmethods: {\n\t\tgetDictName(code, value) {\n\t\t\tconsole.log(code, value);\n\t\t\treturn utils.getDictName(code, value)\n\t\t},\n\t\tchangeUnit(value) {\n\t\t\tlet nodesObj = this.$refs['cascader'].getCheckedNodes()\n\t\t\tif (nodesObj != []) {\n\t\t\t\tthis.querys[2].value = nodesObj[0].data.id\n\n\t\t\t} else {\n\t\t\t\tthis.querys[2].value = ''\n\n\t\t\t}\n\t\t},\n\t\thandleSearch() {\n\t\t\tthis.getData((1))\n\t\t},\n\t\t//获取数据\n\t\tgetData(page) {\n\t\t\tconsole.log(this.typeValue)\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\n\t\t\tworktable.pageQuery(this.queryParam, (res) => {\n\t\t\t\tif (res.rows) {\n\t\t\t\t\tthis.tableData = res.rows\n\t\t\t\t\t// this.tableData.forEach((e) => {\n\t\t\t\t\t// \tthis.jbList.forEach((j) => {\n\t\t\t\t\t// \t\tlet typeName = ''\n\t\t\t\t\t// \t\te.type.split(',').forEach((t) => {\n\t\t\t\t\t// \t\t\tif (t == j.value) {\n\t\t\t\t\t// \t\t\t\ttypeName += j.name + ','\n\t\t\t\t\t// \t\t\t\tconsole.log(j.name)\n\t\t\t\t\t// \t\t\t}\n\t\t\t\t\t// \t\t})\n\t\t\t\t\t// \t\tif (typeName.length > 0) {\n\t\t\t\t\t// \t\t\te.typeName = typeName.substr(\n\t\t\t\t\t// \t\t\t\t0,\n\t\t\t\t\t// \t\t\t\ttypeName.length - 1\n\t\t\t\t\t// \t\t\t)\n\t\t\t\t\t// \t\t}\n\t\t\t\t\t// \t})\n\t\t\t\t\t// })\n\t\t\t\t\tthis.queryParam.pageBean.total = res.total\n\t\t\t\t\tthis.$set(this.tableData)\n\t\t\t\t\tthis.loading = false\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t// expandHandle() {\n\t\t// \tthis.expandAll = !this.expandAll\n\t\t// \tthis.expandNodes(this.$refs.tree.store.root)\n\t\t// },\n\t\t// // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n\t\t// expandNodes(node) {\n\t\t// \tnode.expanded = this.expandAll\n\t\t// \tfor (let i = 0; i < node.childNodes.length; i++) {\n\t\t// \t\tnode.childNodes[i].expanded = this.expandAll\n\t\t// \t\tif (node.childNodes[i].childNodes.length > 0) {\n\t\t// \t\t\tthis.expandNodes(node.childNodes[i])\n\t\t// \t\t}\n\t\t// \t}\n\t\t// },\n\t\t// filterNode(value, data) {\n\t\t// \tif (!value) return true\n\t\t// \treturn data.name.indexOf(value) !== -1\n\t\t// },\n\t\t// //树选中\n\t\t// handleNodeClick(data) {\n\t\t// \tthis.parentId = data.id\n\t\t// \tthis.querys[2].value = data.id\n\t\t// \tthis.getData(1)\n\t\t// },\n\t\t//添加\n\t\thandleAdd() {\n\t\t\tthis.$refs.ReformProjectDialog.add()\n\t\t},\n\t\t//删除\n\t\thandleDelete() {\n\t\t\tthis.$confirm(\n\t\t\t\t\tthis.$t('common.sureDelete'),\n\t\t\t\t\tthis.$t('common.tips'), {\n\t\t\t\t\t\tconfirmButtonText: this.$t('common.confirm'),\n\t\t\t\t\t\tcancelButtonText: this.$t('common.cancel'),\n\t\t\t\t\t\ttype: 'warning',\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t\t.then(() => {\n\t\t\t\t\tworktable.delDate(\n\t\t\t\t\t\tthis.multipleSelection,\n\t\t\t\t\t\t(res) => {\n\t\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.getData()\n\t\t\t\t\t\t}\n\t\t\t\t\t)\n\t\t\t\t})\n\t\t\t\t.catch(() => {})\n\t\t},\n\t\t//修改\n\t\thandleDbClick(data) {\n\t\t\tthis.$refs.ReformProjectDialog.edit(data.id)\n\t\t},\n\n\t\t//表格选中\n\t\thandleSelectionChange(val) {\n\t\t\tthis.multipleSelection = []\n\t\t\tthis.$refs.multipleSelection.selection.forEach((item) => {\n\t\t\t\tthis.multipleSelection.push(item.id)\n\t\t\t})\n\t\t},\n\t\t//展示数量\n\t\thandleSizeChange(val) {\n\t\t\tthis.queryParam.pageBean.pageSize = val\n\t\t\tthis.getData()\n\t\t},\n\t\t//表格页数\n\t\thandleCurrentChange(val) {\n\t\t\tthis.queryParam.pageBean.page = val\n\t\t\tthis.getData()\n\t\t},\n\t\t// //排序\n\t\t// insort(val) {\n\t\t// \tlet id = val.id\n\t\t// \tlet value = val.sn\n\t\t// \tthis.sortList[id] = value\n\t\t// },\n\t\t// 保存排序\n\t\t// savePropertyf() {\n\t\t// \tthis.$confirm(this.$t('common.sureSort'), this.$t('common.tips'), {\n\t\t// \t\t\tconfirmButtonText: this.$t('common.confirm'),\n\t\t// \t\t\tcancelButtonText: this.$t('common.cancel'),\n\t\t// \t\t\ttype: 'warning',\n\t\t// \t\t})\n\t\t// \t\t.then(() => {\n\t\t// \t\t\tworktable.sortData(this.sortList, (res) => {\n\t\t// \t\t\t\tif (res.state) {\n\t\t// \t\t\t\t\tthis.$notify({\n\t\t// \t\t\t\t\t\ttype: 'success',\n\t\t// \t\t\t\t\t\tmessage: res.message,\n\t\t// \t\t\t\t\t\tduration: 2000,\n\t\t// \t\t\t\t\t})\n\t\t// \t\t\t\t\tthis.getData()\n\t\t// \t\t\t\t} else {\n\t\t// \t\t\t\t\tthis.$message.warning(res.message)\n\t\t// \t\t\t\t}\n\t\t// \t\t\t})\n\t\t// \t\t})\n\t\t// \t\t.catch(() => {})\n\t\t// },\n\t\t//修改树\n\t\t// editTree() {\n\t\t// \tthis.$refs.internationTree.add()\n\t\t// },\n\t\t// callData() {\n\t\t// \tthis.loadDataTree()\n\t\t// \tthis.getData()\n\t\t// },\n\t},\n}\n",null]}