{"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\\reformDemandAnalysis\\municipalDemand\\dialog\\demandDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\reformDemandAnalysis\\municipalDemand\\dialog\\demandDialog.vue","mtime":1721205805091},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/newFileList.vue';\nimport req from '@/request.js';\nimport moment from 'moment';\nvar portal = window.context.portal;\nexport default {\n name: 'demandDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RejectInfoDialog: RejectInfoDialog\n },\n data: function data() {\n var _this = this;\n\n var validateDemand = function validateDemand(rule, value, callback) {\n var flag = _this.parameter.superiorRequirement == '' && _this.parameter.systemBreakthrough == '' && _this.parameter.problemOrientated == '' || _this.parameter.superiorRequirement == '' && _this.parameter.systemBreakthrough == '' || _this.parameter.superiorRequirement == '' && _this.parameter.problemOrientated == '' || _this.parameter.systemBreakthrough == '' && _this.parameter.problemOrientated == '';\n\n if (flag) {\n callback(new Error(''));\n } else {\n callback();\n }\n };\n\n return {\n visible: false,\n title: '添加',\n type: 'edit',\n reqLoading: false,\n markLoading: false,\n parameter: {\n superiorRequirement: '',\n //上级要求\n systemBreakthrough: '',\n //制度突破\n problemOrientated: '',\n //问题向导\n projectName: '',\n // 拟生成的市级重大改革项目\n carryOutWork: '',\n //已开展的工作\n nextPlan: '',\n //改革思路举措和下步工作打算\n leadValue: [],\n //牵头单位\n leadObj: [],\n //牵头单位 对象\n synergyValue: [],\n //协同单位 id\n synergyObj: [],\n //协同单位 对象\n groupName: '',\n //专项小组\n projectField: '',\n //所属领域\n projectRunway: '',\n //所属跑道\n files: [],\n demandDate: moment(new Date()).format('YYYY-MM-DD') //需求提出日期\n\n },\n rules: {\n superiorRequirement: [{\n validator: validateDemand\n }],\n systemBreakthrough: [{\n validator: validateDemand\n }],\n problemOrientated: [{\n validator: validateDemand\n }],\n demandDate: [{\n required: true,\n message: '请选择需求提出时间',\n trigger: 'change'\n }],\n projectName: [{\n required: true,\n message: '请输入拟生成的市级重大改革项目',\n trigger: 'blur'\n }],\n carryOutWork: [{\n required: true,\n message: '请输入已开展工作具体内容',\n trigger: 'blur'\n }],\n groupName: [{\n required: true,\n message: '请选择专项小组',\n trigger: 'change'\n }],\n leadValue: [{\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 // 所有协同单位对象\n allSynergyObj: [],\n groupList: [],\n //专项小组\n municipalTreeData: [],\n //牵头单位\n allTreeData: [],\n // 协同单位选项\n projectRunwayOptions: [],\n //所属跑道\n routeName: '',\n intermediate: null,\n isHistory: false,\n // 历史附件id\n historyFileId: [],\n // 需要真删除的fileid\n removeFileId: []\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n setDataOptions: function setDataOptions() {\n var _this2 = this;\n\n return new Promise(function (resolve) {\n var name = _this2.$route.name;\n _this2.routeName = name;\n _this2.allTreeData = JSON.parse(sessionStorage.getItem('responsibilityTree'));\n var treeData = JSON.parse(JSON.stringify(_this2.allTreeData));\n _this2.municipalTreeData = treeData[0].children[0].children[0].children;\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n };\n req.post(portal + \"/fill/bizSpecialGroup/v1/queryPageList\", data).then(function (res) {\n _this2.groupList = res.data.rows.filter(function (item) {\n return item.groupType === 2;\n });\n resolve();\n });\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 打开弹窗\n openDialog: function openDialog(item, title) {\n var _this3 = this;\n\n this.title = title;\n this.type = title === '详情' ? 'detail' : 'edit';\n var reqArr = item.id ? [this.setDataOptions(), this.getDetailsById(item.id)] : [this.setDataOptions()];\n this.reqLoading = true;\n Promise.all(reqArr).then(function () {\n _this3.reqLoading = false;\n });\n\n if (item.parentId) {\n this.getHistory(item.parentId);\n }\n\n this.visible = true;\n },\n // 获取详情\n getDetailsById: function getDetailsById(id) {\n var _this4 = this;\n\n return new Promise(function (resolve) {\n // 根据id查询详情\n req.get(portal + \"/bizReformDemandAnalysisLibrary/v1/getById?id=\".concat(id)).then(function (res) {\n if (res.status === 200) {\n _this4.parameter = res.data;\n\n _this4.getRunwaOoptions(res.data.projectField);\n\n res.data.projectRunway = res.data.projectRunway + '';\n _this4.parameter.leadValue = [];\n _this4.parameter.leadObj = res.data.units.filter(function (item) {\n return item.mainType === 1;\n });\n res.data.units.forEach(function (item) {\n if (item.mainType === 1) {\n _this4.parameter.leadValue = _this4.getParentsById(_this4.allTreeData, item.unitId);\n }\n });\n _this4.parameter.synergyValue = [];\n _this4.parameter.synergyObj = res.data.units.filter(function (item) {\n return item.mainType === 2;\n });\n _this4.allSynergyObj = res.data.units.filter(function (item) {\n return item.mainType === 2;\n });\n res.data.units.forEach(function (item) {\n if (item.mainType === 2) {\n var arr = _this4.getParentsById(_this4.allTreeData, item.unitId);\n\n _this4.parameter.synergyValue.push(arr);\n }\n });\n _this4.parameter.files = _this4.parameter.files || [];\n }\n\n resolve();\n });\n });\n },\n // 根据id查询历史更新记录\n getHistory: function getHistory(id) {\n var _this5 = this;\n\n req.get(portal + \"/bizReformDemandAnalysisLibrary/v1/getHisById?parentId=\".concat(id)).then(function (res) {\n if (res.status === 200 && res.data) {\n _this5.intermediate = res.data;\n _this5.intermediate.leadObj = res.data.units && res.data.units.filter(function (item) {\n return item.mainType === 1;\n });\n _this5.intermediate.synergyObj = res.data.units && res.data.units.filter(function (item) {\n return item.mainType === 2;\n });\n _this5.historyFileId = res.data.files && res.data.files.map(function (item) {\n return item.id;\n });\n }\n });\n },\n // 历史本次切换\n tabToggle: function tabToggle(e) {\n var _this6 = this;\n\n if (e !== this.isHistory) {\n this.reqLoading = true;\n setTimeout(function () {\n var data = JSON.parse(JSON.stringify(_this6.intermediate));\n _this6.type = e ? 'detail' : 'edit';\n _this6.intermediate = _this6.parameter;\n _this6.isHistory = e;\n _this6.parameter = data;\n _this6.reqLoading = false;\n }, 500);\n }\n },\n // 查询专项小组\n getGroupList: function getGroupList() {},\n // 专项小组选择\n // groupChange(e) {\n // let groupObj = {}\n // this.groupList.forEach(item => {\n // if (item.groupName === e) {\n // groupObj = item\n // }\n // })\n // let { orgId: unitId, orgName: unitName } = groupObj\n // let unitObj = {\n // mainType: 3, //1:主责单位 2:协同单位 3:专项小组\n // unitCode: '',\n // unitGrade: '',\n // unitId,\n // unitName\n // }\n // let findIndex = this.parameter.units.findIndex(item => item.mainType === 3)\n // if (findIndex !== -1) {\n // this.parameter.units[findIndex] = unitObj\n // } else {\n // this.parameter.units.push(unitObj)\n // }\n // },\n // 牵头单位选择\n leadChange: function leadChange() {\n var _this7 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this7.$refs['leadCascader'].getCheckedNodes();\n\n if (nodesObj.length) {\n var _nodesObj$0$data = nodesObj[0].data,\n code = _nodesObj$0$data.code,\n id = _nodesObj$0$data.id,\n grade = _nodesObj$0$data.grade,\n name = _nodesObj$0$data.name;\n _this7.parameter.leadObj = [{\n id: _this7.parameter.leadObj[0] && _this7.parameter.leadObj[0].id || '',\n mainType: 1,\n //1:主责单位 2:协同单位 3:专项小组\n unitCode: code,\n unitGrade: grade,\n unitId: id,\n unitName: name\n }];\n } else {\n _this7.parameter.leadObj = [{\n id: _this7.parameter.leadObj[0] && _this7.parameter.leadObj[0].id || ''\n }];\n }\n });\n },\n // 协同单位选择\n synergyChange: function synergyChange() {\n var _this8 = this;\n\n this.$nextTick(function () {\n var objArr = [];\n\n var nodesObj = _this8.$refs['synergyCascader'].getCheckedNodes();\n\n if (nodesObj.length) {\n nodesObj.forEach(function (item) {\n var _item$data = item.data,\n code = _item$data.code,\n id = _item$data.id,\n grade = _item$data.grade,\n name = _item$data.name;\n objArr.push({\n id: _this8.getId(_this8.parameter.synergyObj, id),\n mainType: 2,\n //1:主责单位 2:协同单位 3:专项小组\n unitCode: code,\n unitGrade: grade,\n unitId: id,\n unitName: name\n });\n });\n }\n\n _this8.parameter.synergyObj = objArr;\n });\n },\n // 根据uniId返回协同单位数据id\n getId: function getId(arr, unitId) {\n var id = '';\n arr.forEach(function (item) {\n if (item.unitId === unitId) {\n id = item.id;\n }\n });\n return id;\n },\n // 协同单位删除\n removeTag: function removeTag(e) {\n var _this9 = this;\n\n console.log(e.slice(-1)[0]);\n var unitId = e.slice(-1)[0];\n var id = null;\n var delIndex = '';\n this.allSynergyObj.forEach(function (item, index) {\n if (item.unitId === unitId) {\n id = item.id;\n delIndex = index;\n }\n });\n\n if (id) {\n req.remove(portal + \"/fill/bizProjectCooperativeUnit/v1/\".concat(id)).then(function (res) {\n if (res.data.state) {\n _this9.allSynergyObj.splice(delIndex, 1);\n }\n });\n }\n },\n // 根据id获取id路径\n getParentsById: function getParentsById(list, id) {\n var _iterator = _createForOfIteratorHelper(list),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n\n if (item.id == id) {\n return [item.id];\n }\n\n if (item.children) {\n var node = this.getParentsById(item.children, id);\n\n if (node !== undefined) {\n node.unshift(item.id);\n return node;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n },\n // 所属领域选择\n hanldeCommonSelect: function hanldeCommonSelect(val, obj) {\n this.parameter.projectRunway = '';\n this.projectRunwayOptions = obj && obj.lowerDic['ggbb_sspd'];\n },\n // 根据所属领域获取所属跑道\n getRunwaOoptions: function getRunwaOoptions(pilotField) {\n var _this10 = this;\n\n var arr = utils.getDictItemsFromCache('ggbb_ssly');\n arr.forEach(function (item) {\n if (item.value == pilotField) {\n _this10.projectRunwayOptions = item.lowerDic['ggbb_sspd'];\n }\n });\n },\n // 附件相关\n uploadeFile: function uploadeFile() {\n this.$refs.uploadFile.open('DemandRecord');\n },\n setFileList: function setFileList(file) {\n var newFile = _objectSpread(_objectSpread({}, file), {}, {\n id: file.response.fileId\n });\n\n this.parameter.files.push(newFile);\n this.parameter.classified = '';\n },\n setAipher: function setAipher() {\n this.$set(this.parameter, 'classified', '文件涉密已通过内网上传'); // this.parameter.classified = \n },\n changeFileList: function changeFileList(arr) {\n this.parameter.files = arr;\n },\n idExist: function idExist(id) {\n console.log(!this.historyFileId.includes(id));\n\n if (!this.historyFileId.includes(id)) {\n this.removeFileId.push(id);\n }\n },\n // 附件真删除\n removeFiles: function removeFiles() {\n console.log(this.removeFileId);\n\n if (this.removeFileId.length) {\n var ids = this.removeFileId.join(',');\n req.post(portal + \"/file/v1/remove\", ids).then(function (res) {});\n }\n },\n // 保存为草稿 审核\n handleSave: function handleSave(status) {\n var _this11 = this;\n\n var flag = this.parameter.superiorRequirement == '' && this.parameter.systemBreakthrough == '' && this.parameter.problemOrientated == '' || this.parameter.superiorRequirement == '' && this.parameter.systemBreakthrough == '' || this.parameter.superiorRequirement == '' && this.parameter.problemOrientated == '' || this.parameter.systemBreakthrough == '' && this.parameter.problemOrientated == '';\n this.$refs.formInfo.validate(function (valid) {\n if (valid && !flag) {\n var msg = !status ? \"保存为草稿\" : status === 1 ? '保存并上报' : status === 3 ? '报送市委改革办' : status === 5 ? '转化为三个一批重大项目' : status === -3 ? '纳入专项小组台账' : status === -4 ? '该需求为待审查论证' : '';\n\n _this11.$confirm(\"\\u786E\\u8BA4\".concat(msg, \"\\u5417\\uFF1F\"), '提示', {\n confirmButtonText: '确定',\n cancelButton: '',\n Text: '取消',\n type: 'warning'\n }).then(function () {\n _this11.markLoading = true;\n _this11.parameter.units = [].concat(_toConsumableArray(_this11.parameter.leadObj), _toConsumableArray(_this11.parameter.synergyObj));\n _this11.parameter.status = status;\n\n if (_this11.title === '更新') {\n _this11.parameter.id = '';\n\n _this11.parameter.units.forEach(function (item) {\n item.id = '';\n });\n }\n\n req.post(portal + \"/bizReformDemandAnalysisLibrary/v1/\", _this11.parameter).then(function (res) {\n if (res.data.state) {\n _this11.removeFiles();\n\n _this11.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n\n _this11.handleClose();\n\n _this11.$emit('refreshData');\n }\n\n _this11.markLoading = false;\n });\n });\n } else {\n if (flag) {\n _this11.$message.error('改革需求至少填报两项');\n } else {\n _this11.$message.error('请填写完整信息...');\n }\n }\n });\n },\n // 修改保存\n updateSave: function updateSave() {\n var _this12 = this;\n\n var flag = this.parameter.superiorRequirement == '' && this.parameter.systemBreakthrough == '' && this.parameter.problemOrientated == '' || this.parameter.superiorRequirement == '' && this.parameter.systemBreakthrough == '' || this.parameter.superiorRequirement == '' && this.parameter.problemOrientated == '' || this.parameter.systemBreakthrough == '' && this.parameter.problemOrientated == '';\n this.$refs.formInfo.validate(function (valid) {\n if (valid && !flag) {\n _this12.$confirm(\"\\u786E\\u8BA4\\u4FEE\\u6539\\u4FDD\\u5B58\\u5417\\uFF1F\", '提示', {\n confirmButtonText: '确定',\n cancelButton: '',\n Text: '取消',\n type: 'warning'\n }).then(function () {\n _this12.markLoading = true;\n _this12.parameter.units = [].concat(_toConsumableArray(_this12.parameter.leadObj), _toConsumableArray(_this12.parameter.synergyObj));\n req.post(portal + \"/bizReformDemandAnalysisLibrary/v1/\", _this12.parameter).then(function (res) {\n if (res.data.state) {\n _this12.$message.success(\"\\u4FEE\\u6539\\u4FDD\\u5B58\\u6210\\u529F\");\n\n _this12.handleClose();\n\n _this12.$emit('refreshData');\n }\n\n _this12.markLoading = false;\n });\n });\n } else {\n if (flag) {\n _this12.$message.error('改革需求至少填报两项');\n } else {\n _this12.$message.error('请填写完整信息...');\n }\n }\n });\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this13 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u9A73\\u56DE\\u5417?\", '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this13.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this14 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.parameter));\n data.units = [].concat(_toConsumableArray(data.leadObj), _toConsumableArray(data.synergyObj));\n data.status = this.routeName == 'MunicipalDemandAudit' ? 2 : 4;\n data.approvalComments = approvalComments;\n req.post(portal + \"/bizReformDemandAnalysisLibrary/v1/\", data).then(function (res) {\n if (res.data.state) {\n _this14.$message.success(\"\\u9A73\\u56DE\\u6210\\u529F\");\n\n _this14.handleClose();\n\n _this14.$emit('refreshData');\n }\n\n _this14.markLoading = false;\n });\n },\n // 关闭弹窗\n handleClose: function handleClose() {\n this.parameter = {\n superiorRequirement: '',\n //上级要求\n systemBreakthrough: '',\n //制度突破\n problemOrientated: '',\n //问题向导\n projectName: '',\n // 拟生成的市级重大改革项目\n carryOutWork: '',\n //已开展的工作\n nextPlan: '',\n //改革思路举措和下步工作打算\n leadValue: [],\n //牵头单位\n leadObj: [],\n //牵头单位 对象\n synergyValue: [],\n //协同单位 id\n synergyObj: [],\n //协同单位 对象\n groupName: '',\n //专项小组\n projectField: '',\n //所属领域\n projectRunway: '',\n //所属跑道\n files: [],\n demandDate: moment(new Date()).format('YYYY-MM-DD')\n }, this.allSynergyObj = [];\n this.isHistory = false;\n this.intermediate = null;\n this.visible = false;\n this.historyFileId = [];\n this.removeFileId = [];\n }\n }\n};",null]}