{"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\\components\\Updatedownturn.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\components\\Updatedownturn.vue","mtime":1716977578290},{"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/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es7.object.entries\";\nimport \"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 org from '@/api/org.js';\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport majorProjects from '@/api/MajorReformProjects/majorProjects.js';\nimport targetDialog from \"./targetDialog.vue\";\nimport planDialog from \"./planDialog.vue\";\nimport sat from '@/api/satisfaction/satisfaction';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport moment from 'moment';\n\nvar FileTree = function FileTree() {\n return import(\"@/components/Enclosure/FileTree.vue\");\n};\n\nvar IframeSrc = function IframeSrc() {\n return import(\"@/components/Enclosure/IframeSrc.vue\");\n};\n\nvar Pdf = function Pdf() {\n return import(\"@/components/Enclosure/Pdf.vue\");\n};\n\nvar portal = window.context.portal;\nexport default {\n name: 'MajorProjectsDialog',\n components: {\n targetDialog: targetDialog,\n planDialog: planDialog,\n FileTree: FileTree,\n IframeSrc: IframeSrc,\n Pdf: Pdf\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n parameter: {\n projectName: '',\n leader: '',\n unitName: '',\n pilotQuantitativeObjectivesList: [{}],\n //量化目标\n pilotSpecificMeasuresList: [{}],\n //具体举措\n // pilotSpecificScheduleList: [{}], //进度计划\n promotionSituationList: [],\n //开展经验总结推广情况\n pilotSpecificSchedulePushList: [],\n //搭建工作、推广重要、形成制度\n pilotBrandPushList: [],\n //品牌显示度\n pilotSpecificScheduleQuarterList: [] //季度\n\n },\n activeCollapse1: '1',\n visible: false,\n title: '更新',\n loading: false,\n disabled: false,\n activeName: '0',\n tableData: [],\n planData: [],\n saveloading: false,\n auditloading: false,\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n // 历史数据\n params: {\n pilotProjectFill: {\n fillYear: '',\n fillMonth: ''\n },\n municipalMajorProjectManagement: [],\n //基础数据\n pilotQuantitativeObjectivesPushList: [],\n //季度计划\n newpilotSpecificSchedulePushList: [],\n //\n newpilotExperiencePushList: [],\n //其他改革成果\n newpilotBrandPushList: [],\n //品牌显示度\n newpilotMeasuresPushQuarterList: [] //改革方案明确的季度计划完成情况\n\n },\n newtgxsList: [],\n //推广形式\n newhkdxsList: [],\n //获肯定形式\n newtjcmxjhlxList: [],\n //举措明细计划类型\n newcgxsList: [],\n treeData: [],\n typeList: [],\n year: moment().format('YYYY'),\n month: moment().format('MM'),\n tgxsList: [],\n //推广形式\n hkdxsList: [],\n //获肯定形式\n tjcmxjhlxList: [],\n //举措明细计划类型\n options: [],\n //具体情形\n projectId: '',\n //项目id\n jdList: [],\n //季度\n jtqxList: [],\n //具体情形\n fileList: [],\n dialogImageUrl: '',\n accept: '.wps,.et,.bmp,.jpg,.png,.tif,.gif,.pcx,.tga,.exif,.fpx,.svg,.psd,.cdr,.pcd,.dxf,.ufo,.eps,.ai,.raw,.WMF,.webp,.avif,.apng,.xls,.docx,.docm,.doc,.dotx,.pptx,.pptm,.ppt,.pdf,.xps,.potx,.txt,.xls,.xlsx,.xps,.zip,.rar,.7z',\n url: \"\".concat(portal, \"/file/v1/uploadFileForConfig\"),\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n header: {\n Authorization: \"Bearer \".concat(this.$store.state.login.currentUser.token)\n },\n uploadData: {\n bizCode: 'mydandfx',\n bizId: '',\n bizType: ''\n },\n portal: '',\n openloading: '',\n src: \"\",\n iframeSrc: \"\",\n fileRow: \"\",\n fileTree: ''\n };\n },\n created: function created() {\n this.tgxsList = dictUtils.getDictItemsFromCache('tgxs');\n this.hkdxsList = dictUtils.getDictItemsFromCache('hkdxs');\n this.tjcmxjhlxList = dictUtils.getDictItemsFromCache('jcmxjhlx');\n this.jdList = dictUtils.getDictItemsFromCache('jd');\n this.jtqxList = dictUtils.getDictItemsFromCache('jtqx');\n this.newtgxsList = dictUtils.getDictItemsFromCache('tgxs');\n this.newhkdxsList = dictUtils.getDictItemsFromCache('hkdxs');\n this.newtjcmxjhlxList = dictUtils.getDictItemsFromCache('jcmxjhlx');\n this.newcgxsList = dictUtils.getDictItemsFromCache('cgxs');\n this.portal = window.context.portal;\n this.add(this.$route.query.id);\n },\n mounted: function mounted() {},\n beforeDestroy: function beforeDestroy() {\n this.openloading.close();\n },\n methods: {\n openFullScreen2: function openFullScreen2() {\n this.openloading = this.$loading({\n lock: true,\n // text: 'Loading',\n // spinner: 'el-icon-loading',\n background: 'hsla(0,0%,100%,.9)',\n target: '.el-card__body'\n });\n },\n add: function add(val) {\n var _this = this;\n\n this.openFullScreen2();\n this.projectId = '';\n this.title = '更新'; //初始化数据\n\n majorProjects.boostDetailId({\n fillDate: moment().format('YYYY-MM-DD'),\n projectId: val\n }, function (res) {\n if (res) {\n console.log(res);\n var data = JSON.parse(JSON.stringify(res));\n _this.projectId = data.id;\n _this.parameter.promotionSituationList = [];\n _this.parameter.projectName = data.projectName;\n _this.parameter.leader = data.leader;\n _this.parameter.unitName = data.unitName; // 量化目标推进情况数据处理\n\n if (data.pilotQuantitativeObjectivesList && data.pilotQuantitativeObjectivesList.length > 0) {\n data.pilotQuantitativeObjectivesList.forEach(function (q) {\n q.pushProgress ? q.pushProgress : '';\n q.objectivesMeasuresId = q.id;\n q.id = q.dataId ? q.dataId : '';\n delete q.createTime;\n delete q.isDelete;\n delete q.id; // delete q.pilotObjectivesDetailsList\n // delete q.pilotQuantitativeObjectivesPushList\n });\n _this.parameter.pilotQuantitativeObjectivesList = data.pilotQuantitativeObjectivesList;\n }\n\n if (data.pilotSpecificMeasuresList && data.pilotSpecificMeasuresList.length > 0) {\n data.pilotSpecificMeasuresList.forEach(function (f) {\n f.measuresId = f.id;\n f.workPlan = '';\n f.problems = '';\n f.completedWork = '';\n delete f.createTime;\n delete f.distributionType;\n delete f.id;\n delete f.isDelete;\n delete f.pkVal;\n delete f.specificMeasuresId;\n delete f.status;\n });\n _this.parameter.pilotSpecificMeasuresList = data.pilotSpecificMeasuresList;\n } //市级重大改革项目填报审核记录 项目信息\n\n\n _this.parameter.pilotProjectFill = {\n fillDate: moment().format('YYYY-MM-DD'),\n projectId: _this.projectId\n }; // this.parameter.pilotSpecificScheduleList = data.pilotSpecificScheduleList\n //季度计划\n\n var arr = [];\n\n if (data.pilotSpecificScheduleQuarterList && data.pilotSpecificScheduleQuarterList.length > 0) {\n data.pilotSpecificScheduleQuarterList.forEach(function (f) {\n arr.push({\n quarter: Object.entries(f)[0][0],\n list: Object.entries(f)[0][1]\n });\n });\n }\n\n _this.parameter.pilotSpecificScheduleQuarterList = arr;\n console.log(arr); //处理举措明细计划类型数据结构\n\n if (data.pilotSpecificSchedulePushList && data.pilotSpecificSchedulePushList.length > 0) {\n _this.tjcmxjhlxList.forEach(function (tj) {\n data.pilotSpecificSchedulePushList.forEach(function (pi) {\n if (tj.value == pi.measuresPlanType) {\n if (_this.parameter.pilotSpecificSchedulePushList.length > 0) {\n var SpecificType = true;\n\n _this.parameter.pilotSpecificSchedulePushList.forEach(function (pSS) {\n if (pi.measuresPlanType == pSS.value) {\n pi.fileList = [];\n console.log(1, pi.defaultFileList);\n\n if (pi.defaultFileList.length > 0) {\n pi.defaultFileList.forEach(function (df) {\n pi.fileList.push({\n name: df.fileName,\n response: {\n fileId: df.id,\n fileName: df.fileName\n }\n });\n });\n }\n\n SpecificType = false;\n pSS.content.push({\n projectId: pi.projectId,\n measuresPlanType: pi.measuresPlanType,\n resultName: pi.resultName,\n basis: pi.basis,\n id: pi.id ? pi.id : '',\n classified: pi.classified,\n defaultFileList: pi.defaultFileList,\n fileList: pi.fileList ? pi.fileList : []\n });\n }\n });\n\n if (SpecificType) {\n pi.fileList = [];\n console.log(2, pi.defaultFileList);\n\n if (pi.defaultFileList.length > 0) {\n pi.defaultFileList.forEach(function (df) {\n pi.fileList.push({\n name: df.fileName,\n response: {\n fileId: df.id,\n fileName: df.fileName\n }\n });\n });\n }\n\n _this.parameter.pilotSpecificSchedulePushList.push({\n name: tj.name,\n value: tj.value,\n content: [{\n projectId: pi.projectId,\n measuresPlanType: pi.measuresPlanType,\n resultName: pi.resultName,\n basis: pi.basis,\n id: pi.id ? pi.id : '',\n classified: pi.classified,\n defaultFileList: pi.defaultFileList,\n fileList: pi.fileList ? pi.fileList : []\n }]\n });\n }\n } else {\n _this.parameter.pilotSpecificSchedulePushList.push({\n name: tj.name,\n value: tj.value,\n content: [{\n projectId: pi.projectId,\n measuresPlanType: pi.measuresPlanType,\n resultName: pi.resultName,\n basis: pi.basis,\n id: pi.id ? pi.id : '',\n classified: pi.classified,\n defaultFileList: pi.defaultFileList,\n fileList: pi.fileList ? pi.fileList : []\n }]\n });\n }\n }\n });\n });\n } else {\n _this.tjcmxjhlxList.forEach(function (t) {\n _this.parameter.pilotSpecificSchedulePushList.push({\n name: t.name,\n value: t.value,\n content: [{\n projectId: _this.projectId,\n measuresPlanType: t.value,\n resultName: '',\n basis: '',\n classified: 1\n }]\n });\n });\n }\n\n console.log(_this.parameter.pilotSpecificSchedulePushList); //处理推广形式数据结构\n\n if (data.pilotExperiencePushList && data.pilotExperiencePushList.length > 0) {\n _this.tgxsList.forEach(function (tg) {\n data.pilotExperiencePushList.forEach(function (pie) {\n if (tg.value == pie.promotionType) {\n //返回数据对接字典数据,如果对应就添加当前pie进入新数组,\n //promotionSituationList判断第一次是否为空,是就直接添加一条数据\n //判断当前数据中的promotionType是否再promotionSituationList存在\n //如果存在就在content添加一条数据\n if (_this.parameter.promotionSituationList.length > 0) {\n var arrType = true;\n\n _this.parameter.promotionSituationList.forEach(function (pS) {\n console.log('触发', pS);\n\n if (pie.promotionType == pS.value) {\n console.log(1);\n arrType = false;\n console.log(1, arrType);\n pS.content.push({\n projectId: pie.projectId,\n promotionType: pie.promotionType,\n promotionContent: pie.promotionContent,\n id: pie.id ? pie.id : '',\n classified: pie.classified,\n defaultFileList: pie.defaultFileList\n });\n }\n });\n\n if (arrType) {\n _this.parameter.promotionSituationList.push({\n name: tg.name,\n value: tg.value,\n content: [{\n projectId: pie.projectId,\n promotionType: pie.promotionType,\n promotionContent: pie.promotionContent,\n id: pie.id ? pie.id : '',\n classified: pie.classified,\n defaultFileList: pie.defaultFileList\n }]\n });\n }\n } else {\n _this.parameter.promotionSituationList.push({\n name: tg.name,\n value: tg.value,\n content: [{\n projectId: pie.projectId,\n promotionType: pie.promotionType,\n promotionContent: pie.promotionContent,\n id: pie.id ? pie.id : '',\n classified: pie.classified,\n defaultFileList: pie.defaultFileList\n }]\n });\n }\n\n console.log(_this.parameter.promotionSituationList);\n }\n });\n });\n } else {\n _this.tgxsList.forEach(function (e) {\n _this.parameter.promotionSituationList.push({\n name: e.name,\n value: e.value,\n content: [{\n projectId: _this.projectId,\n promotionType: e.value,\n promotionContent: '',\n classified: 1\n }]\n });\n });\n } //处理获肯定形式数据结构\n\n\n if (data.pilotBrandPushList && data.pilotBrandPushList.length > 0) {\n _this.hkdxsList.forEach(function (hk) {\n data.pilotBrandPushList.forEach(function (pib) {\n if (hk.value == pib.effectForm) {\n //返回数据对接字典数据,如果对应就添加当前pie进入新数组,\n //promotionSituationList判断第一次是否为空,是就直接添加一条数据\n //判断当前数据中的promotionType是否再promotionSituationList存在\n //如果存在就在content添加一条数据\n if (_this.parameter.pilotBrandPushList.length > 0) {\n var Brand = true;\n\n _this.parameter.pilotBrandPushList.forEach(function (pB) {\n if (pib.effectForm == pB.value) {\n Brand = false;\n pB.content.push({\n id: pib.id,\n projectId: pib.projectId,\n effectForm: pib.effectForm,\n completionDate: pib.completionDate,\n propulsiveDetailed: pib.propulsiveDetailed,\n specificDetails: pib.specificDetails.toString(),\n classified: pib.classified,\n defaultFileList: pib.defaultFileList\n });\n }\n });\n\n if (Brand) {\n _this.parameter.pilotBrandPushList.push({\n name: hk.name,\n value: hk.value,\n content: [{\n projectId: pib.projectId,\n effectForm: pib.effectForm,\n completionDate: pib.completionDate,\n propulsiveDetailed: pib.propulsiveDetailed,\n specificDetails: pib.specificDetails ? pib.specificDetails.toString() : '',\n classified: pib.classified,\n defaultFileList: pib.defaultFileList,\n id: pib.id\n }]\n });\n }\n } else {\n _this.parameter.pilotBrandPushList.push({\n name: hk.name,\n value: hk.value,\n content: [{\n id: pib.id,\n projectId: pib.projectId,\n effectForm: pib.effectForm,\n completionDate: pib.completionDate,\n propulsiveDetailed: pib.propulsiveDetailed,\n specificDetails: pib.specificDetails ? pib.specificDetails.toString() : '',\n classified: pib.classified,\n defaultFileList: pib.defaultFileList\n }]\n });\n }\n }\n });\n });\n } else {\n _this.hkdxsList.forEach(function (h) {\n _this.parameter.pilotBrandPushList.push({\n name: h.name,\n value: h.value,\n content: [{\n projectId: _this.projectId,\n effectForm: h.value,\n completionDate: '',\n propulsiveDetailed: '',\n classified: 1\n }]\n });\n });\n }\n\n _this.openloading.close();\n\n console.log(123);\n }\n }); //历史数据\n\n majorProjects.historyDetails(val, function (res) {\n if (Object.keys(res).length > 0) {\n _this.params = res;\n\n _this.newcgxsList.forEach(function (c) {\n c.list = [];\n\n if (_this.params.pilotSpecificSchedulePushList.length > 0) {\n _this.params.pilotSpecificSchedulePushList.forEach(function (e) {\n if (c.value == e.measuresPlanType) {\n c.list.push(e);\n }\n });\n }\n });\n\n _this.params.newpilotSpecificSchedulePushList = _this.newcgxsList;\n\n _this.newtgxsList.forEach(function (pa) {\n pa.list = [];\n\n if (_this.params.pilotExperiencePushList.length > 0) {\n _this.params.pilotExperiencePushList.forEach(function (p) {\n if (pa.value == p.promotionType) {\n pa.list.push(p);\n }\n });\n }\n });\n\n _this.params.newpilotExperiencePushList = _this.newtgxsList;\n\n _this.newhkdxsList.forEach(function (ba) {\n ba.list = [];\n\n if (_this.params.pilotBrandPushList.length > 0) {\n _this.params.pilotBrandPushList.forEach(function (b) {\n if (ba.value == b.effectForm) {\n ba.list.push(b);\n }\n });\n }\n });\n\n console.log(_this.newhkdxsList);\n var Harr = [];\n\n _this.newhkdxsList.forEach(function (k, ki) {\n if (k.list) {\n Harr.push(k);\n }\n });\n\n _this.params.newpilotBrandPushList = Harr;\n var arr = [];\n\n if (_this.params.pilotMeasuresPushQuarterList.length > 0) {\n _this.params.pilotMeasuresPushQuarterList.forEach(function (f) {\n arr.push({\n quarter: Object.entries(f)[0][0],\n list: Object.entries(f)[0][1]\n });\n });\n }\n\n _this.params.newpilotMeasuresPushQuarterList = arr; // delete this.params.\n } else {\n _this.visible = true;\n }\n });\n this.loading = false;\n console.log(this.params);\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 进度计划明细推进情况新增\n addList: function addList(val, index) {\n console.log(val, index);\n console.log(this.parameter.pilotSpecificSchedulePushList);\n this.parameter.pilotSpecificSchedulePushList[index].content.push({\n resultName: '',\n measuresPlanType: val.content[0].measuresPlanType,\n projectId: this.projectId,\n basis: '',\n classified: 1\n });\n console.log(this.parameter.pilotSpecificSchedulePushList[index]);\n },\n addTableList: function addTableList(text, name, index, value) {\n switch (text) {\n case 'promotionSituationList':\n this.parameter.promotionSituationList[index].content.push({\n promotionType: value,\n promotionContent: '',\n projectId: this.projectId,\n classified: 1\n });\n break;\n\n case 'pilotBrandPushList':\n this.parameter.pilotBrandPushList[index].content.push({\n effectForm: value,\n completionDate: '',\n propulsiveDetailed: '',\n projectId: this.projectId,\n classified: 1\n });\n break;\n }\n },\n //上传附件\n beforeUpload: function beforeUpload(res, file, fileList, val) {\n if (res.success) {\n val.fileList = fileList;\n\n if (!val.defaultFileList) {\n val.defaultFileList = [];\n }\n\n console.log(val.fileList);\n val.defaultFileList.push({\n bizCode: 'mydandfx',\n bizId: '',\n bizType: '',\n id: res.fileId,\n fileName: res.fileName,\n uid: file.uid\n });\n this.$message.success('附件上传成功');\n } else {\n this.$message.error('附件上传失败');\n }\n },\n //移除附件\n handleRemove: function handleRemove(res, file, fileList, val) {\n val.defaultFileList.forEach(function (dF) {\n if (dF.uid == res.uid) {\n val.defaultFileList.splice(dF, 1);\n }\n });\n },\n preview: function preview(file) {\n window.open(this.portal + \"/file/v1/downloadFile?fileId=\".concat(file.id), \"_blank\");\n },\n //预览\n handlePreview: function handlePreview(file, val) {\n console.log(file, val);\n return;\n window.open(this.portal + \"/file/v1/downloadFile?fileId=\".concat(file.response.fileId), \"_blank\"); // let id=''\n // let suffix=''\n // val.defaultFileList.forEach(dF=>{\n // \tif(dF.uid==file.uid){\n // \t\tid=dF.id\n // \t\tsuffix=dF.fileName.split('.').slice(-1)\n // \t}\n // })\n // this.src = window.context.portal + '/file/v1/downloadFile?fileId=' + id;\n // if (val.extensionName == 'jpg') {\n // \tconsole.log(this.src);\n // \treturn\n // \tthis.$refs.iframeSrcSearch.handleOpen();\n // }\n // if (val.extensionName == 'pdf') {\n // \tthis.$refs.pdfSearch.handleOpen();\n // }\n },\n beforeRemove: function beforeRemove(file, fileList) {\n return this.$confirm(\"\\u786E\\u5B9A\\u79FB\\u9664 \".concat(file.name, \"\\uFF1F\"));\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.$router.go(-1);\n this.typeList = [];\n this.visible = false;\n this.disabled = false;\n this.title = '';\n this.parameter = {\n projectName: '',\n leader: '',\n unitName: '',\n pilotQuantitativeObjectivesList: [{}],\n //量化目标\n pilotSpecificMeasuresList: [{}],\n //具体举措\n // pilotSpecificScheduleList: [{}], //进度计划\n promotionSituationList: [],\n //开展经验总结推广情况\n pilotSpecificSchedulePushList: [],\n //搭建工作、推广重要、形成制度\n pilotBrandPushList: [] //品牌显示度\n\n };\n },\n // 保存\n handleSave: function handleSave(val) {\n var _this2 = this;\n\n // let requiredType=true\n // this.parameter.pilotQuantitativeObjectivesList.forEach(pQ=>{\n // \tconsole.log(pQ);\n // \tif(!pQ.progressStatus&&pQ.progressStatus!=''){\n // \t}else{\n // \t\t requiredType=false\n // \t}\n // })\n // console.log(this.parameter.pilotSpecificScheduleQuarterList);\n // this.parameter.pilotSpecificScheduleQuarterList.forEach(pS=>{\n // })\n // console.log(requiredType);\n // return\n var newParameter = JSON.parse(JSON.stringify(this.parameter));\n var Aarr = [];\n var Barr = [];\n var Carr = [];\n this.parameter.pilotBrandPushList.forEach(function (p) {\n if (p.content) {\n p.content.forEach(function (c) {\n Aarr.push(c);\n });\n }\n });\n this.parameter.pilotSpecificSchedulePushList.forEach(function (n) {\n if (n.content) {\n n.content.forEach(function (nc) {\n Barr.push(nc);\n });\n }\n });\n this.parameter.promotionSituationList.forEach(function (p) {\n if (p.content) {\n p.content.forEach(function (c) {\n Carr.push(c);\n });\n }\n }); //项目具体举措计划推进情况集合\n\n newParameter.pilotMeasuresPushList = [];\n this.parameter.pilotSpecificScheduleQuarterList.forEach(function (s) {\n if (s.list) {\n s.list.forEach(function (sa) {\n newParameter.pilotMeasuresPushList.push({\n projectId: sa.projectId,\n planId: sa.planId,\n planType: sa.planType,\n completedWork: sa.completedWork,\n problems: sa.problems,\n workPlan: sa.workPlan,\n isOver: sa.isOver,\n id: sa.id,\n measuresId: sa.id // planQuarter:sa.planQuarter\n\n });\n });\n }\n }); //品牌显示度\n\n newParameter.pilotBrandPushList = Aarr; //进度计划明细推进情况集合\n\n newParameter.pilotSpecificSchedulePushList = Barr; //开展经验总结推广情况\n\n newParameter.pilotExperiencePushList = Carr; //量化目标推进情况集合\n\n newParameter.pilotQuantitativeObjectivesPushList = this.parameter.pilotQuantitativeObjectivesList; // 删除无效字段\n\n delete newParameter.pilotSpecificScheduleQuarterList;\n delete newParameter.pilotQuantitativeObjectivesList;\n delete newParameter.pilotSpecificMeasuresList;\n delete newParameter.promotionSituationList;\n delete newParameter.leader;\n delete newParameter.projectName;\n delete newParameter.unitName;\n var requiredType = false;\n newParameter.pilotMeasuresPushList.forEach(function (pM) {\n if (!pM.completedWork || pM.completedWork == '' || pM.completedWork === 'undefined' || !pM.isOver || pM.isOver == '' || pM.isOver === 'undefined') {\n requiredType = true;\n }\n });\n console.log(newParameter.pilotQuantitativeObjectivesPushList);\n newParameter.pilotQuantitativeObjectivesPushList.forEach(function (pQ) {\n if (!pQ.pushProgress || pQ.pushProgress == '' || pQ.pushProgress === 'undefined') {\n requiredType = true;\n }\n });\n\n if (requiredType) {\n this.$message.warning('必填项不能为空,请填写完在提交');\n return;\n }\n\n switch (val) {\n case 'save':\n this.saveloading = true;\n majorProjects.savaBoostData(newParameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '保存成功',\n duration: 2000\n });\n\n _this2.saveloading = false;\n\n _this2.handleClose();\n }\n });\n break;\n\n case 'aduit':\n console.log(newParameter);\n this.auditloading = true;\n majorProjects.aduitBoostData(newParameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '提交成功',\n duration: 2000\n });\n\n _this2.auditloading = false;\n\n _this2.handleClose();\n }\n });\n break;\n }\n\n this.saveloading = true;\n this.saveloading = false; // this.handleClose()\n\n return;\n console.log(this.parameter);\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.title === '添加' || _this2.title === 'add') {\n majorProjects.addData(_this2.parameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '添加成功',\n duration: 2000\n });\n\n _this2.$emit('getData');\n\n _this2.handleClose();\n }\n });\n } else if (_this2.title === '编辑' || _this2.title === 'edit') {\n majorProjects.editData(_this2.parameter, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this2.$emit('getData');\n\n _this2.handleClose();\n }\n });\n }\n }\n });\n },\n handleAuidt: function handleAuidt() {\n this.aduitloading = true;\n }\n }\n};",null]}