Преглед на файлове

特殊照护任务详情增加撤销功能

xiongxing преди 1 месец
родител
ревизия
fd3801963f
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      src/views/elderly/nursing/special-nurse-log/Detail.vue
  2. 1 1
      src/views/elderly/nursing/special-nurse-log/index.vue

+ 2 - 2
src/views/elderly/nursing/special-nurse-log/Detail.vue

@@ -35,7 +35,7 @@
         <el-table-column label="创建时间" prop="createTime" />
         <el-table-column label="操作" width="80" v-hasPermi="['nursing-log-list:delete']">
           <template #default="scope">
-            <el-button link type="danger" @click="handleDelete(scope.row.id)">删除</el-button>
+            <el-button v-hasPermi="['special-nurse-log:revocation']" link type="danger" @click="openRevocation(scope.row.id)">撤销</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -82,7 +82,7 @@ const getDetail = async (elderId: number, nurseDate: string[]) => {
 
 defineExpose({ open }) // 提供 open 方法,用于打开弹窗
 
-const handleDelete = (id: number) => {
+const openRevocation = (id: number) => {
   ElMessageBox.confirm('确定删除该护理记录?', '提示', {
     confirmButtonText: '确 认',
     cancelButtonText: '取 消'

+ 1 - 1
src/views/elderly/nursing/special-nurse-log/index.vue

@@ -39,7 +39,7 @@
       :queryParams="queryParams"
     >
       <template #pre="{ scope }">
-        <el-button v-hasPermi="['nursing-log-list:detail']" link type="primary" @click="openDetail(scope)">查看</el-button>
+        <el-button v-hasPermi="['nursing-log-list:details']" link type="primary" @click="openDetail(scope)">查看</el-button>
       </template>
     </Table2>
     <!-- 分页 -->