优化促销相关代码

This commit is contained in:
paulGao
2021-12-21 18:59:45 +08:00
parent 246ba9057f
commit ab2bcb515f
11 changed files with 462 additions and 489 deletions

View File

@@ -156,14 +156,14 @@ export default {
},
{
title: "审核状态",
key: "isAuth",
key: "authFlag",
width: 130,
render: (h, params) => {
if (params.row.isAuth == "TOBEAUDITED") {
if (params.row.authFlag == "TOBEAUDITED") {
return h("Tag", {props: {color: "blue",},},"待审核");
} else if (params.row.isAuth == "PASS") {
} else if (params.row.authFlag == "PASS") {
return h("Tag", {props: {color: "green",},},"通过");
} else if (params.row.isAuth == "REFUSE") {
} else if (params.row.authFlag == "REFUSE") {
return h("Tag", {props: {color: "red",},},"审核拒绝");
}
},
@@ -250,14 +250,14 @@ export default {
},
{
title: "审核状态",
key: "isAuth",
key: "authFlag",
width: 120,
render: (h, params) => {
if (params.row.isAuth == "PASS") {
if (params.row.authFlag == "PASS") {
return h("Tag", {props: {color: "green"}},"通过");
} else if (params.row.isAuth == "TOBEAUDITED") {
} else if (params.row.authFlag == "TOBEAUDITED") {
return h("Tag", {props: {color: "volcano"}},"待审核");
} else if (params.row.isAuth == "REFUSE") {
} else if (params.row.authFlag == "REFUSE") {
return h("Tag", {props: {color: "red"}},"审核拒绝");
}
},