{"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\\MajorReformProjects\\ExperPromotion\\ExperPromotionUpdate.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ExperPromotion\\ExperPromotionUpdate.vue","mtime":1716260780582},{"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/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 ImgPreviewDialog from '@/components/dialog/ImgPreviewDialog.vue';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nimport ExperPromotionDialog from \"./components/ExperPromotionDialog.vue\";\nvar portal = window.context.portal;\nexport default {\n name: 'ExperPromotionUpdate',\n components: {\n pagination: pagination,\n ImgPreviewDialog: ImgPreviewDialog,\n filePreview: filePreview,\n ExperPromotionDialog: ExperPromotionDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n title: '',\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 searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1', '2', '3'],\n fileList: [],\n // 文件上传\n dialogForm: {},\n dialogForm_: {},\n isApper: false,\n isEdit: false,\n noStatus: false,\n waitUpdata: false,\n showDetails: false\n };\n },\n created: function created() {\n this.loadData(this.params);\n },\n methods: {\n // 获取数据\n loadData: function loadData(params) {\n var _this = this;\n\n // params={\n // querys:[{\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'flowType',\n // relation: 'AND',\n // value: 3\n // }]\n // }\n this.tableLoading = true;\n req.post(portal + '/majorProjects/bizPilotProjectFill/v1/queryPageFillList?flowType=3&isAffirm=false', params).then(function (res) {\n _this.tableLoading = false;\n var data = res && res.data || {};\n _this.tableData = data.rows || [];\n _this.pageResult = {\n page: data.page || 1,\n pageSize: data.pageSize || 20,\n total: data.total\n };\n });\n },\n handleEdit: function handleEdit(data) {},\n //添加\n handleAdd: function handleAdd(row, flag) {\n if (flag == 'appear') {\n this.title = '编辑';\n this.$refs.ExperPromotionDialog.openForm(row, this.title);\n }\n\n if (flag == 'waitUpdata') {\n this.title = '添加';\n this.$refs.ExperPromotionDialog.openForm(row, this.title);\n }\n\n if (flag == 'renew') {\n this.title = '更新';\n this.$refs.ExperPromotionDialog.openForm(row, this.title);\n }\n },\n //查看详情\n handleLookDetiles_: function handleLookDetiles_(row) {\n this.title = '详情';\n this.showDetails = true;\n this.$refs.ExperPromotionDialog.openForm(row, this.title);\n },\n // 删除\n handleDelete: function handleDelete(id) {},\n // 上报\n handleAppear: function handleAppear(row) {\n var _this2 = this;\n\n var appearData = {};\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 _this2.isApper = true;\n _this2.loading = true;\n var param = {\n querys: [],\n pageBean: {\n pageSize: 2\n },\n sorter: [{\n direction: 'DESC',\n property: 'lastTime'\n }]\n };\n param.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectId',\n relation: 'AND',\n value: row.projectId\n });\n var url = '/majorProjects/bizPilotExperiencePush/v1/queryHistory';\n req.post(portal + url, param).then(function (res) {\n console.log(res, 'oooooooo');\n\n if (res.data.state) {\n if (res.data.value.length >= 1 && row.status == 0) {\n appearData = res.data.value[0];\n appearData.status = 1;\n console.log(appearData, 'appearData1');\n } else if (res.data.value.length >= 1 && row.status == 2) {\n appearData = res.data.value[0];\n appearData.status = 1;\n console.log(appearData, 'appearData2');\n } else if (res.data.value.length >= 1 && row.status == 4) {\n appearData = res.data.value[0];\n appearData.status = 1;\n console.log(appearData, 'appearData3');\n }\n\n if (appearData.hasOwnProperty('approvalComments') && row.status == 0) {\n _this2.$confirm('暂无上报的数据!', _this2.$t('common.tips'), {\n confirmButtonText: _this2.$t('common.confirm'),\n cancelButtonText: _this2.$t('common.cancel'),\n type: 'warning'\n });\n\n console.log(appearData, 'appearData');\n } else if (appearData.hasOwnProperty('approvalComments') && row.status == 2) {\n _this2.$confirm('暂无上报的数据!', _this2.$t('common.tips'), {\n confirmButtonText: _this2.$t('common.confirm'),\n cancelButtonText: _this2.$t('common.cancel'),\n type: 'warning'\n });\n\n console.log(appearData, 'appearData');\n } else {\n appearData.pilotProjectFill = {\n id: appearData.id,\n projectId: appearData.projectId,\n status: 1\n };\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/updateAuditStatus', appearData).then(function (res) {\n if (res.data.state) {\n _this2.$message.success('上报成功');\n } else {\n _this2.$message.error('上报失败');\n }\n\n _this2.loading = false;\n\n _this2.loadData(_this2.params);\n });\n }\n }\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 (typeof obj[i] == 'string') {\n querys.push({\n group: 'main',\n operation: i == 'projectName' || i == 'leader' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\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 this.params.querys = querys;\n this.loadData(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {},\n // 表单提交保存\n submit: function submit(status) {},\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean.page = page;\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean.pageSize = pageSize;\n this.loadData(this.params);\n }\n }\n};",null]}