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

View File

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

View File

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