fix:select

This commit is contained in:
dichgrem
2026-01-05 17:45:27 +08:00
parent fb9735f9c6
commit 456d6f4479
7 changed files with 47 additions and 45 deletions

View File

@@ -23,9 +23,18 @@
import moment from "moment";
export default {
props: ["data"],
props: ["data", "isMyApply"],
data() {
return {
applyStatusMap: ["", "审核中", "审核通过", "审核拒绝"],
bgColorMap: ["", "#1989fa", "#07c160", "#f6352c"],
};
},
methods: {
getTagStyle(data) {
if (this.isMyApply && data.applyStatus !== undefined) {
return { backgroundColor: this.bgColorMap[data.applyStatus] };
}
return { backgroundColor: data.canApply ? "#07c160" : "#999" };
},
formatDate(value) {
@@ -35,6 +44,9 @@ export default {
this.$emit("goDetails", id);
},
getTagTxt(data) {
if (this.isMyApply && data.applyStatus !== undefined) {
return this.applyStatusMap[data.applyStatus];
}
return data.canApply ? "进行中" : "已结束";
},
},