{"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\\ProjectActionIteration\\MeasureIterationApplication.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ProjectActionIteration\\MeasureIterationApplication.vue","mtime":1683538793441},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport utils from '@/utils.js';\nimport majorProjects from '@/api/MajorReformProjects/majorProjects.js';\nimport MeasureDialog from \"./components/MeasureDialog.vue\";\nimport measureIterationApplication from '@/api/projectActionIteration/measureIterationApplication.js';\nexport default {\n name: 'MajorProjects',\n components: {\n pagination: pagination,\n MeasureDialog: MeasureDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n markLoading: false,\n searchForm: {},\n loading: false,\n tableData: [],\n multipleSelection: [],\n treeData: [],\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'SEND_STATUS_',\n relation: 'AND',\n value: 1\n }, {\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 typeValue: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n unitValue: [],\n pilotSpecificMeasuresList: []\n };\n },\n created: function created() {\n this.jbList = dictUtils.getDictItemsFromCache('subjec_type');\n this.getData(this.queryParam);\n },\n mounted: function mounted() {},\n methods: {\n // 撤回\n handleAppear: function handleAppear(row) {\n var _this = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u64A4\\u56DE\\u5417\\uFF1F\", this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this.getPilotSpecificMeasuresList(row.id, [1]).then(function () {\n var data = {\n ids: [],\n status: 0,\n approvalResults: 2\n };\n\n if (_this.pilotSpecificMeasuresList.length) {\n _this.pilotSpecificMeasuresList.forEach(function (e) {\n data.ids.push(e.id);\n });\n\n measureIterationApplication.auditSave(data, function (res) {\n if (res.state) {\n row.status = 1;\n\n _this.$message.success('撤回成功');\n\n _this.handleSearch();\n } else {\n _this.$message.error('撤回失败');\n }\n\n _this.markLoading = false;\n });\n } else {\n _this.$message.error('暂无可撤回操作');\n\n _this.markLoading = false;\n }\n });\n });\n },\n // 获取举措数据\n getPilotSpecificMeasuresList: function getPilotSpecificMeasuresList(id) {\n var _this2 = this;\n\n return new Promise(function (reslove) {\n _this2.markLoading = true;\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'h.project_id_',\n relation: 'AND',\n value: id\n }, {\n group: 'statusGroup',\n operation: 'IN',\n parentGroup: '',\n property: 'h.status_',\n relation: 'AND',\n value: [1]\n }]\n };\n measureIterationApplication.gteAuditMeasuresDetail(data, function (res) {\n if (res && res.rows && res.rows.length) {\n _this2.pilotSpecificMeasuresList = res.rows;\n }\n\n reslove();\n });\n });\n },\n getDictName: function getDictName(code, value) {\n console.log(code, value);\n return utils.getDictName(code, value);\n },\n changeUnit: function changeUnit(value) {\n var nodesObj = this.$refs['cascader'].getCheckedNodes();\n\n if (nodesObj != []) {\n this.querys[2].value = nodesObj[0].data.id;\n } else {\n this.querys[2].value = '';\n }\n },\n handleSearch: function handleSearch() {\n this.tableLoading = true;\n var data = JSON.parse(JSON.stringify(this.queryParam));\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n var querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'SEND_STATUS_',\n relation: 'AND',\n value: 1\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n data.querys = querys;\n this.getData(data, 1);\n },\n //获取数据\n getData: function getData(data, page) {\n var _this3 = 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 measureIterationApplication.getMeasuresAuditList(data, false, true, function (res) {\n if (res.rows) {\n _this3.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 _this3.queryParam.pageBean.total = res.total;\n\n _this3.$set(_this3.tableData);\n\n _this3.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.MeasureDialog.add();\n },\n //删除\n handleDelete: function handleDelete() {\n var _this4 = 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(_this4.multipleSelection, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n }\n\n _this4.getData();\n });\n }).catch(function () {});\n },\n //修改\n handleDbClick: function handleDbClick(data) {\n this.$refs.MeasureDialog.add(data);\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(val) {\n var _this5 = this;\n\n this.multipleSelection = [];\n this.$refs.multipleSelection.selection.forEach(function (item) {\n _this5.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 }\n};",null]}