fix(darren):修复状态显示判断逻辑错误

将状态判断中的数字 0 改为字符串 '0',确保状态显示正确匹配后端返回的数据类型。
This commit is contained in:
huk 2025-09-20 15:00:54 +08:00
parent 0838c7c2f5
commit b5084972e6

View File

@ -59,7 +59,7 @@
<el-table-column label="聘任时间" align="center" prop="joinTime" />
<el-table-column label="状态" align="center" prop="status">
<template v-slot="scope">
{{ scope.row.status === 0 ? '正常' : '停用' }}
{{ scope.row.status === '0' ? '正常' : '停用' }}
</template>
</el-table-column>
<el-table-column label="电话" align="center" prop="personPhone" />