{"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\\addPilot.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformSituation\\components\\addPilot.vue","mtime":1745564629841},{"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/es6.array.sort\";\nimport \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/es6.array.find\";\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.regexp.split\";\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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 FileList from '@/components/uploadFile/FileList.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nexport default {\n name: 'AddFormDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList\n },\n mixins: [TableMixin],\n props: {},\n data: function data() {\n var _this = this;\n\n var validateReportFileList = function validateReportFileList(rule, value, callback) {\n var parts = rule.field.split('.');\n var listName = parts[0];\n var index = parts[1];\n var reportFileList = parts[2];\n\n if (_this.parameter[listName][index].reportFileIsClassified === '0') {\n if (_this.parameter[listName][index][reportFileList].length > 0) {\n callback();\n } else {\n callback(new Error('请上传附件'));\n }\n } else {\n callback();\n }\n };\n\n var validateProofFileList = function validateProofFileList(rule, value, callback) {\n var parts = rule.field.split('.');\n var listName = parts[0];\n var index = parts[1];\n var proofFileList = parts[2];\n\n if (_this.parameter[listName][index].proofFileIsClassified === '0') {\n if (_this.parameter[listName][index][proofFileList].length > 0) {\n callback();\n } else {\n callback(new Error('请上传附件'));\n }\n } else {\n callback();\n }\n };\n\n return {\n visibleProject: false,\n reqLoading: false,\n title: '',\n activeCollapse1: ['1', '2', '3'],\n parameter: {\n projectList: [],\n researchList: [],\n introducedList: []\n },\n parameterBack: {},\n rules: {\n projectName: [{\n required: true,\n message: '试点名称不能为空',\n trigger: 'blur'\n }],\n isFinish: [{\n required: true,\n message: '是否完成调研不能为空',\n trigger: 'change'\n }],\n isPlan: [{\n required: true,\n message: '是否出台方案不能为空',\n trigger: 'change'\n }],\n reportFileList: [{\n validator: validateReportFileList,\n trigger: 'blur'\n }],\n proofFileList: [{\n validator: validateProofFileList,\n trigger: 'blur'\n }]\n },\n // 上传附件时的标识\n upIndex: 0,\n upType: '',\n identify: '',\n category: '',\n isDetails: false,\n isAudit: false,\n details: {}\n };\n },\n created: function created() {},\n methods: {\n cellMouseEnter: function cellMouseEnter(row, cloumn, cell, event) {\n if (row.isNowDatar === '1' || row.isNowDatas === '1') {\n return this.createTips(event, row, '本条数据为历史填报内容,现已进入本次填报的修改行列中,请完善填报内容');\n }\n },\n cellMouseLeave: function cellMouseLeave(row) {\n this.removeTips(row);\n },\n // 创建toolTip\n createTips: function createTips(el, row, value) {\n var key = row.key;\n var tooltipDom = document.createElement('div');\n tooltipDom.style.cssText = \"\\n display: inline-block;\\n max-width: 300px;\\n max-height: 300px;\\n position: absolute;\\n top: \".concat(el.clientY + 5, \"px;\\n left: \").concat(el.clientX, \"px;\\n padding:5px 10px;\\n overflow: auto;\\n font-size: 12px;\\n font-family: PingFangSC-Regular, PingFang SC;\\n font-weight: 400;\\n color: #595959;\\n background: #fff;\\n border-radius: 5px;\\n z-index: 19999;\\n box-shadow: 0 4px 12px 1px #ccc;\\n \");\n tooltipDom.innerHTML = value;\n tooltipDom.setAttribute('id', \"tooltip-\".concat(key)); // 将浮层插入到body中\n\n document.body.appendChild(tooltipDom);\n },\n // 删除tooltip\n removeTips: function removeTips(row) {\n var key = row.key;\n this.$nextTick(function () {\n var tooltipDomLeave = document.querySelectorAll(\"#tooltip-\".concat(key));\n\n if (tooltipDomLeave.length) {\n tooltipDomLeave.forEach(function (dom) {\n document.body.removeChild(dom);\n });\n }\n });\n },\n tableRowClassNamer: function tableRowClassNamer(_ref) {\n var row = _ref.row,\n index = _ref.index;\n\n if (this.details.status === 5) {\n return '';\n } else if (row.isNowDatar === '1') {\n return 'highlight-row';\n } else {\n return '';\n }\n },\n tableRowClassNames: function tableRowClassNames(_ref2) {\n var row = _ref2.row,\n index = _ref2.index;\n\n if (this.details.status === 5) {\n return '';\n } else if (row.isNowDatas === '1') {\n return 'highlight-row';\n } else {\n return '';\n }\n },\n blurNameChange: function blurNameChange(index) {\n var _this2 = this;\n\n var array2 = [];\n array2 = this.parameter.researchList.filter(function (item) {\n return item.key === _this2.parameter.projectList[index].key;\n });\n\n if (array2.length > 0) {\n this.parameter.researchList = this.parameter.researchList.map(function (item) {\n var name = '';\n\n if (item.key === array2[0].key) {\n name = _this2.parameter.projectList[index].projectName;\n } else {\n name = item.projectName;\n }\n\n return _objectSpread(_objectSpread({}, item), {}, {\n projectName: name\n });\n });\n }\n\n var array1 = [];\n array1 = this.parameter.introducedList.filter(function (item) {\n return item.key === _this2.parameter.projectList[index].key;\n });\n\n if (array1.length > 0) {\n this.parameter.introducedList = this.parameter.introducedList.map(function (item) {\n var name = '';\n\n if (item.key === array1[0].key) {\n name = _this2.parameter.projectList[index].projectName;\n } else {\n name = item.projectName;\n }\n\n return _objectSpread(_objectSpread({}, item), {}, {\n projectName: name\n });\n });\n }\n },\n upDate: function upDate(title, dataList, isDetails, historyDataList, isEditHistory, details) {\n this.details = details;\n this.isAudit = isEditHistory === '改革办审核';\n this.isDetails = isDetails;\n this.parameter = _objectSpread(_objectSpread({}, dataList), historyDataList);\n this.parameterBack = JSON.parse(JSON.stringify(this.parameter));\n this.title = title;\n this.visibleProject = true; //调研和出台方案 设置index\n\n if (this.parameter.historyResearchList.length > 0) {\n this.parameter.historyResearchList = this.getHistoryIndexChange(this.parameter.historyProjectList, this.parameter.historyResearchList);\n }\n\n if (this.parameter.histotyIntroducedList.length > 0) {\n this.parameter.histotyIntroducedList = this.getHistoryIndexChange(this.parameter.historyProjectList, this.parameter.histotyIntroducedList);\n } // 序号回显\n\n\n this.getIndexChange();\n },\n // 序号回显\n getIndexChange: function getIndexChange() {\n var _this3 = this;\n\n if (this.parameter.historyProjectList.length > 0) {\n this.parameter.projectList = this.parameter.projectList.map(function (item, indexs) {\n return _objectSpread(_objectSpread({}, item), {}, {\n index: _this3.parameter.historyProjectList.length + indexs + 1\n });\n }); // 调研列表\n\n this.parameter.projectList.forEach(function (itemA) {\n var itemB = _this3.parameter.researchList.find(function (item) {\n return item.key === itemA.key;\n });\n\n if (itemB) {\n itemB.index = itemA.index;\n }\n });\n this.parameter.projectList.forEach(function (itemA) {\n var itemB = _this3.parameter.introducedList.find(function (item) {\n return item.key === itemA.key;\n });\n\n if (itemB) {\n itemB.index = itemA.index;\n }\n });\n } else {\n this.parameter.projectList = this.parameter.projectList.map(function (item, indexs) {\n return _objectSpread(_objectSpread({}, item), {}, {\n index: indexs + 1\n });\n }); // 调研列表\n\n this.parameter.projectList.forEach(function (itemA) {\n var itemB = _this3.parameter.researchList.find(function (item) {\n return item.key === itemA.key;\n });\n\n if (itemB) {\n itemB.index = itemA.index;\n }\n });\n this.parameter.projectList.forEach(function (itemA) {\n var itemB = _this3.parameter.introducedList.find(function (item) {\n return item.key === itemA.key;\n });\n\n if (itemB) {\n itemB.index = itemA.index;\n }\n });\n }\n },\n getHistoryIndexChange: function getHistoryIndexChange(oldData, newData) {\n var serviceData = [];\n serviceData = newData.map(function (item) {\n // 查找 a 中与 b 当前项的 id 匹配的下标\n var index = oldData.findIndex(function (aItem) {\n return aItem.key === item.key;\n }); // 返回新的对象,包含 b 的原有属性和找到的 index\n\n return _objectSpread(_objectSpread({}, item), {}, {\n index: index\n });\n });\n return serviceData;\n },\n handleClose: function handleClose() {\n this.parameter = JSON.parse(JSON.stringify(this.parameterBack));\n this.parameter.projectList = this.parameter.projectList.filter(function (item) {\n return item.projectName !== '';\n });\n this.$emit('confirm', this.parameter);\n this.visibleProject = false;\n },\n confirmChange: function confirmChange() {\n var _this4 = this;\n\n this.$refs['formInfo'].validate(function (valid) {\n if (valid) {\n _this4.$emit('confirm', _this4.parameter);\n\n _this4.visibleProject = false;\n } else {\n _this4.$message.warning('请填写必填选项!');\n }\n });\n },\n tableAdd: function tableAdd(type) {\n if (type === 'projectList') {\n this.parameter[type].push({\n index: this.parameter.historyProjectList.length + this.parameter.projectList.length + 1,\n key: this.parameter[type].length + new Date(),\n isHistory: '0',\n projectName: '',\n finishExit: true,\n planExit: true\n });\n }\n },\n tableDel: function tableDel(type, row) {\n this.parameter[type] = this.parameter[type].filter(function (item) {\n return item.key !== row.key;\n });\n this.getIndexChange();\n\n if (this.parameter.researchList.length > 0) {\n this.parameter.researchList = this.parameter.researchList.filter(function (item) {\n return item.key !== row.key;\n });\n }\n\n if (this.parameter.introducedList.length > 0) {\n this.parameter.introducedList = this.parameter.introducedList.filter(function (item) {\n return item.key !== row.key;\n });\n }\n },\n // 调研单选框\n researchChange: function researchChange(item, index) {\n if (item.projectName === undefined || item.projectName === null || item.projectName === '') {\n this.$message.warning('请先填写项目名称!');\n return false;\n }\n\n var param = {\n index: index,\n projectName: item.projectName,\n key: item.key,\n isHistory: '0',\n reportFileList: [],\n reportFileIsClassified: '0',\n finishExit: true\n };\n\n if (item.isFinish === '1') {\n this.parameter.researchList.splice(index, 0, param);\n this.parameter.researchList.sort(function (a, b) {\n return a.index - b.index;\n });\n } else {\n this.parameter.researchList = this.parameter.researchList.filter(function (obj) {\n return obj.key !== item.key;\n });\n }\n },\n // 调研单选框 (历史)\n researchHistoryChange: function researchHistoryChange(item, index) {\n if (item.projectName === undefined || item.projectName === null || item.projectName === '') {\n this.$message.warning('请先填写项目名称!');\n return false;\n }\n\n var param = {\n index: index,\n projectName: item.projectName,\n key: item.key,\n isHistory: '1',\n reportFileList: [],\n reportFileIsClassified: '0',\n finishExit: true,\n isNowDatar: '1'\n };\n\n if (item.isFinish === '1') {\n this.parameter.historyResearchList.splice(index, 0, param);\n this.parameter.historyResearchList.sort(function (a, b) {\n return a.index - b.index;\n });\n } else {\n this.parameter.historyResearchList = this.parameter.historyResearchList.filter(function (obj) {\n return obj.key !== item.key;\n });\n }\n },\n //出台\n introducedChange: function introducedChange(item, index) {\n if (item.projectName === undefined || item.projectName === null || item.projectName === '') {\n this.$message.warning('请先填写项目名称!');\n return false;\n }\n\n var param = {\n index: index,\n projectName: item.projectName,\n key: item.key,\n isHistory: '0',\n proofFileList: [],\n proofFileIsClassified: '0',\n planExit: true\n };\n\n if (item.isPlan === '1') {\n this.parameter.introducedList.splice(index, 0, param);\n this.parameter.introducedList.sort(function (a, b) {\n return a.index - b.index;\n });\n } else {\n this.parameter.introducedList = this.parameter.introducedList.filter(function (obj) {\n return obj.key !== item.key;\n });\n }\n },\n //出台(历史)\n introducedHistoryChange: function introducedHistoryChange(item, index) {\n if (item.projectName === undefined || item.projectName === null || item.projectName === '') {\n this.$message.warning('请先填写项目名称!');\n return false;\n }\n\n var param = {\n index: index,\n projectName: item.projectName,\n key: item.key,\n proofFileList: [],\n isHistory: '1',\n proofFileIsClassified: '0',\n planExit: true,\n isNowDatas: '1'\n };\n\n if (item.isPlan === '1') {\n this.parameter.histotyIntroducedList.splice(index, 0, param);\n this.parameter.histotyIntroducedList.sort(function (a, b) {\n return a.index - b.index;\n });\n } else {\n this.parameter.histotyIntroducedList = this.parameter.histotyIntroducedList.filter(function (obj) {\n return obj.key !== item.key;\n });\n }\n },\n // 附件相关\n setAipher: function setAipher() {\n if (this.identify === '1') {\n if (this.category === 'history') {\n this.$set(this.parameter.historyResearchList[this.upIndex], 'reportFileIsClassified', '1');\n } else {\n this.$set(this.parameter.researchList[this.upIndex], 'reportFileIsClassified', '1');\n }\n } else {\n if (this.category === 'history') {\n this.$set(this.parameter.histotyIntroducedList[this.upIndex], 'proofFileIsClassified', '1');\n } else {\n this.$set(this.parameter.introducedList[this.upIndex], 'proofFileIsClassified', '1');\n }\n }\n },\n deleteTag: function deleteTag(index, type, category) {\n if (type === 'reportFileList') {\n if (category === 'history') {\n this.$set(this.parameter.historyResearchList[index], 'reportFileIsClassified', '0');\n } else {\n this.$set(this.parameter.researchList[index], 'reportFileIsClassified', '0');\n }\n } else {\n if (category === 'history') {\n this.$set(this.parameter.histotyIntroducedList[index], 'proofFileIsClassified', '0');\n } else {\n this.$set(this.parameter.introducedList[index], 'proofFileIsClassified', '0');\n }\n }\n },\n openUploade: function openUploade(type, index, code, identify, category) {\n this.category = category;\n this.upIndex = index;\n this.upType = type;\n this.identify = identify;\n var codes = '';\n\n if (identify === '1') {\n if (this.title === '国家级') {\n codes = 'nPointReport';\n } else {\n codes = 'mPointReport';\n }\n } else {\n if (this.title === '国家级') {\n codes = 'nPointProof';\n } else {\n codes = 'mPointProof';\n }\n }\n\n this.$refs.uploadFile.open(codes);\n },\n setFileList: function setFileList(res) {\n var file = _objectSpread(_objectSpread({}, res), {}, {\n id: res.response.fileId\n });\n\n var upIndex = this.upIndex,\n upType = this.upType;\n\n if (this.identify === '1') {\n if (this.category === 'history') {\n this.parameter.historyResearchList[upIndex].reportFileList.push(file);\n } else {\n this.parameter.researchList[upIndex].reportFileList.push(file);\n }\n } else {\n if (this.category === 'history') {\n this.parameter.histotyIntroducedList[upIndex].proofFileList.push(file);\n } else {\n this.parameter.introducedList[upIndex].proofFileList.push(file);\n }\n }\n\n console.log(this.parameter.histotyIntroducedList, this.upIndex);\n },\n // 删除附件\n changeFileList: function changeFileList(arr, index, type, category, identify) {\n if (identify === '1') {\n if (category === 'history') {\n this.parameter.historyResearchList[index].reportFileList = arr;\n } else {\n this.parameter.researchList[index].reportFileList = arr;\n }\n } else {\n if (category === 'history') {\n this.parameter.histotyIntroducedList[index].proofFileList = arr;\n } else {\n this.parameter.introducedList[index].proofFileList = arr;\n }\n }\n }\n }\n};",null]}