箱管换表

zth
lijingjia 1 week ago
parent fedb33e67a
commit 38a4f44a0d

@ -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>
新建
@ -25,19 +26,17 @@
<span class="iconfont icon-weiwancheng"></span>
取消确认
</a-button>
</span>
</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>
@ -56,7 +55,7 @@
//
import { formatParams } from '/@/hooks/web/common'
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,7 @@
width: 60,
},
canResize: true,
resizeHeightOffset: 35,
resizeHeightOffset: 15,
immediate: true,
actionColumn: {
width: 80,
@ -92,6 +91,9 @@
dataIndex: 'action',
fixed: 'right',
},
tableComponent: 'vxe',
autoHeight: window.innerHeight - 250,
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: [],
}

@ -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: [],
}

@ -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,18 +28,15 @@
取消确认
</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>
@ -56,7 +55,7 @@
//
import { formatParams } from '/@/hooks/web/common'
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,7 @@
width: 60,
},
canResize: true,
resizeHeightOffset: 35,
resizeHeightOffset: 15,
immediate: true,
actionColumn: {
width: 80,
@ -92,6 +91,9 @@
dataIndex: 'action',
fixed: 'right',
},
tableComponent: 'vxe',
autoHeight: window.innerHeight - 250,
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: [],
}

@ -26,18 +26,15 @@
取消确认
</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>
@ -56,7 +53,7 @@
//
import { formatParams } from '/@/hooks/web/common'
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,14 +81,17 @@
width: 60,
},
canResize: true,
resizeHeightOffset: 35,
resizeHeightOffset: 15,
immediate: true,
actionColumn: {
width: 80,
width: 50,
title: '操作',
dataIndex: 'action',
fixed: 'right',
},
id:'0',
tableComponent: 'vxe',
autoHeight: window.innerHeight - 250
})
function handleCreate() {
openModal(true, {
@ -100,7 +100,7 @@
})
}
function Confirm() {
const select = getSelectRows()
const select = getVxeSelectRows()
let ApiData: any = {
id: '',
ids: [],
@ -119,7 +119,7 @@
})
}
function Cancel() {
const select = getSelectRows()
const select = getVxeSelectRows()
let ApiData: any = {
id: '',
ids: [],
@ -139,7 +139,7 @@
}
function handleDel() {
const select = getSelectRows()
const select = getVxeSelectRows()
let ApiData: any = {
ids: [],
}

@ -33,8 +33,9 @@
const { notification } = useMessage()
//
import { formatParams } from '/@/hooks/web/common'
const tbHeight = window.innerHeight - 270
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
const [registerTable, { reload, getForm, getVxeSelectRows }] = useTable({
title: '',
api: async (p) => {
if (p.queryCondition == '[]') {
@ -80,12 +81,15 @@
indexColumnProps: {
width: 60,
},
tableComponent: 'vxe',
autoHeight: tbHeight,
canResize: true,
resizeHeightOffset: 35,
resizeHeightOffset: 15,
immediate: false,
id: '0'
})
function handleDel() {
const select = getSelectRows()
const select = getVxeSelectRows()
let ApiData: any = {
ids: [],
}

Loading…
Cancel
Save