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

执行巡查页面数据回显

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