Commit ec25d8b5 authored by xinzhedeai's avatar xinzhedeai

通告通知 隐患列表详情处理

parent 914bcae6
......@@ -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;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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>
......
......@@ -47,7 +47,7 @@ var userInfo = {
}
}
var token ="Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI2OGEyZDUyNzI3ZDU0Y2YzYWZlNDE5MDI0OTFhNzE3NiIsInVzZXIiOiJhZG1pbiIsInN1YiI6ImFkbWluIn0.s0tU0zJdSvN5dBt2DHDmxs6sRGlkyuBoEsb3vUp8XZhcQco4ujyTNA3UPWAcgGd4dHwXJrqUkxZFG9aWaJ0Dvw";
var token ="Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI2NmYxMGZlZWU1MTc0OTMxOTdiZjE0ZTk3ODhmZDBmYiIsInVzZXIiOiJhZG1pbiIsInN1YiI6ImFkbWluIn0.t8LqWVN2NzmbkGv5jf5Nkpla3ndkP8lkMBNvVT16VDEBtEwZXIalk-fjLTZAX8VZ3dspMgWvSHBRQsXYtjJULw";
localStorage.setItem('Authorization', token)
localStorage.setItem('appCounty', userInfo.user.county)
......
......@@ -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
<!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
/**
* 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
<!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
/**
* 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
......@@ -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
......
......@@ -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>
......
......@@ -7,6 +7,7 @@ window.addEventListener("load", function() {
el: '#app',
data() {
return {
addBtnText: '新增',
value: '',
list: [],
loading: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment