diff --git a/client/dist/index.html b/client/dist/index.html index 8716342..db172b2 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -1 +1 @@ -vue Admin Template
\ No newline at end of file +vue Admin Template
\ No newline at end of file diff --git a/client/src/api/report.js b/client/src/api/report.js index 080ca55..c750b35 100644 --- a/client/src/api/report.js +++ b/client/src/api/report.js @@ -45,4 +45,11 @@ export function createYr(data) { method: 'post', data }) +} + +export function delYr(id) { + return request({ + url: `/info/pdf/${id}/`, + method: 'delete' + }) } \ No newline at end of file diff --git a/client/src/views/informatiomCollect/externalAuditor.vue b/client/src/views/informatiomCollect/externalAuditor.vue index f26734a..d8277fb 100644 --- a/client/src/views/informatiomCollect/externalAuditor.vue +++ b/client/src/views/informatiomCollect/externalAuditor.vue @@ -292,8 +292,6 @@ export default { }, getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getMyEas(this.listQuery).then((response) => { console.log(response); if (response.data) { diff --git a/client/src/views/informatiomCollect/inspectionStats.vue b/client/src/views/informatiomCollect/inspectionStats.vue deleted file mode 100644 index c7a3911..0000000 --- a/client/src/views/informatiomCollect/inspectionStats.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - diff --git a/client/src/views/informatiomCollect/laboratoryContact.vue b/client/src/views/informatiomCollect/laboratoryContact.vue index 5f3d2c8..c690757 100644 --- a/client/src/views/informatiomCollect/laboratoryContact.vue +++ b/client/src/views/informatiomCollect/laboratoryContact.vue @@ -58,7 +58,7 @@ - + @@ -279,8 +279,6 @@ export default { getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getCtAll(this.listQuery).then((response) => { console.log(response); if (response.data) { diff --git a/client/src/views/informatiomCollect/qualiChange.vue b/client/src/views/informatiomCollect/qualiChange.vue index d327eda..96c4738 100644 --- a/client/src/views/informatiomCollect/qualiChange.vue +++ b/client/src/views/informatiomCollect/qualiChange.vue @@ -310,8 +310,6 @@ export default { getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getMyQi(this.listQuery).then((response) => { if (response.data) { this.tableData = response.data; diff --git a/client/src/views/informatiomCollect/qualificInfo.vue b/client/src/views/informatiomCollect/qualificInfo.vue index ee6ad92..1b5628c 100644 --- a/client/src/views/informatiomCollect/qualificInfo.vue +++ b/client/src/views/informatiomCollect/qualificInfo.vue @@ -304,8 +304,6 @@ export default { getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getAllQi(this.listQuery).then((response) => { if (response.data) { this.tableData = response.data; diff --git a/client/src/views/informatiomCollect/qualityActive.vue b/client/src/views/informatiomCollect/qualityActive.vue index e31453a..2327e97 100644 --- a/client/src/views/informatiomCollect/qualityActive.vue +++ b/client/src/views/informatiomCollect/qualityActive.vue @@ -401,8 +401,6 @@ export default { getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getgetMyRcs(this.listQuery).then((response) => { if (response.data) { this.tableData = response.data; diff --git a/client/src/views/informatiomCollect/qualityCommend.vue b/client/src/views/informatiomCollect/qualityCommend.vue index 3b6985c..2f8e27d 100644 --- a/client/src/views/informatiomCollect/qualityCommend.vue +++ b/client/src/views/informatiomCollect/qualityCommend.vue @@ -308,8 +308,6 @@ export default { getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getMyRcs(this.listQuery).then((response) => { console.log(response); if (response.data) { diff --git a/client/src/views/informatiomCollect/reviewStatus.vue b/client/src/views/informatiomCollect/reviewStatus.vue index c8cfb2c..c60fa40 100644 --- a/client/src/views/informatiomCollect/reviewStatus.vue +++ b/client/src/views/informatiomCollect/reviewStatus.vue @@ -356,8 +356,6 @@ export default { }, getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; getMyRs(this.listQuery).then((response) => { console.log(response); if (response.data) { diff --git a/client/src/views/informatiomCollect/yearReport.vue b/client/src/views/informatiomCollect/yearReport.vue index 4af5d7e..06f0392 100644 --- a/client/src/views/informatiomCollect/yearReport.vue +++ b/client/src/views/informatiomCollect/yearReport.vue @@ -11,12 +11,15 @@ + @@ -71,7 +74,7 @@ import checkPermission from "@/utils/permission"; import Pagination from "@/components/Pagination"; // secondary package based on el-pagination import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; -import { parsePDF, pdfAll, getpdf } from "@/api/report"; +import { parsePDF, pdfAll, getpdf, delYr } from "@/api/report"; import { upUrl, upHeaders } from "@/api/file"; @@ -129,6 +132,23 @@ export default { this.getList() }, + handleDelete(scope) { + this.$confirm("确认删除?", "警告", { + confirmButtonText: "确认", + cancelButtonText: "取消", + type: "error", + }) + .then(async () => { + await delYr(scope.row.id).then(() => { + this.getList(); + this.$message.success("成功"); + }) + + }) + .catch((err) => { + console.error(err); + }); + }, submitUpload() { this.$refs.upload.submit(); this.impDialogVisible = false; @@ -151,8 +171,6 @@ export default { }, getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; pdfAll(this.listQuery).then((response) => { if (response.data) { this.tableData = response.data; diff --git a/client/src/views/informatiomCollect/yearReportUpload.vue b/client/src/views/informatiomCollect/yearReportUpload.vue index 4c864ae..e8e40de 100644 --- a/client/src/views/informatiomCollect/yearReportUpload.vue +++ b/client/src/views/informatiomCollect/yearReportUpload.vue @@ -132,8 +132,6 @@ export default { }, getList() { this.listLoading = true; - this.tableData.results =[]; - this.tableData.count =0; yrAll(this.listQuery).then((response) => { if (response.data) { this.tableData = response.data;