优化兑换码编辑title展示字段,新增兑换码新增发放总量验证
This commit is contained in:
parent
eb79a228f2
commit
b884dc68eb
|
@ -1,8 +1,9 @@
|
||||||
//基本信息
|
//基本信息
|
||||||
export const codeInfo = {
|
export const codeInfo = {
|
||||||
code_name: [{ type: "required", message: "请输入兑换码名称" }],
|
code_name: [{ type: "required", message: "请输入兑换码名称" }],
|
||||||
planId: [{ type: "required", message: "请选择营销计划" }],
|
planId: [{ type: "required", message: "请选择归属计划" }],
|
||||||
keyBatchId: [{ type: "required", message: "请选择key批次" }]
|
keyBatchId: [{ type: "required", message: "请选择归属Key" }],
|
||||||
|
issued: [{ type: "required", message: "请输入发放总量" }]
|
||||||
}
|
}
|
||||||
|
|
||||||
//基本规则
|
//基本规则
|
||||||
|
|
|
@ -167,7 +167,7 @@ export default class acclist extends React.Component {
|
||||||
/* 1:复制 2:编辑 */
|
/* 1:复制 2:编辑 */
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
activerou[0].pagetitle = "复制"
|
activerou[0].pagetitle = "复制"
|
||||||
activerou[0].items[1].name = "复制:" + param.title
|
activerou[0].items[1].name = `复制:${param.title}`
|
||||||
sessionStorage.setItem(
|
sessionStorage.setItem(
|
||||||
"knockGold_effectDate",
|
"knockGold_effectDate",
|
||||||
JSON.stringify(param.keyBatch.plan)
|
JSON.stringify(param.keyBatch.plan)
|
||||||
|
@ -178,7 +178,7 @@ export default class acclist extends React.Component {
|
||||||
sessionStorage.setItem("approval_id", param.keyBatch.approval_id)
|
sessionStorage.setItem("approval_id", param.keyBatch.approval_id)
|
||||||
} else if (type === 2) {
|
} else if (type === 2) {
|
||||||
activerou[0].pagetitle = "编辑"
|
activerou[0].pagetitle = "编辑"
|
||||||
activerou[0].items[1].name = param.title + "兑换码的商品范围列表"
|
activerou[0].items[1].name = `编辑:${param.title}兑换码的商品范围列表`
|
||||||
sessionStorage.setItem("code_id", param.id)
|
sessionStorage.setItem("code_id", param.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue