Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-SDT
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-SDT
Commits
ec25d8b5
Commit
ec25d8b5
authored
May 23, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通告通知 隐患列表详情处理
parent
914bcae6
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
183 additions
and
7843 deletions
+183
-7843
common.css
css/common.css
+2
-1
vant.css
css/vant.css
+1
-7832
index.html
index.html
+4
-3
common.js
js/common.js
+1
-1
law-list-detail.html
views/law-list-detail.html
+1
-1
notice-list-detail.html
views/notice-list-detail.html
+49
-0
notice-list-detail.js
views/notice-list-detail.js
+32
-0
notice-list.html
views/notice-list.html
+41
-0
notice-list.js
views/notice-list.js
+46
-0
yh-list-detail.html
views/yh-list-detail.html
+2
-2
yh-list.html
views/yh-list.html
+3
-3
yh-list.js
views/yh-list.js
+1
-0
No files found.
css/common.css
View file @
ec25d8b5
...
...
@@ -21,7 +21,8 @@
/* 列表相关 */
.list-item-wrapper
{
box-shadow
:
0.03rem
0.03rem
0.03rem
#eee
,
-0.03rem
-0.03rem
0.015rem
#eee
;
/* box-shadow: 0.03rem 0.03rem 0.03rem #eee, -0.03rem -0.03rem 0.015rem #eee; */
border
:
1px
solid
#dfd5d5
;
border-radius
:
0.15rem
;
overflow
:
hidden
;
padding-left
:
0.3rem
;
...
...
css/vant.css
View file @
ec25d8b5
This diff is collapsed.
Click to expand it.
index.html
View file @
ec25d8b5
...
...
@@ -17,6 +17,7 @@
margin-top
:
0.2rem
;
padding
:
0
0.2rem
;
box-sizing
:
border-box
;
margin-bottom
:
-0.85rem
;
}
.wrapper
.item
.bgImg
{
...
...
@@ -65,9 +66,9 @@
<p
class=
"bgImg"
@
click=
"nav('dw-list')"
>
<span>
危险作业备案
</span>
</p>
</div
>
<div
class=
"item"
>
<p
class=
"bgImg"
@
click=
"nav('notice-list')"
>
<span>
通知公告
</span
>
</p>
</div>
</div>
</div>
...
...
js/common.js
View file @
ec25d8b5
...
...
@@ -47,7 +47,7 @@ var userInfo = {
}
}
var
token
=
"
Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI2
OGEyZDUyNzI3ZDU0Y2YzYWZlNDE5MDI0OTFhNzE3NiIsInVzZXIiOiJhZG1pbiIsInN1YiI6ImFkbWluIn0.s0tU0zJdSvN5dBt2DHDmxs6sRGlkyuBoEsb3vUp8XZhcQco4ujyTNA3UPWAcgGd4dHwXJrqUkxZFG9aWaJ0Dv
w
"
;
var
token
=
"
Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI2
NmYxMGZlZWU1MTc0OTMxOTdiZjE0ZTk3ODhmZDBmYiIsInVzZXIiOiJhZG1pbiIsInN1YiI6ImFkbWluIn0.t8LqWVN2NzmbkGv5jf5Nkpla3ndkP8lkMBNvVT16VDEBtEwZXIalk-fjLTZAX8VZ3dspMgWvSHBRQsXYtjJUL
w
"
;
localStorage
.
setItem
(
'
Authorization
'
,
token
)
localStorage
.
setItem
(
'
appCounty
'
,
userInfo
.
user
.
county
)
...
...
views/law-list-detail.html
View file @
ec25d8b5
...
...
@@ -43,7 +43,7 @@
</head>
<body>
<div
id=
"app"
>
<div
class=
"content"
v-cloak
v-html=
"lawChapter"
></div>
<div
class=
"content"
v-cloak
v-html=
"lawChapter"
style=
"padding:0.15rem"
></div>
</div>
</body>
</html>
\ No newline at end of file
views/notice-list-detail.html
0 → 100644
View file @
ec25d8b5
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<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"
>
<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
type=
"text/javascript"
src=
"../js/includeHead.js"
></script>
<style>
html
,
body
{
background-color
:
#fff
;
}
.pd-01rem
{
padding-bottom
:
0.1rem
;
}
/* 表单相关 */
.formValue
{
float
:
right
;
}
.formSubmitBtnWrapper
{
display
:
flex
;
justify-content
:
center
;
margin-top
:
0.2rem
;
margin-bottom
:
0.2rem
;
}
.formSubmitBtnWrapper
.van-button
{
width
:
4rem
;
}
/**
* 框架样式覆盖修改
*/
.van-cell__value
{
overflow
:
unset
;
}
.van-cell
:after
{
border-bottom
:
none
;}
.van-radio-group--horizontal
{
float
:
right
;}
</style>
</head>
<body>
<div
id=
"app"
>
<div
class=
"content"
v-cloak
v-html=
"noticeContent"
style=
"padding:0.15rem"
></div>
</div>
</body>
</html>
\ No newline at end of file
views/notice-list-detail.js
0 → 100644
View file @
ec25d8b5
/**
* author: dabao
*/
var
VUE
=
null
window
.
addEventListener
(
"
load
"
,
function
()
{
VUE
=
new
Vue
({
el
:
'
#app
'
,
data
()
{
return
{
noticeContent
:
''
,
// 企业id
companyId
:
localStorage
.
getItem
(
'
companyId
'
),
disabled
:
false
,
}
},
mounted
()
{
this
.
detail
()
},
methods
:
{
detail
()
{
http
.
get
(
'
/api/notice/findOwn
'
,
{
noticeId
:
gemhoUtil
.
getParameter
(
'
noticeId
'
)
}).
then
((
res
)
=>
{
console
.
log
(
'
响应结果
'
,
res
.
content
)
this
.
noticeContent
=
res
.
noticeContent
})
},
},
});
});
\ No newline at end of file
views/notice-list.html
0 → 100644
View file @
ec25d8b5
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<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"
>
<title>
法律法规-列表
</title>
<script
type=
"text/javascript"
src=
"../js/includeHead.js"
></script>
<style>
/**
* 框架样式覆盖修改
*/
.van-cell__value
{
overflow
:
unset
;
}
.van-cell
:after
{
border-bottom
:
none
;}
</style>
</head>
<body>
<div
id=
"app"
>
<div
class=
"content"
v-cloak
>
<van-list
v-model:loading=
"loading"
:offset=
"10"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"getList"
>
<van-cell
v-for=
"(item, index) in list"
:key=
"item"
>
<div
class=
"list-item-wrapper"
@
click=
"detail(index)"
>
<p
class=
""
>
<van-tag
type=
"primary"
v-if=
"!item.currentUserRead"
>
未读
</van-tag>
<van-tag
plain
type=
"primary"
v-else
>
已读
</van-tag>
</p>
<p
class=
""
>
{{item.noticeTitle}}
</p>
<div
class=
"list-function-btn-wrapper pd-01rem"
style=
"color: darkgray;justify-content: space-between;"
>
<span>
{{item.noticePublisher}}
</span>
<span>
{{item.createTime}}
</span>
</div>
</div>
</van-cell>
</van-list>
</div>
</div>
</body>
</html>
\ No newline at end of file
views/notice-list.js
0 → 100644
View file @
ec25d8b5
/**
* author: dabao
*/
var
VUE
=
null
window
.
addEventListener
(
"
load
"
,
function
()
{
VUE
=
new
Vue
({
el
:
'
#app
'
,
data
()
{
return
{
companyName
:
''
,
value
:
''
,
list
:
[],
loading
:
false
,
finished
:
false
,
page
:
0
,
size
:
999
,
total
:
0
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
detail
(
index
){
location
.
href
=
'
./notice-list-detail.html?noticeId=
'
+
this
.
list
[
index
].
noticeId
},
getList
(){
http
.
get
(
'
/api/notice/findOwnTag
'
,{
page
:
this
.
page
++
,
// 每次请求增加下一页
size
:
this
.
size
,
county
:
localStorage
.
getItem
(
'
appCounty
'
),
}).
then
((
res
)
=>
{
this
.
loading
=
false
;
// 加载状态结束
this
.
list
.
push
(...
res
.
content
);
this
.
total
=
res
.
totalElements
if
(
this
.
page
*
this
.
size
>=
this
.
total
){
this
.
finished
=
true
;
// 下滑不在刷新数据
}
})
}
},
});
});
\ No newline at end of file
views/yh-list-detail.html
View file @
ec25d8b5
...
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<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"
>
<title>
隐患-
详情
</title>
<title>
隐患-
表单
</title>
<script
type=
"text/javascript"
src=
"../js/includeHead.js"
></script>
<style>
html
,
body
{
...
...
@@ -104,7 +104,7 @@
</div></van-cell>
</van-cell-group>
<van-cell-group>
<van-cell-group
v-if=
"!form.hdStatus==1"
>
<van-cell>
整改照片:
<div
style=
"width: 2.5rem;"
>
<van-image
...
...
views/yh-list.html
View file @
ec25d8b5
...
...
@@ -16,7 +16,7 @@
</style>
</head>
<body>
<div
id=
"app"
>
<div
id=
"app"
v-block
>
<div
class=
"searchfuntionBtnWrapper"
>
<van-button
type=
"info"
size=
"small"
@
click=
"add"
>
新增
</van-button>
</div>
...
...
@@ -42,8 +42,8 @@
<van-tag
type=
"danger"
>
审核未通过
</van-tag>
</p>
<div
class=
"list-function-btn-wrapper pd-01rem"
>
<van-button
type=
"info"
size=
"mini"
@
click=
"detail(item)"
>
查看
</van-button>
<van-button
type=
"info"
size=
"mini"
@
click=
"edit(item)"
>
编辑
</van-button>
<van-button
v-if=
"item.hdStatus===1 || item.hdStatus===3"
type=
"info"
size=
"mini"
@
click=
"detail(item)"
>
查看
</van-button>
<van-button
v-if=
"item.hdStatus===0 || item.hdStatus===2"
type=
"info"
size=
"mini"
@
click=
"edit(item)"
>
编辑
</van-button>
<van-button
type=
"info"
size=
"mini"
@
click=
"del(item, index)"
>
删除
</van-button>
<van-button
type=
"info"
size=
"mini"
@
click=
"exportFile(item)"
>
导出
</van-button>
</div>
...
...
views/yh-list.js
View file @
ec25d8b5
...
...
@@ -7,6 +7,7 @@ window.addEventListener("load", function() {
el
:
'
#app
'
,
data
()
{
return
{
addBtnText
:
'
新增
'
,
value
:
''
,
list
:
[],
loading
:
false
,
...
...
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