修复多于代码

This commit is contained in:
lai
2024-09-24 17:29:38 +08:00
parent c30e8b4891
commit ec67414cb6
3 changed files with 27 additions and 57 deletions

View File

@@ -534,7 +534,7 @@ onBeforeUnmount(() => {
<!-- 表格搜索栏 -->
<a-form :model="queryParams" name="queryParams" layout="horizontal">
<a-row :gutter="16">
<a-col :lg="6" :md="12" :xs="24">
<a-col :lg="8" :md="12" :xs="24">
<a-form-item label="IMS" name="neId ">
<a-select
v-model:value="queryParams.neId"
@@ -543,7 +543,7 @@ onBeforeUnmount(() => {
/>
</a-form-item>
</a-col>
<a-col :lg="6" :md="12" :xs="24">
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.called')"
name="calledParty"
@@ -555,7 +555,7 @@ onBeforeUnmount(() => {
></a-input>
</a-form-item>
</a-col>
<a-col :lg="6" :md="12" :xs="24">
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.caller')"
name="callerParty "
@@ -567,20 +567,6 @@ onBeforeUnmount(() => {
></a-input>
</a-form-item>
</a-col>
<a-col :lg="4" :md="12" :xs="24">
<a-form-item>
<a-space :size="8">
<a-button type="primary" @click.prevent="fnGetList(1)">
<template #icon><SearchOutlined /></template>
{{ t('common.search') }}
</a-button>
<a-button type="default" @click.prevent="fnQueryReset">
<template #icon><ClearOutlined /></template>
{{ t('common.reset') }}
</a-button>
</a-space>
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.recordType')"
@@ -598,30 +584,6 @@ onBeforeUnmount(() => {
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.called')"
name="calledParty "
>
<a-input
v-model:value="queryParams.calledParty"
allow-clear
:placeholder="t('common.inputPlease')"
></a-input>
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.caller')"
name="callerParty "
>
<a-input
v-model:value="queryParams.callerParty"
allow-clear
:placeholder="t('common.inputPlease')"
></a-input>
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.dashboard.cdr.time')"

View File

@@ -680,12 +680,6 @@ let uploadImportState: ModalUploadImportStateType = reactive({
templateDownload: false,
});
function showTenant(value: any, option: any) {
modalState.showTenant = option.some(
(option: any) => option.roleKey === 'tenant'
);
}
/**对话框表格信息导入弹出窗口 */
function fnModalUploadImportOpen() {
uploadImportState.updateSupport = false;
@@ -799,8 +793,9 @@ function fnGetDeptTree() {
});
}
function handleChange(value: any,options:any) {
modalState.from.roleIds=[value];
function handleChange(value: any, options: any) {
modalState.from.roleIds = [value];
modalState.showTenant = options.roleKey === 'tenant';
}
onMounted(() => {
@@ -1255,7 +1250,6 @@ onMounted(() => {
:options="modalState.options.roles"
:field-names="{ label: 'roleName', value: 'roleId' }"
@select="handleChange"
>
</a-select>
</a-form-item>
@@ -1481,7 +1475,6 @@ onMounted(() => {
:options="modalState.options.roles"
:field-names="{ label: 'roleName', value: 'roleId' }"
:placeholder="t('common.selectPlease')"
@change="showTenant"
@select="handleChange"
>
</a-select>