diff --git a/src/assets/api.js b/src/assets/api.js index 50407311..12cc9df7 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -974,4 +974,9 @@ export const setResellMerchant = (data) => { return req("post", baseurl + "/reseller/resellMerchant/set", data) } +/* 获取提示列表 */ +export const getClientPrompt = (planId) => { + return req("get", baseurl + `/plan/clientPrompt/query/${planId}`) +} + export { req } diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 6099679d..529ffb49 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -573,7 +573,7 @@ export default class acclist extends React.Component { ] sessionStorage.setItem("breakchangenav", JSON.stringify(arr)) sessionStorage.setItem("linkshowname", "营销计划管理") - sessionStorage.setItem("key_plan_id", row.id) + sessionStorage.setItem("plan_id", row.id) this.props.history.push("/home/plan-message") return default: diff --git a/src/pages/plan/message/index.jsx b/src/pages/plan/message/index.jsx index df031638..7359bc1c 100644 --- a/src/pages/plan/message/index.jsx +++ b/src/pages/plan/message/index.jsx @@ -5,6 +5,7 @@ import { cloneDeep } from "lodash-es" import { useEffect, useState } from "react" import { Button } from "zent" import "./index.less" +import { getClientPrompt } from "@/assets/api.js" const data = [ { id: 1, @@ -131,6 +132,7 @@ export default function Message() { tableData: cloneDeep(data), backupTableData: cloneDeep(data) }) + getClientPrompt(state.planId) }, []) /* 提交 */