mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 03:16:47 +08:00
fix -- bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user