{"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\\ReformSchoolSure.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\performanceEvaluation\\ReformSchoolSure.vue","mtime":1687156009967},{"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.function.name\";\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//\nimport pagination from '@/components/pagination';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nexport default {\n name: 'ReformSchoolSure',\n components: {\n FileList: FileList,\n pagination: pagination,\n filePreview: filePreview,\n RejectInfoDialog: RejectInfoDialog\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: 'status',\n relation: 'AND',\n value: [3]\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {\n SPECIFIC_DETAILS_: ''\n },\n // 顶部搜索对象\n activeCollapse1: ['1', '2'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogEdit: {\n title: '编辑',\n visible: false\n },\n dialogForm: {},\n dialogForm_: {},\n dialogFormChilred: {},\n records: [],\n // 表单子集合\n demandRunwayOptions: [],\n // 具体情况列表数据\n disabled: false,\n // 是否禁止输入输入\n isShowBtn: false,\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 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 }\n },\n // rules: {},\n downloading: false\n };\n },\n created: function created() {\n this.loadData(this.params);\n this.setStatusOptions('shzt', 3);\n this.demandRunwayOptions = this.getDemandData('1');\n },\n methods: {\n download: function download() {\n var _this = this;\n\n this.downloading = true;\n var api = '/bizEffectDryingCompetition/v1/exportList';\n var params = this.params;\n params.pageBean.pageSize = -1;\n req.request({\n method: 'post',\n url: portal + api,\n data: params,\n 'Content-type': 'application/x-www-form-urlencoded',\n responseType: 'blob'\n }).then(function (res) {\n _this.downloading = false;\n\n if (res.status == 200) {\n _this.$message.success('下载成功');\n } else {\n _this.$message.error('下载失败');\n }\n });\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 getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this2 = this;\n\n this.tableLoading = true;\n req.post(portal + '/bizEffectDryingCompetition/v1/queryAudit?isAffirm=true', params).then(function (res) {\n _this2.tableLoading = false;\n var data = res && res.data || {};\n _this2.tableData = data.rows || [];\n _this2.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\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 var data = _this3.dialogForm_.records[0];\n data.status = 5;\n _this3.loading = true;\n req.post(portal + '/bizEffectDryingCompetition/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this3.$message.success('通过成功');\n } else {\n _this3.$message.error('通过失败');\n }\n\n _this3.loading = false;\n _this3.dialog.visible = 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.rejectInfoDialog.open('/bizEffectDryingCompetition/v1/updateAuditStatus', 4); // let data = this.dialogForm_.records[0]\n // data.status = 4\n // this.loading = true\n // req\n // .post(\n // portal + '/bizEffectDryingCompetition/v1/updateAuditStatus',\n // data\n // )\n // .then(res => {\n // if (res.data.state) {\n // this.$message.success('驳回成功')\n // } else {\n // this.$message.error('驳回失败')\n // }\n // this.loading = false\n // this.dialog.visible = false\n // this.loadData(this.params)\n // })\n\n });\n },\n // 处理填写的驳回意见\n sendRejectInfo: function sendRejectInfo(rejectInfo, api, status) {\n var _this5 = this;\n\n var params = this.dialogForm_.records[0];\n params.status = status || 2;\n params.approvalComments = rejectInfo;\n this.loading = true;\n req.post(portal + api, params).then(function (res) {\n if (res.data.state) {\n _this5.$message.success('驳回成功');\n } else {\n _this5.$message.error('驳回失败');\n }\n\n _this5.loading = false;\n\n _this5.handleDialogClose();\n\n _this5.loadData(_this5.params);\n }).catch(function () {\n _this5.loading = false;\n\n _this5.$message.error('驳回失败');\n });\n },\n // 审核\n handleDbClick: function handleDbClick(row) {\n var _this6 = this;\n\n this.tableLoading = true;\n var formData = new FormData();\n formData.append('id', row.id);\n req.post(portal + '/bizEffectDryingCompetition/v1/queryById', formData).then(function (res) {\n _this6.tableLoading = false;\n var data = res && res.data || {};\n\n if (data.records && (data.records.length == 0 || data.records[0].status != 3)) {\n _this6.$confirm('暂未查询到需要审核的数据!', _this6.$t('common.tips'), {\n confirmButtonText: _this6.$t('common.confirm'),\n cancelButtonText: _this6.$t('common.cancel'),\n type: 'info'\n }).then(function () {\n _this6.dialogForm_ = data;\n _this6.disabledDetils = true;\n _this6.isShowBtn = false;\n _this6.isTag = false;\n _this6.disabled = false;\n _this6.dialog.visible = true;\n });\n } else {\n _this6.dialogForm_ = data;\n _this6.disabledDetils = false;\n _this6.isTag = true;\n _this6.isShowBtn = true;\n _this6.disabled = true;\n _this6.dialog.visible = true;\n }\n });\n },\n // 详情\n handleDetils: function handleDetils(data) {\n this.dialog.visible = true;\n this.isShowBtn = false;\n this.dialogForm_ = data;\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n\n if (!obj.status) {\n obj.status = [3];\n this.operation = 'EQUAL';\n }\n\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n if (typeof obj[i] == 'string') {\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 } else if (i == 'status') {\n querys.push({\n group: 'main',\n operation: 'IN',\n property: i,\n relation: 'AND',\n // value: obj[i]\n value: this.switchStatus ? [4, 5] : [3]\n });\n } else {\n if (i == 'r.create_org_name_') {\n var num = obj[i].length - 1;\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i][num]\n });\n } else {\n querys.push({\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n }\n }\n\n this.params.querys = querys;\n this.loadData(this.params);\n },\n // 页面中swatch回调事件\n handleSwitch: function handleSwitch(bol) {\n console.log(bol);\n this.switchStatus = bol; // if (bol) {\n // // 已办\n // this.operation = 'IN'\n // // this.searchForm.status = [4, 5]\n // } else {\n // // 代办\n // this.operation = 'EQUAL'\n // // this.searchForm.status = 3\n // }\n\n this.handleSearch();\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n handleSelectionChange: function handleSelectionChange() {},\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 handleSelect: function handleSelect(val) {\n this.demandRunwayOptions = this.getDemandData(val);\n this.dialogFormChilred.specificDetails = '';\n this.searchForm[\"SPECIFIC_DETAILS_\"] = '';\n },\n // 批量下载\n handleDownLoadAll: function handleDownLoadAll() {},\n submit: function submit() {\n var _this7 = this;\n\n this.$refs.form.validate(function (valid) {\n _this7.$refs.formChildren.validate(function (validChildren) {\n if (valid && validChildren) {\n _this7.dialogForm.records = [];\n\n _this7.dialogForm.records.push(_this7.dialogFormChilred);\n\n _this7.loading = true;\n var url = '/bizEffectDryingCompetition/v1/updateById';\n req.post(portal + url, _this7.dialogForm).then(function (res) {\n if (res.data.state) {\n _this7.dialogEdit.visible = false;\n\n _this7.loadData(_this7.params);\n }\n\n _this7.loading = false;\n }).catch(function () {\n _this7.loading = false;\n });\n }\n });\n });\n }\n }\n};",null]}