...
|
...
|
@@ -128,11 +128,6 @@ export default function() { |
|
|
const row = params.row;
|
|
|
const vs = row.productVipStatus;
|
|
|
const vsMap = {
|
|
|
0: {
|
|
|
type: 'primary',
|
|
|
text: '启用',
|
|
|
event: this.enableVipPrice
|
|
|
},
|
|
|
1: {
|
|
|
type: 'error',
|
|
|
text: '禁用',
|
...
|
...
|
@@ -145,6 +140,10 @@ export default function() { |
|
|
}
|
|
|
};
|
|
|
|
|
|
if (vs === 0) {
|
|
|
return (<span>-</span>);
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
<i-button
|
|
|
type={vsMap[vs].type}
|
...
|
...
|
|