{"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\\ReformSituation\\components\\projectCase.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformSituation\\components\\projectCase.vue","mtime":1745582908271},{"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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport AddProject from \"./addProject.vue\";\nexport default {\n name: 'AddFormDialog',\n mixins: [TableMixin],\n components: {\n AddProject: AddProject\n },\n props: {},\n data: function data() {\n return {\n visible: false,\n reqLoading: false,\n activeNames: '',\n title: '',\n projectNum: 0,\n researchNum: 0,\n introducedNum: 0,\n dataList: {\n projectList: [],\n researchList: [],\n introducedList: [],\n historyProjectList: [],\n historyResearchList: [],\n histotyIntroducedList: []\n },\n historyDataList: {\n historyProjectList: [],\n historyResearchList: [],\n histotyIntroducedList: []\n },\n isDetails: false,\n isEditHistory: '',\n details: {}\n };\n },\n created: function created() {},\n methods: {\n upDate: function upDate(title, data, isDetails, historyData, details) {\n var _this = this;\n\n console.log(data, '----------', historyData);\n this.details = details;\n this.isDetails = isDetails !== '详情';\n this.isEditHistory = isDetails;\n this.projectNum = 0;\n this.researchNum = 0;\n this.introducedNum = 0;\n this.dataList = {\n projectList: [],\n researchList: [],\n introducedList: [],\n historyProjectList: [],\n historyResearchList: [],\n histotyIntroducedList: []\n };\n this.historyDataList = {\n historyProjectList: [],\n historyResearchList: [],\n histotyIntroducedList: []\n };\n this.title = title;\n this.visible = true; //回显 将一个数组转为三个数组 (本次更新)\n\n if (data.length > 0) {\n this.dataList.projectList = data.map(function (item) {\n return {\n projectName: item.projectName,\n isFinish: item.isFinish,\n isPlan: item.isPlan,\n isHistory: item.isHistory,\n key: item.id ? item.id : item.key,\n finishExit: item.finishExit,\n planExit: item.planExit,\n hisIsFinish: item.hisIsFinish,\n hisIsPlan: item.hisIsPlan\n };\n });\n data.forEach(function (item) {\n if (item.isFinish === \"1\") {\n _this.dataList.researchList.push({\n key: item.id ? item.id : item.key,\n projectName: item.projectName,\n isHistory: item.isHistory,\n reportFileList: item.reportFileList ? item.reportFileList : [],\n reportFileIsClassified: item.reportFileIsClassified\n });\n }\n\n if (item.isPlan === \"1\") {\n _this.dataList.introducedList.push({\n key: item.id ? item.id : item.key,\n projectName: item.projectName,\n planNumber: item.planNumber,\n planName: item.planName,\n isHistory: item.isHistory,\n proofFileList: item.proofFileList ? item.proofFileList : [],\n planFileIsClassified: item.planFileIsClassified\n });\n }\n });\n } //回显 将一个数组转为三个数组 (历史数据)\n\n\n if (historyData.length > 0) {\n this.historyDataList.historyProjectList = historyData.map(function (item) {\n return {\n projectName: item.projectName,\n isFinish: item.isFinish,\n isPlan: item.isPlan,\n isHistory: item.isHistory,\n key: item.id ? item.id : item.key,\n finishExit: item.finishExit,\n planExit: item.planExit,\n hisIsFinish: item.hisIsFinish,\n hisIsPlan: item.hisIsPlan\n };\n });\n historyData.forEach(function (item) {\n if (item.isFinish === \"1\") {\n _this.historyDataList.historyResearchList.push({\n key: item.id ? item.id : item.key,\n projectName: item.projectName,\n isHistory: item.isHistory,\n reportFileList: item.reportFileList ? item.reportFileList : [],\n reportFileIsClassified: item.reportFileIsClassified,\n isNowDatar: item.isNowDatar ? item.isNowDatar : '',\n finishExit: item.finishExit\n });\n }\n\n if (item.isPlan === \"1\") {\n _this.historyDataList.histotyIntroducedList.push({\n key: item.id ? item.id : item.key,\n projectName: item.projectName,\n planNumber: item.planNumber,\n planName: item.planName,\n isHistory: item.isHistory,\n proofFileList: item.proofFileList ? item.proofFileList : [],\n planFileIsClassified: item.planFileIsClassified,\n isNowDatas: item.isNowDatas ? item.isNowDatas : '',\n planExit: item.planExit\n });\n }\n });\n }\n\n this.projectNum = this.dataList.projectList.length + this.historyDataList.historyProjectList.length;\n this.researchNum = this.dataList.researchList.length + this.historyDataList.historyResearchList.length;\n this.introducedNum = this.dataList.introducedList.length + this.historyDataList.histotyIntroducedList.length;\n },\n handleClose: function handleClose() {\n console.log('111111111111');\n this.visible = false;\n this.dataList = {\n projectList: [],\n researchList: [],\n introducedList: [],\n historyProjectList: [],\n historyResearchList: [],\n histotyIntroducedList: []\n };\n this.historyDataList = {\n historyProjectList: [],\n historyResearchList: [],\n histotyIntroducedList: []\n };\n },\n projectChange: function projectChange() {\n this.$refs.addProject.upDate(this.title, this.dataList, this.isDetails, this.historyDataList, this.isEditHistory, this.details);\n },\n onConfirm: function onConfirm(data) {\n this.projectNum = data.projectList.length + data.historyProjectList.length;\n this.researchNum = data.researchList.length + data.historyResearchList.length;\n this.introducedNum = data.introducedList.length + data.histotyIntroducedList.length;\n this.historyDataList.historyProjectList = data.historyProjectList;\n this.historyDataList.historyResearchList = data.historyResearchList;\n this.historyDataList.histotyIntroducedList = data.histotyIntroducedList;\n this.dataList = data;\n },\n ensureChange: function ensureChange() {\n this.visible = false;\n this.dataList.historyProjectList = this.historyDataList.historyProjectList;\n this.dataList.historyResearchList = this.historyDataList.historyResearchList;\n this.dataList.histotyIntroducedList = this.historyDataList.histotyIntroducedList;\n this.$emit('confirm', this.dataList, this.title);\n }\n }\n};",null]}