|
@@ -17,24 +17,25 @@
|
|
<p class="norep">待检测任务</p>
|
|
<p class="norep">待检测任务</p>
|
|
</div>
|
|
</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;">
|
|
- <div class="intBox" v-if="nowRunList.name" :style="setImg(nowRunList)">
|
|
|
|
|
|
+ <div :class="setImg(nowRunList)" v-if="nowRunList.name">
|
|
<div class="intBoxOne">
|
|
<div class="intBoxOne">
|
|
<p class="intOne">
|
|
<p class="intOne">
|
|
- <span style="font-size: 18px;color: #1A2447;">{{ nowRunList.name }}</span>
|
|
|
|
|
|
+ <span style="font-size: 18px;color: white;">{{ nowRunList.name }}</span>
|
|
<span style="font-size: 12px;" @click="deldel(nowRunList)">删除</span>
|
|
<span style="font-size: 12px;" @click="deldel(nowRunList)">删除</span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
- <img style="width: 15px;height: 15px;" src="../../../assets/icon/flash_darkBlue.png" alt="" />
|
|
|
|
- <span style="font-size: 12px;color:#7484AB" class="commonSpan">{{ nowRunList.station_name }}</span>
|
|
|
|
|
|
+ <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>
|
|
<p>
|
|
- <img style="width: 15px;height: 15px;" src="../../../assets/icon/clock_darkBlue.png" alt="" />
|
|
|
|
- <span style="font-size: 12px;color:#7484AB" class="commonSpan">{{ nowRunList.ct }}</span>
|
|
|
|
|
|
+ <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>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<!-- 点击检测 -->
|
|
<!-- 点击检测 -->
|
|
<div class="setNow">
|
|
<div class="setNow">
|
|
- <span style="font-size: 16px;color:green" class="setnowspan" @click="startNow(nowRunList)">正在检测中<em v-loading="emLoading"></em></span>
|
|
|
|
|
|
+ <span style="font-size: 16px;color:white" class="setnowspan" @click="startNow(nowRunList)">检测中<em
|
|
|
|
+ v-loading="emLoading"></em></span>
|
|
</div>
|
|
</div>
|
|
</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)">
|
|
@@ -82,7 +83,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- 点击检测 -->
|
|
<!-- 点击检测 -->
|
|
<div class="setNow">
|
|
<div class="setNow">
|
|
- <span class="setnowspan" @click="goNetStructPicture">scd可视化</span>
|
|
|
|
|
|
+ <span class="setnowspan" @click="goNetStructPicture(item)">scd可视化</span>
|
|
<span class="setnowspan">|</span>
|
|
<span class="setnowspan">|</span>
|
|
<span class="setnowspan">检测结果</span>
|
|
<span class="setnowspan">检测结果</span>
|
|
</div>
|
|
</div>
|
|
@@ -101,7 +102,7 @@ import imgs from "../jscom/img";
|
|
import { ElLoading, ElMessage } from "element-plus";
|
|
import { ElLoading, ElMessage } from "element-plus";
|
|
export default {
|
|
export default {
|
|
setup(props, { emit }) {
|
|
setup(props, { emit }) {
|
|
- let imgBack = ref(require("@/assets/image/card_blue.png"));
|
|
|
|
|
|
+ let imgBack = ref("@/assets/image/card_blue.png");
|
|
let router = useRouter();
|
|
let router = useRouter();
|
|
let sizeNum = ref(1);
|
|
let sizeNum = ref(1);
|
|
let misList = ref([])//待检测任务列表
|
|
let misList = ref([])//待检测任务列表
|
|
@@ -114,19 +115,20 @@ export default {
|
|
function startNow(row, num) {
|
|
function startNow(row, num) {
|
|
if (row.name == null || row.name == '' || row.name == undefined) {
|
|
if (row.name == null || row.name == '' || row.name == undefined) {
|
|
ElMessage({
|
|
ElMessage({
|
|
- message:"暂无检测任务",
|
|
|
|
- type:"info"
|
|
|
|
|
|
+ message: "暂无检测任务",
|
|
|
|
+ type: "info"
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
sizeNum.value = 1;
|
|
sizeNum.value = 1;
|
|
emit("hmBack", sizeNum.value, row);
|
|
emit("hmBack", sizeNum.value, row);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- function goNetStructPicture() {
|
|
|
|
|
|
+ function goNetStructPicture(row) {
|
|
|
|
+ console.log(row, 'push');
|
|
router.push({
|
|
router.push({
|
|
path: "/home/netStructPicture",
|
|
path: "/home/netStructPicture",
|
|
query: {
|
|
query: {
|
|
- id: 4000002,
|
|
|
|
|
|
+ id: row.scd_id,
|
|
name: 'UnitTest_检测任务',
|
|
name: 'UnitTest_检测任务',
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -175,8 +177,6 @@ export default {
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
nowRunList.value = res.data[0]
|
|
nowRunList.value = res.data[0]
|
|
- console.log(res.data, 'res.data');
|
|
|
|
- console.log(nowRunList.value, 'now');
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -187,9 +187,9 @@ export default {
|
|
}
|
|
}
|
|
function setImg(row, num) {
|
|
function setImg(row, num) {
|
|
if (row.state == "1") {
|
|
if (row.state == "1") {
|
|
- return { 'background-image': `url(${imgBack})` }
|
|
|
|
|
|
+ return "intBoxCopy"
|
|
} else {
|
|
} else {
|
|
- return {}
|
|
|
|
|
|
+ return "intBox"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
@@ -207,7 +207,7 @@ export default {
|
|
nowRunList,//正在检测任务列表
|
|
nowRunList,//正在检测任务列表
|
|
setImg,
|
|
setImg,
|
|
passList,//已完成列表
|
|
passList,//已完成列表
|
|
- emLoading
|
|
|
|
|
|
+ emLoading,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -299,7 +299,18 @@ p {
|
|
/* border: 1px solid brown; */
|
|
/* border: 1px solid brown; */
|
|
/* background-image: url(../../../assets/image/card_blue.png); */
|
|
/* background-image: url(../../../assets/image/card_blue.png); */
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.intBoxCopy{
|
|
|
|
+ width: 269px;
|
|
|
|
+ height: 116px;
|
|
|
|
+ line-height: 20px;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ margin: 15px 15px;
|
|
|
|
+ background-color: #F6F9FF;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ box-shadow: inset 0px -3px 3px 0px #C8D4EC;
|
|
|
|
+ background-image: url(../../../assets/image/card_blue.png);
|
|
|
|
+}
|
|
.intBoxOne {
|
|
.intBoxOne {
|
|
padding-top: 5px;
|
|
padding-top: 5px;
|
|
}
|
|
}
|
|
@@ -334,4 +345,11 @@ p {
|
|
font-size: 17px;
|
|
font-size: 17px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+:deep(.el-loading-spinner .circular) {
|
|
|
|
+ width: 16px;
|
|
|
|
+}
|
|
|
|
+:deep(.el-loading-spinner .path){
|
|
|
|
+ stroke: #ffffff;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|