From 7fc0bbbf20c4cf6908c139d56aae83fbf6371b21 Mon Sep 17 00:00:00 2001
From: qianlishi <1432731663@qq.com>
Date: Tue, 17 May 2022 17:40:02 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=A4=8D=E5=88=B6=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
report-ui/src/api/reportmanage.js | 4 +-
.../reportManage/components/copyDialog.vue | 84 +++++++++++++++++++
report-ui/src/views/reportManage/index.vue | 29 +++++--
3 files changed, 107 insertions(+), 10 deletions(-)
create mode 100644 report-ui/src/views/reportManage/components/copyDialog.vue
diff --git a/report-ui/src/api/reportmanage.js b/report-ui/src/api/reportmanage.js
index 3858fde0..75affa48 100644
--- a/report-ui/src/api/reportmanage.js
+++ b/report-ui/src/api/reportmanage.js
@@ -42,8 +42,8 @@ export function reportDetail(data) {
export function reportCopy(data) {
return request({
url: '/report/copy',
- method: 'get',
- params: { reportId: data.id }
+ method: 'post',
+ data
})
}
diff --git a/report-ui/src/views/reportManage/components/copyDialog.vue b/report-ui/src/views/reportManage/components/copyDialog.vue
new file mode 100644
index 00000000..9c5275ac
--- /dev/null
+++ b/report-ui/src/views/reportManage/components/copyDialog.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 保存
+
+
+
+
diff --git a/report-ui/src/views/reportManage/index.vue b/report-ui/src/views/reportManage/index.vue
index d7811f83..a07f047e 100644
--- a/report-ui/src/views/reportManage/index.vue
+++ b/report-ui/src/views/reportManage/index.vue
@@ -4,7 +4,7 @@
* @Author: qianlishi
* @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi
- * @LastEditTime: 2022-05-15 10:44:58
+ * @LastEditTime: 2022-05-17 17:38:44
-->
@@ -15,6 +15,7 @@
:reportName="reportNameForShareDialog"
@handleClose="visibleForShareDialog = false"
/>
+
@@ -28,13 +29,15 @@ import {
reportCopy
} from "@/api/reportmanage";
import Share from "./components/share";
+import copyDialog from "./components/copyDialog.vue";
import { validateEngOrNum } from "@/utils/validate";
import { verificationSet } from "@/api/report";
export default {
name: "Report",
components: {
anjiCrud: require("@/components/AnjiPlus/anji-crud/anji-crud").default,
- Share
+ Share,
+ copyDialog
},
data() {
return {
@@ -306,7 +309,11 @@ export default {
}
}
}
- }
+ },
+
+ // 复制
+ copyVisible: false,
+ rowData: {}
};
},
@@ -358,11 +365,17 @@ export default {
},
//复制
async copyReport(val) {
- const { code } = await reportCopy(val);
- if (code != "200") {
- return;
- }
- this.$message.success("复制成功");
+ this.copyVisible = true;
+ this.rowData = val;
+ // const { code } = await reportCopy(val);
+ // if (code != "200") {
+ // return;
+ // }
+ // this.$message.success("复制成功");
+ // this.$refs.listPage.handleQueryForm("query");
+ },
+ close() {
+ this.copyVisible = false;
this.$refs.listPage.handleQueryForm("query");
}
}