fix: bug#18805
This commit is contained in:
parent
490f34b215
commit
a55e7d2af1
|
@ -79,7 +79,7 @@ const showSave = () => {
|
||||||
const downVisible = ref(false)
|
const downVisible = ref(false)
|
||||||
const searchValue = ref()
|
const searchValue = ref()
|
||||||
const queryData = (first?: Boolean, searchName?: any) => {
|
const queryData = (first?: Boolean, searchName?: any) => {
|
||||||
const params = searchName ? { sorts: [{ name: 'createTime', order: 'desc' }, { name: 'name', order: 'desc' }], terms: [{ terms: [{ value: '%' + searchName + '%', termType: 'like', column: 'name' }] }] } : { sorts: [{ name: 'createTime', order: 'desc' }, { name: 'name', order: 'desc' }] }
|
const params = searchName ? { paging:false ,sorts: [{ name: 'createTime', order: 'desc' }, { name: 'name', order: 'desc' }], terms: [{ terms: [{ value: '%' + searchName + '%', termType: 'like', column: 'name' }] }] } : { sorts: [{ name: 'createTime', order: 'desc' }, { name: 'name', order: 'desc' }], paging:false }
|
||||||
getDicList(params).then((res: any) => {
|
getDicList(params).then((res: any) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
listData.value = res.result
|
listData.value = res.result
|
||||||
|
|
|
@ -29,6 +29,13 @@
|
||||||
<template #type="slotProps">
|
<template #type="slotProps">
|
||||||
{{ slotProps.type?.name }}
|
{{ slotProps.type?.name }}
|
||||||
</template>
|
</template>
|
||||||
|
<template #roleList="slotProps">
|
||||||
|
<j-ellipsis>
|
||||||
|
{{ slotProps?.roleList?.map((item)=>{
|
||||||
|
return item.name
|
||||||
|
}).join(',') }}
|
||||||
|
</j-ellipsis>
|
||||||
|
</template>
|
||||||
<template #status="slotProps">
|
<template #status="slotProps">
|
||||||
<BadgeStatus
|
<BadgeStatus
|
||||||
:status="slotProps.status"
|
:status="slotProps.status"
|
||||||
|
@ -172,6 +179,15 @@ const columns = [
|
||||||
},
|
},
|
||||||
scopedSlots: true,
|
scopedSlots: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '角色',
|
||||||
|
dataIndex: 'roleList',
|
||||||
|
key: 'roleList',
|
||||||
|
search:{
|
||||||
|
type:'string'
|
||||||
|
},
|
||||||
|
scopedSlots: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
|
|
Loading…
Reference in New Issue