Commit 16dc1cc0 authored by dlkong's avatar dlkong

Merge branch 'develop' into dev_kdl

parents 65a47d70 e3631345
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="login" :style="{ backgroundImage: `url(${bg})` }"> <div class="login" :style="{ backgroundImage: `url(${bg})` }">
<div class="title"> <div class="title">
<div class="login-logo"> <div class="login-logo">
融通危险源辨识系统建设项目 融通危险源辨识系统
</div> </div>
<!-- <div class="login-name">Enterprise Business Data Monitoring</div> --> <!-- <div class="login-name">Enterprise Business Data Monitoring</div> -->
</div> </div>
......
...@@ -22,14 +22,18 @@ ...@@ -22,14 +22,18 @@
<div>开始时间:</div> <div>开始时间:</div>
<div> <div>
{{ {{
timestampToTimes(messageList.startTime,'DT2') || messageList.startTime timestampToTimes(messageList.startTime, "DT2") ||
messageList.startTime
}} }}
</div> </div>
</van-grid-item> </van-grid-item>
<van-grid-item> <van-grid-item>
<div>结束时间:</div> <div>结束时间:</div>
<div> <div>
{{ timestampToTimes(messageList.endTime,'DT2') || messageList.endTime }} {{
timestampToTimes(messageList.endTime, "DT2") ||
messageList.endTime
}}
</div> </div>
</van-grid-item> </van-grid-item>
</van-grid> </van-grid>
...@@ -130,7 +134,7 @@ ...@@ -130,7 +134,7 @@
input-align="right" input-align="right"
:formatter=" :formatter="
() => { () => {
return timestampToTimes(form.startTime,'DT2'); return timestampToTimes(form.startTime, 'DT2');
} }
" "
:rules="[{ required: true, message: '任务开始时间不能为空' }]" :rules="[{ required: true, message: '任务开始时间不能为空' }]"
...@@ -143,7 +147,7 @@ ...@@ -143,7 +147,7 @@
label="任务结束时间" label="任务结束时间"
:formatter=" :formatter="
() => { () => {
return timestampToTimes(form.endTime,'DT2') return timestampToTimes(form.endTime, 'DT2');
} }
" "
input-align="right" input-align="right"
...@@ -171,7 +175,7 @@ ...@@ -171,7 +175,7 @@
style="margin-top:10px;" style="margin-top:10px;"
@click="toRiskDetail(item)" @click="toRiskDetail(item)"
> >
<van-col span="20" > <van-col span="20">
<van-col span="5"> <van-col span="5">
<van-image <van-image
width="46" width="46"
...@@ -190,7 +194,7 @@ ...@@ -190,7 +194,7 @@
<van-col span="4"> <van-col span="4">
<van-row type="flex"> <van-row type="flex">
详情 详情
<van-icon name="arrow" size="26px" /> <van-icon name="arrow" size="26px" />
</van-row> </van-row>
</van-col> </van-col>
</van-row> </van-row>
...@@ -210,7 +214,7 @@ ...@@ -210,7 +214,7 @@
<van-row> <van-row>
<van-col span="24"> <van-col span="24">
<div class="info-title"> <div class="info-title">
{{ timestampToTimes(item.startTime,"DT1") }} {{ timestampToTimes(item.startTime, "DT1") }}
</div> </div>
</van-col> </van-col>
</van-row> </van-row>
...@@ -222,15 +226,17 @@ ...@@ -222,15 +226,17 @@
</van-row> </van-row>
<van-row> <van-row>
<van-col span="7" <van-col span="7"
><span class="field-title">审批结果</span></van-col ><span class="field-title">任务节点</span></van-col
> >
<van-col span="17">{{ item.taskName }}</van-col> <van-col span="17">{{ item.taskName }}</van-col>
</van-row> </van-row>
<van-row> <van-row v-show="item.taskResult">
<van-col span="7" <van-col span="7"
><span class="field-title">岗位</span></van-col ><span class="field-title">审批结果</span></van-col
> >
<van-col span="17">{{ item.taskResult }}</van-col> <van-col span="17">{{
item.taskResult == 1 ? "审批通过" : "审批否决"
}}</van-col>
</van-row> </van-row>
<!-- <van-row> <!-- <van-row>
<van-col span="7" <van-col span="7"
...@@ -341,7 +347,7 @@ ...@@ -341,7 +347,7 @@
</div> </div>
</div> </div>
<div <div
v-show="pathAuth == 'riskApprove' && status == 2" v-show="pathAuth == 'riskApprove0' && status == 2"
style="display: flex; style="display: flex;
justify-content: space-around; justify-content: space-around;
background-color: #fff; background-color: #fff;
...@@ -426,7 +432,7 @@ ...@@ -426,7 +432,7 @@
<van-row gutter=""> <van-row gutter="">
<van-col span="8">发起时间:</van-col> <van-col span="8">发起时间:</van-col>
<van-col span="16" <van-col span="16"
>{{ timestampToTimes(item.startTime,"DT2") }} >{{ timestampToTimes(item.startTime, "DT2") }}
</van-col> </van-col>
</van-row> </van-row>
</van-col> </van-col>
...@@ -555,12 +561,12 @@ export default { ...@@ -555,12 +561,12 @@ export default {
this.getRiskTaskList(this.planId, buildingId); this.getRiskTaskList(this.planId, buildingId);
}, },
methods: { methods: {
timestampToTimes(time,type) { timestampToTimes(time, type) {
return timestampToTime(new Date(time), type, true); return timestampToTime(new Date(time), type, true);
}, },
//执行任务 //执行任务
performTasks() { performTasks() {
console.log( this.messageList,'LLLL') console.log(this.messageList, "LLLL");
sessionStorage.setItem( sessionStorage.setItem(
"buildingId", "buildingId",
this.messageList.riskBuildingListDtos[0].buildingId this.messageList.riskBuildingListDtos[0].buildingId
...@@ -642,7 +648,7 @@ export default { ...@@ -642,7 +648,7 @@ export default {
console.log(res.data, "lll"); console.log(res.data, "lll");
this.riskList = res.data; this.riskList = res.data;
}); });
}else{ } else {
getFun(`/risk/plan/inherent/list/${planId}`).then(res => { getFun(`/risk/plan/inherent/list/${planId}`).then(res => {
console.log(res.data, "lll"); console.log(res.data, "lll");
this.riskList = res.data; this.riskList = res.data;
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
type="info" type="info"
size="mini" size="mini"
@click="todetail(index, item)" @click="todetail(index, item)"
>{{ active == 2 ? "去处理" : "去审批" }}</van-button >{{ active == 0 ? "去审批" : "查看详情" }}</van-button
> >
</van-row> </van-row>
</van-col> </van-col>
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
buildingList: [] buildingList: []
}; };
}, },
created() { mounted() {
this.postList(0); this.postList(0);
}, },
methods: { methods: {
...@@ -144,9 +144,9 @@ export default { ...@@ -144,9 +144,9 @@ export default {
duration: 0 duration: 0
}); });
let url = `/risk/plan/approve/list?status=running`; let url = `/risk/plan/approve/list?status=running`;
if (name == 0) { if (this.active == 0) {
url = `/risk/plan/approve/list?status=running`; url = `/risk/plan/approve/list?status=running`;
} else if (name == 1) { } else if (this.active == 1) {
url = `/risk/plan/approve/list?status=completed`; url = `/risk/plan/approve/list?status=completed`;
} else { } else {
url = `/risk/plan/approve/list?status=return`; url = `/risk/plan/approve/list?status=return`;
...@@ -175,7 +175,8 @@ export default { ...@@ -175,7 +175,8 @@ export default {
// buildingId: item.buildingId // buildingId: item.buildingId
} }
}); });
sessionStorage.setItem("pathAuth", "riskApprove"); if (this.active == 0) sessionStorage.setItem("pathAuth", "riskApprove0");
else sessionStorage.setItem("pathAuth", "riskApprove1");
sessionStorage.setItem("planId", item.id); sessionStorage.setItem("planId", item.id);
sessionStorage.setItem("buildingId", ""); sessionStorage.setItem("buildingId", "");
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<van-col span="17"> <van-col span="17">
<van-row gutter=""> <van-row gutter="">
<van-col span="9">创建人:</van-col> <van-col span="9">创建人:</van-col>
<van-col span="15">{{ item.leaderUserName }}</van-col> <van-col span="15">{{ item.createUserName }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="9">发起时间:</van-col> <van-col span="9">发起时间:</van-col>
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<van-row gutter="4"> <van-row gutter="4">
<van-col span="17"> <van-col span="17">
<van-row gutter=""> <van-row gutter="">
<van-col span="9">风险系数</van-col> <van-col span="9">风险等级</van-col>
<van-col span="15">{{ item.coefficient }}</van-col> <van-col span="15">{{ item.level }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="9">创建时间:</van-col> <van-col span="9">创建时间:</van-col>
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
}}</van-col> }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="9">风险描述</van-col> <van-col span="9">风险因素</van-col>
<van-col span="15">{{ <van-col span="15">{{
item.describe item.factor
}}</van-col> }}</van-col>
</van-row> </van-row>
</van-col> </van-col>
......
...@@ -3,20 +3,20 @@ ...@@ -3,20 +3,20 @@
<!-- 头部标签 --> <!-- 头部标签 -->
<van-sticky> <van-sticky>
<header class="header-wrap"> <header class="header-wrap">
办公控制 工作
</header> </header>
</van-sticky> </van-sticky>
<van-notice-bar left-icon="volume-o" :scrollable="true" color="#a09c9c" background="#D5EAFF"> <!-- <van-notice-bar left-icon="volume-o" :scrollable="true" color="#a09c9c" background="#D5EAFF">
<van-swipe class="notice-swipe" :show-indicators="false" width="100vw"> <van-swipe class="notice-swipe" :show-indicators="false" width="100vw">
<van-swipe-item>危险源系统正式上线</van-swipe-item> <van-swipe-item>危险源系统正式上线</van-swipe-item>
<van-swipe-item>汛期安全防护会议计划本周日召开</van-swipe-item> <van-swipe-item>汛期安全防护会议计划本周日召开</van-swipe-item>
</van-swipe> </van-swipe>
</van-notice-bar> </van-notice-bar> -->
<van-swipe :autoplay="6000"> <!-- <van-swipe :autoplay="6000">
<van-swipe-item v-for="(item, index) in images" :key="index"> <van-swipe-item v-for="(item, index) in images" :key="index">
<img style="width:100%;height:200px" :src="item.url" /> <img style="width:100%;height:200px" :src="item.url" />
</van-swipe-item> </van-swipe-item>
</van-swipe> </van-swipe> -->
<div class="con"> <div class="con">
<van-cell-group inset v-if="finalRiskList.length > 0"> <van-cell-group inset v-if="finalRiskList.length > 0">
<van-cell value="风险评估管理" /> <van-cell value="风险评估管理" />
......
...@@ -8,10 +8,10 @@ module.exports = { ...@@ -8,10 +8,10 @@ module.exports = {
//以上的ip和端口是我们本机的;下面为需要跨域的 //以上的ip和端口是我们本机的;下面为需要跨域的
proxy: { //配置跨域 proxy: { //配置跨域
'/app-api': { '/app-api': {
// target: 'http://192.168.4.232:8080/', //这里是后台的地址 target: 'http://192.168.4.232:8080/', //这里是后台的地址
// target: 'http://192.168.15.124:8080/', //这里是杨帆的地址 // target: 'http://192.168.15.124:8080/', //这里是杨帆的地址
// target: 'http://192.168.10.137:8080/', //这里是昊哥的地址 // target: 'http://192.168.10.137:8080/', //这里是昊哥的地址
target: 'http://192.168.10.36:8080/', //这里是昊哥的地址 // target: 'http://192.168.10.36:8080/', //这里是昊哥的地址
// target: 'http://localhost:8080/', //这里是后台的地址 // target: 'http://localhost:8080/', //这里是后台的地址
ws: true, ws: true,
changOrigin: true, //允许跨域 changOrigin: true, //允许跨域
......
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