Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopFront
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopFront
Commits
b97aac20
Commit
b97aac20
authored
Dec 19, 2019
by
邓学云
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理员列表的radio 配送价格的服务类目转数组修改
parent
f5d2e8f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
Manage_editor.vue
src/views/authority/details/Manage_editor.vue
+10
-10
deliveryDetails.vue
src/views/delivery/details/deliveryDetails.vue
+5
-1
No files found.
src/views/authority/details/Manage_editor.vue
View file @
b97aac20
...
...
@@ -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
{
...
...
src/views/delivery/details/deliveryDetails.vue
View file @
b97aac20
...
...
@@ -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
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment