修改新增和删除变动公式值bug
This commit is contained in:
parent
d82e34d803
commit
6aba8f4b37
@ -280,18 +280,23 @@ function delClick(index:any){
|
|||||||
formula.value = tempData.join('')
|
formula.value = tempData.join('')
|
||||||
|
|
||||||
let tempList:any = []
|
let tempList:any = []
|
||||||
|
let tempIndex = -1
|
||||||
for(let i=0;i<tempData.length;i++){
|
for(let i=0;i<tempData.length;i++){
|
||||||
tempList.push(delayList.value[i])
|
if(tempData[i].length > 5 && typeof tempData[i] == 'string'){
|
||||||
|
tempIndex = tempIndex + 1
|
||||||
|
tempList.push(delayList.value[tempIndex])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
delayList.value = tempList
|
delayList.value = tempList
|
||||||
}
|
}
|
||||||
function confirmClick(){
|
function confirmClick(){
|
||||||
let deviceMaterialData:any = []
|
let deviceMaterialData:any = []
|
||||||
|
let tempIndex = -1
|
||||||
formulaData.value.forEach((element:any,index:any) => {
|
formulaData.value.forEach((element:any,index:any) => {
|
||||||
if(element.type != null){
|
if(element.type != null){
|
||||||
|
tempIndex = tempIndex + 1
|
||||||
let tempItem = JSON.parse(JSON.stringify(element))
|
let tempItem = JSON.parse(JSON.stringify(element))
|
||||||
tempItem.delay = delayList.value[index].delay
|
tempItem.delay = delayList.value[tempIndex].delay
|
||||||
deviceMaterialData.push(tempItem)
|
deviceMaterialData.push(tempItem)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -465,10 +465,16 @@ const objectSpanMethod = ({
|
|||||||
<el-table-column prop="taskName" label="任务名称" min-width="180" ></el-table-column>
|
<el-table-column prop="taskName" label="任务名称" min-width="180" ></el-table-column>
|
||||||
<el-table-column prop="algorithmType" label="算法类型" width="160" ></el-table-column>
|
<el-table-column prop="algorithmType" label="算法类型" width="160" ></el-table-column>
|
||||||
<el-table-column prop="deviceType" label="设备类型" width="160" ></el-table-column>
|
<el-table-column prop="deviceType" label="设备类型" width="160" ></el-table-column>
|
||||||
<el-table-column prop="status" label="任务状态" width="100">
|
<el-table-column prop="status" label="任务状态" width="100" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{statusName(scope.row.status)}}
|
<!-- <span v-if="scope.row.status == 'Success' " style="color:rgb(51,126,204)"> {{statusName(scope.row.status)}}</span> -->
|
||||||
</template>
|
<span v-if="scope.row.status == 'Failed' " style="color: #f56c6c;"> {{statusName(scope.row.status)}}</span>
|
||||||
|
<span v-if="scope.row.status == 'Success' " style="color: #ff8c02;display: flex;align-items: center;" >
|
||||||
|
<!-- Training -->
|
||||||
|
<img src="@/assets/table/view.png" alt="" title="训练中" style="margin-right: 10px;"> {{statusName(scope.row.status)}}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column prop="updatedAt" label="创建时间" width="200">
|
<el-table-column prop="updatedAt" label="创建时间" width="200">
|
||||||
|
|||||||
@ -381,7 +381,7 @@ function handleSuccess(file: any) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="segmentation_custom_attrs_content4" >
|
<div class="segmentation_custom_attrs_content4" >
|
||||||
<span @click="removeAttr(indexs)" v-if="isEdit == true">删除</span>
|
<span @click="removeAttr(indexs)" style="cursor: pointer;" v-if="isEdit == true">删除</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user