style: 调整操作显示
This commit is contained in:
@@ -144,7 +144,7 @@ const handleCurrentChange = (val: number) => {
|
|||||||
// 添加状态选项
|
// 添加状态选项
|
||||||
const bidStatusOptions = [
|
const bidStatusOptions = [
|
||||||
{ value: 1, label: "完成" },
|
{ value: 1, label: "完成" },
|
||||||
{ value: 2, label: "未完成" },
|
{ value: 2, label: "进行中" },
|
||||||
{ value: 3, label: "超时" }
|
{ value: 3, label: "超时" }
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -203,6 +203,7 @@ const columns: TableColumnList = [
|
|||||||
label: "是否公司",
|
label: "是否公司",
|
||||||
prop: "isCompany",
|
prop: "isCompany",
|
||||||
width: "90",
|
width: "90",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.isCompany ? "是" : "否";
|
return row.isCompany ? "是" : "否";
|
||||||
}
|
}
|
||||||
@@ -222,6 +223,7 @@ const columns: TableColumnList = [
|
|||||||
label: "发标类型",
|
label: "发标类型",
|
||||||
prop: "bidType",
|
prop: "bidType",
|
||||||
width: "100",
|
width: "100",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
const type = bidTypeOptions.find(item => item.value === row.bidType);
|
const type = bidTypeOptions.find(item => item.value === row.bidType);
|
||||||
return type ? type.label : "";
|
return type ? type.label : "";
|
||||||
@@ -231,6 +233,7 @@ const columns: TableColumnList = [
|
|||||||
label: "发标领域",
|
label: "发标领域",
|
||||||
prop: "bidField",
|
prop: "bidField",
|
||||||
width: "100",
|
width: "100",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
const field = bidFieldOptions.find(item => item.value === row.bidField);
|
const field = bidFieldOptions.find(item => item.value === row.bidField);
|
||||||
return field ? field.label : "";
|
return field ? field.label : "";
|
||||||
@@ -239,12 +242,14 @@ const columns: TableColumnList = [
|
|||||||
{
|
{
|
||||||
label: "需求数量",
|
label: "需求数量",
|
||||||
prop: "needNum",
|
prop: "needNum",
|
||||||
|
align: "center",
|
||||||
width: "90"
|
width: "90"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "发标分类",
|
label: "发标分类",
|
||||||
prop: "category",
|
prop: "category",
|
||||||
width: "100",
|
width: "100",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
const cat = categoryOptions.find(item => item.value === row.category);
|
const cat = categoryOptions.find(item => item.value === row.category);
|
||||||
return cat ? cat.label : "";
|
return cat ? cat.label : "";
|
||||||
@@ -259,6 +264,7 @@ const columns: TableColumnList = [
|
|||||||
label: "状态",
|
label: "状态",
|
||||||
prop: "bidStatus",
|
prop: "bidStatus",
|
||||||
width: "90",
|
width: "90",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
const status = bidStatusOptions.find(
|
const status = bidStatusOptions.find(
|
||||||
item => item.value === row.bidStatus
|
item => item.value === row.bidStatus
|
||||||
@@ -308,6 +314,7 @@ const columns: TableColumnList = [
|
|||||||
label: "紧急度",
|
label: "紧急度",
|
||||||
prop: "urgency",
|
prop: "urgency",
|
||||||
width: "90",
|
width: "90",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
const urgency = urgencyOptions.find(item => item.value === row.urgency);
|
const urgency = urgencyOptions.find(item => item.value === row.urgency);
|
||||||
return urgency ? urgency.label + "(" + urgency.day + "天)" : "";
|
return urgency ? urgency.label + "(" + urgency.day + "天)" : "";
|
||||||
@@ -321,11 +328,10 @@ const columns: TableColumnList = [
|
|||||||
{
|
{
|
||||||
label: "截止日期",
|
label: "截止日期",
|
||||||
prop: "expiryDate",
|
prop: "expiryDate",
|
||||||
width: "160",
|
width: "120",
|
||||||
|
align: "center",
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.expiryDate
|
return row.expiryDate ? dayjs(row.expiryDate).format("YYYY-MM-DD") : "";
|
||||||
? dayjs(row.expiryDate).format("YYYY-MM-DD HH:mm:ss")
|
|
||||||
: "";
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -631,13 +637,20 @@ onMounted(() => {
|
|||||||
row-key="id"
|
row-key="id"
|
||||||
>
|
>
|
||||||
<template #operation="{ row }">
|
<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>
|
||||||
<!-- <el-button type="primary" link @click="handleEdit(row)">
|
<el-button
|
||||||
编辑
|
type="danger"
|
||||||
</el-button> -->
|
link
|
||||||
<el-button type="danger" link @click="handleDelete(row)">
|
:disabled="true"
|
||||||
|
@click="handleDelete(row)"
|
||||||
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -635,7 +635,7 @@ onMounted(() => {
|
|||||||
<el-drawer
|
<el-drawer
|
||||||
v-model="detailDrawer"
|
v-model="detailDrawer"
|
||||||
title="积分明细"
|
title="积分明细"
|
||||||
width="50%"
|
size="40%"
|
||||||
:close-on-click-modal="true"
|
:close-on-click-modal="true"
|
||||||
:before-close="() => (detailDrawer = false)"
|
:before-close="() => (detailDrawer = false)"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user