style: 调整操作显示

This commit is contained in:
2025-02-12 00:14:18 +08:00
parent 8fa26b3a44
commit 1cece2cf0c
2 changed files with 25 additions and 12 deletions

View File

@@ -144,7 +144,7 @@ const handleCurrentChange = (val: number) => {
// 添加状态选项
const bidStatusOptions = [
{ value: 1, label: "完成" },
{ value: 2, label: "未完成" },
{ value: 2, label: "进行中" },
{ value: 3, label: "超时" }
];
@@ -203,6 +203,7 @@ const columns: TableColumnList = [
label: "是否公司",
prop: "isCompany",
width: "90",
align: "center",
formatter: row => {
return row.isCompany ? "是" : "否";
}
@@ -222,6 +223,7 @@ const columns: TableColumnList = [
label: "发标类型",
prop: "bidType",
width: "100",
align: "center",
formatter: row => {
const type = bidTypeOptions.find(item => item.value === row.bidType);
return type ? type.label : "";
@@ -231,6 +233,7 @@ const columns: TableColumnList = [
label: "发标领域",
prop: "bidField",
width: "100",
align: "center",
formatter: row => {
const field = bidFieldOptions.find(item => item.value === row.bidField);
return field ? field.label : "";
@@ -239,12 +242,14 @@ const columns: TableColumnList = [
{
label: "需求数量",
prop: "needNum",
align: "center",
width: "90"
},
{
label: "发标分类",
prop: "category",
width: "100",
align: "center",
formatter: row => {
const cat = categoryOptions.find(item => item.value === row.category);
return cat ? cat.label : "";
@@ -259,6 +264,7 @@ const columns: TableColumnList = [
label: "状态",
prop: "bidStatus",
width: "90",
align: "center",
formatter: row => {
const status = bidStatusOptions.find(
item => item.value === row.bidStatus
@@ -308,6 +314,7 @@ const columns: TableColumnList = [
label: "紧急度",
prop: "urgency",
width: "90",
align: "center",
formatter: row => {
const urgency = urgencyOptions.find(item => item.value === row.urgency);
return urgency ? urgency.label + "(" + urgency.day + "天)" : "";
@@ -321,11 +328,10 @@ const columns: TableColumnList = [
{
label: "截止日期",
prop: "expiryDate",
width: "160",
width: "120",
align: "center",
formatter: row => {
return row.expiryDate
? dayjs(row.expiryDate).format("YYYY-MM-DD HH:mm:ss")
: "";
return row.expiryDate ? dayjs(row.expiryDate).format("YYYY-MM-DD") : "";
}
},
{
@@ -631,13 +637,20 @@ onMounted(() => {
row-key="id"
>
<template #operation="{ row }">
<el-button type="primary" link @click="handleDetail(row)">
投标记录
<el-button
type="primary"
link
:disabled="!row.bidNum || row.bidNum <= 0"
@click="handleDetail(row)"
>
投标记录{{ row.bidNum ? `(${row.bidNum})` : "" }}
</el-button>
<!-- <el-button type="primary" link @click="handleEdit(row)">
编辑
</el-button> -->
<el-button type="danger" link @click="handleDelete(row)">
<el-button
type="danger"
link
:disabled="true"
@click="handleDelete(row)"
>
删除
</el-button>
</template>

View File

@@ -635,7 +635,7 @@ onMounted(() => {
<el-drawer
v-model="detailDrawer"
title="积分明细"
width="50%"
size="40%"
:close-on-click-modal="true"
:before-close="() => (detailDrawer = false)"
>