Commit 6cbbd417 authored by xinzhedeai's avatar xinzhedeai

应急演练

parent b11c6f9a
...@@ -70,6 +70,14 @@ ...@@ -70,6 +70,14 @@
<span>通知公告</span> <span>通知公告</span>
</p> </p>
</div> --> </div> -->
<div class="item">
<p class="bgImg" @click="nav('emergency')">
<span>应急演练</span>
</p>
<!-- <p class="bgImg" @click="nav('notice-list')">
<span>通知公告</span>
</p> -->
</div>
</div> </div>
</div> </div>
</body> </body>
......
<!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>
html,
body {
background-color: #fff;
}
/* 表单相关 */
.formValue {
float: right;
}
/**
* 框架样式覆盖修改
*/
.van-cell__value {
overflow: unset;
}
.van-cell:after {
border-bottom: none;
}
</style>
</head>
<body>
<div id="app">
<div class="content" v-cloak :class="{'disable-van-cell': !disabled}">
<span style="font-size: 16px; color #000; font-weight: bold;margin-left:0.25rem;" >演练任务</span>
<van-cell-group>
<van-field v-model="form.planName" :disabled="disabled" label="计划名称" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.publishDept" :disabled="disabled" label="发布部门" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.issueDescription" :disabled="disabled" label="发现问题" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.publishDesc" :disabled="disabled" label="演练描述" placeholder="" />
</van-cell-group>
<span style="font-size: 16px; color #000; font-weight: bold; margin-left:0.25rem" >演练情况</span>
<div v-if="form.completionStatus===1">
<van-cell-group>
<van-field v-model="form.companyName" :disabled="disabled" label="企业名称" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.issueDescription" :disabled="disabled" label="发现问题" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-field v-model="form.processDescription" :disabled="disabled" label="过程描述" placeholder="" />
</van-cell-group>
<van-cell-group>
<van-cell>文件预览:
<div style="width: 2.5rem;">
<van-image width="100" height="100"
:src="previewUrl + form.hdPic" />
</div>
</van-cell>
</van-cell-group>
<van-cell-group>
<van-field v-model="form.completionDate" label="完成时间" placeholder="" :disabled="disabled" />
</van-cell-group>
</div>
<div v-if="form.completionStatus===0">
暂未完成演练
</div>
</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 {
form: {
enterpriseSubmitsTheRectificationDate: '',//2024-03-08 00:00:00',
// 检查人员
hdInspectExpert: '',//'发发发',
// 发现问题
comment: '',//'隐患描述',
// 检查依据
basis: '',//'测试依据',
// 隐患整改建议
verifyStatus: '',
// 隐患整改日期
hdRectificationDate: '',//'2024-03-08',
// 隐患整改图片
hdRectificationPic: '',
hdPic: '',
// 审核人
reviewer: "",
recEvaluation: '',
verifyStatusString: '', // 审核状态
},
// 企业id
// companyId: localStorage.getItem('companyId'),
previewUrl: axios.defaults.baseURL,
disabled: false,
}
},
mounted() {
this.detail()
},
methods: {
getEnterprisePlansCompanyDetail(row) {
this.detailFlag = true;
this.adddialogform = true;
getEnterprisePlansCompanyDetail({
planId: row.planId,
companyId: row.companyId,
}).then((res) => {
console.log("res.body.content[0]", res.body.content[0]);
this.formInfo = res.body.content[0];
this.filePathList = this.formInfo.drillPhotoList || [];
});
},
// 整改后照片
transferUrl(hdRectificationPic) {
console.log(hdRectificationPic);
if (hdRectificationPic) {
return (
axios.defaults.baseURL +
"/hd_rectification_pic_to_verify/" +
hdRectificationPic.split("\\hd_rectification_pic_to_verify\\")[1]
);
} else {
return null;
}
},
detail(){
http.get('/api/enterpriseDrills', {
page: 0, // 每次请求增加下一页
size: 1,
planId: gemhoUtil.getParameter('planId'),
companyId: gemhoUtil.getParameter('companyId'),
}).then((res) => {
this.loading = false; // 加载状态结束
this.form = res.body.content[0]
this.disabled = true
})
},
},
});
});
\ 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;}
.statisticWrapper{
width: 7.5rem;
display: flex;
justify-content: space-evenly;
}
.statisticWrapper p{
width: 3.4rem;
height: 0.7rem;
line-height: 0.7rem;
background-color: #8abbe9;
color: #f7f7f7;
text-align: center;
font-size: 0.14rem;
}
</style>
</head>
<body>
<div id="app">
<div class="statisticWrapper">
<p>完成演练企业: {{ completionCount }}</p>
<p>未完成演练企业: {{ uncompletionCount }}</p>
</div>
<div class="search-wrapper">
<van-search v-model="companyName" placeholder="请输入企业名称" @search="onSearch" @clear="onClear" />
</div>
<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(item)">
<p class="list-status-tag">
<van-tag :type="item.completionStatus==1?'primary':'warning'" size="mini">{{item.completionStatus==1 ? '完成': '未完成'}}</van-tag>
</p>
<p class="">
公司名称:{{item.companyName}}
</p>
<p class="">
完成时间:{{item.completionDate}}
</p>
<p class="">
发现问题:{{item.issueDescription}}
</p>
</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 {
completionCount:0,
uncompletionCount:0,
companyName: '',
value: '',
list: [],
loading: false,
finished: false,
page: 0,
size: 10,
total: 0,
disabled:false,
}
},
mounted() {
this.getList()
},
methods: {
resetSearchForm(){
this.page = 0
this.size = 20
this.total = 0
this.list = []
this.finished = false;
},
onClear(){
this.resetSearchForm()
this.getList()
},
onSearch(val){
this.resetSearchForm()
console.log('search', val)
this.getList()
},
exportFile(item){
http.downloadFile('/api/dangerJobReport/export',{
fileType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
fileName: 'DW-'+ gemhoUtil.getTargetDateYMD().replaceAll('-', '') +'.xlsx'
}).then((res)=>{
vant.Toast({
message: '操作成功',
})
this.loading = false; // 加载状态结束
})
},
add(){
gemhoUtil.navigatePage('./dw-list-detail.html?type=add')
},
detail(item){
gemhoUtil.navigatePage('./emergency-detail.html?planId='+item.planId+'&companyId=' + item.companyId)
},
edit(item){
gemhoUtil.navigatePage('./dw-list-detail.html?dwId='+item.id+'&type=edit')
},
getList(){
http.get('/api/enterpriseDrills/company',{
page: this.page++,// 每次请求增加下一页
size: this.size,
planId: gemhoUtil.getParameter('planId'),
companyName: this.companyName,
}).then((res)=>{
this.loading = false; // 加载状态结束
this.list.push(...res.body.content);
this.total = res.body.totalElements
this.uncompletionCount = res.body.uncompletionCount
this.completionCount = res.body.completionCount
if(this.page*this.size >= this.total){
this.finished = true; // 下滑不在刷新数据
}
})
}
},
});
});
\ 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="search-wrapper">
<van-search v-model="planName" placeholder="请输入计划名称" @search="onSearch" @clear="onClear" />
</div>
<div class="searchfuntionBtnWrapper">
<van-button type="info" size="small" @click="exportFile">新增</van-button>
</div>
<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(item)">
<p class="">
计划名称:{{item.planName}}
</p>
<p class="">
发布日期:{{item.publishDate}}
</p>
<p class="">
演练描述:{{item.publishDesc}}
</p>
</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 {
planName: '',
value: '',
list: [],
loading: false,
finished: false,
page: 0,
size: 10,
total: 0
}
},
mounted() {
this.getList()
},
methods: {
detail(item){
gemhoUtil.navigatePage('./emergency-list.html?planId='+item.id)
},
resetSearchForm(){
this.page = 0
this.size = 20
this.total = 0
this.list = []
this.finished = false;
},
onClear(){
this.resetSearchForm()
this.getList()
},
onSearch(val){
this.resetSearchForm()
console.log('search', val)
this.getList()
},
exportFile(item){
http.downloadFile('/api/dangerJobReport/export',{
fileType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
fileName: 'DW-'+ gemhoUtil.getTargetDateYMD().replaceAll('-', '') +'.xlsx'
}).then((res)=>{
vant.Toast({
message: '操作成功',
})
this.loading = false; // 加载状态结束
})
},
add(){
gemhoUtil.navigatePage('./dw-list-detail.html?type=add')
},
edit(item){
gemhoUtil.navigatePage('./dw-list-detail.html?dwId='+item.id+'&type=edit')
},
getList(){
http.get('/api/enterpriseDrillPlans',{
page: this.page++,// 每次请求增加下一页
size: this.size,
planName: this.planName,
// companyId: gemhoUtil.getParameter('companyId'),
county: localStorage.getItem('appCounty'),
}).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; // 下滑不在刷新数据
}
})
}
},
});
});
\ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<body> <body>
<div id="app" v-block> <div id="app" v-block>
<div class="searchfuntionBtnWrapper"> <div class="searchfuntionBtnWrapper">
<van-button type="info" size="small" @click="add">新增</van-button> <van-button type="info" size="small" @click="add">{{addBtnText}}</van-button>
</div> </div>
<div class="content" v-cloak> <div class="content" v-cloak>
<van-list v-model:loading="loading" :offset="10" :finished="finished" finished-text="没有更多了" @load="getList"> <van-list v-model:loading="loading" :offset="10" :finished="finished" finished-text="没有更多了" @load="getList">
......
...@@ -120,7 +120,7 @@ window.addEventListener("load", function() { ...@@ -120,7 +120,7 @@ window.addEventListener("load", function() {
page: this.page++, // 每次请求增加下一页 page: this.page++, // 每次请求增加下一页
size: this.size, size: this.size,
county: localStorage.getItem('appCounty'), county: localStorage.getItem('appCounty'),
sort: 'verify_status,asc', // sort: 'verify_status,asc',
} }
if(this.curVerifyStatusVal){ if(this.curVerifyStatusVal){
reqParam.verifyState = this.curVerifyStatusVal reqParam.verifyState = this.curVerifyStatusVal
......
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