Commit 03332fc5 authored by 王李辉's avatar 王李辉

执行巡查页面数据回显

parent aaa85b0d
Pipeline #8245 passed with stage
in 5 minutes and 5 seconds
......@@ -2,8 +2,8 @@
<div>
<LHeader :text="text"></LHeader>
<!-- 内容列表 -->
<div class="title">2022年4月26日</div>
<p class="title-text">巡查发起人:李斌</p>
<div class="title">{{nowTime}}</div>
<p class="title-text">巡查发起人:{{sponsor}}</p>
<p class="title-text">系统提示:请依据当日任务完成当日巡查工作。</p>
<div class="con-list">
<van-cell-group
......@@ -31,6 +31,7 @@
<script>
import LHeader from "@/components/header.vue";
import { postWork } from "@/service/workbench";
import { timestampToTime } from "@/utils/format";
export default {
name: "danger-patrol",
components: {
......@@ -39,6 +40,8 @@ export default {
data() {
return {
text: "隐患巡查",
nowTime:"",
sponsor:"", // 巡查发起人
contentList: [
],
......@@ -82,11 +85,13 @@ export default {
};
},
mounted() {
this.nowTime = timestampToTime(new Date(), "DT7", true);
this.loading()
},
methods: {
loading(){
postWork("patrol/running/listCycle").then((res) => {
this.sponsor = res.data[0].assignId
this.contentLists.forEach((x)=>{
res.data.forEach((y)=>{
if(x.title==y.cycle){
......
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