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");
}
}