mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 20:36:48 +08:00
fix -- bug
This commit is contained in:
@@ -122,7 +122,7 @@
|
|||||||
label="状态"
|
label="状态"
|
||||||
>
|
>
|
||||||
<img
|
<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"
|
style="width: 99px; height: 99px"
|
||||||
/>
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -185,6 +185,16 @@ const returnfun = () => {
|
|||||||
showmapdetail.value = false;
|
showmapdetail.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function formatStatus(process) {
|
||||||
|
if (!process) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (parseInt(process) === 1) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
async function gofun(e) {
|
async function gofun(e) {
|
||||||
detail.value = e;
|
detail.value = e;
|
||||||
showmapdetail.value = true;
|
showmapdetail.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user