fix -- bug

This commit is contained in:
yuping
2023-02-23 14:59:56 +08:00
parent 629b04d89e
commit 33cbb25234

View File

@@ -122,7 +122,7 @@
label="状态"
>
<img
:src="{1:ongoing,2:completed,0:ongoing}[scope.row.taskStatus] || nostarted"
:src="{1:ongoing,2:completed,0:nostarted}[formatStatus(scope.row.process)]"
style="width: 99px; height: 99px"
/>
</el-table-column>
@@ -185,6 +185,16 @@ const returnfun = () => {
showmapdetail.value = false;
};
function formatStatus(process) {
if (!process) {
return 0;
}
if (parseInt(process) === 1) {
return 2;
}
return 1;
}
async function gofun(e) {
detail.value = e;
showmapdetail.value = true;