Merge remote-tracking branch 'origin/release/2.0' into release/2.0
Showing
1 changed file
with
4 additions
and
5 deletions
@@ -128,11 +128,6 @@ export default function() { | @@ -128,11 +128,6 @@ export default function() { | ||
128 | const row = params.row; | 128 | const row = params.row; |
129 | const vs = row.productVipStatus; | 129 | const vs = row.productVipStatus; |
130 | const vsMap = { | 130 | const vsMap = { |
131 | - 0: { | ||
132 | - type: 'primary', | ||
133 | - text: '启用', | ||
134 | - event: this.enableVipPrice | ||
135 | - }, | ||
136 | 1: { | 131 | 1: { |
137 | type: 'error', | 132 | type: 'error', |
138 | text: '禁用', | 133 | text: '禁用', |
@@ -145,6 +140,10 @@ export default function() { | @@ -145,6 +140,10 @@ export default function() { | ||
145 | } | 140 | } |
146 | }; | 141 | }; |
147 | 142 | ||
143 | + if (vs === 0) { | ||
144 | + return (<span>-</span>); | ||
145 | + } | ||
146 | + | ||
148 | return ( | 147 | return ( |
149 | <i-button | 148 | <i-button |
150 | type={vsMap[vs].type} | 149 | type={vsMap[vs].type} |
-
Please register or login to post a comment