{"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\\performanceEvaluation\\ReformSchoolEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\performanceEvaluation\\ReformSchoolEntry.vue","mtime":1721729791716},{"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 _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/web.dom.iterable\";\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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 ProjectSelectDialog from '@/components/dialog/ProjectSelectDialog.vue';\nimport ImgPreviewDialog from '@/components/dialog/ImgPreviewDialog.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nimport sat from '@/api/satisfaction/satisfaction';\nvar portal = window.context.portal;\nexport default {\n name: 'ReformSchoolEntry',\n components: {\n pagination: pagination,\n ProjectSelectDialog: ProjectSelectDialog,\n ImgPreviewDialog: ImgPreviewDialog,\n FileList: FileList,\n filePreview: filePreview\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n property: 'r.effect_Form_',\n relation: 'AND',\n value: [1, 2]\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1', '2', '3'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n dialogFormChilred: {},\n isAppear: false,\n records: [],\n // 表单子集合\n disabled: false,\n // 是否禁止输入输入\n isEdit: false,\n // 是否是修改功能\n demandRunwayOptions: [],\n // 具体情况列表数据\n rules: {\n effectRunway: {\n required: true,\n message: '请选择所属跑道',\n trigger: 'change'\n },\n effectField: {\n required: true,\n message: '请选择所属领域',\n trigger: 'change'\n },\n effectLevel: {\n required: true,\n message: '请选择所属级别',\n trigger: 'change'\n },\n effectCardTopic: {\n required: true,\n message: '请输入改革事项',\n trigger: 'blur'\n },\n effectForm: {\n required: true,\n message: '请选择成效形式',\n trigger: 'change'\n },\n specificDetails: {\n required: true,\n message: '请选择具体情形',\n trigger: 'change'\n },\n result: {\n required: true,\n message: '请条目式列举该项经验取得的主要成果',\n trigger: 'blur'\n },\n solveProblem: {\n required: true,\n message: '请条目式列举该项改革经验主要解决了什么问题',\n trigger: 'blur'\n },\n completionDate: {\n required: true,\n message: '请选择该项改革经验被肯定、推广、报道的具体时间',\n trigger: 'change'\n } // effectDocNo: {\n // required: true,\n // message: '请输入佐证文件文号',\n // trigger: 'blur',\n // },\n // effectTitle: {\n // required: true,\n // message: '请输入佐证文件标题',\n // trigger: 'blur',\n // }\n\n },\n effectOptions: [],\n effectLevelOptions: [{\n name: '市级',\n value: '1'\n }, {\n name: '区县',\n value: '2'\n }],\n userUnit: ''\n };\n },\n created: function created() {\n this.loadData(this.params);\n this.demandRunwayOptions = this.getDemandData(1);\n this.setOPtions(); // this.getUserUnit()\n },\n methods: {\n selectable: function selectable(row) {\n return row.status % 2 === 0;\n },\n // 查询当前登录用户所属类型(管理员,区县,市级单位)\n getUserUnit: function getUserUnit() {\n var _this = this;\n\n req.get(portal + \"/fill/bizWorkNews/v1/userAffiliatedUnit\").then(function (res) {\n if (res.data.state) {\n if (res.data.message == '区县') {\n _this.dialogForm.effectLevel = 2;\n } else if (res.data.message == '市级部门') {\n _this.dialogForm.effectLevel = 1;\n }\n\n _this.userUnit = res.data.message;\n }\n });\n },\n setOPtions: function setOPtions() {\n var arr = utils.getDictItemsFromCache('cxxs');\n this.effectOptions = arr.filter(function (item) {\n return item.name !== '被5家中央媒体深度专题报道';\n });\n this.effectOptions.forEach(function (item) {\n item.value = item.value - 0;\n });\n },\n effectChange: function effectChange(e) {\n this.demandRunwayOptions = this.getDemandData(e);\n },\n handleEdit: function handleEdit(data) {\n this.dialog.title = '编辑';\n this.disabled = false;\n this.demandRunwayOptions = this.getDemandData(data.effectForm);\n\n if (data.specificDetails) {\n data.specificDetails = data.specificDetails.toString();\n }\n\n this.getByDemandFiledData('ggbb_ssly', data.effectField);\n\n if (data.effectRunway) {\n data.effectRunway = data.effectRunway + '';\n } // data.effectForm = data.effectForm + ''\n\n\n this.isEdit = true;\n this.dialogFormChilred = data;\n this.dialogFormChilred && this.dialogFormChilred.files.length != 0 && this.dialogFormChilred.files.forEach(function (item) {\n item.name = item.fileName;\n });\n this.fileList = this.dialogFormChilred.files;\n this.activeCollapse1 = ['1', '2', '3'];\n },\n // 上传成功\n beforeUpload: function beforeUpload(res, file, fileList) {\n this.loading = false;\n\n if (res.success) {\n this.fileList.push(file);\n var files = [];\n fileList.forEach(function (item) {\n if (item.response) {\n files.push(item.response.fileId);\n } else {\n files.push(item.id);\n }\n });\n this.dialogFormChilred.ids = files;\n this.dialogFormChilred.classified = '0';\n this.$message.success('附件上传成功');\n } else {\n this.$message.error('附件上传失败');\n }\n },\n changeFileList: function changeFileList(e) {\n this.fileList = e;\n var files = [];\n e.forEach(function (item) {\n if (item.response) {\n files.push(item.response.fileId);\n } else {\n files.push(item.id);\n }\n });\n this.dialogFormChilred.ids = files;\n },\n // 移除之前\n beforeRemove: function beforeRemove(file, fileList) {\n var _this2 = this;\n\n return 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.id || file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this2.loading = false;\n\n _this2.$message.success('附件删除成功');\n\n var arr = _this2.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n _this2.fileList = arr;\n var files = [];\n\n _this2.fileList.forEach(function (item) {\n if (item.response) {\n files.push(item.response.fileId);\n } else {\n files.push(item.id);\n }\n });\n\n _this2.dialogFormChilred.ids = files;\n return true;\n } else {\n _this2.$message.error('附件删除失败');\n\n return false;\n }\n });\n });\n },\n handleSelect: function handleSelect(val) {\n this.demandRunwayOptions = this.getDemandData(val);\n this.dialogFormChilred.specificDetails = '';\n },\n getDemandName: function getDemandName(effectForm, specificDetails) {\n var name = null;\n var data = this.getDemandData(effectForm);\n data.forEach(function (item) {\n if (item.value == specificDetails) {\n name = item.name;\n }\n });\n return name;\n },\n getDemandData: function getDemandData(val) {\n var data = null;\n var arr = utils.getDictItemsFromCache('cxxs');\n arr.forEach(function (item) {\n if (item.value == val) {\n data = item.lowerDic['cxxs-jtqx'];\n }\n });\n return data;\n },\n // 重大项目选择\n handleSelectProject: function handleSelectProject() {\n this.$refs.projectSelect.open();\n },\n handleProjectSelect: function handleProjectSelect(row) {\n this.dialogForm = _objectSpread(_objectSpread({}, this.dialogForm), {}, {\n projectId: row[0].id,\n effectCardTopic: row[0].projectName\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this3 = this;\n\n this.tableLoading = true;\n req.post(portal + '/bizEffectDryingCompetition/v1/queryAudit?isAffirm=false', params).then(function (res) {\n _this3.tableLoading = false;\n var data = res && res.data || {};\n _this3.tableData = data.rows || [];\n _this3.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n //添加\n handleAdd: function handleAdd() {\n var _this4 = this;\n\n this.dialog.title = '添加';\n this.disabled = false;\n this.isAppear = false;\n this.disabledDetils = false;\n this.isEdit = false;\n var orgLevel = '1';\n var currentUserDetail = sessionStorage.getItem('currentUserDetail');\n\n if (currentUserDetail) {\n currentUserDetail = JSON.parse(currentUserDetail);\n orgLevel = currentUserDetail.org && currentUserDetail.org[0].orgLevel || '1';\n orgLevel == '0' ? orgLevel = '1' : null;\n }\n\n this.dialogForm = {\n demandField: 1,\n effectField: '1',\n effectRunway: '1',\n // effectLevel: orgLevel,\n type: 1,\n records: []\n };\n this.getByDemandFiledData('ggbb_ssly', '1');\n this.dialogFormChilred = {\n specificDetails: ''\n };\n this.activeCollapse1 = ['1', '3'];\n this.fileList = [];\n this.dialog.visible = true;\n this.$refs.form.clearValidate();\n this.$nextTick(function () {\n _this4.$refs.formChildren.clearValidate();\n });\n },\n // 删除子表数据\n handleDelete_: function handleDelete_(id) {\n var _this5 = 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 _this5.loading = true;\n req.remove(portal + '/bizEffectEffectiveness/v1/?ids=' + id).then(function (res) {\n _this5.loading = false;\n _this5.dialog.visible = false;\n\n _this5.loadData(_this5.params);\n });\n });\n },\n // 删除主表数据\n handleDelete: function handleDelete() {\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: 'error'\n }).then(function () {\n _this6.loading = true;\n req.remove(portal + '/bizEffectDryingCompetition/v1/?ids=' + _this6.deleteIds).then(function (res) {\n _this6.$message.success('数据删除成功');\n\n _this6.loading = false;\n _this6.dialog.visible = false;\n\n _this6.loadData(_this6.params);\n });\n });\n },\n // 上报\n handleAppear: function handleAppear() {\n var _this7 = this;\n\n this.$confirm('确认上报吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this7.isAppear = true;\n _this7.loading = true;\n var data = _this7.dialogForm.records[0];\n data.status = 1;\n req.post(portal + '/bizEffectDryingCompetition/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this7.$message.success('上报成功');\n\n _this7.dialog.visible = false;\n } else {\n _this7.$message.error('上报失败');\n }\n\n _this7.loading = false;\n _this7.dialog.visible = false;\n\n _this7.loadData(_this7.params);\n });\n });\n },\n // 上报弹出详情框\n handleAppear_: function handleAppear_(row) {\n var _this8 = this;\n\n this.dialog.title = '上报';\n this.dialog.visible = true;\n this.loading = true;\n this.isEdit = false;\n this.disabled = true;\n this.isAppear = true;\n this.disabledDetils = false;\n var formData = new FormData();\n formData.append('id', row.id);\n req.post(portal + '/bizEffectDryingCompetition/v1/queryById', formData).then(function (res) {\n _this8.loading = false;\n var data = res && res.data || {};\n\n _this8.getByDemandFiledData('ggbb_ssly', data.effectField);\n\n if (data.effectRunway) {\n data.effectRunway = data.effectRunway + '';\n }\n\n _this8.dialogForm = data;\n data.records && data.records[0] && data.records[0].files && data.records[0].files.length != 0 && data.records[0].files.forEach(function (item) {\n item.name = item.fileName;\n });\n _this8.fileList = data.records[0].files || [];\n _this8.activeCollapse1 = ['1', '2'];\n });\n },\n //修改\n handleDbClick: function handleDbClick(row) {\n var _this9 = this;\n\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n this.loading = true;\n this.isEdit = true;\n this.isAppear = false;\n this.disabled = false;\n this.disabledDetils = false;\n var formData = new FormData();\n formData.append('id', row.id);\n req.post(portal + '/bizEffectDryingCompetition/v1/queryById', formData).then(function (res) {\n _this9.loading = false;\n var data = res && res.data || {};\n\n _this9.getByDemandFiledData('ggbb_ssly', data.effectField);\n\n if (data.effectRunway) {\n data.effectRunway = data.effectRunway + '';\n }\n\n _this9.dialogForm = data;\n data.records && data.records[0] && data.records[0].files && data.records[0].files.length != 0 && data.records[0].files.forEach(function (item) {\n item.name = item.fileName;\n });\n _this9.fileList = data.records[0].files || [];\n _this9.demandRunwayOptions = _this9.getDemandData(data.records[0].effectForm);\n\n if (data.records && data.records[0] && (data.records[0].specificDetails || data.records[0].effectForm)) {\n data.records[0].specificDetails = data.records[0].specificDetails.toString();\n }\n\n _this9.dialogFormChilred = data.records && data.records[0] || {};\n _this9.activeCollapse1 = ['1', '2', '3'];\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [{\n group: 'main',\n operation: 'IN',\n property: 'r.effect_Form_',\n relation: 'AND',\n value: [1, 2]\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'effectCardTopic' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.params.pageBean.page = 1;\n this.loadData(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n // 表单提交保存\n submit: function submit(status) {\n var _this10 = this;\n\n var data = this.dialogFormChilred; // 判断是否上传了文件,上传有文件时将classified置为‘0’,以显示文件信息\n\n if (data.ids && data.ids.length !== 0) {\n this.dialogFormChilred.classified = '0';\n }\n\n if (data.ids && data.ids.length !== 0 || data.files && data.files.length !== 0 || data.classified == '1') {\n this.handleSubmit(status);\n } else {\n this.$confirm('请上传佐证材料后保存!', this.$t('common.tips'), {\n confirmButtonText: '立即上传',\n cancelButtonText: '关闭',\n type: 'warning'\n }).then(function () {\n _this10.$confirm('文件是否涉密?若文件涉密请通过内网邮件上传!', '文件上传提示', {\n confirmButtonText: '立即上传',\n cancelButtonText: '文件涉密,内网邮件上传',\n type: 'warning'\n }).then(function () {\n _this10.$refs.upload.$el.click();\n }).catch(function () {\n // 存在这个值为文件涉密内网上传作为查看判断依据\n _this10.dialogFormChilred.classified = '1';\n\n _this10.handleSubmit(status);\n });\n });\n }\n },\n handleSubmit: function handleSubmit(status) {\n var _this11 = this;\n\n this.$refs.form.validate(function (valid) {\n _this11.$refs.formChildren.validate(function (validChildren) {\n var url = '';\n\n if (_this11.isEdit) {\n url = '/bizEffectDryingCompetition/v1/updateById';\n } else {\n url = '/bizEffectDryingCompetition/v1/inserInfo';\n }\n\n if (valid && validChildren) {\n _this11.dialogFormChilred.status = status;\n _this11.dialogForm.records = [];\n\n _this11.dialogForm.records.push(_this11.dialogFormChilred);\n\n _this11.loading = true;\n req.post(portal + url, _this11.dialogForm).then(function (res) {\n if (res.data.state) {\n _this11.dialog.visible = false;\n\n _this11.loadData(_this11.params);\n }\n\n _this11.loading = false;\n }).catch(function () {\n _this11.loading = false;\n });\n }\n });\n });\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n if (item.status == 0 || !item.status || item.status == 2) {\n ids.push(item.id);\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};",null]}