提交 9f81b191 authored 作者: lhh's avatar lhh

添加刷新

上级 b5576482
......@@ -26,7 +26,7 @@ const listOptions = computed(() => {
}
},
{ label: '生成时间', prop: 'created_time' },
{ label: '操作', slots: 'table-x' }
{ label: '操作', slots: 'table-x', width: '200' }
]
}
})
......@@ -34,7 +34,7 @@ const listOptions = computed(() => {
const handleDelete = function (item: any) {
scheduleDelete({ id: item.id }).then(res => {
if (res.data) {
appList?.refetch()
refetch()
ElMessage({
message: '删除成功',
type: 'success'
......@@ -42,6 +42,10 @@ const handleDelete = function (item: any) {
}
})
}
const refetch = function () {
appList?.refetch()
}
</script>
<template>
......@@ -54,6 +58,9 @@ const handleDelete = function (item: any) {
>
<AppList v-bind="listOptions" ref="appList">
<template #table-x="{ row }">
<el-button type="primary" plain @click="refetch" v-permission="'v1-experiment-member-delete'"
>刷新</el-button
>
<el-button type="primary" plain @click="handleDelete(row)" v-permission="'v1-experiment-member-delete'"
>删除</el-button
>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论