From fb9765329b63e72d2b3d014486efc579ce923fb8 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 13 Nov 2023 17:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=96=B0=E5=A2=9E=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/api.js | 5 +++++ src/pages/plan/list/list.js | 2 +- src/pages/plan/message/index.jsx | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) 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) }, []) /* 提交 */