删除tableActions
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
tableName="SIMULATION_TASK_DEMAND_CREATE"
|
||||
:params="{ type: 0 }"
|
||||
:api="demandListApi"
|
||||
:actionsWidth="tableActionsLength['2-2']"
|
||||
exportFileName="新增待办需求"
|
||||
:actionList="actionList"
|
||||
>
|
||||
<template #leftOptions>
|
||||
<el-button
|
||||
@@ -20,7 +20,7 @@
|
||||
>
|
||||
<el-button icon="plus" type="primary" @click="visibleDialog(true)">创建需求</el-button>
|
||||
</template>
|
||||
<template #tableActions="slotProps">
|
||||
<!-- <template #tableActions="slotProps">
|
||||
<div class="gl-table-actions">
|
||||
<el-link type="primary" @click="visibleDialog(false, (slotProps as any).row)"
|
||||
>编辑</el-link
|
||||
@@ -34,7 +34,7 @@
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</div>
|
||||
</template>
|
||||
</template> -->
|
||||
</demandTable>
|
||||
<Dialog
|
||||
v-model="formVisible"
|
||||
@@ -82,7 +82,6 @@ import { FILE_TYPE } from '@/utils/enum/file';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { dataDelFileApi, dataQueryDirApi } from '@/api/data/data';
|
||||
import demandTable from '../components/demandTable.vue';
|
||||
import { tableActionsLength } from '@/utils/common';
|
||||
import { getMemberListIds } from '@/utils/task';
|
||||
import { enableConfigByTenant, TENANT_ENUM } from '@/tenants/tenant';
|
||||
import { syncDemandList } from '../taskPage';
|
||||
@@ -101,6 +100,25 @@ const emits = defineEmits(['visibleDialog', 'loadTableForm', 'changeForm']);
|
||||
|
||||
const commonStore = CommonStore();
|
||||
|
||||
const actionList = ref([
|
||||
{
|
||||
title: '编辑',
|
||||
type: 'primary',
|
||||
click: (row: any) => {
|
||||
visibleDialog(false, row);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '删除',
|
||||
type: 'danger',
|
||||
needConfirm: true,
|
||||
confirmTip: '确认删除吗?',
|
||||
click: (row: any) => {
|
||||
deleteDemandFun(row.uuid);
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
const loadingInterface = ref(false);
|
||||
|
||||
const formVisible = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user