mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 01:06:45 +08:00
feat:增加项目审核状态
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user