feat(creditUser): 更新导入模板链接及表单项标签

- 优化导入模板下载链接的布局
- 将“客户名称”字段标签更正为“项目名称”
- 统一代码格式并移除冗余空行
- 调整表格列配置对齐方式
- 完善组件引用路径与方法导入结构
This commit is contained in:
2025-12-16 15:14:27 +08:00
parent 89d359b40e
commit 5c783c2f51
3 changed files with 20 additions and 14 deletions

View File

@@ -22,9 +22,7 @@
</a-spin>
<div class="ele-text-center">
<span>只能上传xlsxlsx文件</span>
<a :href="templateUrl" download="招投标导入模板.xlsx">
下载导入模板
</a>
<a :href="templateUrl" download="招投标导入模板.xlsx"> 下载导入模板 </a>
</div>
</ele-modal>
</template>
@@ -51,8 +49,10 @@
// 模板下载地址,保持与当前接口域名一致
const templateUrl = computed(() => {
const base =
(localStorage.getItem('ApiUrl') || API_BASE_URL || '').replace(/\/$/, '');
const base = (localStorage.getItem('ApiUrl') || API_BASE_URL || '').replace(
/\/$/,
''
);
return `${base}/credit/credit-user/import/template`;
});

View File

@@ -19,10 +19,10 @@
styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' }
"
>
<a-form-item label="客户名称" name="name">
<a-form-item label="项目名称" name="name">
<a-input
allow-clear
placeholder="请输入客户名称"
placeholder="请输入项目名称"
v-model:value="form.name"
/>
</a-form-item>

View File

@@ -57,7 +57,6 @@
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
import { toDateString } from 'ele-admin-pro';
import type {
DatasourceFunction,
ColumnItem
@@ -66,8 +65,15 @@
import { getPageTitle } from '@/utils/common';
import CreditUserEdit from './components/creditUserEdit.vue';
import CreditUserImport from './components/credit-user-import.vue';
import { pageCreditUser, removeCreditUser, removeBatchCreditUser } from '@/api/credit/creditUser';
import type { CreditUser, CreditUserParam } from '@/api/credit/creditUser/model';
import {
pageCreditUser,
removeCreditUser,
removeBatchCreditUser
} from '@/api/credit/creditUser';
import type {
CreditUser,
CreditUserParam
} from '@/api/credit/creditUser/model';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -114,7 +120,7 @@
title: 'ID',
dataIndex: 'id',
key: 'id',
width: 90,
width: 90
},
{
title: '项目名称',
@@ -124,7 +130,7 @@
{
title: '发布日期',
dataIndex: 'releaseDate',
key: 'releaseDate',
key: 'releaseDate'
},
// {
// title: '唯一标识',
@@ -191,7 +197,7 @@
dataIndex: 'winningPrice',
key: 'winningPrice',
ellipsis: true
},
}
// {
// title: '排序',
// dataIndex: 'sortNumber',