lijingjia 2 weeks ago
parent 5efb1faa0b
commit bf08b39bdc

@ -47,9 +47,8 @@
@resizable-change="resizableChangeEvent" @resizable-change="resizableChangeEvent"
> >
<template #empty> <template #empty>
<div style="color: #f60;"> <div>
<img src="../../../assets/images/nodata.png" /> <img style="width: 100px;" src="../../../assets/images/nodata.png" />
<!-- <p>暂无数据</p> -->
</div> </div>
</template> </template>
<vxe-column type="checkbox" width="40"></vxe-column> <vxe-column type="checkbox" width="40"></vxe-column>

@ -37,19 +37,15 @@
</a-tooltip> </a-tooltip>
</div> </div>
</template> </template>
<template #bodyCell="{ column, record }"> <template v-slot:tableAction="{ record }">
<template v-if="column.key === 'action'"> <a-tooltip placement="top" :mouseEnterDelay="0.5">
<TableAction <template #title>
:actions="[ <span>编辑</span>
{ </template>
icon: 'clarity:note-edit-line', <a-button :disabled="checkPermissions('op:infoclient:edit')" type="link" @click="handleAudit(record)">
tooltip: '编1辑', <span class="iconfont icon-icon_519"></span>
onClick: handleAudit.bind(null, record), </a-button>
disabled: checkPermissions('op:infoclient:edit'), </a-tooltip>
},
]"
/>
</template>
</template> </template>
</BasicTable> </BasicTable>
</div> </div>
@ -72,8 +68,10 @@
const route = useRoute() const route = useRoute()
import { useAppStore } from '/@/store/modules/app' import { useAppStore } from '/@/store/modules/app'
import dayjs from 'dayjs' import dayjs from 'dayjs'
//
const tbHeight = window.innerHeight - 250
const appStore = useAppStore() const appStore = useAppStore()
const [registerTable, { reload, getForm, getSelectRows }] = useTable({ const [registerTable, { reload, getForm, getVxeSelectRows }] = useTable({
title: '', title: '',
api: async (p) => { api: async (p) => {
var res = null var res = null
@ -170,10 +168,12 @@
width: 60, width: 60,
}, },
canResize: true, canResize: true,
resizeHeightOffset: 32, resizeHeightOffset: 15,
autoHeight: tbHeight,
immediate: true, immediate: true,
tableComponent: 'vxe',
actionColumn: { actionColumn: {
width: 80, width: 60,
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
fixed: 'right', fixed: 'right',
@ -190,7 +190,7 @@
async function handleDel() { async function handleDel() {
let ids: any = [] let ids: any = []
let StateDelType = true let StateDelType = true
getSelectRows().forEach((item: any) => { getVxeSelectRows().forEach((item: any) => {
if (item.auditStatus == 0) { if (item.auditStatus == 0) {
StateDelType = false StateDelType = false
} else { } else {

Loading…
Cancel
Save