This commit is contained in:
BianLzhaoMin 2026-02-02 17:40:50 +08:00
parent c84ba89e5a
commit 9fcb4f3a1f
1 changed files with 23 additions and 5 deletions

View File

@ -133,19 +133,36 @@
</template>
</el-table-column>
<el-table-column
:label="item.label"
align="center"
:prop="item.prop"
v-for="item in mainListFields"
:key="item.prop"
:prop="item.prop"
:label="item.label"
v-for="item in mainListFields"
>
<template #header>
<span v-if="item.label === '外勤次数'">
外勤次数
<el-tooltip
effect="dark"
placement="top"
content="大于5天为外勤预警"
>
<i class="el-icon-info" />
</el-tooltip>
</span>
<span v-else>
{{ item.label }}
</span>
</template>
<template slot-scope="scope">
<span
v-if="item.needShow"
style="color: #02a7f0; cursor: pointer"
@click="openRecord(scope.row, item.type)"
>{{ scope.row[item.prop] }}</span
>
{{ scope.row[item.prop] }}
</span>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
@ -262,8 +279,9 @@
v-if="item.needShow"
style="color: #02a7f0; cursor: pointer"
@click="openRecord(scope.row, item.type)"
>{{ scope.row[item.prop] }}</span
>
{{ scope.row[item.prop] }}
</span>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>