优化发布等各种状态

This commit is contained in:
yml2213
2026-05-23 15:52:44 +08:00
parent f2492d5e40
commit b101415e9d
25 changed files with 368 additions and 70 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { computed, onMounted, reactive, ref } from "vue";
import { Refresh, Search } from "@element-plus/icons-vue";
import { fetchListings, type Listing } from "@/api/listings";
import { listingStatusLabel } from "@/utils/statusLabels";
const loading = ref(false);
const listings = ref<Listing[]>([]);
@@ -192,7 +193,7 @@ function listingPrice(item: Listing) {
<div class="resource-main">
<div class="resource-title-line">
<strong>{{ item.title }}</strong>
<em>{{ item.status === "published" ? "可租" : item.status }}</em>
<em>{{ item.status === "published" ? "可租" : listingStatusLabel(item.status) }}</em>
</div>
<p>
{{