Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f97584b1
authored
May 23, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(addRecruitment): 更新省市选择组件,修复地址显示问题
1 parent
f97f8cbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
src/components/province-city/index.vue
src/views/residentManage/recruitmentManagement/addRecruitment.vue
src/components/province-city/index.vue
View file @
f97584b
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
@
click
.
native=
"selectTown(item)"
></el-option>
@
click
.
native=
"selectTown(item)"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"embedMode ? '' : detailAddressLabel"
>
<el-form-item
v-if=
"mapView"
:label=
"embedMode ? '' : detailAddressLabel"
>
<el-input
size=
"small"
v-if=
"mapView"
readonly
placeholder=
"请选择详细地址"
v-model=
"provinceForm.fullAddress"
<el-input
size=
"small"
readonly
placeholder=
"请选择详细地址"
v-model=
"provinceForm.fullAddress"
class=
"map-input"
@
blur
.
native=
"$emit('merchant-address-part-blur')"
>
class=
"map-input"
@
blur
.
native=
"$emit('merchant-address-part-blur')"
>
<el-button
size=
"small"
slot=
"append"
@
click=
"hanleSelectMap"
icon=
"el-icon-location-outline"
>
<el-button
size=
"small"
slot=
"append"
@
click=
"hanleSelectMap"
icon=
"el-icon-location-outline"
>
<!--
<img
src=
"@/assets/map.png"
alt=
""
class=
"map-icon"
/>
-->
<!--
<img
src=
"@/assets/map.png"
alt=
""
class=
"map-icon"
/>
-->
...
...
src/views/residentManage/recruitmentManagement/addRecruitment.vue
View file @
f97584b
...
@@ -32,8 +32,15 @@
...
@@ -32,8 +32,15 @@
</div>
</div>
</
template
>
</
template
>
<
template
#
merchantAddressHtml
>
<
template
#
merchantAddressHtml
>
<ProvinceCity
ref=
"provinceCityRef"
default-width=
"125px"
:subdistrict=
"2"
<!--
<ProvinceCity
ref=
"provinceCityRef"
default-width=
"125px"
:subdistrict=
"2"
@
selectCity=
"handleSelectCity"
@
selectProvince=
"handleSelectProvince"
/>
@
selectCity=
"handleSelectCity"
@
selectProvince=
"handleSelectProvince"
/>
-->
<ProvinceCity
ref=
"provinceCityRef"
province-label=
"门店地址:"
:mapView=
"mapView"
:subdistrict=
"2"
@
selectCity=
"handleSelectCity"
@
selectProvince=
"handleSelectProvince"
>
</ProvinceCity>
</
template
>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
...
@@ -57,7 +64,7 @@ import {
...
@@ -57,7 +64,7 @@ import {
getDictList
,
getDictList
,
}
from
"@api/recruitment"
;
}
from
"@api/recruitment"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
{
deepClone
,
Util
}
from
"@/common/util"
;
import
ProvinceCity
from
"@/components/
glsx-combi-form/provinceCity
.vue"
;
import
ProvinceCity
from
"@/components/
province-city/index
.vue"
;
export
default
{
export
default
{
name
:
"AddRecruitment"
,
name
:
"AddRecruitment"
,
...
@@ -85,6 +92,7 @@ export default {
...
@@ -85,6 +92,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
btnLoding
:
false
,
btnLoding
:
false
,
mapView
:
false
,
addForm
:
{
addForm
:
{
merchantName
:
""
,
merchantName
:
""
,
merchantId
:
""
,
merchantId
:
""
,
...
@@ -137,7 +145,7 @@ export default {
...
@@ -137,7 +145,7 @@ export default {
isHide
:
true
,
isHide
:
true
,
},
},
{
{
label
:
"
门店地址
"
,
label
:
""
,
name
:
"merchantAddress"
,
name
:
"merchantAddress"
,
addHtml
:
"merchantAddressHtml"
,
addHtml
:
"merchantAddressHtml"
,
isHide
:
true
,
isHide
:
true
,
...
@@ -477,15 +485,15 @@ export default {
...
@@ -477,15 +485,15 @@ export default {
this
.
$refs
[
this
.
editChildRef
]
&&
this
.
$refs
[
this
.
editChildRef
].
$refs
.
form
.
clearValidate
();
this
.
$refs
[
this
.
editChildRef
]
&&
this
.
$refs
[
this
.
editChildRef
].
$refs
.
form
.
clearValidate
();
},
},
handleSelectProvince
(
val
)
{
handleSelectProvince
(
val
)
{
this
.
addForm
.
provinceCode
=
val
.
provinceC
ode
;
this
.
addForm
.
provinceCode
=
val
.
c
ode
;
this
.
addForm
.
province
=
val
.
provinceN
ame
;
this
.
addForm
.
province
=
val
.
n
ame
;
this
.
addForm
.
cityCode
=
""
;
this
.
addForm
.
cityCode
=
""
;
this
.
addForm
.
cityName
=
""
;
this
.
addForm
.
cityName
=
""
;
this
.
addForm
.
merchantAddress
=
val
.
provinceN
ame
;
this
.
addForm
.
merchantAddress
=
val
.
n
ame
;
},
},
handleSelectCity
(
val
)
{
handleSelectCity
(
val
)
{
this
.
addForm
.
provinceCityCode
=
this
.
addForm
.
provinceCode
+
"/"
+
val
.
c
ityC
ode
;
this
.
addForm
.
provinceCityCode
=
this
.
addForm
.
provinceCode
+
"/"
+
val
.
code
;
this
.
addForm
.
merchantAddress
=
this
.
addForm
.
province
+
""
+
val
.
cityN
ame
;
this
.
addForm
.
merchantAddress
=
this
.
addForm
.
province
+
""
+
val
.
n
ame
;
},
},
getBrandName
()
{
getBrandName
()
{
console
.
log
(
this
.
addForm
.
brand
);
console
.
log
(
this
.
addForm
.
brand
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment