1) 修改复制请求详情接口

This commit is contained in:
zhangds 2022-08-11 17:21:37 +08:00
parent ed4b2266e0
commit efbf16ebe2
2 changed files with 7 additions and 1 deletions

View File

@ -897,4 +897,9 @@ export const exportKey = (data) => {
return derive("get", baseurl + "/key/export", data);
};
// 复制,获取计划详情
export const get_copy_data = (data) => {
return req("get", baseurl + "/plan/get_copy_data/" + data);
};
export { req };

View File

@ -25,6 +25,7 @@ import {
planSend,
approvals,
getDraftInfo,
get_copy_data,
} from "../../../assets/api.js";
export default class add extends React.Component {
@ -103,7 +104,7 @@ export default class add extends React.Component {
*/
getDetails(plan_id) {
let copy_count_golod = sessionStorage.getItem("copy_count_golod");
getDraftInfo(plan_id).then((res) => {
get_copy_data(plan_id).then((res) => {
console.log("res 1=>", res);
handelResponse(
res,