Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
fbfc7ead
Commit
fbfc7ead
authored
Sep 19, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑地址bug
parent
041bf877
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
Address.vue
src/components/framework/address-picker/Address.vue
+2
-1
dialog.vue
src/components/order/dialog.vue
+2
-10
index.vue
src/components/order/index.vue
+1
-1
No files found.
src/components/framework/address-picker/Address.vue
View file @
fbfc7ead
...
@@ -135,9 +135,10 @@
...
@@ -135,9 +135,10 @@
proChange
:
function
(
val
,
oldVal
)
{
proChange
:
function
(
val
,
oldVal
)
{
if
(
oldVal
)
{
if
(
oldVal
)
{
this
.
form
.
city
=
''
;
this
.
form
.
city
=
''
;
this
.
form
.
d
etail
=
''
;
this
.
form
.
d
istrict
=
''
;
}
}
this
.
form
.
city
=
this
.
cities
[
0
].
value
;
this
.
form
.
city
=
this
.
cities
[
0
].
value
;
this
.
form
.
district
=
this
.
districts
[
0
].
value
;
},
},
cityChange
:
function
(
val
,
oldVal
)
{
cityChange
:
function
(
val
,
oldVal
)
{
this
.
form
.
district
=
this
.
districts
[
0
].
value
;
this
.
form
.
district
=
this
.
districts
[
0
].
value
;
...
...
src/components/order/dialog.vue
View file @
fbfc7ead
...
@@ -35,7 +35,6 @@ import AddressArray from '../framework/address-picker/addr'
...
@@ -35,7 +35,6 @@ import AddressArray from '../framework/address-picker/addr'
this
.
dialogObj
.
detail
=
val
.
detail
;
this
.
dialogObj
.
detail
=
val
.
detail
;
this
.
dialogObj
.
province
=
val
.
province
;
this
.
dialogObj
.
province
=
val
.
province
;
this
.
dialogObj
.
city
=
val
.
city
;
this
.
dialogObj
.
city
=
val
.
city
;
this
.
dialogObj
.
district
=
val
.
district
;
this
.
dialogObj
.
receive_mobile
=
val
.
mobile
;
this
.
dialogObj
.
receive_mobile
=
val
.
mobile
;
this
.
dialogObj
.
receive_name
=
val
.
name
;
this
.
dialogObj
.
receive_name
=
val
.
name
;
let
provinceObj
=
AddressArray
.
filter
((
item
)
=>
{
let
provinceObj
=
AddressArray
.
filter
((
item
)
=>
{
...
@@ -49,7 +48,8 @@ import AddressArray from '../framework/address-picker/addr'
...
@@ -49,7 +48,8 @@ import AddressArray from '../framework/address-picker/addr'
})
})
this
.
dialogObj
.
province_name
=
provinceObj
[
0
].
label
;
this
.
dialogObj
.
province_name
=
provinceObj
[
0
].
label
;
this
.
dialogObj
.
city_name
=
cityObj
[
0
].
label
;
this
.
dialogObj
.
city_name
=
cityObj
[
0
].
label
;
this
.
dialogObj
.
district_name
=
districtObj
.
length
>
0
?
districtObj
[
0
].
label
:
''
;
this
.
dialogObj
.
district_name
=
districtObj
.
length
>
0
?
districtObj
[
0
].
label
:
cityObj
[
0
].
children
[
0
].
label
;
this
.
dialogObj
.
district
=
districtObj
.
length
>
0
?
districtObj
[
0
].
value
:
cityObj
[
0
].
children
[
0
].
value
;
},
},
saveAddress
()
{
saveAddress
()
{
let
json
=
{
let
json
=
{
...
@@ -71,14 +71,6 @@ import AddressArray from '../framework/address-picker/addr'
...
@@ -71,14 +71,6 @@ import AddressArray from '../framework/address-picker/addr'
this
.
dialogObj
.
show
=
false
;
this
.
dialogObj
.
show
=
false
;
this
.
$emit
(
"reflash"
);
this
.
$emit
(
"reflash"
);
});
});
// Service.updateUserAddress(json, this.dialogObj.user_id, this.dialogObj.pay_id).then(res=>{
// if(res.data.result=='success'){
// this.$message.success(res.data.message);
// this.$emit("reflash");
// }else{
// this.$message.error(res.data.message);
// }
// })
},
},
},
},
components
:{
components
:{
...
...
src/components/order/index.vue
View file @
fbfc7ead
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"来源"
class=
"test"
>
<el-form-item
label=
"来源"
class=
"test"
>
<el-select
v-model=
"searchFrom.invite_type"
placeholder=
"来源类型"
@
change=
"onInviteTypeChange"
clearable
>
<el-select
v-model=
"searchFrom.invite_type"
placeholder=
"来源类型"
@
change=
"onInviteTypeChange"
@
clear=
"searchFrom.invite_id=''"
clearable
>
<el-option
<el-option
v-for=
"item in inviteTypeOption"
v-for=
"item in inviteTypeOption"
:key=
"item.id"
:key=
"item.id"
...
...
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