|
@@ -49,6 +49,16 @@
|
|
|
<template #create-time="{ col, row }">
|
|
|
{{ timestampFilter(row[col.colKey]) }}
|
|
|
</template>
|
|
|
+ <template #operate="{ row }">
|
|
|
+ <div class="table-operations">
|
|
|
+ <t-link theme="primary" hover="color" @click="handleEdit(row)">
|
|
|
+ 修改
|
|
|
+ </t-link>
|
|
|
+ <t-link theme="danger" hover="color" @click="handleDelete(row)">
|
|
|
+ 删除
|
|
|
+ </t-link>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</t-table>
|
|
|
</div>
|
|
|
|
|
@@ -60,7 +70,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script setup lang="jsx" name="CheckinManage">
|
|
|
+<script setup name="CheckinManage">
|
|
|
import { ref, reactive, onMounted } from 'vue';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
import { DialogPlugin, MessagePlugin } from 'tdesign-vue-next';
|
|
@@ -117,35 +127,10 @@ const columns = [
|
|
|
{
|
|
|
title: '管理',
|
|
|
colKey: 'operate',
|
|
|
+ cell: 'operate',
|
|
|
fixed: 'right',
|
|
|
width: 120,
|
|
|
align: 'center',
|
|
|
- cell: (h, { row }) => {
|
|
|
- return (
|
|
|
- <div class="table-operations">
|
|
|
- <t-link
|
|
|
- theme="primary"
|
|
|
- hover="color"
|
|
|
- onClick={(e) => {
|
|
|
- e.stopPropagation();
|
|
|
- handleEdit(row);
|
|
|
- }}
|
|
|
- >
|
|
|
- 修改
|
|
|
- </t-link>
|
|
|
- <t-link
|
|
|
- theme="danger"
|
|
|
- hover="color"
|
|
|
- onClick={(e) => {
|
|
|
- e.stopPropagation();
|
|
|
- handleDelete(row);
|
|
|
- }}
|
|
|
- >
|
|
|
- 删除
|
|
|
- </t-link>
|
|
|
- </div>
|
|
|
- );
|
|
|
- },
|
|
|
},
|
|
|
];
|
|
|
const {
|