Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
0f1dd581
Commit
0f1dd581
authored
Jun 04, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:商户编辑 字段调整
parent
b7d9a313
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
_shanghu_detail-edit.html
src/_shanghu_detail-edit.html
+3
-3
_shanghu_detail-edit.js
src/_shanghu_detail-edit.js
+10
-2
No files found.
src/_shanghu_detail-edit.html
View file @
0f1dd581
...
@@ -88,15 +88,15 @@
...
@@ -88,15 +88,15 @@
<!-- 新增字段 -->
<!-- 新增字段 -->
<div
class=
"form-item"
>
<div
class=
"form-item"
>
<span
class=
"form-label"
>
所属社区
</span>
<span
class=
"form-label
van-cell--required
"
>
所属社区
</span>
<div
class=
"form-input-wrap"
>
<div
class=
"form-input-wrap"
>
<select
class=
"selector"
v-model=
"formData.
community
"
<select
class=
"selector"
v-model=
"formData.
deptId
"
:disabled=
"flag=='XQ'"
>
:disabled=
"flag=='XQ'"
>
<option
<option
v-for=
"(item, i) in dict4community"
v-for=
"(item, i) in dict4community"
:key=
"i"
:key=
"i"
:label=
"item.label"
:label=
"item.label"
:value=
"item.
label
"
:value=
"item.
id
"
></option>
></option>
</select>
</select>
</div>
</div>
...
...
src/_shanghu_detail-edit.js
View file @
0f1dd581
...
@@ -203,6 +203,7 @@ window.addEventListener('load', function () {
...
@@ -203,6 +203,7 @@ window.addEventListener('load', function () {
page
:
1
,
page
:
1
,
size
:
9999
,
size
:
9999
,
sign
:
22
,
sign
:
22
,
"
merId
"
:
gemhoUtil
.
getParameter
(
'
merId
'
),
}
}
},
(
res
)
=>
{
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
if
(
!
res
)
{
// 中台返回为undefined 重新请求
...
@@ -338,7 +339,7 @@ window.addEventListener('load', function () {
...
@@ -338,7 +339,7 @@ window.addEventListener('load', function () {
}
}
if
(
!
reqParam
.
area
){
if
(
!
reqParam
.
area
){
vant
.
Toast
({
vant
.
Toast
({
message
:
'
建筑不能为空
'
,
message
:
'
建筑
面积
不能为空
'
,
})
})
return
return
}
}
...
@@ -348,13 +349,20 @@ window.addEventListener('load', function () {
...
@@ -348,13 +349,20 @@ window.addEventListener('load', function () {
})
})
return
return
}
}
if
(
!
reqParam
.
deptId
){
if
(
!
reqParam
.
community
){
vant
.
Toast
({
vant
.
Toast
({
message
:
'
所属社区不能为空
'
,
message
:
'
所属社区不能为空
'
,
})
})
return
return
}
}
if
(
!
reqParam
.
industryType
){
vant
.
Toast
({
message
:
'
行业类型不能为空
'
,
})
return
}
http3
.
put
(
'
/gq/merchant
'
,
reqParam
).
then
((
res
)
=>
{
http3
.
put
(
'
/gq/merchant
'
,
reqParam
).
then
((
res
)
=>
{
console
.
log
(
'
添加结果
'
,
res
)
console
.
log
(
'
添加结果
'
,
res
)
vant
.
Toast
({
vant
.
Toast
({
...
...
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