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

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

parent f5d2e8f2
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
</a-form-item> </a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="拥有权限" > <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="拥有权限" >
<a-radio-group v-model="res.ROLE_ID"> <a-radio-group v-decorator="['ROLE_ID',{normalize:checkRadio}]">
<a-radio v-for="(group, index) in grouplist" :key="index" :value="group.ID">{{ group.NAME }}</a-radio> <a-radio v-for="(item,index) in grouplist" :key="index" :value="item.ID">{{ item.NAME }}</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
// checkboxGroup处理 // checkboxGroup处理
checkRadio(value) { checkRadio(value) {
if (value) { if (value) {
return value.toString() return Number(value)
} }
}, },
//time //time
...@@ -105,13 +105,13 @@ export default { ...@@ -105,13 +105,13 @@ export default {
return moment(value, 'YYYY-MM-DD') return moment(value, 'YYYY-MM-DD')
} }
}, },
checkRadio(value) { // checkRadio(value) {
if (value == null || value == '') { // if (value == null || value == '') {
return '0' // return '0'
} else { // } else {
return value.toString() // return value.toString()
} // }
}, // },
handleSubmit() { handleSubmit() {
console.log(validateFields) console.log(validateFields)
const { const {
......
...@@ -448,12 +448,16 @@ export default { ...@@ -448,12 +448,16 @@ export default {
getDetails(value){ getDetails(value){
getEditDetails({GUID:value}).then(res => { getEditDetails({GUID:value}).then(res => {
this.$nextTick(() => { 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) this.modalForm.setFieldsValue(res)
if(res.SELECT_AREA.length>0){ if(res.SELECT_AREA.length>0){
// setTimeout(() => { // setTimeout(() => {
// this.expand([res.PROVINCES,res.SELECT_AREA],{}) // this.expand([res.PROVINCES,res.SELECT_AREA],{})
// },1000) // },1000)
this.modalTree.checkedKeys=res.SELECT_AREA; this.modalTree.checkedKeys=res.SELECT_AREA.split(',');
} }
this.tableData=res.BRANCHES_INFO; this.tableData=res.BRANCHES_INFO;
res.BRANCHES_INFO.forEach(item => { 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