优化兑换码编辑title展示字段,新增兑换码新增发放总量验证

This commit is contained in:
wangsongsole 2022-08-31 09:55:38 +08:00
parent eb79a228f2
commit b884dc68eb
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
//基本信息
export const codeInfo = {
code_name: [{ type: "required", message: "请输入兑换码名称" }],
planId: [{ type: "required", message: "请选择营销计划" }],
keyBatchId: [{ type: "required", message: "请选择key批次" }]
planId: [{ type: "required", message: "请选择归属计划" }],
keyBatchId: [{ type: "required", message: "请选择归属Key" }],
issued: [{ type: "required", message: "请输入发放总量" }]
}
//基本规则

View File

@ -167,7 +167,7 @@ export default class acclist extends React.Component {
/* 1复制 2编辑 */
if (type === 1) {
activerou[0].pagetitle = "复制"
activerou[0].items[1].name = "复制:" + param.title
activerou[0].items[1].name = `复制:${param.title}`
sessionStorage.setItem(
"knockGold_effectDate",
JSON.stringify(param.keyBatch.plan)
@ -178,7 +178,7 @@ export default class acclist extends React.Component {
sessionStorage.setItem("approval_id", param.keyBatch.approval_id)
} else if (type === 2) {
activerou[0].pagetitle = "编辑"
activerou[0].items[1].name = param.title + "兑换码的商品范围列表"
activerou[0].items[1].name = `编辑:${param.title}兑换码的商品范围列表`
sessionStorage.setItem("code_id", param.id)
}