Commit 73eccc09 authored by 13841799530's avatar 13841799530

Merge branch 'develop' of http://git.censoft.com.cn/BCDH-HSE/bcdh-app into develop

parents f2926cf1 658d7065
Pipeline #7040 passed with stage
in 34 seconds
stages:
- build-develop
build:
stage: build-develop
only:
- develop
- master
allow_failure: true
script:
- chcp 65001
- cmd /c npm install
- cmd /c npm run build
- cmd /c npm run build
- cmd /c xcopy .\dist D:\BCDH-APP\nginx-1.18.0\html\dist /s /Y
tags:
- BCDH-APP
\ No newline at end of file
...@@ -10,11 +10,15 @@ ...@@ -10,11 +10,15 @@
<template> <template>
<div> <div>
<header class="header"> <!-- 加个吸顶 -->
<van-icon @click="to" name="arrow-left" class="iconColorLeft"/> <van-sticky>
<span>{{text}}</span> <header class="header">
<van-icon name="bars" class="iconColorRight"/> <van-icon @click="to" name="arrow-left" class="iconColorLeft"/>
</header> <span>{{text}}</span>
<!-- 为止有什么用图标注释 -->
<!-- <van-icon name="bars" class="iconColorRight"/> -->
</header>
</van-sticky>
</div> </div>
</template> </template>
......
...@@ -12,7 +12,7 @@ router.beforeEach(async(to, from, next) => { ...@@ -12,7 +12,7 @@ router.beforeEach(async(to, from, next) => {
const hasToken = getToken()//确定用户是否已登录 const hasToken = getToken()//确定用户是否已登录
if (hasToken) { if (hasToken) {
if (to.path === '/login2') { if (to.path === '/login2') {
next({ path: '/message-center' }) next({ path: '/save-workbench' })
} else { } else {
next() next()
} }
......
...@@ -262,6 +262,7 @@ const routes = [{ ...@@ -262,6 +262,7 @@ const routes = [{
}, },
{ {
path: '/add-danger', path: '/add-danger',
name: 'add-danger', name: 'add-danger',
...@@ -367,11 +368,12 @@ const routes = [{ ...@@ -367,11 +368,12 @@ const routes = [{
}, },
component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/danger/standBook'), component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/danger/standBook'),
}, },
{ {
path: '/normal-detail', path: '/normal-detail',
name: 'normal-detail', name: 'normal-detail',
meta: { meta: {
title: '隐患历史台账详情', title: '隐患详情',
index: 1 index: 1
}, },
component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/danger/standBook/normalDetail'), component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/danger/standBook/normalDetail'),
...@@ -532,9 +534,16 @@ const routes = [{ ...@@ -532,9 +534,16 @@ const routes = [{
component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/risk/riskAccount/riskBigDetail'), component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/risk/riskAccount/riskBigDetail'),
}, },
{
path:'/insert-danger',
name:'insert-danger',
meta:{
title:'我的上报',
index:1
},
component:()=>import('@/views/danger/insertDanger/list')
}
] ]
const router = new VueRouter({ const router = new VueRouter({
......
...@@ -265,6 +265,33 @@ export function delayEdit(url, data) { ...@@ -265,6 +265,33 @@ export function delayEdit(url, data) {
}) })
} }
// 隐患整改
export function list1(url="/rectification/list1", data) {
return request({
url,
method: 'post',
data
})
}
// 隐患整改已退回
export function list2(url="/rectification/list2", data) {
return request({
url,
method: 'post',
data
})
}
// 我的上报接口
export function myHDList(url="/hdreport/myHDList",data=null){
return request({
url,
method:'post',
data
})
}
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
setUserInfo(userInfo) setUserInfo(userInfo)
}) })
setToken(Response.data) setToken(Response.data)
this.$router.push('/message-center') this.$router.push('/save-workbench')
}else if(Response.code==301){ }else if(Response.code==301){
this.$toast.clear() this.$toast.clear()
this.$toast.fail({ this.$toast.fail({
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
.login { .login {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; // background-position: center;
background-attachment: fixed; background-attachment: fixed;
.login-logo { .login-logo {
width: 120px; width: 120px;
......
...@@ -65,12 +65,12 @@ ...@@ -65,12 +65,12 @@
/> />
<van-field name="uploader" label="图像上传" :rules="[{ required: true, message: '请上传图像' }]"> <van-field name="uploader" label="图像上传" :rules="[{ required: true, message: '请上传图像' }]">
<template #input> <template #input>
<van-uploader v-model="uploaderImg" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderImg" />
</template> </template>
</van-field> </van-field>
<van-field name="uploader2" label="视频上传" :rules="[{ required: true, message: '请上传视频' }]"> <van-field name="uploader2" label="视频上传" :rules="[{ required: true, message: '请上传视频' }]">
<template #input> <template #input>
<van-uploader v-model="uploaderVideo" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderVideo" />
</template> </template>
</van-field> </van-field>
<div style="margin: 0.5rem"> <div style="margin: 0.5rem">
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
label="退回原因" label="退回原因"
type="textarea" type="textarea"
/> />
<van-field <van-field
readonly readonly
...@@ -122,7 +123,7 @@ ...@@ -122,7 +123,7 @@
:value="findTime" :value="findTime"
label="隐患发现时间" label="隐患发现时间"
placeholder="点击选择日期" placeholder="点击选择日期"
@click="showFindTime = true" @click="showFindTime = true; currentDate = new Date()"
:rules="[{ required: true, message: '隐患发现时间不能为空' }]" :rules="[{ required: true, message: '隐患发现时间不能为空' }]"
/> />
<van-popup v-model="showFindTime" position="bottom"> <van-popup v-model="showFindTime" position="bottom">
...@@ -209,13 +210,13 @@ ...@@ -209,13 +210,13 @@
<van-field name="hdPicture1" label="隐患照片"> <van-field name="hdPicture1" label="隐患照片">
<template #input> <template #input>
<van-uploader v-model="uploaderImg" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderImg" />
</template> </template>
</van-field> </van-field>
<van-field name="hdVideo1" label="隐患视频"> <van-field name="hdVideo1" label="隐患视频">
<template #input> <template #input>
<van-uploader v-model="uploaderVideo" accept="video/*" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderVideo" accept="video/*" />
</template> </template>
</van-field> </van-field>
<van-field <van-field
...@@ -225,7 +226,7 @@ ...@@ -225,7 +226,7 @@
:value="expireTime" :value="expireTime"
label="隐患到期时间" label="隐患到期时间"
placeholder="点击选择日期" placeholder="点击选择日期"
@click="showExpireTime = true" @click="showExpireTime = true; currentDate = new Date()"
/> />
<van-popup v-model="showExpireTime" position="bottom"> <van-popup v-model="showExpireTime" position="bottom">
<van-datetime-picker <van-datetime-picker
...@@ -287,21 +288,27 @@ export default { ...@@ -287,21 +288,27 @@ export default {
components: { components: {
LHeader, LHeader,
}, },
activated() { activated(){
this.taskId = this.$route.params.taskId; this.taskId = this.$route.params.taskId || localStorage.getItem('dangerAddTaskId');
console.log(this.taskId );
if (this.taskId) { if (this.taskId) {
this.isShowreturnCause = true; this.isShowreturnCause = true;
this.text = "隐患上报退回"; this.text = "隐患上报退回";
this.postReturnEcho(); this.postReturnEcho();
} }
this.getList(); this.getList();
},
mounted() {
this.$bus.$on("sourceAyy", res => { this.$bus.$on("sourceAyy", res => {
this.source1 = res.join(","); this.source1 = res.join(",");
// 销毁一下监听事件 不然会越加越多
this.$bus.$off('riskLevelBus')
}); });
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
if (to.name != "choose-people") { if (to.name != "choose-people") {
this.text = "新增隐患",
this.projectId = ""; // 所属工程 this.projectId = ""; // 所属工程
this.taskId = ""; this.taskId = "";
this.projectName = ""; this.projectName = "";
...@@ -337,6 +344,9 @@ export default { ...@@ -337,6 +344,9 @@ export default {
this.columnsRecPeople = []; this.columnsRecPeople = [];
this.isShowreturnCause = false; this.isShowreturnCause = false;
this.returnCause = ""; // 退回原因 this.returnCause = ""; // 退回原因
this.currentDate = new Date()
// 清空 localStorage
localStorage.removeItem('dangerAddTaskId')
} }
next(); next();
}, },
...@@ -382,13 +392,10 @@ export default { ...@@ -382,13 +392,10 @@ export default {
currentDate : new Date() currentDate : new Date()
}; };
}, },
created() {
},
methods: { methods: {
onSubmit(values) { onSubmit(values) {
let formdata = new FormData(); let formdata = new FormData();
formdata.append("proId", this.projectId); formdata.append("proId", this.projectId);
formdata.append("hdRange", values.hdRange); formdata.append("hdRange", values.hdRange);
formdata.append("hdType", values.hdType); formdata.append("hdType", values.hdType);
...@@ -419,6 +426,7 @@ export default { ...@@ -419,6 +426,7 @@ export default {
if (this.taskId) { if (this.taskId) {
url = `/hdreport/editSave/${this.taskId}`; url = `/hdreport/editSave/${this.taskId}`;
} }
console.log(url);
postHdReportAdd(url, formdata) postHdReportAdd(url, formdata)
.then((res) => { .then((res) => {
...@@ -544,6 +552,7 @@ export default { ...@@ -544,6 +552,7 @@ export default {
onConFindTime(date) { onConFindTime(date) {
this.findTime = timestampToTime(date, "DT1", true); this.findTime = timestampToTime(date, "DT1", true);
this.showFindTime = false; this.showFindTime = false;
// this.currentDate = new Date()
}, },
// 风险源 // 风险源
onConSource(value) { onConSource(value) {
...@@ -582,6 +591,7 @@ export default { ...@@ -582,6 +591,7 @@ export default {
onConExpireTime(date) { onConExpireTime(date) {
this.expireTime = timestampToTime(date, "DT1", true); this.expireTime = timestampToTime(date, "DT1", true);
this.showExpireTime = false; this.showExpireTime = false;
// this.currentDate = new Date()
}, },
// 隐患整改人 // 隐患整改人
onConRecPeople(value) { onConRecPeople(value) {
......
...@@ -67,13 +67,13 @@ ...@@ -67,13 +67,13 @@
<van-field name="uploader" label="整改照片" :rules="[{ required: true, message: '整改照片不能为空' }]"> <van-field name="uploader" label="整改照片" :rules="[{ required: true, message: '整改照片不能为空' }]">
<template #input> <template #input>
<van-uploader v-model="uploaderImg" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderImg" />
</template> </template>
</van-field> </van-field>
<van-field name="uploader2" label="整改视频"> <van-field name="uploader2" label="整改视频">
<template #input> <template #input>
<van-uploader v-model="uploaderVideo" accept="video/*" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderVideo" accept="video/*" />
</template> </template>
</van-field> </van-field>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
:value="delayTime" :value="delayTime"
label="延期时间" label="延期时间"
placeholder="点击选择日期" placeholder="点击选择日期"
@click="showDelayTime = true" @click="showDelayTime = true; currentDate = new Date()"
:rules="[{ required: true, message: '延期时间不能为空' }]" :rules="[{ required: true, message: '延期时间不能为空' }]"
/> />
<van-popup v-model="showDelayTime" position="bottom"> <van-popup v-model="showDelayTime" position="bottom">
......
This diff is collapsed.
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
:value="value" :value="value"
label="整改截止时间" label="整改截止时间"
placeholder="点击选择日期" placeholder="点击选择日期"
@click="showCalendar = true" @click="showCalendar = true;currentDate = new Date()"
:rules="[{ required: true, message: '请选择日期' }]" :rules="[{ required: true, message: '请选择日期' }]"
/> />
<van-popup v-model="showCalendar" position="bottom"> <van-popup v-model="showCalendar" position="bottom">
...@@ -197,6 +197,7 @@ export default { ...@@ -197,6 +197,7 @@ export default {
vm.returnReason = ""; vm.returnReason = "";
vm.getFormList(); vm.getFormList();
// 清空数据 // 清空数据
vm.currentDate = new Date()
} }
}); });
}, },
...@@ -233,8 +234,8 @@ export default { ...@@ -233,8 +234,8 @@ export default {
let formdata = new FormData(); let formdata = new FormData();
formdata.append("confirmResult", this.radio); formdata.append("confirmResult", this.radio);
formdata.append("endTime", values.endTime); formdata.append("endTime", values.endTime);
formdata.append("rectificationUser", this.rectificationUser); formdata.append("rectificationUser", values.rectificationUser);
formdata.append("rectificationReview", this.rectificationReview); formdata.append("rectificationReview", values.rectificationReview);
formdata.append("confirmOpinion", values.confirmOpinion); formdata.append("confirmOpinion", values.confirmOpinion);
this.$toast.loading({ this.$toast.loading({
message: "提交中...", message: "提交中...",
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter="">
<van-col span="5">隐患编号:</van-col>
<van-col span="19">{{ item.businessId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">所属项目:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
...@@ -19,6 +22,10 @@ ...@@ -19,6 +22,10 @@
<van-col span="5">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="19">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">适用范围:</van-col> <van-col span="5">适用范围:</van-col>
<van-col span="19">{{ item.hdRange }}</van-col> <van-col span="19">{{ item.hdRange }}</van-col>
...@@ -27,13 +34,9 @@ ...@@ -27,13 +34,9 @@
<van-col span="5">隐患类型:</van-col> <van-col span="5">隐患类型:</van-col>
<van-col span="19">{{ item.hdType }}</van-col> <van-col span="19">{{ item.hdType }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -102,6 +105,7 @@ export default { ...@@ -102,6 +105,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<!-- 接口对接4 START --> <!-- 接口对接4 START -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患编号:</van-col> <van-col span="5">隐患编号:</van-col>
<van-col span="17">{{ item.businessId }}</van-col> <van-col span="19">{{ item.businessId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="17">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">发现时间:</van-col> <van-col span="5">发现时间:</van-col>
<van-col span="17">{{ item.startDate }}</van-col> <van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -110,6 +109,7 @@ export default { ...@@ -110,6 +109,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
> >
<van-field <van-field
v-model="applyDate" v-model="applyDate"
readonly
name="applyDate" name="applyDate"
label="延期时间" label="延期时间"
placeholder="请输入" placeholder="请输入"
......
<template>
<div>
<LHeader :text="text"></LHeader>
<!-- -->
<!-- 内容列表 -->
<div class="con-list" @touchmove="showIndex = null">
<van-cell-group
inset
v-for="(item, index) in messageList"
:key="index"
@click="touchstart(index, item)"
>
<van-row gutter="">
<van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="5">隐患级别:</van-col>
<van-col span="19">{{ item.hdLev }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="5">适用范围:</van-col>
<van-col span="19">{{ item.hdRange }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="5">隐患类型:</van-col>
<van-col span="19">{{ item.hdType }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<!-- <van-row gutter="">
<van-col span="5">状态:</van-col>
<van-col span="19">{{ item.taskName }}</van-col>
</van-row> -->
<!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)"
>详情</van-button
>
</div>
</van-overlay>
</van-cell-group>
</div>
<!-- 暂无数据 -->
<div
style="width: 100%;text-align: center; font-size: .48rem;position: fixed; top: 30%;"
v-if="isHaveNews"
>
暂无数据
</div>
</div>
</template>
<script>
import LHeader from "@/components/header.vue";
import {dangerReturnDel,myHDList} from "@/service/danger";
export default {
components: {
LHeader: LHeader
},
data() {
return {
text: "我的上报",
searchValue: "",
isHaveNews: false,
messageList: [],
Loop: "", // 定时器
showIndex: null // 是否显示遮罩层
};
},
created() {
this.postList();
},
methods: {
postList() {
this.$toast.loading({
message: "加载中...",
forbidClick: true,
loadingType: "spinner",
duration: 0
});
myHDList()
.then(res => {
this.$toast.clear();
this.messageList = res.data;
// 判断有无数据返回
if (this.messageList.length == 0) {
this.isHaveNews = true;
}
})
.catch(() => {
this.$toast.clear();
this.$toast.fail("加载失败,请稍后再试");
});
},
onSearch(val) {
},
touchstart(index, item) {
if (this.showIndex != null) {
this.showIndex = null;
return
}
this.showIndex = index;
},
goDetail(data){
this.$router.push({
// name: "insert-danger-detail",
name:"normal-detail",
params: {
id: data.id,
detailTitle:'上报详情'
}
});
this.showIndex = null;
},
// 提交
goSubmit(data) {
this.$router.push({
name: "add-danger",
params: {
status: "退回",
taskId: data.taskId
}
});
this.showIndex = null;
},
// 删除
goDelete(data) {
this.$toast.loading({
message: "删除中...",
forbidClick: true,
loadingType: "spinner",
duration: 0
});
dangerReturnDel(`/hdreport/delete/${data.taskId}`)
.then(res => {
this.$toast.clear();
this.$toast.success({
message: "删除成功",
duration: 2000
});
this.postList();
})
.catch(() => {
this.$toast.clear();
this.$toast.fail("删除失败,请稍后再试");
});
this.showIndex = null;
}
}
};
</script>
<style lang="less" scoped>
/* @import url(); 引入css类 */
.con-list {
padding: 10px 10px 0.533333rem;
background-color: #f0f1f5;
.van-cell-group--inset {
margin: 0;
margin-bottom: 10px;
padding: 10px;
font-size: 13px;
position: relative;
.van-row {
margin-bottom: 0.133333rem;
line-height: 0.64rem;
}
.van-overlay {
position: absolute;
.wrapper {
display: flex;
align-items: center;
justify-content: space-evenly;
height: 100%;
}
}
}
}
</style>
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<!-- 接口对接4 START --> <!-- 接口对接4 START -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
...@@ -13,27 +13,26 @@ ...@@ -13,27 +13,26 @@
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患编号:</van-col> <van-col span="5">隐患编号:</van-col>
<van-col span="17">{{ item.businessId }}</van-col> <van-col span="19">{{ item.businessId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="17">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">发现时间:</van-col> <van-col span="5">发现时间:</van-col>
<van-col span="17">{{ item.startDate }}</van-col> <van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -124,6 +123,7 @@ export default { ...@@ -124,6 +123,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
<!-- 详情 --> <!-- 详情 -->
<div class="detail">详情</div> <div class="detail">详情</div>
</van-cell-group> </van-cell-group>
<van-form <van-form
@submit="onSubmit" @submit="onSubmit"
:show-error='false' :show-error='false'
...@@ -69,7 +67,7 @@ ...@@ -69,7 +67,7 @@
name="thinkHdLev" name="thinkHdLev"
:value="thinkLevel" :value="thinkLevel"
label="认定隐患级别" label="认定隐患级别"
placeholder="请选择" placeholder="重大隐患"
@click="showThinkLevel = true" @click="showThinkLevel = true"
:rules="[{ required: true, message: '认定隐患级别不能为空' }]" :rules="[{ required: true, message: '认定隐患级别不能为空' }]"
/> />
...@@ -124,7 +122,7 @@ export default { ...@@ -124,7 +122,7 @@ export default {
text: "重大隐患审批", text: "重大隐患审批",
agreeOpinion: "", agreeOpinion: "",
disagreeOpinion: "", disagreeOpinion: "",
thinkLevel:'', //因为隐患级别 thinkLevel:'重大隐患', //因为隐患级别
showThinkLevel: false, showThinkLevel: false,
columnsThinkLevel:["重大隐患","一般隐患A","一般隐患B","一般隐患C",] columnsThinkLevel:["重大隐患","一般隐患A","一般隐患B","一般隐患C",]
...@@ -160,7 +158,7 @@ export default { ...@@ -160,7 +158,7 @@ export default {
let formdata = new FormData() let formdata = new FormData()
formdata.append('isResult', values.isResult) formdata.append('isResult', values.isResult)
formdata.append('details', values.details) formdata.append('details', values.details)
formdata.append('thinkHdLev', values.thinkHdLev) formdata.append('thinkHdLev',values.isResult==1?'重大隐患':values.thinkHdLev)
formdata.append('taskId', this.taskId) formdata.append('taskId', this.taskId)
majorAdd(`/majorapprove/add`,formdata) majorAdd(`/majorapprove/add`,formdata)
.then(res => { .then(res => {
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<!-- 接口对接4 START --> <!-- 接口对接4 START -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
...@@ -13,26 +13,26 @@ ...@@ -13,26 +13,26 @@
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患编号:</van-col> <van-col span="5">隐患编号:</van-col>
<van-col span="17">{{ item.hdProjectId }}</van-col> <van-col span="19">{{ item.pid }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="17">{{ item.projectName }}</van-col> <van-col span="19">{{ item.projectName }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="17">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患发现时间:</van-col> <van-col span="5">发现时间:</van-col>
<van-col span="17">{{ item.createTime }}</van-col> <van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -122,6 +122,7 @@ export default { ...@@ -122,6 +122,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter="">
<van-col span="5">隐患编号:</van-col>
<van-col span="19">{{ item.businessId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">所属项目:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
...@@ -18,6 +22,10 @@ ...@@ -18,6 +22,10 @@
<van-col span="5">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="19">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">适用范围:</van-col> <van-col span="5">适用范围:</van-col>
<van-col span="19">{{ item.hdRange }}</van-col> <van-col span="19">{{ item.hdRange }}</van-col>
...@@ -26,18 +34,10 @@ ...@@ -26,18 +34,10 @@
<van-col span="5">隐患类型:</van-col> <van-col span="5">隐患类型:</van-col>
<van-col span="19">{{ item.hdType }}</van-col> <van-col span="19">{{ item.hdType }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="5">状态:</van-col>
<van-col span="19">{{ item.taskName }}</van-col>
</van-row>
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goSubmit(item)" <van-button round type="primary" @click="goSubmit(item)"
>上报</van-button >上报</van-button
> >
...@@ -106,11 +106,12 @@ export default { ...@@ -106,11 +106,12 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
// 提交 // 上报
goSubmit(data) { goSubmit(data) {
this.$router.push({ this.$router.push({
name: "add-danger", name: "add-danger",
...@@ -119,6 +120,8 @@ export default { ...@@ -119,6 +120,8 @@ export default {
taskId: data.taskId taskId: data.taskId
} }
}); });
// 存到缓存里 如果路由跳转或者是缓存中有 就是隐患上报退回
localStorage.setItem('dangerAddTaskId',data.taskId)
this.showIndex = null; this.showIndex = null;
}, },
// 删除 // 删除
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter="">
<van-col span="5">隐患编号:</van-col>
<van-col span="19">{{ item.businessId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">所属项目:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
...@@ -18,6 +22,10 @@ ...@@ -18,6 +22,10 @@
<van-col span="5">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="19">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">适用范围:</van-col> <van-col span="5">适用范围:</van-col>
<van-col span="19">{{ item.hdRange }}</van-col> <van-col span="19">{{ item.hdRange }}</van-col>
...@@ -26,22 +34,14 @@ ...@@ -26,22 +34,14 @@
<van-col span="5">隐患类型:</van-col> <van-col span="5">隐患类型:</van-col>
<van-col span="19">{{ item.hdType }}</van-col> <van-col span="19">{{ item.hdType }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">超期标识:</van-col> <van-col span="5">超期标识:</van-col>
<van-col span="19">{{ item | formatTime }}</van-col> <van-col span="19">{{ item | formatTime }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">状态:</van-col>
<van-col span="19">{{ item.taskName }}</van-col>
</van-row>
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
label="隐患复查照片" label="隐患复查照片"
> >
<template #input> <template #input>
<van-uploader v-model="uploaderImg" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="uploaderImg" />
</template> </template>
</van-field> </van-field>
</div> </div>
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter="">
<van-col span="5">隐患编号:</van-col>
<van-col span="19">{{ item.businessId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">所属项目:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
...@@ -19,6 +22,10 @@ ...@@ -19,6 +22,10 @@
<van-col span="5">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="19">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">适用范围:</van-col> <van-col span="5">适用范围:</van-col>
<van-col span="19">{{ item.hdRange }}</van-col> <van-col span="19">{{ item.hdRange }}</van-col>
...@@ -27,23 +34,15 @@ ...@@ -27,23 +34,15 @@
<van-col span="5">隐患类型:</van-col> <van-col span="5">隐患类型:</van-col>
<van-col span="19">{{ item.hdType }}</van-col> <van-col span="19">{{ item.hdType }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">超期标识:</van-col> <van-col span="5">超期标识:</van-col>
<van-col span="19">{{ item | formatTime }}</van-col> <van-col span="19">{{ item | formatTime }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">状态:</van-col>
<van-col span="19">{{ item.taskName }}</van-col>
</van-row>
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -110,6 +109,7 @@ export default { ...@@ -110,6 +109,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
<van-col span="5" <van-col span="5"
><span class="field-title">结果:</span></van-col ><span class="field-title">结果:</span></van-col
> >
<van-col span="19">{{['退回','合格'][item.isResult]}}</van-col> <van-col span="19">{{ item.isResult == 1 ? "通过" : "退回"}}</van-col>
</van-row> </van-row>
<van-row> <van-row>
<van-col span="5" <van-col span="5"
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
<div class="step-wrap"> <div class="step-wrap">
<van-row> <van-row>
<van-col span="24" <van-col span="24"
><div class="info-title">日志信息</div></van-col ><div class="info-title">{{item.createTime}}</div></van-col
> >
</van-row> </van-row>
<van-row> <van-row>
...@@ -354,12 +354,7 @@ ...@@ -354,12 +354,7 @@
> >
<van-col span="19">{{ item.deptName }}</van-col> <van-col span="19">{{ item.deptName }}</van-col>
</van-row> </van-row>
<van-row>
<van-col span="5"
><span class="field-title">时间:</span></van-col
>
<van-col span="19">{{ item.createTime }}</van-col>
</van-row>
</div> </div>
</van-step> </van-step>
</van-steps> </van-steps>
...@@ -443,7 +438,7 @@ export default { ...@@ -443,7 +438,7 @@ export default {
data() { data() {
return { return {
id: "", id: "",
text: "隐患历史台账详情", text: "隐患详情",
reportOpen: false, reportOpen: false,
reportOpenText: "展开 ▼", reportOpenText: "展开 ▼",
journalOpen: false, journalOpen: false,
...@@ -468,10 +463,14 @@ export default { ...@@ -468,10 +463,14 @@ export default {
}; };
}, },
created() { created() {
if(this.$route.params.detailTitle){
this.text=this.$route.params.detailTitle
}
this.id = this.$route.params.id; this.id = this.$route.params.id;
if (this.id) { if (this.id) {
this.postDetail(); this.postDetail();
} }
}, },
methods: { methods: {
// 请求台账信息 // 请求台账信息
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<!-- 接口对接4 START --> <!-- 接口对接4 START -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患编号:</van-col> <van-col span="5">隐患编号:</van-col>
<van-col span="17">{{ item.processInstanceId }}</van-col> <van-col span="19">{{ item.businessId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="17">{{ item.projectName }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="5">隐患级别:</van-col>
<van-col span="17">{{ item.hdLev }}</van-col> <van-col span="19">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患发现时间:</van-col> <van-col span="5">发现时间:</van-col>
<van-col span="17">{{ item.createTime }}</van-col> <van-col span="19">{{ item.hdDiscoveryTime }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<van-tab title="消息信息" name="消息信息" :badge="messageNewsNum>0?messageNewsNum : ''"> <van-tab title="消息信息" name="消息信息" :badge="messageNewsNum>0?messageNewsNum : ''">
<message-news @messageLength="getMessageLength"></message-news> <message-news @messageLength="getMessageLength"></message-news>
</van-tab> </van-tab>
<van-tab title="待办事项" name="待办事项" badge=""> <van-tab title="" name="" disabled badge="">
<wait-event></wait-event> <wait-event></wait-event>
</van-tab> </van-tab>
<van-tab title="通知公告" name="通知公告" badge=""> <van-tab title="" name="" disabled badge="">
<notice-info></notice-info> <notice-info></notice-info>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
......
...@@ -14,12 +14,11 @@ ...@@ -14,12 +14,11 @@
</div> </div>
<!-- 搜索 --> <!-- 搜索 -->
<div class="search-wrap"> <!-- <div class="search-wrap">
<van-search v-model="searchVal" placeholder="搜索" @search="onSearch" /> <van-search v-model="searchVal" placeholder="搜索" @search="onSearch" />
</div> </div> -->
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<!-- <van-pull-refresh v-model="refreshing" @refresh="onRefresh"> <!-- <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list <van-list
v-model="loading" v-model="loading"
...@@ -34,7 +33,7 @@ ...@@ -34,7 +33,7 @@
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<!--@touchend.prevent="touchend(index)" 长按备份--> <!--@touchend.prevent="touchend(index)" 长按备份-->
<div class="messgae-title">{{ item.noticeTitle }}</div> <div class="messgae-title"><span>{{ item.noticeTitle }}</span> <span>{{item.sendTime}}</span> </div>
<div class="message-content"> <div class="message-content">
{{ item.upcomingUserName }},您好!您有一条来自{{ {{ item.upcomingUserName }},您好!您有一条来自{{
item.createUserName item.createUserName
...@@ -43,18 +42,14 @@ ...@@ -43,18 +42,14 @@
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index" v-if="item.status == '未读'">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <!-- <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >查看</van-button
> > -->
<!-- @touchstart="goDetail(item)" 长按备份-->
<van-button round type="info" @click="goConfirm(item)"
>整改</van-button
>
<van-button <van-button
round round
type="warning" type="info"
@click="read(item)" @click="read(item)"
v-if="item.status == '未读'" v-if="item.status == '未读'"
>已读</van-button >已读</van-button
...@@ -203,7 +198,7 @@ export default { ...@@ -203,7 +198,7 @@ export default {
// clearTimeout(this.Loop); //再次清空延时器,防止重复注册定时器 // clearTimeout(this.Loop); //再次清空延时器,防止重复注册定时器
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
// return; return;
} }
this.showIndex = index; this.showIndex = index;
// this.Loop = setTimeout( // this.Loop = setTimeout(
...@@ -222,10 +217,7 @@ export default { ...@@ -222,10 +217,7 @@ export default {
goDetail(data) { goDetail(data) {
this.showIndex = null; this.showIndex = null;
}, },
// 整改
goConfirm(data) {
this.showIndex = null;
}
} }
}; };
</script> </script>
...@@ -266,12 +258,18 @@ export default { ...@@ -266,12 +258,18 @@ export default {
} }
// 内容 // 内容
.con-list { .con-list {
margin-top: .266667rem;
.van-cell-group--inset { .van-cell-group--inset {
margin: 0; margin: 0;
margin-bottom: 10px; margin-bottom: 10px;
padding: 10px; padding: 10px;
font-size: 13px; font-size: 13px;
position: relative; position: relative;
.messgae-title{
display: flex;
justify-content: space-between;
align-items: center;
}
.message-content { .message-content {
margin-top: 10px; margin-top: 10px;
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<!-- 接口对接4 START --> <!-- 接口对接4 START -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
...@@ -13,30 +13,30 @@ ...@@ -13,30 +13,30 @@
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">风险编号:</van-col> <van-col span="5">风险编号:</van-col>
<van-col span="17">{{ item.processInstanceId }}</van-col> <van-col span="19">{{ item.businessId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">所属工程名称:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">风险等级:</van-col> <van-col span="5">风险级别:</van-col>
<van-col span="17">{{ item.riskLevel }}</van-col> <van-col span="19">{{ item.riskLevel }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">风险源:</van-col> <van-col span="5">发现时间:</van-col>
<van-col span="17">{{ item.riskSource }}</van-col> <van-col span="19">{{ item.startDate }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">创建时间:</van-col> <van-col span="5">风险源:</van-col>
<van-col span="17">{{ item.startDate }}</van-col> <van-col span="19">{{ item.riskSource }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -123,6 +123,7 @@ export default { ...@@ -123,6 +123,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<div class="step-wrap"> <div class="step-wrap">
<van-row> <van-row>
<van-col span="24" <van-col span="24"
><div class="info-title">日志信息</div></van-col ><div class="info-title">{{item.createTime}}</div></van-col
> >
</van-row> </van-row>
<van-row> <van-row>
...@@ -184,12 +184,7 @@ ...@@ -184,12 +184,7 @@
> >
<van-col span="19">{{item.deptName}}</van-col> <van-col span="19">{{item.deptName}}</van-col>
</van-row> </van-row>
<van-row>
<van-col span="5"
><span class="field-title">时间:</span></van-col
>
<van-col span="19">{{item.createTime}}</van-col>
</van-row>
</div> </div>
</van-step> </van-step>
</van-steps> </van-steps>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<van-field <van-field
v-if="isShowreturnCause" v-if="isShowreturnCause"
v-model="returnCause" v-model="returnCause"
required
readonly readonly
rows="1" rows="1"
autosize="" autosize=""
...@@ -19,6 +20,7 @@ ...@@ -19,6 +20,7 @@
/> />
<van-field <van-field
v-if="!isShowreturnCause" v-if="!isShowreturnCause"
required
readonly readonly
clickable clickable
name="projectName" name="projectName"
...@@ -40,6 +42,7 @@ ...@@ -40,6 +42,7 @@
<van-field <van-field
readonly readonly
required
clickable clickable
name="factor" name="factor"
:value="factor" :value="factor"
...@@ -60,6 +63,7 @@ ...@@ -60,6 +63,7 @@
<van-field <van-field
readonly readonly
required
clickable clickable
name="source" name="source"
:value="source" :value="source"
...@@ -80,6 +84,7 @@ ...@@ -80,6 +84,7 @@
<van-field <van-field
readonly readonly
required
clickable clickable
name="trouble" name="trouble"
:value="trouble" :value="trouble"
...@@ -101,6 +106,7 @@ ...@@ -101,6 +106,7 @@
<van-field <van-field
readonly readonly
clickable clickable
required
name="setRank" name="setRank"
:value="setRank" :value="setRank"
label="风险定级" label="风险定级"
...@@ -119,8 +125,9 @@ ...@@ -119,8 +125,9 @@
<van-field <van-field
readonly readonly
required
clickable clickable
name="setRank" name="riskRank"
:value="riskRank" :value="riskRank"
label="风险等级" label="风险等级"
placeholder="请选择" placeholder="请选择"
...@@ -146,6 +153,7 @@ ...@@ -146,6 +153,7 @@
/> --> /> -->
<van-field <van-field
v-show="showSetRankMode"
v-model="setRankMode" v-model="setRankMode"
name="setRankMode" name="setRankMode"
label="定级方式" label="定级方式"
...@@ -154,14 +162,15 @@ ...@@ -154,14 +162,15 @@
autosize autosize
placeholder="请输入" placeholder="请输入"
/> />
<van-field name="setRankModeFile" label=" "> <van-field name="setRankModeFile" label=" " v-show="showSetRankMode">
<template #input> <template #input>
<van-uploader v-model="setRankModeImg" accept="file" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="setRankModeImg" accept="file" />
</template> </template>
</van-field> </van-field>
<van-field <van-field
v-model="location" v-model="location"
required
name="location" name="location"
label="风险部位" label="风险部位"
type="textarea" type="textarea"
...@@ -174,6 +183,7 @@ ...@@ -174,6 +183,7 @@
<van-field <van-field
readonly readonly
clickable clickable
required
name="control" name="control"
:value="control" :value="control"
label="管控层级" label="管控层级"
...@@ -239,7 +249,7 @@ ...@@ -239,7 +249,7 @@
/> />
<van-field name="technologyFile" label=" "> <van-field name="technologyFile" label=" ">
<template #input> <template #input>
<van-uploader v-model="technologyImg" accept="file" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="technologyImg" accept="file" />
</template> </template>
</van-field> </van-field>
...@@ -254,7 +264,7 @@ ...@@ -254,7 +264,7 @@
/> />
<van-field name="administrationFile" label=" "> <van-field name="administrationFile" label=" ">
<template #input> <template #input>
<van-uploader v-model="administrationImg" accept="file" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="administrationImg" accept="file" />
</template> </template>
</van-field> </van-field>
...@@ -269,7 +279,7 @@ ...@@ -269,7 +279,7 @@
/> />
<van-field name="urgentFile" label=" "> <van-field name="urgentFile" label=" ">
<template #input> <template #input>
<van-uploader v-model="urgentImg" accept="file" /> <van-uploader multiple :max-count="5" upload-text="最多上传五个" v-model="urgentImg" accept="file" />
</template> </template>
</van-field> </van-field>
...@@ -315,11 +325,19 @@ export default { ...@@ -315,11 +325,19 @@ export default {
this.$bus.$on("riskLevelBus", res => { this.$bus.$on("riskLevelBus", res => {
this.showSetRank = false // 再次关闭弹出层 以防万一 this.showSetRank = false // 再次关闭弹出层 以防万一
this.riskRank = res console.log(Boolean(res))
if(res){
this.riskRank = res
}else{
this.setRank = ""
}
// 销毁一下监听事件 不然会越加越多
this.$bus.$off('riskLevelBus')
}); });
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
if (to.name != "matrix-grad") { if (to.name != "matrix-grad") {
this.text = "新增风险",
this.taskId = "", this.taskId = "",
this.id = "", this.id = "",
this.projectId = "", // 所属工程 this.projectId = "", // 所属工程
...@@ -390,6 +408,7 @@ export default { ...@@ -390,6 +408,7 @@ export default {
riskRank: "", // 风险等级 riskRank: "", // 风险等级
showRiskRank: false, showRiskRank: false,
columnsRiskRank: ["一般风险", "较小风险", "较大风险", "重大风险"], columnsRiskRank: ["一般风险", "较小风险", "较大风险", "重大风险"],
showSetRankMode: false, // 是否显示定级方式
setRankMode: "", // 定级方式文字 setRankMode: "", // 定级方式文字
setRankModeImg: [], // 定级方式图片 setRankModeImg: [], // 定级方式图片
location: "", //风险部位 location: "", //风险部位
...@@ -470,7 +489,6 @@ export default { ...@@ -470,7 +489,6 @@ export default {
formdata.append("id", this.id); formdata.append("id", this.id);
url = `/riskMain/editSave/${this.taskId}`; url = `/riskMain/editSave/${this.taskId}`;
} }
postReAdd(url, formdata) postReAdd(url, formdata)
.then(res => { .then(res => {
this.$toast.clear(); this.$toast.clear();
...@@ -484,6 +502,7 @@ export default { ...@@ -484,6 +502,7 @@ export default {
this.$toast.clear(); this.$toast.clear();
this.$toast.fail("提交失败,请稍后再试"); this.$toast.fail("提交失败,请稍后再试");
}); });
this.$toast.clear();
}, },
// 请求表单数据 // 请求表单数据
...@@ -637,7 +656,16 @@ export default { ...@@ -637,7 +656,16 @@ export default {
cancel() { cancel() {
this.$router.go(-1); this.$router.go(-1);
} }
} },
watch:{
setRank(newVal, oldVal){
if(newVal == '其他定级方式'){
this.showSetRankMode = true
}else{
this.showSetRankMode = false
}
}
},
}; };
</script> </script>
<style scoped> <style scoped>
......
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
message: "提交成功", message: "提交成功",
duration: 2000 duration: 2000
}); });
this.$bus.$emit("riskLevelBus", res.data.evaluateLevel) this.$bus.$emit("riskLevelBus", res.data.evaluateLevel)
history.go(-1); history.go(-1);
}) })
...@@ -96,7 +97,9 @@ export default { ...@@ -96,7 +97,9 @@ export default {
}, },
cancel() { cancel() {
this.$bus.$emit("riskLevelBus", 0)
this.$router.go(-1); this.$router.go(-1);
} }
} }
}; };
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter="">
<van-col span="5">风险编号:</van-col>
<van-col span="19">{{ item.businessId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">所属项目:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">风险等级:</van-col> <van-col span="5">风险级别:</van-col>
<van-col span="19">{{ item.riskLevel }}</van-col> <van-col span="19">{{ item.riskLevel }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.startDate }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">风险源:</van-col> <van-col span="5">风险源:</van-col>
<van-col span="19">{{ item.riskSource }}</van-col> <van-col span="19">{{ item.riskSource }}</van-col>
...@@ -45,7 +53,7 @@ ...@@ -45,7 +53,7 @@
</van-row> </van-row>
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>详情</van-button >详情</van-button
> >
...@@ -117,6 +125,7 @@ export default { ...@@ -117,6 +125,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
......
<template> <template>
<div> <div>
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<van-search v-model="searchValue" placeholder="搜索" @search="onSearch" />
<!-- 内容列表 --> <!-- 内容列表 -->
<div class="con-list"> <div class="con-list" @touchmove="showIndex = null">
<van-cell-group <van-cell-group
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@change="touchstart(index, item)" @click="touchstart(index, item)"
> >
<van-row gutter="">
<van-col span="5">风险编号:</van-col>
<van-col span="19">{{ item.businessId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">所属项目:</van-col> <van-col span="5">所属项目:</van-col>
<van-col span="19">{{ item.proId }}</van-col> <van-col span="19">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">风险等级:</van-col> <van-col span="5">风险级别:</van-col>
<van-col span="19">{{ item.riskLevel }}</van-col> <van-col span="19">{{ item.riskLevel }}</van-col>
</van-row> </van-row>
<van-row gutter="">
<van-col span="5">发现时间:</van-col>
<van-col span="19">{{ item.startDate }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="5">风险源:</van-col> <van-col span="5">风险源:</van-col>
<van-col span="19">{{ item.riskSource }}</van-col> <van-col span="19">{{ item.riskSource }}</van-col>
...@@ -46,7 +54,7 @@ ...@@ -46,7 +54,7 @@
<!-- 长按显示遮罩层 --> <!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index"> <van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop> <div class="wrapper" @click.stop ="showIndex = null">
<van-button round type="primary" @click="goDetail(item)" <van-button round type="primary" @click="goDetail(item)"
>上报</van-button >上报</van-button
> >
...@@ -117,6 +125,7 @@ export default { ...@@ -117,6 +125,7 @@ export default {
touchstart(index, item) { touchstart(index, item) {
if (this.showIndex != null) { if (this.showIndex != null) {
this.showIndex = null; this.showIndex = null;
return
} }
this.showIndex = index; this.showIndex = index;
}, },
...@@ -130,6 +139,8 @@ export default { ...@@ -130,6 +139,8 @@ export default {
taskId: data.taskId taskId: data.taskId
} }
}); });
// 存到缓存里 如果路由跳转或者是缓存中有 就是隐患上报退回
localStorage.setItem('riskAddTaskId',data.taskId)
this.showIndex = null; this.showIndex = null;
}, },
// 删除 // 删除
......
...@@ -144,6 +144,13 @@ export default { ...@@ -144,6 +144,13 @@ export default {
} }
], ],
dangerList: [ dangerList: [
{
key: "11",
// path: "/danger",
path: "/insert-danger",
imgUrl: require("@/assets/workbench/risk-confirm.png"),
text: "我的上报"
},
// 隐患排查治理 // 隐患排查治理
{ {
key: "1", key: "1",
......
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