feat: 新增接口

This commit is contained in:
wangsongsole 2023-11-13 17:15:36 +08:00
parent 9daa09f302
commit fb9765329b
3 changed files with 8 additions and 1 deletions

View File

@ -974,4 +974,9 @@ export const setResellMerchant = (data) => {
return req("post", baseurl + "/reseller/resellMerchant/set", data) return req("post", baseurl + "/reseller/resellMerchant/set", data)
} }
/* 获取提示列表 */
export const getClientPrompt = (planId) => {
return req("get", baseurl + `/plan/clientPrompt/query/${planId}`)
}
export { req } export { req }

View File

@ -573,7 +573,7 @@ export default class acclist extends React.Component {
] ]
sessionStorage.setItem("breakchangenav", JSON.stringify(arr)) sessionStorage.setItem("breakchangenav", JSON.stringify(arr))
sessionStorage.setItem("linkshowname", "营销计划管理") sessionStorage.setItem("linkshowname", "营销计划管理")
sessionStorage.setItem("key_plan_id", row.id) sessionStorage.setItem("plan_id", row.id)
this.props.history.push("/home/plan-message") this.props.history.push("/home/plan-message")
return return
default: default:

View File

@ -5,6 +5,7 @@ import { cloneDeep } from "lodash-es"
import { useEffect, useState } from "react" import { useEffect, useState } from "react"
import { Button } from "zent" import { Button } from "zent"
import "./index.less" import "./index.less"
import { getClientPrompt } from "@/assets/api.js"
const data = [ const data = [
{ {
id: 1, id: 1,
@ -131,6 +132,7 @@ export default function Message() {
tableData: cloneDeep(data), tableData: cloneDeep(data),
backupTableData: cloneDeep(data) backupTableData: cloneDeep(data)
}) })
getClientPrompt(state.planId)
}, []) }, [])
/* 提交 */ /* 提交 */