This commit is contained in:
parent
286a601018
commit
f90ec551dc
|
@ -51,7 +51,7 @@
|
||||||
<span>状态:</span>
|
<span>状态:</span>
|
||||||
<img :src="lampImages[data.xq.deng]" @click="escalation" />
|
<img :src="lampImages[data.xq.deng]" @click="escalation" />
|
||||||
</div>
|
</div>
|
||||||
<div class="lampMessage">(工作日早上8:30自动推送浙政钉)</div>
|
|
||||||
<div class="lampBox" v-if="clicked">
|
<div class="lampBox" v-if="clicked">
|
||||||
<div class="lampTitle">确定要上报吗?</div>
|
<div class="lampTitle">确定要上报吗?</div>
|
||||||
<div class="lampBtn">
|
<div class="lampBtn">
|
||||||
|
@ -61,55 +61,58 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="border: 1px solid #5284B0 ;" >
|
||||||
<el-table
|
<el-table
|
||||||
:data="data.tableData"
|
:data="data.tableData"
|
||||||
height="100%"
|
height="100%"
|
||||||
:header-cell-style="{ background: 'rgba(0, 143, 205, 0.63)' ,height: '60px'}"
|
max-height="400"
|
||||||
@row-click="handleRowClick"
|
:header-cell-style="{ background: 'rgba(0, 143, 205, 0.63)' ,}"
|
||||||
>
|
@row-click="handleRowClick"
|
||||||
<template v-for="item in data.columns" :key="item.label">
|
>
|
||||||
<el-table-column
|
<template v-for="item in data.columns" :key="item.label">
|
||||||
v-if="item.type === 'slot'"
|
<el-table-column
|
||||||
:label="item.label"
|
v-if="item.type === 'slot'"
|
||||||
:property="item.property"
|
:label="item.label"
|
||||||
:width="item.width || ''"
|
:property="item.property"
|
||||||
:align="item.align || 'center'"
|
:width="item.width || ''"
|
||||||
>
|
:align="item.align || 'center'"
|
||||||
<template #default="scope">
|
>
|
||||||
<!-- 状态 -->
|
<template #default="scope">
|
||||||
<div v-if="item.property == 'deng'">
|
<!-- 状态 -->
|
||||||
<div v-if="scope.row.deng == 1" class="progressGreen"></div>
|
<div v-if="item.property == 'deng'">
|
||||||
<div
|
<div v-if="scope.row.deng == 1" class="progressGreen"></div>
|
||||||
v-if="scope.row.deng == 2"
|
<div
|
||||||
class="progressYellow"
|
v-if="scope.row.deng == 2"
|
||||||
></div>
|
class="progressYellow"
|
||||||
<!-- <div v-for="index in 3" :key="index">
|
></div>
|
||||||
<img
|
<!-- <div v-for="index in 3" :key="index">
|
||||||
style="width: 30px; height: 30px"
|
<img
|
||||||
v-if="scope.row.zt == index"
|
style="width: 30px; height: 30px"
|
||||||
:src="lampImages[index]"
|
v-if="scope.row.zt == index"
|
||||||
alt="状态"
|
:src="lampImages[index]"
|
||||||
/>
|
alt="状态"
|
||||||
</div> -->
|
/>
|
||||||
</div>
|
</div> -->
|
||||||
<!-- <slot
|
</div>
|
||||||
:name="item.property"
|
<!-- <slot
|
||||||
:currentCol="item"
|
:name="item.property"
|
||||||
:currentData="scope.row"
|
:currentCol="item"
|
||||||
></slot> -->
|
:currentData="scope.row"
|
||||||
</template>
|
></slot> -->
|
||||||
</el-table-column>
|
</template>
|
||||||
<el-table-column
|
</el-table-column>
|
||||||
v-else
|
<el-table-column
|
||||||
:property="item.property"
|
v-else
|
||||||
:label="item.label"
|
:property="item.property"
|
||||||
:show-overflow-tooltip="true"
|
:label="item.label"
|
||||||
:width="item.width || ''"
|
:show-overflow-tooltip="false"
|
||||||
:align="item.align || 'center'"
|
:width="item.width || ''"
|
||||||
/>
|
:align="item.align || 'center'"
|
||||||
</template>
|
/>
|
||||||
</el-table>
|
</template>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="lampMessage">注:工作日早上8:30自动推送浙政钉</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -382,6 +385,7 @@ const closeDialog = () => {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
margin-top: 46px;
|
||||||
img {
|
img {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
|
@ -400,18 +404,7 @@ const closeDialog = () => {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.lampMessage {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 600;
|
|
||||||
font-family: PingFangSC, PingFang SC;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
color: #ff5959;
|
|
||||||
width: 262px;
|
|
||||||
position: absolute;
|
|
||||||
top:81px;
|
|
||||||
left: -198px;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
.lampBox {
|
.lampBox {
|
||||||
width: 270px;
|
width: 270px;
|
||||||
height: 146px;
|
height: 146px;
|
||||||
|
@ -460,7 +453,20 @@ const closeDialog = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.lampMessage {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-family: PingFangSC, PingFang SC;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
color: #ff5959;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: 17px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.el-table) {
|
:deep(.el-table) {
|
||||||
--el-table-bg-color: none;
|
--el-table-bg-color: none;
|
||||||
|
@ -504,15 +510,15 @@ const closeDialog = () => {
|
||||||
width: 181px;
|
width: 181px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 8px;
|
border-radius: 6px;
|
||||||
background: linear-gradient(358deg, #21eda8 0%, #8bffcd 100%);
|
background: linear-gradient(358deg, #21eda8 0%, #8bffcd 100%);
|
||||||
}
|
}
|
||||||
.progressYellow {
|
.progressYellow {
|
||||||
width: 181px;
|
width: 181px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
border: 2px dashed #ffe1a5;
|
border: 2px solid #ffe1a5;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 8px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bo {
|
.bo {
|
||||||
|
|
|
@ -228,10 +228,10 @@ import { useRouter, useRoute } from "vue-router";
|
||||||
import http from "@/utils/request.js";
|
import http from "@/utils/request.js";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import DialogLamp from "./dialog/dialogRW.vue";
|
import DialogLamp from "./dialog/dialogRW.vue";
|
||||||
|
|
||||||
import lamp1 from "../assets/sy-table/green.gif";
|
import lamp1 from "../assets/sy-table/green.gif";
|
||||||
import lamp2 from "../assets/sy-table/red.gif";
|
import lamp2 from "../assets/sy-table/red.gif";
|
||||||
import lamp3 from "../assets/sy-table/yellow.gif";
|
import lamp3 from "../assets/sy-table/lampYellow1.gif";
|
||||||
|
// import lamp3 from "../assets/sy-table/yellow.gif";
|
||||||
import lamp4 from "../assets/sy-table/green1.gif";
|
import lamp4 from "../assets/sy-table/green1.gif";
|
||||||
import lamp5 from "../assets/sy-table/red1.gif";
|
import lamp5 from "../assets/sy-table/red1.gif";
|
||||||
import lamp6 from "../assets/sy-table/yellow1.gif";
|
import lamp6 from "../assets/sy-table/yellow1.gif";
|
||||||
|
|
Loading…
Reference in New Issue