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
8851523b
Commit
8851523b
authored
Apr 18, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test 整改
parent
412b14f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
26 deletions
+70
-26
_check_info.js
src/_check_info.js
+70
-26
No files found.
src/_check_info.js
View file @
8851523b
...
...
@@ -80,7 +80,6 @@ window.onload = function() {
* pageName: 页面名称(用于记录页面来源,用于操作后返回上一页)
* 隐患状态 0:待整改 1:已整改 2:待审核 3:整改逾期
*/
console
.
log
(
gemhoUtil
.
getParameter
,
'
gemhoUtil.getParameter
'
)
this
.
pageName
=
gemhoUtil
.
getParameter
(
'
pageName
'
)
this
.
id
=
gemhoUtil
.
getParameter
(
'
id
'
)
this
.
merId
=
gemhoUtil
.
getParameter
(
'
merId
'
)
...
...
@@ -318,6 +317,46 @@ window.onload = function() {
)
},
0
)
},
// add4DZG_XQ() {
// console.log('整改图片', this.checkData[0]['gqCheckItemList'][0].photos)
// if (!this.checkData[0]['gqCheckItemList'][0].photos.length) {
// vant.Dialog.alert({
// message: '请上传整改图片',
// })
// return;
// }
// vant.Toast.loading({
// message: '正在处理...',
// forbidClick: true,
// loadingType: 'spinner',
// });
// http2.post({
// serviceId: API_KEY_MAP["submit"]['id'],
// interfacePublicKey: API_KEY_MAP["submit"]["publicKey"],
// interfacePrivateKey: API_KEY_MAP["submit"]["privateKey"],
// reqParams: {
// sign: 7,
// "hdId": this.id,
// "photos": this.checkData[0]['gqCheckItemList'][0].photos,
// }
// }, (res, type) => {
// if (!res && !type) { // 如果是中台接口返回为undefined,则重新发起请求
// vant.Toast.clear()
// setTimeout(() => {
// this.add4DZG_XQ()
// }, 0);
// return
// }
// if (res) {
// console.log('添加结果', res)
// vant.Toast({
// message: '操作成功',
// })
// // history.back()
// gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
// }
// })
// },
add4DZG_XQ
()
{
console
.
log
(
'
整改图片
'
,
this
.
checkData
[
0
][
'
gqCheckItemList
'
][
0
].
photos
)
if
(
!
this
.
checkData
[
0
][
'
gqCheckItemList
'
][
0
].
photos
.
length
)
{
...
...
@@ -331,33 +370,38 @@ window.onload = function() {
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
submit
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
submit
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
submit
"
][
"
privateKey
"
],
reqParams
:
{
sign
:
7
,
var
reqParam
=
{
"
hdId
"
:
this
.
id
,
"
photos
"
:
this
.
checkData
[
0
][
'
gqCheckItemList
'
][
0
].
photos
,
}
},
(
res
,
type
)
=>
{
if
(
!
res
&&
!
type
)
{
// 如果是中台接口返回为undefined,则重新发起请求
vant
.
Toast
.
clear
()
setTimeout
(()
=>
{
this
.
add4DZG_XQ
()
},
0
);
return
}
if
(
res
)
{
// var url = "/gq/checkRecord/safeCheckRecord"
http3
.
post
(
'
/gq/hiddenDanger/rectification
'
,
reqParam
).
then
((
res
)
=>
{
console
.
log
(
'
添加结果
'
,
res
)
vant
.
Toast
({
message
:
'
操作成功
'
,
})
// history.back()
gemhoUtil
.
navigatePage
(
this
.
pageName
+
'
.html
'
,
'
操作完成,跳转中...
'
)
}
})
},
// add4DSH_XQ(auditStatus) { // 隐患详情 审核通过或拒绝
// vant.Toast.loading({
// message: '正在处理...',
// forbidClick: true,
// loadingType: 'spinner',
// });
// var reqParam = {
// "hdId": this.id,
// auditStatus
// }
// http3.post('/gq/hiddenDanger/audit', reqParam).then((res) => {
// console.log('添加结果', res)
// vant.Toast({
// message: '操作成功',
// })
// gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
// })
// },
add4DSH_XQ
(
auditStatus
)
{
// 隐患详情 审核通过或拒绝
vant
.
Toast
.
loading
({
message
:
'
正在处理...
'
,
...
...
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