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
e57bf803
Commit
e57bf803
authored
Jul 19, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:商户详情编辑添加安全员权限处理;隐患审核与逾期上报安全员权限添加;首页usertag宽度自动调整处理
parent
e1cdbd60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
46 deletions
+37
-46
home.css
home.css
+3
-1
_check_info.html
src/_check_info.html
+2
-2
_shanghu_detail-edit.js
src/_shanghu_detail-edit.js
+32
-43
No files found.
home.css
View file @
e57bf803
...
@@ -172,7 +172,7 @@ body {
...
@@ -172,7 +172,7 @@ body {
position
:
absolute
;
position
:
absolute
;
right
:
0.3rem
;
right
:
0.3rem
;
top
:
0.3rem
;
top
:
0.3rem
;
width
:
2rem
;
min-
width
:
2rem
;
height
:
0.48rem
;
height
:
0.48rem
;
background
:
#cfe8fd
;
background
:
#cfe8fd
;
border-radius
:
0.24rem
;
border-radius
:
0.24rem
;
...
@@ -180,6 +180,8 @@ body {
...
@@ -180,6 +180,8 @@ body {
font-size
:
0.26rem
;
font-size
:
0.26rem
;
color
:
#0166bc
;
color
:
#0166bc
;
text-align
:
center
;
text-align
:
center
;
padding-left
:
0.1rem
;
padding-right
:
0.1rem
;
}
}
.welcome
.user_tag
img
{
.welcome
.user_tag
img
{
...
...
src/_check_info.html
View file @
e57bf803
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
</van-action-sheet> -->
</van-action-sheet> -->
<!-- 隐患详情底部栏 -->
<!-- 隐患详情底部栏 -->
<div
class=
"bottom_bar"
v-if=
"flag=='3' &&
userType == 'wgy'
"
>
<div
class=
"bottom_bar"
v-if=
"flag=='3' &&
(userType == 'wgy' || userType=='safety')
"
>
<div>
<div>
<van-button
type=
"primary"
size=
"small"
@
click=
"shangbao"
>
逾期上报
</van-button>
<van-button
type=
"primary"
size=
"small"
@
click=
"shangbao"
>
逾期上报
</van-button>
...
@@ -313,7 +313,7 @@
...
@@ -313,7 +313,7 @@
</div>
</div>
</div>
</div>
<div
class=
"bottom_bar"
v-if=
"flag=='2' &&
userType=='wgy'
"
>
<div
class=
"bottom_bar"
v-if=
"flag=='2' &&
(userType == 'wgy' || userType=='safety')
"
>
<div
style=
"display: flex; justify-content: center; gap: 1rem"
>
<div
style=
"display: flex; justify-content: center; gap: 1rem"
>
<van-button
type=
"danger"
size=
"small"
@
click=
"validRefuse(0)"
style=
"width: 2rem"
>
拒绝
</van-button>
<van-button
type=
"danger"
size=
"small"
@
click=
"validRefuse(0)"
style=
"width: 2rem"
>
拒绝
</van-button>
<van-button
type=
"info"
size=
"small"
@
click=
"add4DSH_XQ(1)"
style=
"width: 2rem"
>
通过
</van-button>
<van-button
type=
"info"
size=
"small"
@
click=
"add4DSH_XQ(1)"
style=
"width: 2rem"
>
通过
</van-button>
...
...
src/_shanghu_detail-edit.js
View file @
e57bf803
...
@@ -6,7 +6,6 @@ window.addEventListener('load', function () {
...
@@ -6,7 +6,6 @@ window.addEventListener('load', function () {
el
:
'
#app
'
,
el
:
'
#app
'
,
data
()
{
data
()
{
return
{
return
{
// showCommunityModal:true,
previewUrl
:
BASE_URL
,
previewUrl
:
BASE_URL
,
loading
:
false
,
loading
:
false
,
finished
:
false
,
finished
:
false
,
...
@@ -55,7 +54,7 @@ window.addEventListener('load', function () {
...
@@ -55,7 +54,7 @@ window.addEventListener('load', function () {
dict4fangwuType
:
[],
dict4fangwuType
:
[],
dict4fangwuyongtuType
:
[],
dict4fangwuyongtuType
:
[],
dict4businessType
:
[],
dict4businessType
:
[],
//
dict4community: [],
dict4community
:
[],
dict4industryType
:
[],
dict4industryType
:
[],
consumerSuggestList
:
[],
consumerSuggestList
:
[],
}
}
...
@@ -65,7 +64,7 @@ window.addEventListener('load', function () {
...
@@ -65,7 +64,7 @@ window.addEventListener('load', function () {
mounted
()
{
mounted
()
{
// 详情编辑权限控制
// 详情编辑权限控制
const
userType
=
gemhoUtil
.
getCookie
(
'
userType
'
)
const
userType
=
gemhoUtil
.
getCookie
(
'
userType
'
)
if
(
userType
==
'
wgy
'
)
{
if
(
userType
==
'
wgy
'
||
userType
==
'
safety
'
)
{
this
.
flag
=
'
XG
'
this
.
flag
=
'
XG
'
}
else
{
}
else
{
this
.
flag
=
'
XQ
'
this
.
flag
=
'
XQ
'
...
@@ -75,7 +74,7 @@ window.addEventListener('load', function () {
...
@@ -75,7 +74,7 @@ window.addEventListener('load', function () {
this
.
getDict4fangwuType
()
this
.
getDict4fangwuType
()
this
.
getDict4fangwuyongtuType
()
this
.
getDict4fangwuyongtuType
()
this
.
getDict4businessType
()
this
.
getDict4businessType
()
//
this.getDict4community()
this
.
getDict4community
()
this
.
getDict4industryType
()
this
.
getDict4industryType
()
// this.getDict4changhsuoType()
// this.getDict4changhsuoType()
...
@@ -94,11 +93,6 @@ window.addEventListener('load', function () {
...
@@ -94,11 +93,6 @@ window.addEventListener('load', function () {
}
}
},
},
methods
:
{
methods
:
{
handleCommunityChange
(
value
)
{
// value是选中的路径数组,如 ['1', '1-1', '1-1-1']
// 根据需求决定存储完整路径还是最后一级值
this
.
formData
.
community
=
value
[
value
.
length
-
1
];
// 存储最后一级值
},
reset
(){
reset
(){
this
.
page
=
0
this
.
page
=
0
this
.
size
=
9999
this
.
size
=
9999
...
@@ -145,6 +139,7 @@ window.addEventListener('load', function () {
...
@@ -145,6 +139,7 @@ window.addEventListener('load', function () {
return
true
;
return
true
;
},
},
afterRead
(
file
,
type
)
{
// 调用爱山东中台系统,将数据流传递过去
afterRead
(
file
,
type
)
{
// 调用爱山东中台系统,将数据流传递过去
alert
(
type
)
vant
.
Toast
.
loading
({
vant
.
Toast
.
loading
({
message
:
'
正在处理...
'
,
message
:
'
正在处理...
'
,
forbidClick
:
true
,
forbidClick
:
true
,
...
@@ -325,35 +320,35 @@ window.addEventListener('load', function () {
...
@@ -325,35 +320,35 @@ window.addEventListener('load', function () {
}
}
})
})
},
},
//
getDict4community() {
getDict4community
()
{
//
http2.post({
http2
.
post
({
//
serviceId: API_KEY_MAP["no-page"]['id'],
serviceId
:
API_KEY_MAP
[
"
no-page
"
][
'
id
'
],
//
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
//
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
interfacePrivateKey
:
API_KEY_MAP
[
"
no-page
"
][
"
privateKey
"
],
//
reqParams: {
reqParams
:
{
//
sign: 22,
sign
:
22
,
//
}
}
//
}, (res) => {
},
(
res
)
=>
{
//
if (!res) { // 中台返回为undefined 重新请求
if
(
!
res
)
{
// 中台返回为undefined 重新请求
//
vant.Toast.clear()
vant
.
Toast
.
clear
()
//
setTimeout(() => {
setTimeout
(()
=>
{
//
// this.getDict4community()
// this.getDict4community()
//
}, 0);
},
0
);
//
return
return
//
}
}
//
if (res) {
if
(
res
)
{
//
console.log('接口回调数据=所属社区', JSON.parse(res))
console
.
log
(
'
接口回调数据=所属社区
'
,
JSON
.
parse
(
res
))
//
setTimeout(() => {
setTimeout
(()
=>
{
//
this.$nextTick(() => {
this
.
$nextTick
(()
=>
{
//
vant.Toast.clear()
vant
.
Toast
.
clear
()
//
})
})
//
}, 0);
},
0
);
//
var result = JSON.parse(res)
var
result
=
JSON
.
parse
(
res
)
//
this.dict4community = result.data
this
.
dict4community
=
result
.
data
//
}
}
//
})
})
//
},
},
getDict4businessType
()
{
getDict4businessType
()
{
http2
.
post
({
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
serviceId
:
API_KEY_MAP
[
"
page
"
][
'
id
'
],
...
@@ -567,18 +562,12 @@ window.addEventListener('load', function () {
...
@@ -567,18 +562,12 @@ window.addEventListener('load', function () {
let
tempData
=
result
.
data
let
tempData
=
result
.
data
if
(
tempData
[
'
businessLicensePhotos
'
]){
if
(
tempData
[
'
businessLicensePhotos
'
]){
tempData
[
'
businessLicensePhotos
'
]
=
tempData
[
'
businessLicensePhotos
'
].
split
(
'
,
'
)
tempData
[
'
businessLicensePhotos
'
]
=
tempData
[
'
businessLicensePhotos
'
].
split
(
'
,
'
)
}
else
{
tempData
[
'
businessLicensePhotos
'
]
=
[]
}
}
if
(
tempData
[
'
floorPlanPhotos
'
]){
if
(
tempData
[
'
floorPlanPhotos
'
]){
tempData
[
'
floorPlanPhotos
'
]
=
tempData
[
'
floorPlanPhotos
'
].
split
(
'
,
'
)
tempData
[
'
floorPlanPhotos
'
]
=
tempData
[
'
floorPlanPhotos
'
].
split
(
'
,
'
)
}
else
{
tempData
[
'
floorPlanPhotos
'
]
=
[]
}
}
if
(
tempData
[
'
storefrontPhotos
'
]){
if
(
tempData
[
'
storefrontPhotos
'
]){
tempData
[
'
storefrontPhotos
'
]
=
tempData
[
'
storefrontPhotos
'
].
split
(
'
,
'
)
tempData
[
'
storefrontPhotos
'
]
=
tempData
[
'
storefrontPhotos
'
].
split
(
'
,
'
)
}
else
{
tempData
[
'
storefrontPhotos
'
]
=
[]
}
}
this
.
formData
=
tempData
this
.
formData
=
tempData
...
...
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