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
c2a4e4e3
Commit
c2a4e4e3
authored
Jul 18, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:新增跳转区分处理、日期调整
parent
9cc2e08c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
19 deletions
+10
-19
_peixun_yanlian.js
src/_peixun_yanlian.js
+3
-2
_peixun_yanlian_detail-anquan.js
src/_peixun_yanlian_detail-anquan.js
+1
-6
_peixun_yanlian_detail-yingji.js
src/_peixun_yanlian_detail-yingji.js
+6
-11
No files found.
src/_peixun_yanlian.js
View file @
c2a4e4e3
...
...
@@ -157,8 +157,9 @@ window.addEventListener("load", function() {
pageName
:
'
_peixun_yanlian
'
}
// 这里添加跳转逻辑
let
pageUrl
=
'
_peixun_yanlian_detail-anquan.html
'
// 安全培训详情页面
if
(
item
.
exerciseType
==
'
2
'
)
{
// 跳转应急演练详情
var
pageUrl
=
'
_peixun_yanlian_detail-anquan.html
'
// 安全培训详情页面
console
.
log
(
this
.
activeTab
==
1
,
'
accccc
'
)
if
(
this
.
activeTab
==
1
)
{
// 跳转应急演练详情
pageUrl
=
'
_peixun_yanlian_detail-yingji.html
'
}
let
url
=
gemhoUtil
.
setParameter
(
pageUrl
,
params
)
...
...
src/_peixun_yanlian_detail-anquan.js
View file @
c2a4e4e3
...
...
@@ -21,12 +21,7 @@ window.addEventListener("load", function() {
// 新增以下数据
formData
:
{
images
:
[],
submitDate
:
gemhoUtil
.
getTargetDateYMD
(),
createDate
:
gemhoUtil
.
getTargetDateYMD
(),
date
:
gemhoUtil
.
getTargetDateYMD
(),
phone
:
''
,
businessHours
:
''
,
type
:
''
,
// 新增类型字段
exerciseDate
:
gemhoUtil
.
getTargetDateYMD
(),
},
id
:
''
}
...
...
src/_peixun_yanlian_detail-yingji.js
View file @
c2a4e4e3
...
...
@@ -9,7 +9,7 @@ window.addEventListener("load", function() {
el
:
'
#app
'
,
data
()
{
return
{
previewUrl
:
axios
.
defaults
.
base
URL
,
previewUrl
:
BASE_
URL
,
flag
:
'
XQ
'
,
flag
:
'
ADD
'
,
showDatePicker
:
false
,
// 控制日期选择器显示
...
...
@@ -21,12 +21,7 @@ window.addEventListener("load", function() {
// 新增以下数据
formData
:
{
images
:
[],
submitDate
:
gemhoUtil
.
getTargetDateYMD
(),
createDate
:
gemhoUtil
.
getTargetDateYMD
(),
date
:
gemhoUtil
.
getTargetDateYMD
(),
phone
:
''
,
businessHours
:
''
,
type
:
''
,
// 新增类型字段
exerciseDate
:
gemhoUtil
.
getTargetDateYMD
(),
},
id
:
''
}
...
...
@@ -77,11 +72,11 @@ window.addEventListener("load", function() {
// formData.append('biz_content',SM.encrypt('dangerjob', API_KEY_MAP["upload"]["publicKey"]));
// 发送HTTP POST请求
fetch
(
axios
.
defaults
.
base
URL
+
'
/common/upload
'
,
{
fetch
(
BASE_
URL
+
'
/common/upload
'
,
{
method
:
'
POST
'
,
body
:
formData
,
headers
:
{
'
Authorization
'
:
axios
.
defaults
.
headers
.
common
[
'
Authorization
'
]
,
'
Authorization
'
:
gemhoUtil
.
getCookie
(
'
token
'
)
,
}
})
.
then
(
response
=>
{
...
...
@@ -175,7 +170,7 @@ window.addEventListener("load", function() {
});
var
reqParam
=
{
merId
:
gemhoUtil
.
getParameter
(
'
merId
'
),
exerciseType
:
'
1
'
,
// 安全
演练
exerciseType
:
'
2
'
,
// 应急
演练
...
this
.
formData
,
}
reqParam
.
images
=
this
.
formData
.
images
.
join
(
'
,
'
)
...
...
@@ -185,7 +180,7 @@ window.addEventListener("load", function() {
vant
.
Toast
({
message
:
res
.
code
===
200
?
'
操作成功
'
:
'
操作失败
'
,
})
location
.
reload
()
//
location.reload()
})
},
//获取商户信息
...
...
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