Commit 5b9157d1 authored by xinzhedeai's avatar xinzhedeai

危险作业备案

parent 8446e7b3
...@@ -18,24 +18,26 @@ ...@@ -18,24 +18,26 @@
padding: 0 0.2rem; padding: 0 0.2rem;
box-sizing: border-box; box-sizing: border-box;
} }
.wrapper .item .bgImg { .wrapper .item .bgImg {
height: 73%; height: 73%;
width: 3.4rem; width: 3.4rem;
background-size: contain; background-size: contain;
display: flex; display: flex;
background-repeat: no-repeat; background-repeat: no-repeat;
/* flex: 1; */ /* flex: 1; */
justify-content: start; justify-content: start;
align-items: self-start; align-items: self-start;
color: #fff; color: #fff;
font-size: 0.38rem; font-size: 0.38rem;
font-weight: bold; font-weight: bold;
} }
.wrapper .item .bgImg:first-child{
.wrapper .item .bgImg:first-child {
background-image: url('./img/yellow.png'); background-image: url('./img/yellow.png');
} }
.wrapper .item .bgImg:last-child{
.wrapper .item .bgImg:last-child {
background-image: url('./img/blue.png'); background-image: url('./img/blue.png');
} }
...@@ -55,10 +57,18 @@ ...@@ -55,10 +57,18 @@
<p class="bgImg" @click="nav('yh-list')"> <p class="bgImg" @click="nav('yh-list')">
<span>隐患管理</span> <span>隐患管理</span>
</p> </p>
<p class="bgImg" @click="nav('dw-list')">
<span>危险作业备案</span>
</p>
</div> </div>
<div class="item"> <!-- <div class="item">
<p class="bgImg" @click="nav('yh-list')">
</div> <span>隐患管理</span>
</p>
<p class="bgImg" @click="nav('yh-list')">
<span>危险作业备案</span>
</p>
</div> -->
</div> </div>
</div> </div>
</body> </body>
......
...@@ -107,6 +107,7 @@ window.addEventListener("load", function() { ...@@ -107,6 +107,7 @@ window.addEventListener("load", function() {
} }
}, },
detail() { detail() {
http.get('/api/dangerJobReport/page', { http.get('/api/dangerJobReport/page', {
page: 0, // 每次请求增加下一页 page: 0, // 每次请求增加下一页
size: 1, size: 1,
...@@ -116,6 +117,7 @@ window.addEventListener("load", function() { ...@@ -116,6 +117,7 @@ window.addEventListener("load", function() {
}).then((res) => { }).then((res) => {
console.log('响应结果', res.content) console.log('响应结果', res.content)
this.form = res.content[0] this.form = res.content[0]
this.form.filePathList = res.content[0].filePathList || []
if(this.form.workTime && this.form.workTime.length){ if(this.form.workTime && this.form.workTime.length){
this.form.workTime1 = this.form.workTime[0] this.form.workTime1 = this.form.workTime[0]
this.form.workTime2 = this.form.workTime[1] this.form.workTime2 = this.form.workTime[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