|
@@ -2,7 +2,15 @@
|
|
|
<div>
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #action="{ record }">
|
|
|
- <TableAction :actions="getActions(record)" :dropDownActions="getDropDownAction(record)" />
|
|
|
+ <!-- <TableAction :actions="getActions(record)" :dropDownActions="getDropDownAction(record)" /> -->
|
|
|
+ <a class="table-action-link" @click="handleEdit(record)">编辑</a>
|
|
|
+ <a-popconfirm
|
|
|
+ title="确定删除?"
|
|
|
+ @confirm="handleDelete(record)"
|
|
|
+ >
|
|
|
+ <a class="table-action-link">删除</a>
|
|
|
+ </a-popconfirm>
|
|
|
+ <a class="table-action-link" @click="handleDownLoad(record)">下载</a>
|
|
|
</template>
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
<slot name="filterCell" v-bind="{ column, record }"></slot>
|
|
@@ -186,41 +194,41 @@ function downFilePublic(content, fileName) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 操作列定义
|
|
|
- * @param record
|
|
|
- */
|
|
|
-function getActions(record) {
|
|
|
- return [
|
|
|
- {
|
|
|
- label: '详情',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '编辑',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '删除',
|
|
|
- popConfirm: {
|
|
|
- title: '是否确认删除',
|
|
|
- confirm: handleDelete.bind(null, record),
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '下载',
|
|
|
- onClick: handleDownLoad.bind(null, record),
|
|
|
- },
|
|
|
- // {
|
|
|
- // label: '审批',
|
|
|
- // onClick: handleEdit.bind(null, record),
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '查看',
|
|
|
- // onClick: handleDetail.bind(null, record),
|
|
|
- // },
|
|
|
- ];
|
|
|
-}
|
|
|
+// /**
|
|
|
+// * 操作列定义
|
|
|
+// * @param record
|
|
|
+// */
|
|
|
+// function getActions(record) {
|
|
|
+// return [
|
|
|
+// {
|
|
|
+// label: '详情',
|
|
|
+// onClick: handleEdit.bind(null, record),
|
|
|
+// },
|
|
|
+// {
|
|
|
+// label: '编辑',
|
|
|
+// onClick: handleEdit.bind(null, record),
|
|
|
+// },
|
|
|
+// {
|
|
|
+// label: '删除',
|
|
|
+// popConfirm: {
|
|
|
+// title: '是否确认删除',
|
|
|
+// confirm: handleDelete.bind(null, record),
|
|
|
+// },
|
|
|
+// },
|
|
|
+// {
|
|
|
+// label: '下载',
|
|
|
+// onClick: handleDownLoad.bind(null, record),
|
|
|
+// },
|
|
|
+// // {
|
|
|
+// // label: '审批',
|
|
|
+// // onClick: handleEdit.bind(null, record),
|
|
|
+// // },
|
|
|
+// // {
|
|
|
+// // label: '查看',
|
|
|
+// // onClick: handleDetail.bind(null, record),
|
|
|
+// // },
|
|
|
+// ];
|
|
|
+// }
|
|
|
/**
|
|
|
* 下拉操作栏
|
|
|
*/
|