|
@@ -60,9 +60,9 @@
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="168px">
|
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" icon="Edit" @click="look(scope.row)" v-hasPermi="['care:applications:look']">查看</el-button>
|
|
|
- <el-button link type="primary" icon="Edit" @click="clock(scope.row)" v-hasPermi="['care:clocks:list']">打卡</el-button>
|
|
|
- <el-button link type="primary" icon="Edit" @click="die(scope.row)" v-hasPermi="['care:clocks:die']">死亡</el-button>
|
|
|
- <el-button link type="primary" icon="Edit" @click="finish(scope.row)" v-hasPermi="['care:clocks:finish']">结束</el-button>
|
|
|
+ <el-button link type="primary" icon="Edit" @click="clock(scope.row)" v-if="scope.row.dealStatus != 'complete'" v-hasPermi="['care:clocks:list']">打卡</el-button>
|
|
|
+ <el-button link type="primary" icon="Edit" @click="die(scope.row)" v-if="scope.row.dealStatus != 'complete'" v-hasPermi="['care:clocks:die']">死亡</el-button>
|
|
|
+ <el-button link type="primary" icon="Edit" @click="finish(scope.row)" v-if="scope.row.dealStatus != 'complete'" v-hasPermi="['care:clocks:finish']">结束</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|