From 57d2239ddcbd7bc56fecbb2d7c49aadf6da7a98b Mon Sep 17 00:00:00 2001 From: zty Date: Thu, 11 Jul 2024 13:20:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20information=20=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4pdf=20=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/views/informatiomCollect/reviewStatus.vue | 7 ------- server/apps/information/views.py | 4 ---- 2 files changed, 11 deletions(-) diff --git a/client/src/views/informatiomCollect/reviewStatus.vue b/client/src/views/informatiomCollect/reviewStatus.vue index 5c27db4..fb08a5e 100644 --- a/client/src/views/informatiomCollect/reviewStatus.vue +++ b/client/src/views/informatiomCollect/reviewStatus.vue @@ -345,7 +345,6 @@ export default { this.impDialogVisible = false; this.saveLoading = true; impData(this.impForm).then(res=>{ - console.log(this.impForm) if(res.code>=200){ this.saveLoading = false; this.$message.success("提交成功"); @@ -380,7 +379,6 @@ export default { getList() { this.listLoading = true; getMyRs(this.listQuery).then((response) => { - console.log(response); if (response.data) { this.tableData = response.data; } @@ -391,12 +389,10 @@ export default { if (!this.exportForm.startDate || !this.exportForm.endDate) { this.$message.error('请选择完整的起止日期!'); return;} - console.log(this.exportForm) exportData(this.exportForm).then((response) => { if (response.data) { let filename = '评审情况表.xlsx'; let tableData = response.data; - console.log(tableData) const ws = XLSX.utils.json_to_sheet(tableData.results); const wb = XLSX.utils.book_new(); XLSX.utils.book_append_sheet(wb, ws, 'Sheet1'); @@ -472,7 +468,6 @@ export default { if (valid) { const isEdit = this.dialogType === "edit"; if (isEdit) { - console.log(this.Content); updateRs(this.Content.id, this.Content).then((response) => { if (response.data) { this.tableData = response.data; @@ -503,7 +498,6 @@ export default { this.isLoading = true; // 设置加载状态,防止重复请求 try { const response = await this.fetchOptions(); - console.log(response,"ceshi"); } catch (error) { // 处理错误 @@ -516,7 +510,6 @@ export default { }, fetchOptions() { getMyQi().then((response) => { - console.log(response); if (response.data) { this.options = response.data.results; } diff --git a/server/apps/information/views.py b/server/apps/information/views.py index 2eed8c2..3b58d7a 100644 --- a/server/apps/information/views.py +++ b/server/apps/information/views.py @@ -368,10 +368,6 @@ class ParsePdfViewSet(RbacFilterSet, CreateUpdateCustomMixin, ModelViewSet): perms_map = {'get': '*', 'post': 'pdf_create'} def destroy(self, request, *args, **kwargs): - # 判断执行状态,如果是“执行中”,则不允许删除 - if self.get_object().status == "执行中": - return Response({'message': '执行中的数据不能删除'}, status=status.HTTP_400_BAD_REQUEST) - # 删除文件 path = "/home/testsearchadmin/cma_search/server" file_path = path + self.get_object().excel_path if os.path.isfile(file_path):