{"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\\MeetingManagement\\MattersManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\MattersManagement.vue","mtime":1721720459136},{"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.object.values\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.array.find-index\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\nimport RecordPopover from '@/components/dialog/RecordPopover.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport pagination from '@/components/pagination';\nimport RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport OrgSelectDialog from '@/components/dialog/OrgSelectDialog.vue';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination,\n OrgSelectDialog: OrgSelectDialog,\n filePreview: filePreview,\n RejectInfoBlockDialog: RejectInfoBlockDialog,\n FileList: FileList,\n UploadFile: UploadFile,\n RecordPopover: RecordPopover\n },\n mixins: [TableMixin],\n data: function data() {\n var _ref;\n\n return _ref = {\n saveValueData: {},\n abutmentStatusList: [],\n groupList: [],\n markLoading: false,\n groupName: [],\n auditStatus: null,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n verifyling: false,\n rejecting: false,\n tableData: [],\n showDetails: false,\n reqLoading: false,\n formVisible: false\n }, _defineProperty(_ref, \"formVisible\", false), _defineProperty(_ref, \"multipleSelection\", []), _defineProperty(_ref, \"params\", {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n property: 'p.STATUS_',\n relation: 'AND',\n value: []\n }, {\n group: 'main',\n operation: 'EQUAL',\n property: 'e.SEND_STATUS_',\n relation: 'AND',\n value: '1'\n }]\n }), _defineProperty(_ref, \"pageResult\", {\n page: 1,\n pageSize: 20,\n total: 0\n }), _defineProperty(_ref, \"hisData\", []), _defineProperty(_ref, \"projectInfo\", {\n files: []\n }), _defineProperty(_ref, \"searchForm\", {}), _defineProperty(_ref, \"activeCollapse\", ['1', '2', '3', '4']), _defineProperty(_ref, \"dialog\", {\n title: '添加',\n visible: false\n }), _defineProperty(_ref, \"dialogForm\", {}), _defineProperty(_ref, \"historyData\", null), _defineProperty(_ref, \"edit\", false), _defineProperty(_ref, \"isShowBtn\", false), _defineProperty(_ref, \"options\", [{\n value: 0,\n label: '已完成对接'\n }, {\n value: 1,\n label: '未完成对接'\n }]), _defineProperty(_ref, \"rules\", {}), _defineProperty(_ref, \"unitNameArr\", []), _defineProperty(_ref, \"unitObjList\", []), _defineProperty(_ref, \"rules\", {\n meetingName: {\n required: true,\n message: '请输入会议名称',\n trigger: 'blur'\n },\n meetingTime: {\n required: true,\n message: '请选择会议时间',\n trigger: 'change'\n },\n meetingType: {\n required: true,\n message: '请选择会议类型',\n trigger: 'change'\n },\n meetingNum: {\n required: true,\n message: '请输入会议次别',\n trigger: 'blur'\n },\n groupName: {\n required: true,\n message: '请选择',\n trigger: 'change'\n },\n mainUnitList: {\n required: true,\n message: '请选择责任单位',\n trigger: 'change'\n },\n bizMeetingEventDetailsUnitList: {\n required: false,\n message: '请选择配合单位',\n trigger: 'change'\n },\n timePeriod: {\n required: true,\n message: '请选择落实期限',\n trigger: 'change'\n },\n updateRate: {\n required: true,\n message: '请选择更新频率',\n trigger: 'change'\n },\n feedbackTimeLimit: {\n required: true,\n message: '请选择反馈时间',\n trigger: 'change'\n },\n meetingTask: {\n required: true,\n message: '请输入重点工作/领导讲话内容',\n trigger: 'blur'\n },\n specificTask: {\n required: true,\n message: '请输入具体任务',\n trigger: 'blur'\n }\n }), _defineProperty(_ref, \"rules1\", {\n progress: [{\n required: true,\n message: '请条目式列举落实该交办任务面临的主要困难和问题',\n trigger: 'blur'\n }],\n measures: [{\n required: true,\n message: '请条目式列举落实该交办任务开展的工作',\n trigger: 'blur'\n }],\n abutmentStatus: [{\n required: true,\n message: '请选择推进状态',\n trigger: 'blur'\n }],\n remarks: [{\n required: true,\n message: '请输入下步工作计划',\n trigger: 'blur'\n }]\n }), _ref;\n },\n created: function created() {\n this.loadData(this.params);\n this.setStatusOptions('hy_shzt', 4); // this.groupList = utils.getDictItemsFromCache('zxxz')\n\n this.abutmentStatusList = utils.getDictItemsFromCache('xqzt');\n this.unitTreeData = JSON.parse(sessionStorage.getItem('responsibilityTree'));\n this.getGroupList();\n },\n methods: {\n slefClearMethods: function slefClearMethods() {\n this.auditStatus = null;\n delete this.params.sorter;\n },\n removeTag: function removeTag(e) {\n e.check = false;\n },\n groupChange: function groupChange(val, index) {\n var _this = this;\n\n var data = JSON.parse(JSON.stringify(this.dialogForm.bizMeetingEventDetailsList[index].mainUnitList));\n var isIndex = JSON.parse(JSON.stringify(this.dialogForm.bizMeetingEventDetailsList[index].groupName)).findIndex(function (ele) {\n return ele.id === 'other';\n });\n var ids = data.map(function (item) {\n return item.pop();\n });\n var arr = [];\n\n if (isIndex !== -1) {\n this.dialogForm.bizMeetingEventDetailsList[index].groupName = this.groupList;\n arr = this.groupList.map(function (item) {\n if (ids.indexOf(item.orgId) === -1) {\n if (item.orgId && !item.check) {\n item.check = true;\n return _this.getParentsById(_this.unitTreeData, item.orgId);\n }\n }\n });\n } else {\n arr = val.map(function (item) {\n if (ids.indexOf(item.orgId) === -1) {\n if (item.orgId && !item.check) {\n item.check = true;\n return _this.getParentsById(_this.unitTreeData, item.orgId);\n }\n }\n });\n }\n\n var groupArr = [].concat(_toConsumableArray(this.dialogForm.bizMeetingEventDetailsList[index].mainUnitList), _toConsumableArray(arr));\n this.dialogForm.bizMeetingEventDetailsList[index].mainUnitList = groupArr.filter(function (item) {\n return item !== undefined;\n });\n this.dialogForm.bizMeetingEventDetailsList[index].groupName = this.dialogForm.bizMeetingEventDetailsList[index].groupName.filter(function (item) {\n return item.id !== 'other';\n });\n },\n meetingTypeChange: function meetingTypeChange(e) {\n if (e - 0 < 20 || e == 30) {\n this.groupList = [].concat(_toConsumableArray(this.groupAll[1]), [{\n groupName: '各专项小组',\n id: 'other'\n }]);\n } else {\n this.groupList = [].concat(_toConsumableArray(this.groupAll[0]), [{\n groupName: '各专题组组',\n id: 'other'\n }]);\n }\n },\n // 查询专项小组列表\n getGroupList: function getGroupList() {\n var _this2 = this;\n\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n };\n req.post(portal + \"/fill/bizSpecialGroup/v1/queryPageList\", data).then(function (res) {\n res.data.rows.forEach(function (item) {\n return item.check = false;\n });\n _this2.groupAll = [res.data.rows.filter(function (item) {\n return item.groupType === 1;\n }), res.data.rows.filter(function (item) {\n return item.groupType === 2;\n })];\n _this2.groupList = [].concat(_toConsumableArray(_this2.groupAll[1]), [{\n groupName: '各专项小组',\n id: 'other'\n }]);\n });\n },\n // 审核通过\n handleVerify: function handleVerify() {\n var _this3 = this;\n\n this.$confirm('确认通过吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this3.markLoading = true;\n _this3.verifyling = true;\n _this3.projectInfo.status = 7;\n _this3.projectInfo.classified = _this3.classified;\n _this3.loading = true;\n req.post(portal + '/bizMeetingEventPush/v1/examineAndVerify', _this3.projectInfo).then(function (res) {\n if (res.data.state) {\n _this3.$message.success('通过成功');\n\n _this3.verifyling = false;\n } else {\n _this3.$message.error('通过失败');\n\n _this3.verifyling = false;\n }\n\n _this3.loading = false;\n _this3.formVisible = false;\n _this3.markLoading = false;\n\n _this3.loadData(_this3.params);\n });\n });\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this4 = 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 _this4.$refs.RejectInfoBlockDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this5 = this;\n\n // this.reqLoading = true\n this.markLoading = true;\n this.projectInfo.classified = this.classified;\n var data = this.projectInfo;\n data.status = 6;\n data.approvalComments = approvalComments;\n console.log(data, 'data');\n req.post(portal + '/bizMeetingEventPush/v1/examineAndVerify', data).then(function (res) {\n if (res.data.state) {\n _this5.$message.success('驳回成功');\n\n _this5.handleClose();\n\n _this5.loadData(_this5.params);\n } else {\n _this5.$message.success('驳回失败');\n } // this.reqLoading = false\n\n\n _this5.markLoading = false;\n });\n },\n // 保存\n handleSave: function handleSave() {\n var _this6 = this;\n\n this.$confirm('确认保存吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this6.markLoading = true;\n _this6.verifyling = true;\n _this6.loading = true;\n _this6.projectInfo.classified = _this6.classified;\n req.post(portal + '/bizMeetingEventPush/v1/saveOrUpdateEntity', _this6.projectInfo).then(function (res) {\n if (res.data.state) {\n _this6.$message.success('保存成功');\n\n _this6.verifyling = false;\n } else {\n _this6.$message.error('保存失败');\n\n _this6.verifyling = false;\n }\n\n _this6.loading = false;\n _this6.formVisible = false;\n _this6.markLoading = false;\n\n _this6.loadData(_this6.params);\n });\n });\n },\n // 撤回\n revokeReview: function revokeReview(data) {\n var _this7 = this;\n\n this.$confirm('确认执行撤销操作吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this7.markLoading = true;\n req.post(portal + '/bizMeetingEventPush/v1/modifyStatus?id=' + data.pushId + '&projectId=' + data.id + '&status=5&approvalResults=2').then(function (res) {\n if (res.status == 200) {\n _this7.$message.success('撤销操作成功');\n\n _this7.markLoading = false;\n\n _this7.loadData(_this7.params);\n }\n });\n });\n },\n exportExcel: function exportExcel() {\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n var querys = [{\n group: 'main',\n operation: 'IN',\n property: 'p.status_',\n relation: 'AND',\n value: this.auditStatus ? [6, 7] : [5]\n }];\n\n for (var i in obj) {\n querys.push({\n group: 'main',\n operation: i == 'u.UNIT_NAME_' || i == 'd.specific_Task_' || i == 'e.MEETING_NAME_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n\n this.params.querys = querys;\n var reqData = JSON.parse(JSON.stringify(this.params));\n reqData.pageBean = {\n page: -1,\n pageSize: -1\n };\n req.downloadPostCopy(portal + \"/bizMeetingEventDetails/v1/export?isAffirm=true\", reqData).then(function (res) {\n console.log(res);\n });\n },\n // 责任单位选择\n handleSelectOrg: function handleSelectOrg() {\n this.$refs.orgSeleect.open();\n },\n handleOrgSelect: function handleOrgSelect(row) {\n this.dialogForm = _objectSpread(_objectSpread({}, this.dialogForm), {}, {\n unitId: row[0].id,\n unitName: row[0].name,\n unitCode: row[0].code,\n unitGrade: row[0].grade\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getTableData: function getTableData(val) {\n if (this.auditStatus != val) {\n this.auditStatus = val;\n this.getStatusList();\n }\n },\n getStatusList: _.debounce(function () {\n var obj = this.searchForm;\n var querys = [{\n group: 'main',\n operation: 'IN',\n property: 'p.status_',\n relation: 'AND',\n value: this.auditStatus ? [6, 7] : [5]\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'u.UNIT_NAME_' || i == 'd.specific_Task_' || i == 'e.MEETING_NAME_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n\n if (this.auditStatus) {\n this.params.sorter = [{\n direction: 'DESC',\n property: 'p.Last_time_'\n }];\n } else {\n delete this.params.sorter;\n }\n\n this.params.pageBean.page = 1;\n this.loadData(this.params); // this.params.pageBean.page = 1\n // this.handleSearch()\n }, 500),\n //获取数据\n loadData: function loadData(params) {\n var _this8 = this;\n\n console.log(params, 'params');\n this.tableLoading = true;\n req.post(portal + \"/bizMeetingEventDetails/v1/queryByPage?isAffirm=\".concat(true), params).then(function (res) {\n _this8.tableLoading = false;\n var data = res && res.data && res.data.value || {};\n _this8.tableData = data.rows || [];\n _this8.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n // 详情\n handleDetils: function handleDetils(data, index) {\n var _this9 = this;\n\n this.isShowBtn = false;\n this.formVisible = true;\n this.dialog.title = index === 1 ? '编辑' : '详情';\n this.reqLoading = true;\n this.dialogForm = data;\n this.unitNameArr = data.cooperativeUnitName.split(',');\n\n if (data.groupName) {\n this.groupName = JSON.parse(data.groupName).map(function (item) {\n return item.groupName;\n });\n }\n\n var arr = data.status ? [this.getMeetingPushD(data.id, data.unitId)] : [];\n Promise.all(arr).then(function () {\n _this9.reqLoading = false;\n });\n },\n handleDbClick: function handleDbClick(data) {\n var _this10 = this;\n\n console.log(data);\n this.reqLoading = true;\n this.dialog.title = '审核';\n this.isShowBtn = true;\n this.formVisible = true;\n this.dialogForm = data;\n this.unitNameArr = data.cooperativeUnitName.split(',');\n\n if (data.groupName) {\n this.groupName = JSON.parse(data.groupName).map(function (item) {\n return item.groupName;\n });\n }\n\n if (this.$refs.form) {\n this.$refs.form.resetFields();\n }\n\n var arr = [// this.getMeetingD(data.meetingEventId),\n this.getMeetingPushD(data.id, data.unitId)];\n Promise.all(arr).then(function () {\n _this10.reqLoading = false;\n });\n },\n // 根据id查询会议信息\n getMeetingD: function getMeetingD(mId) {\n var _this11 = this;\n\n return new Promise(function (resolve) {\n req.post(portal + '/bizMeetingEvent/v1/detailedById?id=' + mId).then(function (res) {\n if (res.data.state) {\n _this11.dialogForm = res.data.value;\n\n _this11.meetingTypeChange(_this11.dialogForm.meetingType); // this.dialogForm.bizMeetingEventDetailsList.forEach(item => {\n // this.unitObjList = [...this.unitObjList, ...item.mainUnitList]\n // item.groupName = JSON.parse(item.groupName)\n // item.groupName = item.groupName.map(group => {\n // group.check = true\n // return group\n // })\n // item.bizMeetingEventDetailsUnitList.forEach(\n // (unitObj, index) => {\n // let idArr = this.getParentsById(\n // this.unitTreeData,\n // unitObj.unitId\n // )\n // item.bizMeetingEventDetailsUnitList[index] = idArr\n // }\n // )\n // item.mainUnitList.forEach((unitObj, index) => {\n // let idArr = this.getParentsById(\n // this.unitTreeData,\n // unitObj.unitId\n // )\n // item.mainUnitList[index] = idArr\n // })\n // })\n\n\n resolve();\n _this11.reqLoading = false;\n } else {\n resolve();\n _this11.reqLoading = false;\n }\n });\n });\n },\n // 根据id查询推进信息\n getMeetingPushD: function getMeetingPushD(pId, unitId) {\n var _this12 = this;\n\n return new Promise(function (resolve) {\n var param = {\n querys: [],\n pageBean: {\n pageSize: 2\n },\n sorter: [{\n direction: 'DESC',\n property: 'LAST_TIME_'\n }]\n };\n param.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'DETAILS_ID_',\n relation: 'AND',\n value: pId\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'UNIT_ID_',\n relation: 'AND',\n value: unitId\n });\n req.post(portal + '/bizMeetingEventPush/v1/queryHistory', param).then(function (res) {\n if (res.data.state && res.data.value.length) {\n var list = res.data.value;\n _this12.projectInfo = list[0];\n _this12.projectInfo.abutmentStatus = list[0].abutmentStatus + '';\n _this12.projectInfo.approvalCommentsList = list[0] && list[0].approvalComments ? _this12.projectInfo.approvalComments.split('$_$') : [];\n _this12.classified = _this12.projectInfo.classified;\n\n if (list[1]) {\n _this12.historyData = list[1] || null;\n _this12.historyData.approvalCommentsList = list[1] && list[1].approvalComments ? list[1].approvalComments.split('$_$') : [];\n _this12.hisData = Object.values(_this12.historyData);\n } else {\n _this12.historyData = null;\n }\n\n if (_this12.historyData && _this12.historyData.abutmentStatus) {\n _this12.abutmentStatusList.forEach(function (item) {\n if (_this12.historyData.status == 7 && item.value - 0 < _this12.historyData.abutmentStatus - 0) {\n item.disabled = true;\n }\n });\n }\n }\n\n resolve();\n });\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 getTreeItem: function getTreeItem(data, id) {\n var _this13 = this;\n\n data.map(function (item) {\n if (item.id == id) {\n _this13.treeItem = item;\n } else {\n if (item.children) {\n _this13.getTreeItem(item.children, id);\n }\n }\n });\n },\n // 保存会议信息\n saveMeetingAll: function saveMeetingAll() {},\n // 保存交办事项推进\n saveMeetingPush: function saveMeetingPush(status, approvalComments) {\n var _this14 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.projectInfo));\n data.classified = this.classified;\n\n if (status) {\n data.status = status;\n }\n\n if (approvalComments) {\n data.approvalComments = approvalComments;\n }\n\n if (data.files.length >= 1) {\n data.classified = 0;\n }\n\n var msg = !status ? '修改保存' : status == 6 ? '驳回' : '通过';\n req.post(portal + '/bizMeetingEventPush/v1/examineAndVerify', data).then(function (res) {\n if (res.data.state) {\n _this14.$message.success(msg + '成功');\n\n _this14.verifyling = false;\n } else {\n _this14.$message.error(msg + '失败');\n\n _this14.verifyling = false;\n }\n\n _this14.loading = false;\n _this14.formVisible = false;\n _this14.markLoading = false;\n\n _this14.loadData(_this14.params);\n });\n },\n // 文件相关\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('ProjectExperience');\n },\n setFileList: function setFileList(file) {\n // this.projectInfo.files = []\n var data = this.projectInfo;\n data.files.push(file);\n data.files.map(function (item) {\n if (item.response) {\n item.id = item.response.fileId;\n }\n\n return item;\n });\n this.projectInfo = data;\n var url = '/bizMeetingEventPush/v1/saveOrUpdateEntity';\n var value = JSON.parse(JSON.stringify(this.saveValueData));\n value.files = data.files;\n },\n changeFileList: function changeFileList(data, index) {\n this.projectInfo.files = data;\n\n if (this.projectInfo.files.length > 0) {\n this.projectInfo.classified = 0;\n }\n },\n setAipher: function setAipher(val) {\n // this.tableData.classified = '文件涉密,已通过内网邮件上传。'\n this.classified = 1;\n this.cipher = val;\n this.projectInfo.classified = 1;\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n console.log(obj); // if (!obj['p.STATUS_']) {\n // obj['p.STATUS_'] = [1,2,3]\n // let search={\n // 'p.STATUS_':null\n // }\n // search['p.STATUS_'] = this.searchForm.status\n // this.operation = 'IN'\n // }\n\n var querys = [{\n group: 'main',\n operation: 'EQUAL',\n property: 'e.SEND_status_',\n relation: 'AND',\n value: 1\n }, {\n group: 'main',\n operation: 'IN',\n property: 'p.status_',\n relation: 'AND',\n value: this.auditStatus === null ? [] : this.auditStatus ? [6, 7] : [5]\n }];\n console.log(querys); // querys.push({\n // group: 'main',\n // operation: 'EQUAL',\n // property: 'me.SEND_STATUS_',\n // relation: 'AND',\n // value: '1'\n // })\n\n for (var i in obj) {\n querys.push({\n group: 'main',\n operation: i == 'u.UNIT_NAME_' || i == 'd.specific_Task_' || i == 'e.MEETING_NAME_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n\n this.params.querys = querys;\n this.params.pageBean.page = 1;\n this.loadData(this.params);\n },\n tableDel: function tableDel(type, scope) {\n var _this15 = this;\n\n var row = scope.row,\n $index = scope.$index;\n\n if (row.id) {\n this.markLoading = true;\n req.post(portal + '/bizMeetingEventDetails/v1/' + row.id).then(function (res) {\n if (res.data.state) {\n _this15.$message.success('删除成功');\n\n _this15.dialogForm[type].splice($index, 1);\n } // else {\n // this.$message.error('删除失败,请稍后重试!')\n // }\n\n\n _this15.markLoading = false;\n }); // this.parameter[type] = this.parameter[type].filter(\n // item => item.id !== row.id\n // )\n } else {\n this.dialogForm[type].splice($index, 1);\n this.$message.success('删除成功');\n } // console.log(row, 'wwwwwww')\n // if (row.key) {\n // this.parameter[type] = this.parameter[type].filter(\n // item => item.key !== row.key\n // )\n // } else {\n // }\n\n },\n tableAdd: function tableAdd(type) {\n this.groupList.forEach(function (item) {\n return item.check = false;\n });\n\n if (type == 'bizMeetingEventDetailsList') {\n this.dialogForm[type].push({\n feedbackTimeLimit: '',\n classified: '',\n status: '',\n remarks: '',\n meetingTask: '',\n mainUnitList: [],\n timePeriod: '0',\n bizMeetingEventDetailsUnitList: []\n });\n }\n },\n changeUnit: function changeUnit(value, index) {\n var _this16 = this;\n\n this.$nextTick(function () {\n _this16.$forceUpdate();\n });\n },\n // 页面中swatch回调事件\n // handleSwitch(bol) {\n // if (bol == true) {\n // // 已办\n // let searchForm = {\n // 'p.STATUS_': [2, 3]\n // }\n // this.operation = 'IN'\n // this.searchForm['p.STATUS_'] = searchForm['p.STATUS_']\n // } else {\n // // 代办\n // let searchForm = {\n // 'p.STATUS_': 1\n // }\n // this.operation = 'EQUAL'\n // this.searchForm['p.STATUS_'] = searchForm['p.STATUS_']\n // }\n // this.handleSearch()\n // },\n // 弹层关闭\n handleClose: function handleClose() {\n this.abutmentStatusList.forEach(function (item) {\n item.disabled = false;\n });\n this.classified = 0;\n this.formVisible = false;\n this.historyData = null;\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n }\n }\n};",null]}