|
@@ -8,8 +8,10 @@
|
|
|
<img src="../../../assets/image/start_btn.png" alt="" style="cursor: pointer;" @click="startNow(lookingTask)" />
|
|
|
<p class="nowModel" v-if="lookingTask.name">
|
|
|
<span style="margin-right: 15px;">检测模型:</span>
|
|
|
- <el-select v-model="currEditTaskModels" @change="relison"><el-option v-for="(item,index) in taskModels" :title="item.model_name" :key="index" :label="item.model_name" :value="item.sys_model_id"/></el-select>
|
|
|
- <span style="margin: 10px;cursor: pointer;"><img src="../../../assets/icon/pencil.png" alt="编辑所选模型" @click="editTaskModel"/></span>
|
|
|
+ <el-select v-model="currEditTaskModels" @change="relison"><el-option v-for="(item, index) in taskModels"
|
|
|
+ :title="item.model_name" :key="index" :label="item.model_name" :value="item.sys_model_id" /></el-select>
|
|
|
+ <span style="margin: 10px;cursor: pointer;"><img src="../../../assets/icon/pencil.png" alt="编辑所选模型"
|
|
|
+ @click="editTaskModel" /></span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<!-- 待检测任务 -->
|
|
@@ -19,24 +21,25 @@
|
|
|
</div>
|
|
|
<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" @click="startNow(nowRunList)">
|
|
|
+ <div :class="setImg(nowRunList)" v-if="nowRunList.name" @click="startNow(nowRunList)">
|
|
|
<div class="intBoxOne">
|
|
|
<p class="intOne">
|
|
|
<span style="font-size: 18px;color: white;">{{ nowRunList.name }}</span>
|
|
|
</p>
|
|
|
<p style="margin-left: 8px;">
|
|
|
- <img style="width: 15px;height: 15px;float: left;padding-top:2px" src="../../../assets/icon/white_flash.png" alt="" />
|
|
|
+ <img style="width: 15px;height: 15px;float: left;padding-top:2px"
|
|
|
+ src="../../../assets/icon/white_flash.png" alt="" />
|
|
|
<span style="font-size: 12px;color:white" class="commonSpan">{{ nowRunList.station_name }}</span>
|
|
|
</p>
|
|
|
<p style="margin-left: 8px;">
|
|
|
- <img style="width: 15px;height: 15px;float: left;padding-top:2px" src="../../../assets/icon/white_clock.png" alt="" />
|
|
|
+ <img style="width: 15px;height: 15px;float: left;padding-top:2px"
|
|
|
+ src="../../../assets/icon/white_clock.png" alt="" />
|
|
|
<span style="font-size: 12px;color:white" class="commonSpan">{{ nowRunList.ct }}</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<!-- 点击检测 -->
|
|
|
<div class="setNow">
|
|
|
- <span style="font-size: 16px;color:white" class="setnowspan">检测中<em
|
|
|
- v-loading="emLoading"></em></span>
|
|
|
+ <span style="font-size: 16px;color:white" class="setnowspan">检测中<em v-loading="emLoading"></em></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="intBox" v-for="(item, index) in misList" :style="setImg(item, index)" @mouseover="intOver(index)"
|
|
@@ -82,7 +85,8 @@
|
|
|
<div>
|
|
|
<p class="norep">最近检测任务-已完成</p>
|
|
|
</div>
|
|
|
- <div style="display: flex;justify-content: flex-start;align-items: center;overflow-x: auto;width: calc(100vw - 100px);">
|
|
|
+ <div
|
|
|
+ style="display: flex;justify-content: flex-start;align-items: center;overflow-x: auto;width: calc(100vw - 100px);">
|
|
|
<div class="intBox" v-for="(item, index) in passList" @mouseover="intOvers(index)" @mouseout="intOuts(index)">
|
|
|
<div class="intBoxOne">
|
|
|
<p class="intOne">
|
|
@@ -108,7 +112,7 @@
|
|
|
<div class="setNow">
|
|
|
<span class="setnowspan" @click="goNetStructPicture(item)">scd可视化</span>
|
|
|
<span style="margin: 0 10px;" class="setnowspan">|</span>
|
|
|
- <span class="setnowspan">检测结果</span>
|
|
|
+ <span class="setnowspan" @click="outcome(item, index)">检测结果</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -142,11 +146,11 @@ export default {
|
|
|
function scdLink() {
|
|
|
router.push("/home/scdMap");
|
|
|
}
|
|
|
- function startBefore(row,num){
|
|
|
+ function startBefore(row, num) {
|
|
|
lookingTask.value = row
|
|
|
taskModels.value = []
|
|
|
- task.getTaskById({id:row.id}).then(res => {
|
|
|
- if(res.code!=0){
|
|
|
+ task.getTaskById({ id: row.id }).then(res => {
|
|
|
+ if (res.code != 0) {
|
|
|
ElMessage({
|
|
|
message: res.msg,
|
|
|
type: "error"
|
|
@@ -154,9 +158,9 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
let models = res.data.models
|
|
|
- if(models === null || models.length === 0) return
|
|
|
+ if (models === null || models.length === 0) return
|
|
|
taskModels.value = models
|
|
|
- console.log(taskModels.value,'task');
|
|
|
+ console.log(taskModels.value, 'task');
|
|
|
})
|
|
|
}
|
|
|
function startNow(row, num) {
|
|
@@ -171,16 +175,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- function editTaskModel(){
|
|
|
+ function editTaskModel() {
|
|
|
// 跳转到内置模型编辑组件
|
|
|
let m1 = taskModels.value.filter(item => item.sys_model_id == currEditTaskModels.value)
|
|
|
- if(m1.length === 0 ) return
|
|
|
+ if (m1.length === 0) return
|
|
|
router.push({
|
|
|
path: "/home/setting",
|
|
|
query: {
|
|
|
modelid: currEditTaskModels.value,
|
|
|
modelname: m1[0].model_name,
|
|
|
- isNow:1,
|
|
|
+ isNow: 1,
|
|
|
},
|
|
|
});
|
|
|
}
|
|
@@ -191,12 +195,21 @@ export default {
|
|
|
query: {
|
|
|
id: row.scd_id,
|
|
|
name: row.name,
|
|
|
- parentData:JSON.stringify(row),
|
|
|
+ parentData: JSON.stringify(row),
|
|
|
stationId: row.station_id,
|
|
|
stationName: row.scd_name,
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+ // 生成报告和跳转页面
|
|
|
+ function outcome(row, num) {
|
|
|
+ router.push({
|
|
|
+ path: "/home/report/details",
|
|
|
+ query: {
|
|
|
+ reportId: row.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
function getList() {
|
|
|
const loading = ElLoading.service({
|
|
|
lock: true,
|
|
@@ -238,7 +251,7 @@ export default {
|
|
|
task.getTask({ pageno: 1, pagesize: 10, state: 1 }).then(res => {
|
|
|
if (res.data == null) {
|
|
|
nowRunList.value = {}
|
|
|
- lookingTask.value ={}
|
|
|
+ lookingTask.value = {}
|
|
|
return
|
|
|
} else {
|
|
|
nowRunList.value = res.data[0]
|
|
@@ -256,7 +269,7 @@ export default {
|
|
|
return "intBox"
|
|
|
}
|
|
|
}
|
|
|
- function relison(e){
|
|
|
+ function relison(e) {
|
|
|
currEditTaskModels.value = e
|
|
|
}
|
|
|
function intOver(num) {
|
|
@@ -305,6 +318,7 @@ export default {
|
|
|
isIndex,
|
|
|
isIndexs,
|
|
|
relison,//开始检测后选择模型change事件
|
|
|
+ outcome,//生成报告和跳转yemian
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -407,7 +421,7 @@ p {
|
|
|
box-shadow: inset 0px -3px 3px 0px #C8D4EC;
|
|
|
}
|
|
|
|
|
|
-.intBox:hover {
|
|
|
+.intBox:hover {
|
|
|
background-color: #8BA6F0;
|
|
|
color: white;
|
|
|
}
|
|
@@ -481,5 +495,4 @@ p {
|
|
|
|
|
|
:deep(.el-loading-spinner .path) {
|
|
|
stroke: #ffffff;
|
|
|
-}
|
|
|
-</style>
|
|
|
+}</style>
|