{"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\\AssignmentItemsEntered.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\AssignmentItemsEntered.vue","mtime":1685009680991},{"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.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.array.find-index\";\nimport \"core-js/modules/web.dom.iterable\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination';\nimport sat from '@/api/satisfaction/satisfaction';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport RecordDialog from '@/components/dialog/RecordDialog';\nimport moment from 'moment';\nvar portal = window.context.portal;\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination,\n UploadFile: UploadFile,\n filePreview: filePreview,\n FileList: FileList,\n RecordDialog: RecordDialog\n },\n mixins: [TableMixin],\n data: function data() {\n // var checkMeetingType = async (rule, value, callback) => {\n // if (!value) {\n // return callback(new Error('请选择会议类型'))\n // } else {\n // if (this.dialogForm.meetingNum) {\n // let flag = await this.meetingNameIsUnique()\n // if (flag) {\n // callback()\n // } else {\n // return callback(new Error('会议名称已存在,请重新选择'))\n // }\n // }\n // }\n // }\n // var checkMeetingNum = async (rule, value, callback) => {\n // if (!value) {\n // return callback(new Error('请选择会议类型'))\n // } else {\n // if (this.dialogForm.meetingType) {\n // let flag = await this.meetingNameIsUnique()\n // if (flag) {\n // callback()\n // } else {\n // return callback(new Error('会议名称已存在,请重新选择'))\n // }\n // }\n // }\n // }\n return {\n markLoading: false,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n reqLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n saveing: false,\n //保存按钮加载\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1', '2'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n unitTreeData: [],\n classified: 0,\n dialogForm: {\n sendStatus: 0,\n // files: [],\n bizMeetingEventDetailsList: [{\n // unitValue: [],\n groupName: [],\n mainUnitList: [],\n feedbackTimeLimit: '',\n classified: '',\n status: '',\n remarks: '',\n meetingTask: '',\n specificTask: '',\n updateRate: '',\n timePeriod: '0',\n // 时间期限\n bizMeetingEventDetailsUnitList: []\n }] //交办事项\n\n },\n // parameter: {\n // bizMeetingEventDetailsList: [\n // {\n // unitValue: []\n // }\n // ] //交办事项\n // },\n meetingTypeList: [],\n //会议类型\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n rules: {\n meetingName: {\n required: true,\n message: '请输入会议名称',\n trigger: 'blur'\n },\n meetingTime: {\n required: true,\n message: '请选择会议时间',\n trigger: 'change'\n },\n // message: '请选择会议类型',\n // meetingType: {\n // required: true,\n // validator: checkMeetingType,\n // trigger: 'change'\n // },\n // message: '请输入会议次别',\n // meetingNum: {\n // required: true,\n // validator: checkMeetingNum,\n // message: '请选择会议类型',\n // trigger: 'blur'\n // },\n // message: '请选择会议类型',\n meetingType: {\n required: true,\n message: '请选择会议类型',\n trigger: 'change'\n },\n // message: '请输入会议次别',\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: false,\n message: '请输入重点工作/领导讲话内容',\n trigger: 'blur'\n },\n specificTask: {\n required: true,\n message: '请输入具体任务',\n trigger: 'blur'\n }\n },\n treeItem: {},\n groupList: [],\n unitObjList: [],\n flag: true,\n groupAll: []\n };\n },\n created: function created() {\n this.loadData(this.params); // this.groupList = utils.getDictItemsFromCache('zxxz')\n\n this.unitTreeData = JSON.parse(sessionStorage.getItem('responsibilityTree'));\n this.getGroupList();\n },\n watch: {\n 'dialogForm.meetingType': function dialogFormMeetingType(newVal, oldVal) {\n // console.log('meetingType 变化了', ((newVal<20||newVal==30)&&(oldVal>19 || oldVal==31)));\n if ((newVal < 20 || newVal == 30) && (oldVal > 19 || oldVal == 31) || (oldVal < 20 || oldVal == 30) && (newVal > 19 || newVal == 31)) {\n // console.log('meetingType 变化了', newVal, oldVal)\n this.dialogForm.bizMeetingEventDetailsList.forEach(function (item) {\n item.mainUnitList = [];\n item.groupName = [];\n });\n }\n }\n },\n methods: {\n clearAll: function clearAll() {\n this.groupList.forEach(function (item) {\n return item.check = false;\n });\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 console.log(isIndex);\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 this.groupList.forEach(function (item) {\n return item.check = false;\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 = JSON.parse(JSON.stringify(this.params));\n data.pageBean.pageSize = -1;\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 meetingNameIsUnique: function meetingNameIsUnique() {\n var _this3 = this;\n\n this.markLoading = true;\n return new Promise(function (resolve) {\n var _this3$dialogForm = _this3.dialogForm,\n meetingNum = _this3$dialogForm.meetingNum,\n meetingType = _this3$dialogForm.meetingType,\n id = _this3$dialogForm.id,\n meetingTime = _this3$dialogForm.meetingTime;\n\n var meetingName = _this3.getDictName('hylx', meetingType);\n\n if (meetingType == 1 || meetingType == 20) {\n meetingName = meetingName.substring(0, meetingName.length - 2) + '第' + meetingNum + '次会议';\n } else if (meetingType > 29) {\n meetingName = _this3.dialogForm.meetingName;\n } else {\n var year = moment(meetingTime).year() + '年';\n meetingName = year + '第' + meetingNum + '次' + meetingName;\n }\n\n var id1 = id ? id : '';\n console.log(meetingName);\n req.post(portal + \"/bizMeetingEvent/v1/isExists?meetingName=\".concat(meetingName, \"&id=\").concat(id1)).then(function (res) {\n resolve(res);\n });\n });\n },\n // 撤回\n revokeReview: function revokeReview(data) {\n var _this4 = this;\n\n console.log(data);\n this.$confirm('确认执行撤销操作吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this4.markLoading = true;\n req.post(portal + '/bizMeetingEventPush/v1/revSendStatus?id=' + data.id).then(function (res) {\n if (res.data.state) {\n req.post(portal + '/bizMeetingEvent/v1/modifySendStatus?ids=' + data.id + '&status=0').then(function (res) {\n if (res.status == 200) {\n _this4.$message.success('撤销操作成功');\n\n _this4.markLoading = false;\n\n _this4.loadData(_this4.params);\n }\n });\n }\n\n _this4.markLoading = false;\n }); // req\n // .post(\n // portal +\n // '/bizMeetingEvent/v1/modifySendStatus?ids=' +\n // data.id +\n // '&status=0'\n // )\n // .then(res => {\n // if (res.status == 200) {\n // this.$message.success('撤销操作成功')\n // this.loadData(this.params)\n // }\n // })\n // this.markLoading = true\n // pilot.updateStatusById(data, res => {\n // if (res.state) {\n // this.$message.success('撤销操作成功')\n // this.handleSearch(1)\n // }\n // this.markLoading = false\n // })\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this5 = this;\n\n this.tableLoading = true;\n req.post(portal + '/bizMeetingEvent/v1/queryByPage', params).then(function (res) {\n _this5.tableLoading = false;\n var data = res && res.data && res.data.value || {};\n _this5.tableData = data.rows || [];\n _this5.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.disabledDetils = false; // this.dialogForm = {\n // sendStatus: 0,\n // files: []\n // }\n // this.parameter = {\n // bizMeetingEventDetailsList: [\n // {\n // unitValue: [],\n // feedbackTimeLimit: '',\n // classified: '',\n // status: '',\n // remarks: '',\n // meetingTask: '',\n // unitName: ''\n // }\n // ]\n // }\n\n this.dialogForm = {\n sendStatus: 0,\n // files: [],\n bizMeetingEventDetailsList: [{\n // unitValue: [],\n groupName: [],\n mainUnitList: [],\n feedbackTimeLimit: '',\n classified: '',\n status: '',\n remarks: '',\n meetingTask: '',\n specificTask: '',\n updateRate: '',\n timePeriod: '0',\n // 时间期限\n bizMeetingEventDetailsUnitList: []\n }] //交办事项\n\n };\n this.$refs.form.resetFields();\n this.dialog.visible = true;\n this.disabled = false;\n this.dialog.title = '添加';\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this6 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n req.remove(portal + '/bizMeetingEvent/v1/?ids=' + _this6.deleteIds).then(function (res) {\n _this6.$message.success('删除成功');\n\n _this6.loadData(_this6.params);\n });\n });\n },\n tableDel: function tableDel(type, scope) {\n var _this7 = this;\n\n console.log(scope);\n var row = scope.row,\n $index = scope.$index;\n\n if (row.id) {\n req.remove(portal + '/bizMeetingEventDetails/v1/' + row.id).then(function (res) {\n _this7.$message.success('删除成功');\n\n _this7.dialogForm[type].splice($index, 1);\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 specificTask: '',\n timePeriod: '0',\n bizMeetingEventDetailsUnitList: []\n });\n }\n },\n // 上报\n handleAppear: function handleAppear(data) {\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 data.status = 1;\n _this8.tableLoading = true;\n req.post(portal + '/bizMeetingMattersAgreed/v1/query', data).then(function (res) {\n if (res.data.state) {\n _this8.$message.success('上报成功');\n } else {\n _this8.$message.error('上报失败');\n }\n\n _this8.loadData(_this8.params);\n });\n });\n },\n //修改\n handleDbClick: function handleDbClick(data) {\n var _this9 = this;\n\n this.dialog.title = '编辑';\n this.disabledDetils = false;\n this.edit = true;\n this.reqLoading = true;\n this.dialog.visible = true;\n this.$refs.form.resetFields(); // this.groupList = [...this.groupAll[0],...this.groupAll[1]]\n\n req.post(portal + '/bizMeetingEvent/v1/detailedById?id=' + data.id).then(function (res) {\n if (res.data.state) {\n _this9.dialogForm = res.data.value; // this.parameter.bizMeetingEventDetailsList =\n // res.data.value.bizMeetingEventDetailsList\n\n _this9.dialogForm.bizMeetingEventDetailsList.forEach(function (item) {\n _this9.unitObjList = [].concat(_toConsumableArray(_this9.unitObjList), _toConsumableArray(item.mainUnitList)); // this.$nextTick(() => {\n // item.unitValue = this.getParentsById(\n // this.unitTreeData,\n // item.unitId\n // )\n // })\n\n item.groupName = JSON.parse(item.groupName);\n item.groupName = item.groupName.map(function (group) {\n group.check = true;\n return group;\n });\n item.bizMeetingEventDetailsUnitList.forEach(function (unitObj, index) {\n var idArr = _this9.getParentsById(_this9.unitTreeData, unitObj.unitId);\n\n item.bizMeetingEventDetailsUnitList[index] = idArr;\n });\n item.mainUnitList.forEach(function (unitObj, index) {\n var idArr = _this9.getParentsById(_this9.unitTreeData, unitObj.unitId);\n\n item.mainUnitList[index] = idArr;\n });\n });\n\n _this9.meetingTypeChange(_this9.dialogForm.meetingType);\n\n _this9.reqLoading = false;\n } else {\n _this9.reqLoading = false;\n }\n });\n },\n handleLookDetiles: function handleLookDetiles(row) {\n var _this10 = this;\n\n this.dialog.title = '详情';\n this.disabledDetils = true;\n this.edit = true;\n this.disabled = true;\n this.reqLoading = true;\n this.dialog.visible = true;\n req.post(portal + '/bizMeetingEvent/v1/detailedById?id=' + row.id).then(function (res) {\n if (res.data.state) {\n _this10.dialogForm = res.data.value;\n\n _this10.meetingTypeChange(_this10.dialogForm.meetingType); // this.parameter.bizMeetingEventDetailsList =\n // res.data.value.bizMeetingEventDetailsList\n\n\n _this10.reqLoading = false;\n\n _this10.dialogForm.bizMeetingEventDetailsList.forEach(function (item) {\n // item.unitValue = this.getParentsById(\n // this.unitTreeData,\n // item.unitId\n // )\n item.groupName = JSON.parse(item.groupName);\n item.groupName = item.groupName.map(function (group) {\n group.check = true;\n return group;\n });\n item.bizMeetingEventDetailsUnitList.forEach(function (unitObj, index) {\n var idArr = _this10.getParentsById(_this10.unitTreeData, unitObj.unitId);\n\n item.bizMeetingEventDetailsUnitList[index] = idArr;\n });\n item.mainUnitList.forEach(function (unitObj, index) {\n var idArr = _this10.getParentsById(_this10.unitTreeData, unitObj.unitId);\n\n item.mainUnitList[index] = idArr;\n });\n });\n } else {\n _this10.reqLoading = false;\n }\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n if (i == 'meetingName') {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n }\n\n this.params.querys = querys;\n this.loadData(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n this.dialog.title = ''; // this.parameter = {\n // bizMeetingEventDetailsList: []\n // }\n\n this.dialogForm = {};\n this.fileList = [];\n this.classified = 0;\n this.saveing = false;\n this.disabled = false;\n },\n getTreeItem: function getTreeItem(data, id) {\n var _this11 = this;\n\n data.map(function (item) {\n if (item.id == id) {\n _this11.treeItem = item;\n } else {\n if (item.children) {\n _this11.getTreeItem(item.children, id);\n }\n }\n });\n },\n // 表单提交保存\n submit: function submit() {\n var _this12 = this;\n\n var url = '';\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this12.$confirm('确认本次提交保存吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this12.meetingNameIsUnique().then(function (res) {\n if (res.data) {\n // let {meetingNum} = this.dialogForm\n // meetingNum = meetingNum ? meetingNum : ''\n _this12.markLoading = false;\n _this12.markLoading = true;\n\n var meetName = _this12.getDictName('hylx', _this12.dialogForm.meetingType);\n\n if (_this12.dialogForm.meetingType == 1 || _this12.dialogForm.meetingType == 20) {\n _this12.dialogForm.meetingName = meetName.substring(0, meetName.length - 2) + '第' + _this12.dialogForm.meetingNum + '次会议';\n } else if (_this12.dialogForm.meetingType > 29) {\n _this12.dialogForm.meetingName;\n } else {\n var year = _this12.dialogForm.meetingTime.substring(0, 4) + '年';\n _this12.dialogForm.meetingName = year + '第' + _this12.dialogForm.meetingNum + '次' + meetName;\n }\n\n _this12.dialogForm.classified = _this12.classified;\n var data = JSON.parse(JSON.stringify(_this12.dialogForm));\n data.bizMeetingEventDetailsList.forEach(function (item, index1) {\n // item.groupName = item.groupName.map(group => {\n // if (typeof group != 'string') {\n // return group.groupName\n // } else {\n // return group\n // }\n // })\n item.groupName = JSON.stringify(item.groupName);\n\n if (item.bizMeetingEventDetailsUnitList && item.bizMeetingEventDetailsUnitList.length) {\n var ids = item.bizMeetingEventDetailsUnitList.map(function (units) {\n return units.pop();\n });\n ids.forEach(function (id, index) {\n _this12.getTreeItem(_this12.unitTreeData, id);\n\n var _this12$treeItem = _this12.treeItem,\n unitCode = _this12$treeItem.code,\n unitGrade = _this12$treeItem.grade,\n unitId = _this12$treeItem.id,\n unitName = _this12$treeItem.name;\n ids[index] = {\n unitCode: unitCode,\n unitGrade: unitGrade,\n unitId: unitId,\n unitName: unitName,\n unitType: '2'\n };\n });\n item.bizMeetingEventDetailsUnitList = ids;\n } // 单选\n // if (item.unitValue.length) {\n // let Id = item.unitValue.pop()\n // this.getTreeItem(this.unitTreeData, Id)\n // let {id, code, name, grade} = this.treeItem\n // item.unitGrade = grade\n // item.unitName = name\n // item.unitCode = code\n // item.unitId = id\n // }\n // 多选\n\n\n if (item.mainUnitList && item.mainUnitList.length) {\n var _ids = item.mainUnitList.map(function (units) {\n return units.pop();\n });\n\n _ids.forEach(function (id, index) {\n _this12.getTreeItem(_this12.unitTreeData, id);\n\n var _this12$treeItem2 = _this12.treeItem,\n unitCode = _this12$treeItem2.code,\n unitGrade = _this12$treeItem2.grade,\n unitId = _this12$treeItem2.id,\n unitName = _this12$treeItem2.name;\n _ids[index] = {\n unitCode: unitCode,\n unitGrade: unitGrade,\n unitId: unitId,\n unitName: unitName,\n unitType: '1'\n };\n });\n\n item.mainUnitList = _ids;\n }\n });\n console.log(data, 'dialogForm');\n url = '/bizMeetingEvent/v1/saveOrUpdateEntity';\n req.post(portal + url, data).then(function (res) {\n if (res.status == 200) {\n _this12.dialog.visible = false;\n\n _this12.loadData(_this12.params);\n\n _this12.$message.success('修改保存成功');\n\n _this12.markLoading = false;\n } else {\n _this12.$message.error(res.data.message);\n\n _this12.markLoading = false;\n }\n }).catch(function () {\n _this12.markLoading = false;\n });\n } else {\n _this12.markLoading = false;\n\n _this12.$confirm('会议名称已存在,请重新录入后保存。', '提示', {\n cancelButtonText: '好的',\n showConfirmButton: false,\n type: 'error'\n });\n }\n });\n });\n } else {\n _this12.markLoading = false;\n return false;\n }\n });\n },\n // 分发\n handleSend: function handleSend(row) {\n var _this13 = 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 req.post(portal + '/bizMeetingEvent/v1/modifySendStatus?ids=' + row.id + '&status=1').then(function (res) {\n if (res.status == 200) {\n _this13.$message.success(res.data.message);\n\n _this13.loadData(_this13.params);\n } else {\n _this13.$message.error(res.data.message);\n }\n });\n });\n },\n //责任单位\n changeUnit: function changeUnit(value, index) {\n var _this14 = this;\n\n this.$nextTick(function () {\n _this14.$forceUpdate();\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 handleClose: function handleClose() {\n this.classified = 0;\n this.disabled = false;\n this.dialog.visible = false;\n this.$refs.form.resetFields();\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(currentData) {\n var _this15 = this;\n\n console.log(currentData);\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n if (item.sendStatus == 0) {\n ids.push(item.id);\n } else {\n _this15.$message.error(\"\\u3010\".concat(item.meetingName, \"\\u3011\\u5DF2\\u4E0A\\u62A5\\u5F85\\u5BA1\\u6838\\u4E0D\\u80FD\\u5220\\u9664\\uFF01\"));\n }\n });\n this.deleteIds = ids.join(',');\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 openUploade: function openUploade() {\n this.$refs.uploadFile.open('MeetEvent');\n },\n setFileList: function setFileList(file) {\n var _this16 = this;\n\n this.fileList.push(file);\n this.dialogForm.files = [];\n this.dialogForm.files = this.fileList;\n this.fileList.forEach(function (e) {\n _this16.dialogForm.files.forEach(function (val) {\n if (e.response.fileId == val.response.fileId) {\n e['id'] = val.response.fileId;\n }\n });\n\n return e;\n });\n this.classified = 0;\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this17 = this;\n\n console.log(file);\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664 \".concat(file.name, \"\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this17.$message.success('附件删除成功');\n\n var arr = _this17.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this17.fileList = arr;\n } else {\n _this17.$message.error('附件删除失败');\n }\n });\n });\n },\n changeFileList: function changeFileList(data) {\n this.dialogForm.files = data;\n this.fileList = data;\n console.log(this.fileList);\n\n if (this.fileList.length == 0) {\n this.classified = 0;\n }\n },\n setAipher: function setAipher(val) {\n // this.dialogForm.classified = '文件涉密,已通过内网邮件上传。'\n this.classified = 1;\n this.cipher = val;\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.extensionName ? file.extensionName : file.name.split('.')[1];\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n console.log(file);\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n }\n }\n};",null]}