Commit 665339c5 authored by 沈翠玲's avatar 沈翠玲

下拉选择框

parent dd518a58
...@@ -155,8 +155,11 @@ ...@@ -155,8 +155,11 @@
enumMap.value.set(field, []); enumMap.value.set(field, []);
// 当前 enum 为后台数据需要请求数据,则调用该请求接口,并存储到 enumMap // 当前 enum 为后台数据需要请求数据,则调用该请求接口,并存储到 enumMap
const { data } = await enumValue(); let { result } = await enumValue();
enumMap.value.set(field, data); if (result?.content) {
result = result?.content
}
enumMap.value.set(field, result);
}; };
// 注入 enumMap // 注入 enumMap
......
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
title: '超时状态', title: '超时状态',
width: 100, width: 100,
showOverflow: 'tooltip', showOverflow: 'tooltip',
search: { el: 'select', props: { clearable: true } }, // search: { el: 'select', props: { clearable: true } },
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return ( return (
......
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
return <>{Array.from(new Set(row.loans.map((v) => v.loanPlatform.name))).join(',')}</>; return <>{Array.from(new Set(row.loans.map((v) => v.loanPlatform.name))).join(',')}</>;
}, },
}, },
search: { el: 'input', labelWidth: 80 }, // search: { el: 'input', labelWidth: 80 },
}, },
{ {
field: 'borrower.name', field: 'borrower.name',
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
field: 'stages.loans.loanPlatform.name', field: 'stages.loans.loanPlatform.name',
title: '借款机构', title: '借款机构',
showOverflow: 'tooltip', showOverflow: 'tooltip',
search: { el: 'input', key: 'payOrg', labelWidth: 80 }, // search: { el: 'input', key: 'payOrg', labelWidth: 80 },
width: 100, width: 100,
}, },
{ {
......
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
title: '超时状态', title: '超时状态',
width: 100, width: 100,
showOverflow: 'tooltip', showOverflow: 'tooltip',
search: { el: 'select', props: { clearable: true }, labelWidth: 78 }, // search: { el: 'select', props: { clearable: true }, labelWidth: 78 },
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return ( return (
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
const getTree = () => { const getTree = () => {
getTenantPage({ getTenantPage({
current: 1, current: 1,
size: 999999999, size: 999999999, status: 'enable'
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
data.value = res.result.content; data.value = res.result.content;
......
...@@ -45,6 +45,10 @@ ...@@ -45,6 +45,10 @@
import citydata from '../../../assets/citydata'; import citydata from '../../../assets/citydata';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import {VxeTextEllipsis, VxeTooltip} from 'vxe-pc-ui' import {VxeTextEllipsis, VxeTooltip} from 'vxe-pc-ui'
import { getPlatformPage } from '@/api/platform';
import { getManageOrgPage } from '@/api/manageOrg';
import { getTenantPage } from '@/api/tenant';
const allocationModalRef = ref(); const allocationModalRef = ref();
const caseLRef = ref(); const caseLRef = ref();
const selectdList = ref([]); const selectdList = ref([]);
...@@ -147,17 +151,21 @@ ...@@ -147,17 +151,21 @@
}, },
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, enum: () => getPlatformPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, key: 'payOrg', labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'loanPlatformId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '借款机构',
width: 100
}, },
{ {
field: 'manageOrg.orgName', field: 'manageOrg.orgName',
title: '资管公司', title: '资管公司',
enum: () => getManageOrgPage({current: 1, size: 999999999, status: 'enable'}),
fieldNames: { label: 'orgName', value: 'id' },
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, width: 100,
search: { el: 'input', props: { clearable: true }, key: 'manageOrg', labelWidth: 78 }, search: { el: 'select', props: { clearable: true }, key: 'manageOrgId', labelWidth: 78 },
}, },
{ {
field: 'batchCode', field: 'batchCode',
...@@ -188,10 +196,12 @@ ...@@ -188,10 +196,12 @@
}, },
{ {
field: 'tenant.name', field: 'tenant.name',
title: '调解中心',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 80, enum: () => getTenantPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '调解中心',
width: 100
}, },
{ {
field: 'discount', field: 'discount',
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
const getTree = () => { const getTree = () => {
getTenantPage({ getTenantPage({
current: 1, current: 1,
size: 999999999, size: 999999999, status: 'enable'
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
data.value = res.result.content; data.value = res.result.content;
......
...@@ -15,13 +15,15 @@ ...@@ -15,13 +15,15 @@
<vxe-modal <vxe-modal
v-model="showModal" v-model="showModal"
title="提示" title="提示"
height="282" height="242"
width="450" width="450"
show-footer show-footer
esc-closable esc-closable
> >
<div class="w-full px-3 h-full overflow-auto flex-col flex mytable"> <div class="w-full px-3 h-full overflow-auto flex-col flex mytable">
回收是只回收未留案的案件,强制回收就是所有状态案件都处理,请确认选择操作? ⚠️回收处理后可重新分派<br />
回收:只回收未留案的案件<br />
强制回收:所有案件都会回收,留案案件会被强制回收<br />
</div> </div>
<template #footer> <template #footer>
<el-button type="default" @click="showModal = false">取消</el-button> <el-button type="default" @click="showModal = false">取消</el-button>
...@@ -39,6 +41,9 @@ ...@@ -39,6 +41,9 @@
import {VxeTextEllipsis, VxeTooltip} from 'vxe-pc-ui' import {VxeTextEllipsis, VxeTooltip} from 'vxe-pc-ui'
import citydata from '../../../assets/citydata'; import citydata from '../../../assets/citydata';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { getPlatformPage } from '@/api/platform';
import { getManageOrgPage } from '@/api/manageOrg';
import { getTenantPage } from '@/api/tenant';
const caseLRef = ref(); const caseLRef = ref();
const selectdList = ref([]); const selectdList = ref([]);
const curParam = ref({}); const curParam = ref({});
...@@ -173,17 +178,21 @@ ...@@ -173,17 +178,21 @@
}, },
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, enum: () => getPlatformPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, key: 'payOrg', labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'loanPlatformId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '借款机构',
width: 100
}, },
{ {
field: 'manageOrg.orgName', field: 'manageOrg.orgName',
showOverflow: 'tooltip',
title: '资管公司', title: '资管公司',
enum: () => getManageOrgPage({current: 1, size: 999999999, status: 'enable'}),
fieldNames: { label: 'orgName', value: 'id' },
showOverflow: 'tooltip',
width: 100, width: 100,
search: { el: 'input', props: { clearable: true }, key: 'manageOrg', labelWidth: 78 }, search: { el: 'select', props: { clearable: true }, key: 'manageOrgId', labelWidth: 78 },
}, },
{ {
field: 'batchCode', field: 'batchCode',
...@@ -214,10 +223,12 @@ ...@@ -214,10 +223,12 @@
}, },
{ {
field: 'tenant.name', field: 'tenant.name',
title: '调解中心',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 80, enum: () => getTenantPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '调解中心',
width: 100
}, },
{ {
field: 'discount', field: 'discount',
......
This diff is collapsed.
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
const caseModalRef = ref(); const caseModalRef = ref();
const caseLRef = ref(); const caseLRef = ref();
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { getPlatformPage } from '@/api/platform';
import { getManageOrgPage } from '@/api/manageOrg';
const router = useRouter(); const router = useRouter();
const onCellClick = (row) => { const onCellClick = (row) => {
...@@ -97,16 +99,20 @@ ...@@ -97,16 +99,20 @@
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
showOverflow: 'tooltip', showOverflow: 'tooltip',
enum: () => getPlatformPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'select', props: { filterable: true }, key: 'loanPlatform', labelWidth: 80 },
fieldNames: { label: 'name', value: 'id' },
title: '借款机构', title: '借款机构',
width: 100, width: 100
search: { el: 'input', props: { clearable: true }, key: 'payOrg', labelWidth: 80 },
}, },
{ {
field: 'manageOrg.orgName', field: 'manageOrg.orgName',
title: '资管公司', title: '资管公司',
enum: () => getManageOrgPage({current: 1, size: 999999999, status: 'enable'}),
fieldNames: { label: 'orgName', value: 'id' },
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, width: 100,
search: { el: 'input', props: { clearable: true }, key: 'manageOrg', labelWidth: 80 }, search: { el: 'select', props: { clearable: true }, key: 'manageOrg', labelWidth: 80 },
}, },
{ {
field: 'borrower.name', field: 'borrower.name',
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
const getTree = () => { const getTree = () => {
getTenantPage({ getTenantPage({
current: 1, current: 1,
size: 999999999, size: 999999999, status: 'enable'
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
data.value = res.result.content; data.value = res.result.content;
......
...@@ -15,13 +15,15 @@ ...@@ -15,13 +15,15 @@
<vxe-modal <vxe-modal
v-model="showModal" v-model="showModal"
title="提示" title="提示"
height="282" height="242"
width="450" width="450"
show-footer show-footer
esc-closable esc-closable
> >
<div class="w-full px-3 h-full overflow-auto flex-col flex mytable"> <div class="w-full px-3 h-full overflow-auto flex-col flex mytable">
回收是只回收未留案的案件,强制回收就是所有状态案件都处理,请确认选择操作 ⚠️撤案处理后不可重新分派<br />
撤案:只撤案未留案的案件<br />
强制撤案:所有案件都会撤案,留案案件会被强制撤案<br />
</div> </div>
<template #footer> <template #footer>
<el-button type="default" @click="showModal = false">取消</el-button> <el-button type="default" @click="showModal = false">取消</el-button>
...@@ -40,6 +42,9 @@ ...@@ -40,6 +42,9 @@
import citydata from '../../../assets/citydata'; import citydata from '../../../assets/citydata';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import {VxeTextEllipsis, VxeTooltip} from 'vxe-pc-ui' import {VxeTextEllipsis, VxeTooltip} from 'vxe-pc-ui'
import { getPlatformPage } from '@/api/platform';
import { getManageOrgPage } from '@/api/manageOrg';
import { getTenantPage } from '@/api/tenant';
const caseLRef = ref(); const caseLRef = ref();
const selectdList = ref([]); const selectdList = ref([]);
const curParam = ref({}); const curParam = ref({});
...@@ -173,17 +178,21 @@ ...@@ -173,17 +178,21 @@
}, },
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, enum: () => getPlatformPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, key: 'payOrg', labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'loanPlatformId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '借款机构',
width: 100
}, },
{ {
field: 'manageOrg.orgName', field: 'manageOrg.orgName',
showOverflow: 'tooltip',
title: '资管公司', title: '资管公司',
enum: () => getManageOrgPage({current: 1, size: 999999999, status: 'enable'}),
fieldNames: { label: 'orgName', value: 'id' },
showOverflow: 'tooltip',
width: 100, width: 100,
search: { el: 'input', props: { clearable: true }, key: 'manageOrg', labelWidth: 78 }, search: { el: 'select', props: { clearable: true }, key: 'manageOrgId', labelWidth: 78 },
}, },
{ {
field: 'batchCode', field: 'batchCode',
...@@ -214,10 +223,12 @@ ...@@ -214,10 +223,12 @@
}, },
{ {
field: 'tenant.name', field: 'tenant.name',
title: '调解中心',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 80, enum: () => getTenantPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, labelWidth: 78 }, search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '调解中心',
width: 100
}, },
{ {
field: 'discount', field: 'discount',
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
title: '超时状态', title: '超时状态',
width: 100, width: 100,
showOverflow: 'tooltip', showOverflow: 'tooltip',
search: { el: 'select', props: { clearable: true }, labelWidth: 78 }, // search: { el: 'select', props: { clearable: true }, labelWidth: 78 },
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return ( return (
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
import { stayLoan } from '@/api/allcation'; import { stayLoan } from '@/api/allcation';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { useUserStore } from '@/stores/modules/user'; import { useUserStore } from '@/stores/modules/user';
import { getPlatformPage } from '@/api/platform';
import { getManageOrgPage } from '@/api/manageOrg';
const { userInfo } = useUserStore(); const { userInfo } = useUserStore();
const router = useRouter(); const router = useRouter();
const selectdList = ref([]); const selectdList = ref([]);
...@@ -138,17 +141,21 @@ ...@@ -138,17 +141,21 @@
}, },
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, enum: () => getPlatformPage({current: 1, size: 999999999, status: 'enable'}),
search: { el: 'input', props: { clearable: true }, key: 'payOrg', labelWidth: 80 }, search: { el: 'select', props: { filterable: true }, key: 'loanPlatform', labelWidth: 80 },
fieldNames: { label: 'name', value: 'id' },
title: '借款机构',
width: 100
}, },
{ {
field: 'manageOrg.orgName', field: 'manageOrg.orgName',
title: '资管公司', title: '资管公司',
enum: () => getManageOrgPage({current: 1, size: 999999999, status: 'enable'}),
fieldNames: { label: 'orgName', value: 'id' },
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 100, width: 100,
search: { el: 'input', props: { clearable: true }, key: 'manageOrg', labelWidth: 80 }, search: { el: 'select', props: { clearable: true }, key: 'manageOrg', labelWidth: 80 },
}, },
{ {
field: 'borrower.name', field: 'borrower.name',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment