{"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\\ProjectCreate\\components\\MajorProjectsDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ProjectCreate\\components\\MajorProjectsDialog.vue","mtime":1740106413624},{"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.regexp.to-string\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\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//\nimport org from '@/api/org.js';\nimport utils from '@/utils.js';\nimport targetEntryDialog from \"./targetEntryDialog.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport majorProjects from '@/api/MajorReformProjects/majorProjects.js';\nimport RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport moment from 'moment';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'MajorProjectsDialog',\n components: {\n targetEntryDialog: targetEntryDialog,\n RejectInfoBlockDialog: RejectInfoBlockDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n approvalComments: '',\n approvalCommentsList: [],\n displayType: '',\n // createEntry, pushEntry, pushComfire, createComfire展示类型\n demandRunwaOoptionsForm: [],\n // 所属跑道数据(表单内)\n reqLoading: false,\n activeCollapse1: '1',\n visible: false,\n title: '新增',\n disabled: false,\n saveloading: false,\n rules: {\n projectName: [{\n required: true,\n message: '请输入项目名称',\n trigger: 'change'\n }],\n leader: [{\n required: true,\n message: '请输入牵头市领导',\n trigger: 'change'\n }],\n unitId: [{\n required: true,\n message: '请选择责任单位',\n trigger: 'blur'\n }],\n projectType: [{\n required: true,\n message: '请选择项目类型',\n trigger: 'change'\n }],\n projectField: [{\n required: true,\n message: '请选择所属领域',\n trigger: 'change'\n }],\n projectRunway: [{\n required: true,\n message: '请选择所属跑道',\n trigger: 'change'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n treeData: [],\n typeList: [],\n parameter: {\n projectName: '',\n leader: '',\n projectType: '1',\n projectField: '1',\n projectRunway: '',\n groupName: '',\n closing: '1',\n unitId: '',\n unitName: '',\n unitCode: '',\n startDate: '',\n endDate: '',\n unitGrade: '',\n pilotQuantitativeObjectivesList: [{}],\n //量化目标\n pilotSpecificMeasuresList: [{}],\n //具体举措\n pilotSpecificScheduleList: [{\n planYear: moment().format('YYYY'),\n planMonth: moment().format('M'),\n progressStatus: 1,\n planType: '',\n planContent: '',\n plannedCompletionTime: ''\n }] //进度计划\n\n },\n unitValue: [],\n //责任值\n kmList: [],\n fileList: [],\n ggbb_ssly: [],\n yd_jhlx: [],\n //计划类型\n markLoading: false,\n clickType: null,\n currentUser: null,\n treeItem: null,\n monthOptions: [{\n name: '一月',\n value: '1'\n }, {\n name: '二月',\n value: '2'\n }, {\n name: '三月',\n value: '3'\n }, {\n name: '四月',\n value: '4'\n }, {\n name: '五月',\n value: '5'\n }, {\n name: '六月',\n value: '6'\n }, {\n name: '七月',\n value: '7'\n }, {\n name: '八月',\n value: '8'\n }, {\n name: '九月',\n value: '9'\n }, {\n name: '十月',\n value: '10'\n }, {\n name: '十一月',\n value: '11'\n }, {\n name: '十二月',\n value: '12'\n }, {\n name: '持续实施',\n value: '13',\n disabled: true\n }]\n };\n },\n created: function created() {\n this.kmList = dictUtils.getDictItemsFromCache('subjec_type');\n this.ggbb_ssly = dictUtils.getDictItemsFromCache('ggbb_ssly');\n this.demandRunwaOoptionsForm = this.ggbb_ssly[0].lowerDic['ggbb_sspd'];\n this.yd_jhlx = dictUtils.getDictItemsFromCache('yd_jhlx'); //\n // 计划类型前四项改革办可操作,市级部门不可操作\n\n this.yd_jhlx.forEach(function (item) {\n item.value = parseInt(item.value);\n\n if (item.value <= 3) {// item.disabled = false\n }\n });\n this.setTreeData();\n },\n mounted: function mounted() {\n var _this = this;\n\n setTimeout(function () {\n if (_this.$store.state.user.currentOrgDetail == null) {\n _this.$store.dispatch('user/loadCurrentUserDetail').then(function (currentOrgDetail) {\n _this.currentOrg = currentOrgDetail;\n });\n } else {\n _this.currentOrg = _this.$store.state.user.currentOrgDetail;\n }\n }, 100);\n },\n methods: {\n setTreeData: function setTreeData() {\n var _this2 = this;\n\n var data = JSON.parse(sessionStorage.getItem('responsibilityTree'));\n\n if (data) {\n this.treeData = data;\n } else {\n org.getByParentAndDemToTree({\n orgKind: 'ogn'\n }).then(function (res) {\n _this2.treeData = res ? utils.tile2nest(res) : utils.tile2nest([]);\n sessionStorage.setItem('responsibilityTree', JSON.stringify(_this2.treeData));\n });\n }\n },\n // 根据月份获取大写月份\n getMonthText: function getMonthText(id) {\n var name = '';\n this.monthOptions.forEach(function (item) {\n if (id == item.value) {\n name = item.name;\n }\n });\n return name;\n },\n // 当前登录人组织与填报\n filterAuth: function filterAuth(data) {\n if (data.planType && data.planType <= 3 && this.displayType == 'pushEntry') {\n return true;\n } else {\n return false;\n }\n },\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 所属跑道选择\n hanldeCommonSelect: function hanldeCommonSelect(val, obj, key) {\n this.demandRunwaOoptionsForm = obj.lowerDic['ggbb_sspd'];\n this.parameter.projectRunway = '';\n },\n addData: function addData(val, index) {\n this.parameter.pilotQuantitativeObjectivesList[index].pilotObjectivesDetailsList = val;\n },\n tableDel: function tableDel(type, row) {\n var _this3 = this;\n\n if (this.title == '新增' || row.key) {\n this.parameter[type] = this.parameter[type].filter(function (item) {\n return item.key !== row.key;\n });\n } else {\n this.$confirm('确认删除这条记录?', '提示', {\n cancelButtonText: '关闭',\n type: 'error'\n }).then(function () {\n _this3.markLoading = true;\n\n if (type == 'pilotQuantitativeObjectivesList') {\n majorProjects.deleteLhmb(row.id, function (res) {\n if (res.state) {\n _this3.$message.success('删除数据成功');\n\n _this3.parameter[type] = _this3.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n }\n\n _this3.markLoading = false;\n });\n } else if (type == 'pilotSpecificMeasuresList') {\n majorProjects.deleteJtjc(row.id, function (res) {\n if (res.state) {\n _this3.$message.success('删除数据成功');\n\n _this3.parameter[type] = _this3.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n }\n\n _this3.markLoading = false;\n });\n } else if (type == 'pilotSpecificScheduleList') {\n console.log(_this3.$route.name == 'ProjectCreationEntry');\n\n if (_this3.$route.name == 'ProjectCreationEntry' || _this3.$route.name == 'ProjectCreateConfirm') {\n majorProjects.deleteMonth(row.id, function (res) {\n if (res.state) {\n _this3.$message.success('删除数据成功');\n\n _this3.parameter[type] = _this3.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n }\n\n _this3.markLoading = false;\n });\n } else {\n majorProjects.deleteJdjh(row.id, function (res) {\n if (res.state) {\n _this3.$message.success('删除数据成功');\n\n _this3.parameter[type] = _this3.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n }\n\n _this3.markLoading = false;\n });\n }\n }\n });\n }\n },\n tableAdd: function tableAdd(type) {\n if (type == 'pilotQuantitativeObjectivesList') {\n this.parameter[type].push({\n key: this.parameter[type].length + new Date(),\n target: '',\n unit: '',\n targetValY: null,\n targetValM: null,\n currentVal: null,\n fillType: '1',\n indexType: '1'\n });\n } else if (type == 'pilotSpecificScheduleList') {\n this.parameter[type].push({\n key: this.parameter[type].length + new Date(),\n planYear: moment().format('YYYY'),\n planMonth: moment().format('M'),\n progressStatus: 1,\n planType: '',\n planContent: '',\n plannedCompletionTime: ''\n });\n } else {\n this.parameter[type].push({\n key: this.parameter[type].length + new Date(),\n measure: ''\n });\n }\n },\n edit: function edit(val, type, clickType) {\n var _this4 = this;\n\n this.displayType = type;\n this.clickType = clickType;\n\n if (type == 'createEntry') {\n this.title = '编辑';\n } else if (type == 'pushEntry') {\n this.title = this.$route.name == 'ProjectPromotioneEntry' ? '我的作战图' : this.$route.name == 'ProjectPromotioneEntry' ? '上报' : '审核';\n } else if (type == 'pushComfire') {\n this.title = '审核';\n this.disabled = true;\n } else if (type == 'createComfire' && !clickType) {\n this.title = '审核';\n } else if (type == 'createComfire' && clickType) {\n this.title = '编辑';\n }\n\n this.visible = true;\n this.reqLoading = true;\n majorProjects.detailId(val, function (res) {\n if (res) {\n _this4.parameter = res;\n _this4.approvalComments = _this4.parameter.approvalComments;\n\n if (_this4.approvalComments) {\n _this4.approvalCommentsList = _this4.approvalComments.split('$_$');\n }\n\n _this4.parameter.pilotQuantitativeObjectivesList.forEach(function (item) {\n item.fillType ? item.fillType = item.fillType + '' : _this4.$set(item, 'fillType', '');\n item.indexType ? item.indexType = item.indexType + '' : _this4.$set(item, 'indexType', '');\n });\n\n _this4.parameter.closing = _this4.parameter.closing && _this4.parameter.closing.toString() || '';\n\n _this4.parameter.pilotSpecificScheduleList.forEach(function (e) {\n e.planYear = e.planYear && e.planYear.toString() || '';\n e.planMonth = e.planMonth && e.planMonth.toString() || '';\n });\n\n _this4.parameter.projectRunway = _this4.parameter.projectRunway ? _this4.parameter.projectRunway.toString() : '';\n\n _this4.ggbb_ssly.forEach(function (item) {\n if (item.value == _this4.parameter.projectField) {\n _this4.demandRunwaOoptionsForm = item.lowerDic['ggbb_sspd'];\n }\n });\n\n _this4.unitValue = _this4.getParentsById(_this4.treeData, _this4.parameter.unitId);\n }\n\n _this4.reqLoading = false;\n });\n },\n detail: function detail(val, type) {\n var _this5 = this;\n\n this.displayType = type;\n this.title = '详情';\n this.visible = true;\n this.disabled = true;\n this.reqLoading = true;\n majorProjects.detailId(val, function (res) {\n if (res) {\n _this5.parameter = res;\n _this5.approvalComments = _this5.parameter.approvalComments;\n\n if (_this5.approvalComments) {\n _this5.approvalCommentsList = _this5.approvalComments.split('$_$');\n } // this.parameter.closing = this.parameter.closing.toString()\n\n\n _this5.parameter.closing = _this5.parameter.closing && _this5.parameter.closing.toString() || '';\n\n _this5.parameter.pilotSpecificScheduleList.forEach(function (e) {\n e.planYear = e.planYear && e.planYear.toString() || '';\n e.planMonth = e.planMonth && e.planMonth.toString() || ''; // e.planYear = e.planYear.toString()\n // e.planMonth = e.planMonth.toString()\n });\n\n console.log(res);\n _this5.parameter.projectRunway = _this5.parameter.projectRunway ? _this5.parameter.projectRunway.toString() : '';\n _this5.unitValue = _this5.getParentsById(_this5.treeData, _this5.parameter.unitId);\n }\n\n _this5.reqLoading = false;\n });\n },\n getParentsById: function getParentsById(list, id) {\n for (var i in list) {\n if (list[i].id == id) {\n //这里的no根据你的需求可进行改变\n //查询到就返回该数组对象的value\n return [list[i].id];\n }\n\n if (list[i].children) {\n var node = this.getParentsById(list[i].children, id);\n\n if (node !== undefined) {\n //查询到把父节把父节点加到数组前面\n node.unshift(list[i].id);\n return node;\n }\n }\n }\n },\n add: function add(val) {\n // this.parameter.parentId = val\n this.title = '新增';\n this.visible = true;\n this.demandRunwaOoptionsForm = this.ggbb_ssly[0].lowerDic['ggbb_sspd'];\n },\n changeUnit: function changeUnit(value) {\n var _this6 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this6.$refs['cascader'].getCheckedNodes();\n\n if (nodesObj.length) {\n _this6.parameter.unitId = nodesObj[0].data.id;\n _this6.parameter.unitName = nodesObj[0].label;\n _this6.parameter.unitCode = nodesObj[0].data.code;\n _this6.parameter.unitGrade = nodesObj[0].level;\n } else {\n _this6.parameter.unitId = '';\n _this6.parameter.unitName = '';\n _this6.parameter.unitCode = '';\n _this6.parameter.unitGrade = '';\n }\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.approvalComments = '';\n this.approvalCommentsList = [];\n this.activeCollapse1 = '1';\n this.visible = false;\n this.disabled = false;\n this.title = '';\n this.unitValue = [];\n this.saveloading = false;\n this.clickType = null;\n this.displayType = '';\n this.parameter = {\n projectName: '',\n projectField: '1',\n projectRunway: '',\n leader: '',\n projectType: '1',\n closing: '1',\n groupName: '',\n unitId: '',\n unitName: '',\n unitCode: '',\n unitGrade: '',\n pilotQuantitativeObjectivesList: [{}],\n //量化目标\n pilotSpecificMeasuresList: [{}],\n //具体举措\n pilotSpecificScheduleList: [{\n planYear: moment().format('YYYY'),\n planMonth: moment().format('M'),\n progressStatus: 1,\n planType: '',\n planContent: '',\n plannedCompletionTime: ''\n }] //进度计划\n\n };\n },\n //打卡目标录入\n targetEntry: function targetEntry(ind, val) {\n var title = '录入';\n\n if (this.title == '详情' || this.displayType == 'pushComfire') {\n title = '详情';\n }\n\n this.$refs.targetEntryDialog.add(ind, val, title);\n },\n // 通过\n handleVerify: function handleVerify() {\n var _this7 = this;\n\n this.$confirm('确认通过吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n // let status = this.displayType == 'pushComfire' ? 3 : 5\n var status = _this7.$route.name == 'ProjectPromotioneReview' ? 3 : _this7.$route.name == 'ProjectGroupAudit' ? 5 : 7;\n _this7.parameter.approvalResults = 0;\n _this7.parameter.approvalComments = '';\n\n _this7.handleUpdateStatus(status);\n });\n },\n handleVerifyAndSend: function handleVerifyAndSend() {\n var _this8 = this;\n\n this.$confirm('确认通过并分发吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var status = 7;\n _this8.parameter.approvalResults = 0;\n _this8.parameter.approvalComments = '';\n _this8.parameter.sendStatus = 1;\n\n _this8.handleUpdateStatus(status);\n });\n },\n // 驳回确认\n handleReject: function handleReject() {\n var _this9 = this;\n\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this9.$refs.RejectInfoBlockDialog.open();\n });\n },\n // 驳回提交数据\n sendRejectInfo: function sendRejectInfo(rejectInfo) {\n // let status = this.displayType == 'pushComfire' ? 2 : 4\n var status = this.$route.name == 'ProjectPromotioneReview' ? 2 : this.$route.name == 'ProjectGroupAudit' ? 4 : 6;\n\n if (!rejectInfo) {\n this.saveLoading = false;\n return;\n }\n\n this.parameter.approvalResults = 1;\n this.parameter.approvalComments = rejectInfo;\n this.handleUpdateStatus(status);\n },\n // 更新项目状态\n handleUpdateStatus: function handleUpdateStatus(status) {\n var _this10 = this;\n\n this.saveLoading = true; // let flag = true\n // this.parameter.pilotQuantitativeObjectivesList.forEach((item) => {\n // if (!item.pilotObjectivesDetailsList) {\n // flag = false\n // }\n // })\n\n this.parameter.status = status;\n var message = '';\n\n switch (status) {\n case 0:\n message = '保存成功';\n break;\n\n case 1:\n message = '上报成功';\n break;\n\n case 2:\n message = '审核驳回成功';\n break;\n\n case 3:\n message = '审核通过成功';\n break;\n\n case 4:\n message = '确认驳回成功';\n break;\n\n case 5:\n message = this.parameter.sendStatus == 1 ? '确认通过并分发成功' : '确认通过成功';\n break;\n\n default:\n break;\n }\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this10.parameter.pilotSpecificScheduleList.forEach(function (e) {\n delete e.key;\n });\n\n _this10.parameter.pilotSpecificMeasuresList.forEach(function (e) {\n delete e.key;\n });\n\n _this10.parameter.pilotQuantitativeObjectivesList.forEach(function (e) {\n delete e.key;\n }); // if (valid && flag) {\n\n\n _this10.markLoading = true;\n majorProjects.updateStatus(_this10.parameter, function (res) {\n if (res.state) {\n _this10.$notify({\n type: 'success',\n message: message,\n duration: 2000\n });\n\n _this10.$emit('getData');\n\n _this10.handleClose();\n }\n\n _this10.markLoading = false;\n });\n } else {\n _this10.$message.warning('信息录入有误,请检查后保存'); // if (!valid) {\n // this.$message.warning('信息录入有误,请检查后保存')\n // } else {\n // this.$message.warning(\n // '改革方案明确的量化目标值未录入,请录入后保存'\n // )\n // }\n\n }\n });\n this.saveLoading = false;\n },\n // 根据id获取节点\n getUnitItem: function getUnitItem(data, id) {\n var _this11 = this;\n\n data.forEach(function (item) {\n if (item.id == id) {\n _this11.treeItem = item;\n } else {\n if (item.children) {\n _this11.getUnitItem(item.children, id);\n }\n }\n });\n },\n // 保存\n handleSave: function handleSave() {\n var _this12 = this;\n\n // let flag = true\n // this.parameter.pilotQuantitativeObjectivesList.forEach((item) => {\n // if (!item.pilotObjectivesDetailsList) {\n // flag = false\n // }\n // })\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this12.parameter.pilotSpecificScheduleList.forEach(function (e) {\n delete e.key;\n });\n\n _this12.parameter.pilotSpecificMeasuresList.forEach(function (e) {\n delete e.key;\n });\n\n _this12.parameter.pilotQuantitativeObjectivesList.forEach(function (e) {\n delete e.key;\n }); // if (valid && flag) {\n\n\n _this12.markLoading = true; // this.saveloading = true\n\n _this12.getUnitItem(_this12.treeData, _this12.parameter.unitId);\n\n _this12.parameter.unitGrade = _this12.treeItem.grade;\n\n if (_this12.title === '新增') {\n majorProjects.addData(_this12.parameter, function (res) {\n if (res.state) {\n _this12.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000\n });\n\n _this12.$emit('getData');\n\n _this12.handleClose();\n }\n\n _this12.markLoading = false;\n });\n } else {\n majorProjects.editData(_this12.parameter, function (res) {\n if (res.state) {\n _this12.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this12.$emit('getData');\n\n _this12.handleClose();\n }\n\n _this12.markLoading = false;\n });\n }\n } else {\n _this12.$message.warning('信息录入有误,请检查后保存'); // if (!valid) {\n // this.$message.warning('信息录入有误,请检查后保存')\n // } else {\n // this.$message.warning(\n // '改革方案明确的量化目标值未录入,请录入后保存'\n // )\n // }\n\n }\n });\n }\n }\n};",null]}