Parcourir la source

控制完成后的按钮权限

qinyan il y a 2 mois
Parent
commit
a21a356d5d
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      ruoyi-vue/src/views/care/clocks/index_task.vue

+ 3 - 3
ruoyi-vue/src/views/care/clocks/index_task.vue

@@ -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>