|
@@ -16,18 +16,19 @@
|
|
|
<div>
|
|
|
<p class="norep">待检测任务</p>
|
|
|
</div>
|
|
|
- <div style="display: flex;justify-content: flex-start;align-items: center;overflow-x: auto;">
|
|
|
+ <div style="display: flex;justify-content: flex-start;align-items: center;overflow-x: auto;"
|
|
|
+ v-if="nowRunList.name || misList.length > 0">
|
|
|
<div :class="setImg(nowRunList)" v-if="nowRunList.name">
|
|
|
<div class="intBoxOne">
|
|
|
<p class="intOne">
|
|
|
<span style="font-size: 18px;color: white;">{{ nowRunList.name }}</span>
|
|
|
<span style="font-size: 12px;" @click="editItem(nowRunList)">编辑</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
+ <p style="margin-left: 8px;">
|
|
|
<img style="width: 15px;height: 15px;" src="../../../assets/icon/white_flash.png" alt="" />
|
|
|
<span style="font-size: 12px;color:white" class="commonSpan">{{ nowRunList.station_name }}</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
+ <p style="margin-left: 8px;">
|
|
|
<img style="width: 15px;height: 15px;" src="../../../assets/icon/white_clock.png" alt="" />
|
|
|
<span style="font-size: 12px;color:white" class="commonSpan">{{ nowRunList.ct }}</span>
|
|
|
</p>
|
|
@@ -38,54 +39,76 @@
|
|
|
v-loading="emLoading"></em></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="intBox" v-for="(item, index) in misList" :style="setImg(item, index)">
|
|
|
+ <div class="intBox" v-for="(item, index) in misList" :style="setImg(item, index)" @mouseover="intOver(index)"
|
|
|
+ @mouseout="intOut(index)">
|
|
|
<div class="intBoxOne">
|
|
|
<p class="intOne">
|
|
|
- <span style="font-size: 18px;color: #1A2447;">{{ item.name }}</span>
|
|
|
+ <span style="font-size: 18px;">{{ item.name }}</span>
|
|
|
<span style="font-size: 12px;cursor: pointer;" @click="editItem(item, index)">编辑</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <img style="width: 15px;height: 15px;" src="../../../assets/icon/flash_darkBlue.png" alt="" />
|
|
|
- <span style="font-size: 12px;color:#7484AB" class="commonSpan">{{ item.station_name }}</span>
|
|
|
+ <p style="margin-left: 8px;">
|
|
|
+ <img style="width: 15px;height: 15px;"
|
|
|
+ :src="isImg && isIndex == index ? require('../../../assets/icon/white_flash.png') : require('../../../assets/icon/flash_darkBlue.png')"
|
|
|
+ alt="" />
|
|
|
+ <span style="font-size: 12px;" class="commonSpan">{{ item.station_name }}</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <img style="width: 15px;height: 15px;" src="../../../assets/icon/clock_darkBlue.png" alt="" />
|
|
|
- <span style="font-size: 12px;color:#7484AB" class="commonSpan">{{ item.ut }}</span>
|
|
|
+ <p style="margin-left: 8px;">
|
|
|
+ <img style="width: 15px;height: 15px;"
|
|
|
+ :src="isImg && isIndex == index ? require('../../../assets/icon/white_clock.png') : require('../../../assets/icon/clock_darkBlue.png')"
|
|
|
+ alt="" />
|
|
|
+ <span style="font-size: 12px;" class="commonSpan">{{ item.ut }}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<!-- 点击检测 -->
|
|
|
<div class="setNow">
|
|
|
- <span style="font-size: 16px;color:blue" class="setnowspan" @click="startNow(item, index)">立即检测</span>
|
|
|
+ <span style="font-size: 16px;" class="setnowspan" @click="startNow(item, index)">立即检测</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ style="width: 100%;height: calc(100vh - 800px);margin: 0 auto;text-align: center;line-height: calc(100vh - 800px);"
|
|
|
+ v-else>
|
|
|
+ <p style="display: flex;justify-content: center;align-items: center;">
|
|
|
+ <el-icon style="font-size: 16px;display: block;color: #7484AB;">
|
|
|
+ <Warning />
|
|
|
+ </el-icon>
|
|
|
+ <span style="display: block;color: #7484AB;">暂无待检测任务,请新建</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
<!-- 已完成 -->
|
|
|
<div class="noReportBox">
|
|
|
<div>
|
|
|
<p class="norep">最近检测任务-已完成</p>
|
|
|
</div>
|
|
|
<div style="display: flex;justify-content: flex-start;align-items: center;overflow-x: auto;">
|
|
|
- <div class="intBox" v-for="(item, index) in passList">
|
|
|
+ <div class="intBox" v-for="(item, index) in passList" @mouseover="intOvers(index)" @mouseout="intOuts(index)">
|
|
|
<div class="intBoxOne">
|
|
|
<p class="intOne">
|
|
|
<span>{{ item.name }}</span>
|
|
|
- <span>详情→</span>
|
|
|
+ <span>详情<el-icon>
|
|
|
+ <Right />
|
|
|
+ </el-icon></span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <img style="width: 15px;height: 15px;" src="../../../assets/icon/flash_darkBlue.png" alt="" />
|
|
|
- <span style="font-size: 12px;color:#7484AB" class="commonSpan">{{ item.station_name }}</span>
|
|
|
+ <p style="margin-left: 8px;">
|
|
|
+ <img style="width: 15px;height: 15px;"
|
|
|
+ :src="isImgs && isIndexs == index ? require('../../../assets/icon/white_flash.png') : require('../../../assets/icon/flash_darkBlue.png')"
|
|
|
+ alt="" />
|
|
|
+ <span style="font-size: 12px;" class="commonSpan">{{ item.station_name }}</span>
|
|
|
</p>
|
|
|
- <p>
|
|
|
- <img style="width: 15px;height: 15px;" src="../../../assets/icon/clock_darkBlue.png" alt="" />
|
|
|
- <span style="font-size: 12px;color:#7484AB" class="commonSpan">{{ item.ct }}</span>
|
|
|
+ <p style="margin-left: 8px;">
|
|
|
+ <img style="width: 15px;height: 15px;"
|
|
|
+ :src="isImgs && isIndexs == index ? require('../../../assets/icon/white_clock.png') : require('../../../assets/icon/clock_darkBlue.png')"
|
|
|
+ alt="" />
|
|
|
+ <span style="font-size: 12px;" class="commonSpan">{{ item.ct }}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<!-- 点击检测 -->
|
|
|
<div class="setNow">
|
|
|
- <span style="color: #255CE7;" class="setnowspan" @click="goNetStructPicture(item)">scd可视化</span>
|
|
|
- <span style="margin: 0 10px;color: #7484AB;" class="setnowspan">|</span>
|
|
|
- <span style="color: #255CE7;" class="setnowspan">检测结果</span>
|
|
|
+ <span class="setnowspan" @click="goNetStructPicture(item)">scd可视化</span>
|
|
|
+ <span style="margin: 0 10px;" class="setnowspan">|</span>
|
|
|
+ <span class="setnowspan">检测结果</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -109,6 +132,10 @@ export default {
|
|
|
let nowRunList = ref({})//正在检测任务列表
|
|
|
let passList = ref([])//已完成检测任务列表
|
|
|
let emLoading = ref(true)
|
|
|
+ let isImg = ref(false)
|
|
|
+ let isImgs = ref(false)
|
|
|
+ let isIndex = ref(999999)
|
|
|
+ let isIndexs = ref(999999)
|
|
|
function scdLink() {
|
|
|
router.push("/home/scdMap");
|
|
|
}
|
|
@@ -130,7 +157,7 @@ export default {
|
|
|
query: {
|
|
|
id: row.scd_id,
|
|
|
name: row.name,
|
|
|
- station:row.station_id,
|
|
|
+ station: row.station_id,
|
|
|
},
|
|
|
});
|
|
|
}
|
|
@@ -191,6 +218,22 @@ export default {
|
|
|
return "intBox"
|
|
|
}
|
|
|
}
|
|
|
+ function intOver(num) {
|
|
|
+ isIndex.value = num
|
|
|
+ isImg.value = true
|
|
|
+ }
|
|
|
+ function intOut(num) {
|
|
|
+ isIndex.value = num
|
|
|
+ isImg.value = false
|
|
|
+ }
|
|
|
+ function intOvers(num) {
|
|
|
+ isIndexs.value = num
|
|
|
+ isImgs.value = true
|
|
|
+ }
|
|
|
+ function intOuts(num) {
|
|
|
+ isIndexs.value = num
|
|
|
+ isImgs.value = false
|
|
|
+ }
|
|
|
onMounted(() => {
|
|
|
getList()
|
|
|
})
|
|
@@ -207,6 +250,14 @@ export default {
|
|
|
setImg,
|
|
|
passList,//已完成列表
|
|
|
emLoading,
|
|
|
+ isImg,
|
|
|
+ isImgs,
|
|
|
+ intOver,
|
|
|
+ intOut,
|
|
|
+ intOvers,
|
|
|
+ intOuts,
|
|
|
+ isIndex,
|
|
|
+ isIndexs,
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -216,6 +267,7 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
@import url('https://fonts.font.im/css?family=Montserrat');
|
|
|
+
|
|
|
p {
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
@@ -254,6 +306,7 @@ p {
|
|
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
|
font-weight: 400;
|
|
|
color: #7484ab;
|
|
|
+ margin: 10px 0;
|
|
|
/* line-height: 22px; */
|
|
|
}
|
|
|
|
|
@@ -262,6 +315,7 @@ p {
|
|
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
|
font-weight: 400;
|
|
|
color: #1a2447;
|
|
|
+ margin: 10px 0;
|
|
|
}
|
|
|
|
|
|
.nowEm {
|
|
@@ -289,18 +343,32 @@ p {
|
|
|
}
|
|
|
|
|
|
.intBox {
|
|
|
- width: 269px;
|
|
|
- height: 116px;
|
|
|
- line-height: 20px;
|
|
|
+ width: 336px;
|
|
|
+ height: 144px;
|
|
|
+ line-height: 30px;
|
|
|
background-repeat: no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
margin: 15px 15px;
|
|
|
- /* border: 1px solid #255ce7; */
|
|
|
background-color: #F6F9FF;
|
|
|
border-radius: 5px;
|
|
|
box-shadow: inset 0px -3px 3px 0px #C8D4EC;
|
|
|
- /* border: 1px solid brown; */
|
|
|
- /* background-image: url(../../../assets/image/card_blue.png); */
|
|
|
+}
|
|
|
+
|
|
|
+.intBox:hover {
|
|
|
+ width: 336px;
|
|
|
+ height: 144px;
|
|
|
+ line-height: 30px;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ margin: 15px 15px;
|
|
|
+ background-color: #7DC6FE;
|
|
|
+ border-radius: 5px;
|
|
|
+ box-shadow: inset 0px -3px 3px 0px #C8D4EC;
|
|
|
+ color: white;
|
|
|
+}
|
|
|
+
|
|
|
+.intBox>div>p>span:hover {
|
|
|
+ color: white;
|
|
|
}
|
|
|
|
|
|
.intBoxCopy {
|
|
@@ -339,6 +407,12 @@ p {
|
|
|
|
|
|
.commonSpan {
|
|
|
font-size: 14px;
|
|
|
+ color: #7484AB;
|
|
|
+}
|
|
|
+
|
|
|
+.intBox:hover .commonSpan .setnowspan,
|
|
|
+.intBox:hover span {
|
|
|
+ color: white;
|
|
|
}
|
|
|
|
|
|
.setNow {
|
|
@@ -349,6 +423,11 @@ p {
|
|
|
.setnowspan {
|
|
|
font-size: 17px;
|
|
|
cursor: pointer;
|
|
|
+ color: blue;
|
|
|
+}
|
|
|
+
|
|
|
+.needColor {
|
|
|
+ color: #7484AB;
|
|
|
}
|
|
|
|
|
|
:deep(.el-loading-spinner .circular) {
|