feat:增加项目审核状态

This commit is contained in:
lixg
2022-11-22 20:43:02 +08:00
parent ed3d2f4627
commit 66fc7c8c13
10 changed files with 600 additions and 540 deletions

View File

@@ -2047,13 +2047,16 @@ export default {
customRender: (value) => {
return (
<div>
{value.record.status == 0
{value.record.status == 0 ||
value.record.status == 1 ||
value.record.status == 2 ||
value.record.status == -2
? "草稿"
: value.record.status == 1 &&
: value.record.status == 3 &&
Number(value.record.beginTime) <
Math.ceil(new Date().getTime() / 1000)
? "进行中"
: value.record.status == 1 &&
: value.record.status == 3 &&
Number(value.record.beginTime) >
Math.ceil(new Date().getTime() / 1000) &&
value.record.type !== 1 &&
@@ -2074,6 +2077,36 @@ export default {
width: 100,
align: "center",
},
{
title: "是否审核",
dataIndex: "status",
// width: "30%",
key: "status",
width: 100,
align: "center",
customRender: (value) => {
{
console.log("获取项目", value);
}
return (
<div>
{value.record.type !== 3
? "-"
: value.record.status == 0
? "未审核"
: value.record.status == 1
? "审核中"
: value.record.status == 2 ||
value.record.status == 3 ||
value.record.status == -1
? "已审核"
: value.record.status == -2
? "未通过"
: "-"}
</div>
);
},
},
{
title: "创建时间",
dataIndex: "createTime",
@@ -2094,7 +2127,10 @@ export default {
customRender: (value) => {
// console.log("value", value.record.type, value.record.status);
return value.record.type === 1 ? (
value.record.status === 0 ? (
value.record.status === 0 ||
value.record.status === 1 ||
value.record.status === 2 ||
value.record.status === -2 ? (
<div class="operation">
<span
onClick={() => {
@@ -2214,7 +2250,7 @@ export default {
</a-select>
</div>
</div>
) : value.record.status === 1 ? (
) : value.record.status === 3 ? (
<div class="operation">
<span class="operation1">查看</span>
<div class="tableSelect">
@@ -2404,7 +2440,10 @@ export default {
<div></div>
)
) : value.record.type === 2 ? (
value.record.status === 0 ? (
value.record.status === 0 ||
value.record.status === 1 ||
value.record.status === 2 ||
value.record.status === -2 ? (
<div class="operation">
<span
onClick={() => {
@@ -2515,7 +2554,7 @@ export default {
</a-select>
</div>
</div>
) : value.record.status === 1 ? (
) : value.record.status === 3 ? (
<div class="operation">
<span class="operation1">查看</span>
<div class="tableSelect">
@@ -2812,7 +2851,23 @@ export default {
</a-select-option>
</a-select>
</div>
{value.record.status === 0 ? (
{value.record.status === 0 || value.record.status === -2 ? (
<span
onClick={() => {}}
style="cursor:pointer"
class="operation3"
>
提交审核
</span>
) : value.record.status === 1 ? (
<span
onClick={() => {}}
style="cursor:pointer"
class="operation3"
>
撤回审核
</span>
) : value.record.status === 2 ? (
<span
onClick={() => {
console.log("value.record", value.record);