Commit b97aac20 authored by 邓学云's avatar 邓学云

管理员列表的radio 配送价格的服务类目转数组修改

parent f5d2e8f2
......@@ -21,8 +21,8 @@
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="拥有权限" >
<a-radio-group v-model="res.ROLE_ID">
<a-radio v-for="(group, index) in grouplist" :key="index" :value="group.ID">{{ group.NAME }}</a-radio>
<a-radio-group v-decorator="['ROLE_ID',{normalize:checkRadio}]">
<a-radio v-for="(item,index) in grouplist" :key="index" :value="item.ID">{{ item.NAME }}</a-radio>
</a-radio-group>
</a-form-item>
......@@ -95,7 +95,7 @@ export default {
// checkboxGroup处理
checkRadio(value) {
if (value) {
return value.toString()
return Number(value)
}
},
//time
......@@ -105,13 +105,13 @@ export default {
return moment(value, 'YYYY-MM-DD')
}
},
checkRadio(value) {
if (value == null || value == '') {
return '0'
} else {
return value.toString()
}
},
// checkRadio(value) {
// if (value == null || value == '') {
// return '0'
// } else {
// return value.toString()
// }
// },
handleSubmit() {
console.log(validateFields)
const {
......
......@@ -448,12 +448,16 @@ export default {
getDetails(value){
getEditDetails({GUID:value}).then(res => {
this.$nextTick(() => {
if(res.LIMIT_MEMBER_GROUP_GUID){
res.LIMIT_MEMBER_GROUP_GUID=res.LIMIT_MEMBER_GROUP_GUID.split(',')
}
console.log(res)
this.modalForm.setFieldsValue(res)
if(res.SELECT_AREA.length>0){
// setTimeout(() => {
// this.expand([res.PROVINCES,res.SELECT_AREA],{})
// },1000)
this.modalTree.checkedKeys=res.SELECT_AREA;
this.modalTree.checkedKeys=res.SELECT_AREA.split(',');
}
this.tableData=res.BRANCHES_INFO;
res.BRANCHES_INFO.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment