mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-02-06 09:05:54 +08:00
优化店铺后台状态展示
This commit is contained in:
@@ -132,15 +132,13 @@
|
||||
width: 100,
|
||||
render: (h, params) => {
|
||||
if (params.row.billStatus == "OUT") {
|
||||
return h( "Badge", {props: { status: "success",text: "已出账" } })
|
||||
} else if (params.row.billStatus == "EXAMINE") {
|
||||
return h( "Badge", {props: { status: "success",text: "已审核" } })
|
||||
return h("Tag", {props: {color: "blue",},},"已出账");
|
||||
} else if (params.row.billStatus == "CHECK") {
|
||||
return h( "Badge", {props: { status: "success",text: "已对账" } })
|
||||
} else if (params.row.billStatus == "PAY") {
|
||||
return h( "Badge", {props: { status: "success",text: "已付款" } })
|
||||
}else if (params.row.billStatus == "COMPLETE") {
|
||||
return h( "Badge", {props: { status: "success",text: "已完成" } })
|
||||
return h("Tag", {props: {color: "geekblue",},},"已对账");
|
||||
} else if (params.row.billStatus == "EXAMINE") {
|
||||
return h("Tag", {props: {color: "purple",},},"已审核");
|
||||
} else {
|
||||
return h("Tag", {props: {color: "green",},},"已付款");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -143,15 +143,13 @@
|
||||
width: 100,
|
||||
render: (h, params) => {
|
||||
if (params.row.billStatus == "OUT") {
|
||||
return h( "Badge", {props: { status: "success",text: "已出账" } })
|
||||
} else if (params.row.billStatus == "EXAMINE") {
|
||||
return h( "Badge", {props: { status: "success",text: "已审核" } })
|
||||
return h("Tag", {props: {color: "blue",},},"已出账");
|
||||
} else if (params.row.billStatus == "CHECK") {
|
||||
return h( "Badge", {props: { status: "success",text: "已对账" } })
|
||||
} else if (params.row.billStatus == "PAY") {
|
||||
return h( "Badge", {props: { status: "success",text: "已付款" } })
|
||||
}else if (params.row.billStatus == "COMPLETE") {
|
||||
return h( "Badge", {props: { status: "success",text: "已完成" } })
|
||||
return h("Tag", {props: {color: "geekblue",},},"已对账");
|
||||
} else if (params.row.billStatus == "EXAMINE") {
|
||||
return h("Tag", {props: {color: "purple",},},"已审核");
|
||||
} else {
|
||||
return h("Tag", {props: {color: "green",},},"已付款");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -58,10 +58,10 @@
|
||||
minWidth: 120,
|
||||
sortable: true,
|
||||
render: (h, params) => {
|
||||
if (params.row.selected === null || params.row.selected === "") {
|
||||
return h( "Badge", {props: { status: "error",text: "关闭" } })
|
||||
} else if (params.row.selected !== "") {
|
||||
return h( "Badge", {props: { status: "success",text: "开启" } })
|
||||
if(params.row.selected === null || params.row.selected === ""){
|
||||
return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]);
|
||||
}else{
|
||||
return h("div", [h("tag", {props: {color: "green"}}, "开启")]);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user