feat: 修改配置

This commit is contained in:
2025-03-05 16:38:49 +08:00
parent 5eb65e38f2
commit 312662e587
2 changed files with 18 additions and 12 deletions

View File

@@ -174,13 +174,19 @@ const columns: TableColumnList = [
},
{
label: "供货地",
prop: "productSourcing",
prop: "productSourcingDetail",
width: "180"
},
{
label: "货款(元)",
prop: "bidPrice",
width: "90"
},
{
label: "投标时间",
prop: "createTime",
width: "160",
align: "center",
formatter: row => {
return row.createTime
? dayjs(row.createTime).format("YYYY-MM-DD HH:mm:ss")

View File

@@ -30,7 +30,7 @@ const settingsData = ref({
issuance_num_per_month_company: 10,
issuance_num_per_month_person: 5
},
areas: {
area_config: {
separator: " "
}
});
@@ -47,12 +47,12 @@ const purchaseTypeMap = {
// 添加分隔符选项
const separatorOptions = [
{ value: " ", label: "空格" },
{ value: " ", label: "空格(默认)" },
{ value: ",", label: "逗号" },
{ value: "、", label: "顿号" },
{ value: "-", label: "中划线" },
{ value: "_", label: "下划线" },
{ value: " > ", label: "大于号" }
{ value: ">", label: "大于号" }
];
// 加载设置数据
@@ -254,19 +254,19 @@ onMounted(() => {
<template #header>
<div class="card-header">
<span>地域配置</span>
<el-button type="primary" @click="saveSettings('areas')"
<el-button type="primary" @click="saveSettings('area_config')"
>保存</el-button
>
</div>
</template>
<el-form
label-width="160px"
:model="settingsData.areas"
:model="settingsData.area_config"
class="settings-form"
>
<el-form-item label="地址分隔符">
<el-select
v-model="settingsData.areas.separator"
v-model="settingsData.area_config.separator"
placeholder="请选择分隔符"
style="width: 180px"
>
@@ -277,14 +277,14 @@ onMounted(() => {
:value="item.value"
>
<span
>{{ item.label }} ({{
item.value === " " ? "空格" : item.value
}})</span
>
>{{ item.label }} ({{ item.value === " " ? " " : item.value }})
</span>
</el-option>
</el-select>
<div class="form-tip">
用于连接地区名称,例如:北京{{ settingsData.areas.separator }}朝阳区
用于连接地区名称,例如:北京{{
settingsData.area_config.separator
}}朝阳区
</div>
</el-form-item>
</el-form>