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: "供货地", label: "供货地",
prop: "productSourcing", prop: "productSourcingDetail",
width: "180"
},
{
label: "货款(元)",
prop: "bidPrice",
width: "90" width: "90"
}, },
{ {
label: "投标时间", label: "投标时间",
prop: "createTime", prop: "createTime",
width: "160", width: "160",
align: "center",
formatter: row => { formatter: row => {
return row.createTime return row.createTime
? dayjs(row.createTime).format("YYYY-MM-DD HH:mm:ss") ? 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_company: 10,
issuance_num_per_month_person: 5 issuance_num_per_month_person: 5
}, },
areas: { area_config: {
separator: " " separator: " "
} }
}); });
@@ -47,12 +47,12 @@ const purchaseTypeMap = {
// 添加分隔符选项 // 添加分隔符选项
const separatorOptions = [ const separatorOptions = [
{ value: " ", label: "空格" }, { value: " ", label: "空格(默认)" },
{ value: ",", label: "逗号" }, { value: ",", label: "逗号" },
{ value: "、", label: "顿号" }, { value: "、", label: "顿号" },
{ value: "-", label: "中划线" }, { value: "-", label: "中划线" },
{ value: "_", label: "下划线" }, { value: "_", label: "下划线" },
{ value: " > ", label: "大于号" } { value: ">", label: "大于号" }
]; ];
// 加载设置数据 // 加载设置数据
@@ -254,19 +254,19 @@ onMounted(() => {
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>地域配置</span> <span>地域配置</span>
<el-button type="primary" @click="saveSettings('areas')" <el-button type="primary" @click="saveSettings('area_config')"
>保存</el-button >保存</el-button
> >
</div> </div>
</template> </template>
<el-form <el-form
label-width="160px" label-width="160px"
:model="settingsData.areas" :model="settingsData.area_config"
class="settings-form" class="settings-form"
> >
<el-form-item label="地址分隔符"> <el-form-item label="地址分隔符">
<el-select <el-select
v-model="settingsData.areas.separator" v-model="settingsData.area_config.separator"
placeholder="请选择分隔符" placeholder="请选择分隔符"
style="width: 180px" style="width: 180px"
> >
@@ -277,14 +277,14 @@ onMounted(() => {
:value="item.value" :value="item.value"
> >
<span <span
>{{ item.label }} ({{ >{{ item.label }} ({{ item.value === " " ? " " : item.value }})
item.value === " " ? "空格" : item.value </span>
}})</span
>
</el-option> </el-option>
</el-select> </el-select>
<div class="form-tip"> <div class="form-tip">
用于连接地区名称,例如:北京{{ settingsData.areas.separator }}朝阳区 用于连接地区名称,例如:北京{{
settingsData.area_config.separator
}}朝阳区
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>