落地页修改描述字段

This commit is contained in:
red-deng-deng 2022-01-13 15:45:04 +08:00
parent 8cd647daca
commit 20d111ec78
2 changed files with 31 additions and 3 deletions

View File

@ -94,7 +94,21 @@ const menu={
case 4:return '#55aaff';break; case 4:return '#55aaff';break;
} }
}, },
//落地页
pageTypeStatus(params) {
switch(params){
case 1:return '兑换码';break;
case 2:return '白名单';break;
case 3:return '立减金';break;
}
},
pageTypeStatusBg(params) {
switch(params){
case 1:return '#ffaa00';break;
case 2:return '#e64c00';break;
case 3:return '#55aaff';break;
}
},
keysStatus(params) { keysStatus(params) {
switch(params){ switch(params){
case 1:return '创建中';break; case 1:return '创建中';break;

View File

@ -54,12 +54,19 @@ const Column = [{
width: '200px', width: '200px',
type: "normal", type: "normal",
}, { }, {
title: '落地页类型', title: '落地页平台',
name: 'client', name: 'client',
prop: 'client', prop: 'client',
type: "slot", type: "slot",
defaultText: 0, defaultText: 0,
width: 'auto' width: 'auto'
},{
title: '落地页类型',
name: 'page',
prop: 'page',
type: "slot",
defaultText: 0,
width: 'auto'
}, },
{ {
title: '更新时间', title: '更新时间',
@ -450,7 +457,14 @@ export default class acclist extends React.Component {
} }
} > < /font>{menu.pageStatus(parseInt(rowData.client))}</span > ; } > < /font>{menu.pageStatus(parseInt(rowData.client))}</span > ;
} }
if (com == "page") {
return <span > < font className = "icon"
style = {
{
background: menu.pageTypeStatusBg(parseInt(rowData.page))
}
} > < /font>{menu.pageTypeStatus(parseInt(rowData.page))}</span > ;
}
if (com == "edit") { if (com == "edit") {
return <span > return <span >
< <