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
c659c63a
Commit
c659c63a
authored
Jun 26, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
冗余代码处理
parent
4472e68e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
68 deletions
+5
-68
dw-list-detail.js
src/dw-list-detail.js
+0
-15
emergency.js
src/emergency.js
+4
-22
law-list-detail.html
src/law-list-detail.html
+1
-5
law-list-detail.js
src/law-list-detail.js
+0
-8
law-list.js
src/law-list.js
+0
-18
No files found.
src/dw-list-detail.js
View file @
c659c63a
...
@@ -129,21 +129,6 @@ window.addEventListener("load", function() {
...
@@ -129,21 +129,6 @@ window.addEventListener("load", function() {
}
}
}
}
})
})
// http.get('/api/dangerJobReport/page', {
// page: 0, // 每次请求增加下一页
// size: 1,
// // companyId: localStorage.getItem('companyId'),
// id: gemhoUtil.getParameter('dwId'),
// sort: 'id,asc',
// }).then((res) => {
// console.log('响应结果', res.content)
// this.form = res.content[0]
// this.form.filePathList = res.content[0].filePathList || []
// if(this.form.workTime && this.form.workTime.length){
// this.form.workTime1 = this.form.workTime[0]
// this.form.workTime2 = this.form.workTime[1]
// }
// })
},
},
submit
()
{
submit
()
{
if
(
!
this
.
form
.
name
)
{
if
(
!
this
.
form
.
name
)
{
...
...
src/emergency.js
View file @
c659c63a
...
@@ -63,13 +63,13 @@ window.addEventListener("load", function() {
...
@@ -63,13 +63,13 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
true
this
.
loading
=
true
http2
.
post
({
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
dw-list
"
][
'
id
'
],
serviceId
:
API_KEY_MAP
[
"
emergency
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
dw-list
"
][
"
publicKey
"
],
interfacePublicKey
:
API_KEY_MAP
[
"
emergency
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
dw-list
"
][
"
privateKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
emergency
"
][
"
privateKey
"
],
reqParams
:
{
reqParams
:
{
page
:
this
.
page
++
,
// 每次请求增加下一页
page
:
this
.
page
++
,
// 每次请求增加下一页
size
:
this
.
size
,
size
:
this
.
size
,
sort
:
'
id,desc
'
,
planName
:
this
.
planName
,
}
}
},
(
res
)
=>
{
},
(
res
)
=>
{
...
@@ -84,27 +84,9 @@ window.addEventListener("load", function() {
...
@@ -84,27 +84,9 @@ window.addEventListener("load", function() {
if
(
this
.
page
*
this
.
size
>=
this
.
total
){
if
(
this
.
page
*
this
.
size
>=
this
.
total
){
this
.
finished
=
true
;
// 下滑不在刷新数据
this
.
finished
=
true
;
// 下滑不在刷新数据
}
}
}
}
this
.
loading
=
false
this
.
loading
=
false
})
})
// http.get('/api/enterpriseDrillPlans/company',{
// page: this.page++,// 每次请求增加下一页
// size: this.size,
// planName: this.planName,
// companyId: localStorage.getItem('companyId'),
// }).then((res)=>{
// this.loading = false; // 加载状态结束
// this.list.push(...res.body.content);
// this.total = res.body.totalElements
// if(this.page*this.size >= this.total){
// this.finished = true; // 下滑不在刷新数据
// }
// })
}
}
},
},
});
});
...
...
src/law-list-detail.html
View file @
c659c63a
...
@@ -5,11 +5,7 @@
...
@@ -5,11 +5,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover"
>
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover"
>
<title>
危险作业备案-详情
</title>
<title>
法律法规-详情
</title>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/pdf.js/2.0.193/pdf.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/pdf.js/2.0.193/pdf.worker.min.js"></script> -->
<!-- <script src="../js/pdfjs-4.2.67-dist/build/pdf.mjs"></script>
<script src="../js/pdfjs-4.2.67-dist/build/pdf.worker.mjs"></script> -->
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"
></script>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
<style>
<style>
...
...
src/law-list-detail.js
View file @
c659c63a
...
@@ -29,21 +29,13 @@ window.addEventListener("load", function() {
...
@@ -29,21 +29,13 @@ window.addEventListener("load", function() {
lawId
:
gemhoUtil
.
getParameter
(
'
law_id
'
)
lawId
:
gemhoUtil
.
getParameter
(
'
law_id
'
)
}
}
},
(
res
)
=>
{
},
(
res
)
=>
{
if
(
res
){
if
(
res
){
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
var
result
=
JSON
.
parse
(
res
)
var
result
=
JSON
.
parse
(
res
)
this
.
lawChapter
=
result
.
lawChapter
this
.
lawChapter
=
result
.
lawChapter
}
}
})
})
// http.get('/api/thLaw/findLawDetails', {
// lawId: gemhoUtil.getParameter('law_id')
// }).then((res) => {
// console.log('响应结果', res.content)
// this.lawChapter = res.thLawChapterDtoList[0].lawChapter
// })
},
},
},
},
});
});
});
});
\ No newline at end of file
src/law-list.js
View file @
c659c63a
...
@@ -22,7 +22,6 @@ window.addEventListener("load", function() {
...
@@ -22,7 +22,6 @@ window.addEventListener("load", function() {
},
},
methods
:
{
methods
:
{
detail
(
index
){
detail
(
index
){
debugger
this
.
list
[
index
].
currentUserRead
=
true
this
.
list
[
index
].
currentUserRead
=
true
location
.
href
=
'
./law-list-detail.html?law_id=
'
+
this
.
list
[
index
].
lawId
location
.
href
=
'
./law-list-detail.html?law_id=
'
+
this
.
list
[
index
].
lawId
},
},
...
@@ -56,23 +55,6 @@ window.addEventListener("load", function() {
...
@@ -56,23 +55,6 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
})
})
// http.get('/api/thLaw',{
// page: this.page++,// 每次请求增加下一页
// size: this.size,
// county: localStorage.getItem('appCounty'),
// category_id: gemhoUtil.getParameter('category_id'),
// sort: 'lawId,desc',
// }).then((res)=>{
// this.loading = false; // 加载状态结束
// this.list.push(...res.content);
// this.total = res.totalElements
// if(this.page*this.size >= this.total){
// this.finished = true; // 下滑不在刷新数据
// }
// })
}
}
},
},
});
});
...
...
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