|
@@ -56,10 +56,10 @@
|
|
|
<!-- Status -->
|
|
|
<a-form-item field="state" :label="$t('customer.statusName')" required validate-trigger="blur">
|
|
|
<a-radio-group v-model="formData.state">
|
|
|
- <a-radio value="1">{{ $t('customer.status.normal') }}</a-radio>
|
|
|
- <a-radio value="2">{{ $t('customer.status.disabled') }}</a-radio>
|
|
|
- <a-radio value="3">{{ $t('customer.status.pending') }}</a-radio>
|
|
|
- <a-radio value="4">{{ $t('customer.status.suspended') }}</a-radio>
|
|
|
+ <a-radio :value="item.value" v-for="item in userTypes">{{
|
|
|
+ item.value == 1 ? $t('customer.status.normal') : (item.value == 2 ? $t('customer.status.disabled') :
|
|
|
+ (item.value == 3 ? $t('customer.status.pending') : $t('customer.status.suspended')))
|
|
|
+ }} </a-radio>
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
@@ -410,7 +410,7 @@ watch(() => props.visible, val => {
|
|
|
margin-top: 4px;
|
|
|
}
|
|
|
|
|
|
-.note{
|
|
|
+.note {
|
|
|
color: #f73f3f;
|
|
|
text-align: center;
|
|
|
position: relative;
|