修改并优化了一些功能及bug
This commit is contained in:
@@ -244,6 +244,18 @@ const _sfc_main = {
|
||||
url: "/pages/closeout/editor"
|
||||
});
|
||||
};
|
||||
const getStatusClass = (status) => {
|
||||
switch (status) {
|
||||
case "待审核":
|
||||
return "status-pending";
|
||||
case "已通过":
|
||||
return "status-passed";
|
||||
case "已驳回":
|
||||
return "status-rejected";
|
||||
default:
|
||||
return "status-pending";
|
||||
}
|
||||
};
|
||||
common_vendor.onMounted(() => {
|
||||
fetchWriteOffList();
|
||||
});
|
||||
@@ -252,13 +264,14 @@ const _sfc_main = {
|
||||
a: common_vendor.f(hazardList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.hazardTitle),
|
||||
b: common_vendor.t(item.statusName),
|
||||
c: common_vendor.t(item.hazardCreatedAt),
|
||||
d: common_vendor.t(item.responsibleDeptName),
|
||||
e: common_vendor.t(item.responsiblePerson),
|
||||
f: common_vendor.t(item.createdAt),
|
||||
g: common_vendor.o(($event) => editor(), index),
|
||||
h: index
|
||||
b: common_vendor.t(item.verifyResultName || "未知"),
|
||||
c: common_vendor.n(getStatusClass(item.verifyResultName)),
|
||||
d: common_vendor.t(item.hazardCreatedAt),
|
||||
e: common_vendor.t(item.responsibleDeptName),
|
||||
f: common_vendor.t(item.responsiblePerson),
|
||||
g: common_vendor.t(item.createdAt),
|
||||
h: common_vendor.o(($event) => editor(), index),
|
||||
i: index
|
||||
};
|
||||
}),
|
||||
b: common_vendor.o(openAddPopup),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -28,6 +28,29 @@
|
||||
min-height: 100vh;
|
||||
background: #EBF2FC;
|
||||
}
|
||||
.status-tag.data-v-4b6250eb {
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 6rpx;
|
||||
font-size: 22rpx;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
font-weight: 500;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
align-self: flex-start;
|
||||
}
|
||||
.status-pending.data-v-4b6250eb {
|
||||
background: #FFF7E6;
|
||||
color: #FA8C16;
|
||||
}
|
||||
.status-passed.data-v-4b6250eb {
|
||||
background: #F6FFED;
|
||||
color: #52C41A;
|
||||
}
|
||||
.status-rejected.data-v-4b6250eb {
|
||||
background: #FFF1F0;
|
||||
color: #F5222D;
|
||||
}
|
||||
.popup-content.data-v-4b6250eb {
|
||||
width: 600rpx;
|
||||
background: #fff;
|
||||
|
||||
Reference in New Issue
Block a user