|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
|
|
|
|
|
<template #tableTitle>
|
|
|
|
|
<span>
|
|
|
|
|
<a-button type="link" @click="handleCreate">
|
|
|
|
|
<span class="iconfont icon-tianjia"></span>
|
|
|
|
|
新建
|
|
|
|
@ -17,6 +18,7 @@
|
|
|
|
|
删除
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</span>
|
|
|
|
|
<!-- <a-button type="link" @click="Confirm">
|
|
|
|
|
<span class="iconfont icon-yiwancheng2"></span>
|
|
|
|
|
确认执行
|
|
|
|
@ -26,21 +28,17 @@
|
|
|
|
|
取消确认
|
|
|
|
|
</a-button> -->
|
|
|
|
|
</template>
|
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
|
<TableAction
|
|
|
|
|
:actions="[
|
|
|
|
|
{
|
|
|
|
|
icon: 'clarity:note-edit-line',
|
|
|
|
|
tooltip: '编辑',
|
|
|
|
|
onClick: handleAudit.bind(null, record),
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
/>
|
|
|
|
|
<template v-slot:tableAction="{ record }">
|
|
|
|
|
<a-tooltip placement="top" :mouseEnterDelay="0.5">
|
|
|
|
|
<template #title>
|
|
|
|
|
<span>编辑</span>
|
|
|
|
|
</template>
|
|
|
|
|
<a-button type="link" @click="handleAudit(record)">
|
|
|
|
|
<span class="iconfont icon-icon_519"></span>
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
</BasicTable>
|
|
|
|
|
|
|
|
|
|
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -55,8 +53,9 @@
|
|
|
|
|
const { notification } = useMessage()
|
|
|
|
|
// 引入处理入参方法
|
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
const tbHeight = window.innerHeight - 250
|
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
|
const [registerTable, { reload, getSelectRows }] = useTable({
|
|
|
|
|
const [registerTable, { reload, getVxeSelectRows }] = useTable({
|
|
|
|
|
title: '',
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
const res: API.DataResult = await ApiList(p)
|
|
|
|
@ -84,7 +83,9 @@
|
|
|
|
|
width: 60,
|
|
|
|
|
},
|
|
|
|
|
canResize: true,
|
|
|
|
|
resizeHeightOffset: 35,
|
|
|
|
|
resizeHeightOffset: 15,
|
|
|
|
|
tableComponent: 'vxe',
|
|
|
|
|
autoHeight: tbHeight,
|
|
|
|
|
immediate: true,
|
|
|
|
|
actionColumn: {
|
|
|
|
|
width: 80,
|
|
|
|
@ -92,6 +93,7 @@
|
|
|
|
|
dataIndex: 'action',
|
|
|
|
|
fixed: 'right',
|
|
|
|
|
},
|
|
|
|
|
id: '0'
|
|
|
|
|
})
|
|
|
|
|
function handleCreate() {
|
|
|
|
|
openModal(true, {
|
|
|
|
@ -100,7 +102,7 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function Confirm() {
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
const select = getVxeSelectRows()
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
id: '',
|
|
|
|
|
ids: [],
|
|
|
|
@ -119,7 +121,7 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function Cancel() {
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
const select = getVxeSelectRows()
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
id: '',
|
|
|
|
|
ids: [],
|
|
|
|
@ -139,7 +141,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleDel() {
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
const select = getVxeSelectRows()
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
ids: [],
|
|
|
|
|
}
|
|
|
|
|