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
8b99a8c4
Commit
8b99a8c4
authored
Jun 05, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:商户编辑 、列表分页
parent
49912ae1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
13 deletions
+51
-13
_shanghu_detail-edit.html
src/_shanghu_detail-edit.html
+2
-2
_shanghu_detail-edit.js
src/_shanghu_detail-edit.js
+49
-11
No files found.
src/_shanghu_detail-edit.html
View file @
8b99a8c4
...
@@ -211,8 +211,8 @@
...
@@ -211,8 +211,8 @@
<option
<option
v-for=
"(item, i) in dict4changhsuoType"
v-for=
"(item, i) in dict4changhsuoType"
:key=
"i"
:key=
"i"
:label=
"item.
dictLabel
"
:label=
"item.
categoryName
"
:value=
"
Number(item.dictValue)
"
:value=
"
item.id
"
></option>
></option>
</select>
</select>
</div>
</div>
...
...
src/_shanghu_detail-edit.js
View file @
8b99a8c4
...
@@ -6,6 +6,12 @@ window.addEventListener('load', function () {
...
@@ -6,6 +6,12 @@ window.addEventListener('load', function () {
el
:
'
#app
'
,
el
:
'
#app
'
,
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
finished
:
false
,
page
:
0
,
size
:
9999
,
total
:
0
,
activeTab
:
0
,
activeTab
:
0
,
flag
:
'
XQ
'
,
flag
:
'
XQ
'
,
canvasReady
:
false
,
canvasReady
:
false
,
...
@@ -77,6 +83,19 @@ window.addEventListener('load', function () {
...
@@ -77,6 +83,19 @@ window.addEventListener('load', function () {
this
.
getDict4industryType
()
this
.
getDict4industryType
()
// this.getDict4changhsuoType()
// this.getDict4changhsuoType()
},
},
watch
:
{
'
formData.industryType
'
:
{
handler
(
newVal
)
{
// 选择后晴空下级下拉框值
this
.
dict4changhsuoType
=
[]
this
.
getDict4changhsuoType
({
industryId
:
newVal
})
},
deep
:
true
// 深度监听对象属性
}
},
methods
:
{
methods
:
{
viewDetail
(
item
)
{
viewDetail
(
item
)
{
let
params
=
{
let
params
=
{
...
@@ -100,19 +119,25 @@ window.addEventListener('load', function () {
...
@@ -100,19 +119,25 @@ window.addEventListener('load', function () {
});
});
},
},
getConsumerSuggestList
()
{
getConsumerSuggestList
()
{
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
http2
.
post
({
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
page
"
][
"
publicKey
"
],
interfacePublicKey
:
API_KEY_MAP
[
"
page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
page
"
][
"
privateKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
page
"
][
"
privateKey
"
],
reqParams
:
{
reqParams
:
{
page
:
1
,
page
:
this
.
page
++
,
// 每次请求增加下一页
size
:
9999
,
size
:
this
.
size
,
sign
:
18
,
// 消费者建议列表
sign
:
18
,
// 消费者建议列表
"
merId
"
:
gemhoUtil
.
getParameter
(
'
merId
'
),
"
merId
"
:
gemhoUtil
.
getParameter
(
'
merId
'
),
}
}
},
(
res
)
=>
{
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
this
.
page
=
this
.
page
-
1
// 重新请求后,分页数恢复上一次请求的值
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
consumerSuggestList
()
this
.
consumerSuggestList
()
},
0
);
},
0
);
...
@@ -126,9 +151,19 @@ window.addEventListener('load', function () {
...
@@ -126,9 +151,19 @@ window.addEventListener('load', function () {
})
})
},
0
);
},
0
);
var
result
=
JSON
.
parse
(
res
)
var
result
=
JSON
.
parse
(
res
)
this
.
consumerSuggestList
=
result
.
rows
this
.
consumerSuggestList
.
push
(...
result
.
rows
);
this
.
total
=
result
.
totalElements
if
(
this
.
page
*
this
.
size
>=
this
.
total
)
{
this
.
finished
=
true
;
// 下滑不在刷新数据
}
}
}
this
.
loading
=
false
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
})
})
},
},
getDict4changhsuoType
(
param
)
{
getDict4changhsuoType
(
param
)
{
...
@@ -159,17 +194,20 @@ window.addEventListener('load', function () {
...
@@ -159,17 +194,20 @@ window.addEventListener('load', function () {
},
0
);
},
0
);
var
result
=
JSON
.
parse
(
res
)
var
result
=
JSON
.
parse
(
res
)
this
.
dict4changhsuoType
=
result
.
data
.
body
.
data
this
.
dict4changhsuoType
=
result
.
data
.
body
.
data
if
(
!
this
.
dict4businessType
.
length
){
// 如果下拉列表为空,则置空场所类型的值。
this
.
formData
.
smallPlaceTypeId
=
null
}
}
}
})
})
},
},
handleIndustryChange
(
val
)
{
//
handleIndustryChange(val) {
// 选择后晴空下级下拉框值
//
// 选择后晴空下级下拉框值
this
.
dict4changhsuoType
=
[]
//
this.dict4changhsuoType = []
this
.
getDict4changhsuoType
({
//
this.getDict4changhsuoType({
industryId
:
this
.
formData
.
industryType
//
industryId: this.formData.industryType
})
//
})
},
//
},
getDict4industryType
()
{
getDict4industryType
()
{
http2
.
post
({
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
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