|
@@ -6,59 +6,58 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :lg="6">
|
|
|
<a-form-item name="code">
|
|
|
- <template #label><span title="编码">编码</span></template>
|
|
|
- <a-input placeholder="请输入编码" v-model:value="queryParam.code" allow-clear ></a-input>
|
|
|
+ <template #label><span title="编码">编码(code)</span></template>
|
|
|
+ <a-input placeholder="请输入" v-model:value="queryParam.code" allow-clear ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6">
|
|
|
<a-form-item name="name">
|
|
|
- <template #label><span title="名称">名称</span></template>
|
|
|
+ <template #label><span title="名称">名称(name)</span></template>
|
|
|
<a-input placeholder="请输入名称" v-model:value="queryParam.name" allow-clear ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<template v-if="toggleSearchStatus">
|
|
|
<a-col :lg="6">
|
|
|
- <a-form-item name="abbreviation">
|
|
|
- <template #label><span title="简称">简称</span></template>
|
|
|
+ <a-form-item name="abbreviation" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
+ <template #label><span title="简称">简称(abbreviation)</span></template>
|
|
|
<a-input placeholder="请输入简称" v-model:value="queryParam.abbreviation" allow-clear ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6">
|
|
|
- <a-form-item name="dutyParagraph">
|
|
|
- <template #label><span title="税号">税号</span></template>
|
|
|
+ <a-form-item name="dutyParagraph" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
+ <template #label><span title="税号">税号(dutyParagraph)</span></template>
|
|
|
<a-input placeholder="请输入税号" v-model:value="queryParam.dutyParagraph" allow-clear ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6">
|
|
|
- <a-form-item name="legalPerson">
|
|
|
- <template #label><span title="法人">法人</span></template>
|
|
|
- <a-input placeholder="请输入法人" v-model:value="queryParam.legalPerson" allow-clear ></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :lg="6">
|
|
|
- <a-form-item name="contacts">
|
|
|
- <template #label><span title="联系人">联系人</span></template>
|
|
|
+ <a-form-item name="contacts" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
+ <template #label><span title="联系人">联系人(contacts)</span></template>
|
|
|
<a-input placeholder="请输入联系人" v-model:value="queryParam.contacts" allow-clear ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6">
|
|
|
- <a-form-item name="phone">
|
|
|
- <template #label><span title="联系电话">联系电话</span></template>
|
|
|
+ <a-form-item name="phone" :label-col="labelCol1" :wrapper-col="wrapperCol1">
|
|
|
+ <template #label><span title="联系电话">联系电话(phone)</span></template>
|
|
|
<a-input placeholder="请输入联系电话" v-model:value="queryParam.phone" allow-clear ></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="6">
|
|
|
<a-form-item name="country">
|
|
|
- <template #label><span title="国家">国家</span></template>
|
|
|
- <a-input placeholder="请输入国家" v-model:value="queryParam.country" allow-clear ></a-input>
|
|
|
+ <template #label><span title="国家">国家(country)</span></template>
|
|
|
+ <JDictSelectTag v-model:value="queryParam.country" placeholder="请选择" dictCode="country" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :lg="6">
|
|
|
+ <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status" label="状态(status)">
|
|
|
+ <JDictSelectTag v-model:value="queryParam.status" placeholder="请选择" dictCode="valid_status" stringToNumber/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
|
<a-col :lg="6">
|
|
|
- <a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
|
|
- <a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
|
|
+ <a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询(search)</a-button>
|
|
|
+ <a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置(reset)</a-button>
|
|
|
<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
|
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
|
@@ -70,12 +69,12 @@
|
|
|
</a-form>
|
|
|
</div>
|
|
|
<!--引用表格-->
|
|
|
- <BasicTable @register="registerTable" :rowSelection="rowSelection">
|
|
|
+ <BasicTable @register="registerTable" :rowSelection="rowSelection" size="small">
|
|
|
<!--插槽:table标题-->
|
|
|
<template #tableTitle>
|
|
|
- <a-button type="primary" v-auth="'cuspCode:cusp_intermediator:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
|
|
- <a-button type="primary" v-auth="'cuspCode:cusp_intermediator:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
|
|
- <j-upload-button type="primary" v-auth="'cuspCode:cusp_intermediator:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
|
|
+ <a-button type="primary" v-auth="'cuspCode:cusp_intermediator:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
|
|
|
+ <a-button type="primary" v-auth="'cuspCode:cusp_intermediator:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
|
|
|
+ <!-- <j-upload-button type="primary" v-auth="'cuspCode:cusp_intermediator:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> -->
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<template #overlay>
|
|
|
<a-menu>
|
|
@@ -90,7 +89,7 @@
|
|
|
</a-button>
|
|
|
</a-dropdown>
|
|
|
<!-- 高级查询 -->
|
|
|
- <super-query :config="superQueryConfig" @search="handleSuperQuery" />
|
|
|
+ <!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" /> -->
|
|
|
</template>
|
|
|
<!--操作栏-->
|
|
|
<template #action="{ record }">
|
|
@@ -113,6 +112,7 @@
|
|
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
|
|
import CuspIntermediatorModal from './components/CuspIntermediatorModal.vue'
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
+ import { JDictSelectTag} from '/@/components/Form';
|
|
|
|
|
|
const formRef = ref();
|
|
|
const queryParam = reactive<any>({});
|
|
@@ -128,7 +128,7 @@
|
|
|
canResize:false,
|
|
|
useSearchForm: false,
|
|
|
actionColumn: {
|
|
|
- width: 120,
|
|
|
+ width: 200,
|
|
|
fixed: 'right',
|
|
|
},
|
|
|
beforeFetch: async (params) => {
|
|
@@ -146,15 +146,21 @@
|
|
|
},
|
|
|
});
|
|
|
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
|
|
- const labelCol = reactive({
|
|
|
- xs:24,
|
|
|
- sm:4,
|
|
|
- xl:6,
|
|
|
- xxl:4
|
|
|
+ const labelCol = ref({
|
|
|
+ xs: { span: 24 },
|
|
|
+ sm: { span: 6 },
|
|
|
+ });
|
|
|
+ const wrapperCol = ref({
|
|
|
+ xs: { span: 24 },
|
|
|
+ sm: { span: 18 },
|
|
|
});
|
|
|
- const wrapperCol = reactive({
|
|
|
- xs: 24,
|
|
|
- sm: 20,
|
|
|
+ const labelCol1 = ref({
|
|
|
+ xs: { span: 24 },
|
|
|
+ sm: { span: 9 },
|
|
|
+ });
|
|
|
+ const wrapperCol1 = ref({
|
|
|
+ xs: { span: 24 },
|
|
|
+ sm: { span: 15 },
|
|
|
});
|
|
|
|
|
|
// 高级查询配置
|
|
@@ -221,7 +227,7 @@
|
|
|
function getTableAction(record) {
|
|
|
return [
|
|
|
{
|
|
|
- label: '编辑',
|
|
|
+ label: '编辑(edit)',
|
|
|
onClick: handleEdit.bind(null, record),
|
|
|
auth: 'cuspCode:cusp_intermediator:edit'
|
|
|
},
|
|
@@ -234,10 +240,10 @@
|
|
|
function getDropDownAction(record) {
|
|
|
return [
|
|
|
{
|
|
|
- label: '详情',
|
|
|
+ label: '详情(detail)',
|
|
|
onClick: handleDetail.bind(null, record),
|
|
|
}, {
|
|
|
- label: '删除',
|
|
|
+ label: '删除(delete)',
|
|
|
popConfirm: {
|
|
|
title: '是否确认删除',
|
|
|
confirm: handleDelete.bind(null, record),
|
|
@@ -287,11 +293,14 @@
|
|
|
text-align: center
|
|
|
}
|
|
|
.ant-form-item:not(.ant-form-item-with-help){
|
|
|
- margin-bottom: 16px;
|
|
|
- height: 32px;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ // height: 32px;
|
|
|
}
|
|
|
:deep(.ant-picker),:deep(.ant-input-number){
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
+ /deep/.jeecg-basic-table-form-container .table-page-search-submitButtons{
|
|
|
+ margin-bottom: 2px !important;
|
|
|
+ }
|
|
|
</style>
|