|
|
@@ -137,6 +137,7 @@ function B2Scene() {
|
|
|
? "(空)"
|
|
|
: `${item.province} - ${item.city}`,
|
|
|
},
|
|
|
+ // 待完善
|
|
|
{
|
|
|
title: "项目经理",
|
|
|
render: (item: B2tableType) => {
|
|
|
@@ -176,15 +177,19 @@ function B2Scene() {
|
|
|
render: (item: B2tableType) => (
|
|
|
<>
|
|
|
{item.sceneCode || "(空)"}
|
|
|
- <span
|
|
|
- style={{ cursor: "pointer" }}
|
|
|
- hidden={!item.scheduleStatus && item.scheduleStatus !== 0}
|
|
|
- >
|
|
|
- <Tooltip title={Reflect.get(B2ResNum, item.scheduleStatus)}>
|
|
|
-
|
|
|
- <QuestionCircleOutlined rev={undefined} />
|
|
|
- </Tooltip>
|
|
|
- </span>
|
|
|
+
|
|
|
+ {/* up-只有计算失败的时候显示 ? */}
|
|
|
+ {item.scheduleStatus === 2 ? (
|
|
|
+ <span
|
|
|
+ style={{ cursor: "pointer" }}
|
|
|
+ hidden={!item.scheduleStatus && item.scheduleStatus !== 0}
|
|
|
+ >
|
|
|
+ <Tooltip title={Reflect.get(B2ResNum, item.scheduleStatus)}>
|
|
|
+
|
|
|
+ <QuestionCircleOutlined rev={undefined} />
|
|
|
+ </Tooltip>
|
|
|
+ </span>
|
|
|
+ ) : null}
|
|
|
</>
|
|
|
),
|
|
|
},
|
|
|
@@ -242,14 +247,6 @@ function B2Scene() {
|
|
|
title: "操作",
|
|
|
render: (item: B2tableType) => (
|
|
|
<>
|
|
|
- <a
|
|
|
- hidden={!item.filePath}
|
|
|
- href={item.filePath}
|
|
|
- download={item.sceneName || item.sceneCode + ".json"}
|
|
|
- >
|
|
|
- 下载Json
|
|
|
- </a>
|
|
|
-
|
|
|
<Popconfirm
|
|
|
title="将重置该场景的审核状态,推送状态,请谨慎操作。"
|
|
|
okText="重置"
|
|
|
@@ -262,6 +259,19 @@ function B2Scene() {
|
|
|
</Button>
|
|
|
</Popconfirm>
|
|
|
|
|
|
+ {item.filePath ? (
|
|
|
+ <a
|
|
|
+ className="B2TabA"
|
|
|
+ // hidden={!item.filePath}
|
|
|
+ href={item.filePath}
|
|
|
+ download={item.sceneName || item.sceneCode + ".json"}
|
|
|
+ >
|
|
|
+ 下载Json
|
|
|
+ </a>
|
|
|
+ ) : (
|
|
|
+ <span className="B2TabANo">下载Json</span>
|
|
|
+ )}
|
|
|
+
|
|
|
<Popconfirm
|
|
|
title="删除后无法恢复,是否删除?"
|
|
|
okText="删除"
|
|
|
@@ -441,13 +451,14 @@ function B2Scene() {
|
|
|
colseFu={() =>
|
|
|
setAuditInfo({ oldState: -1, id: 0, sceneCode: "", auditDesc: "" })
|
|
|
}
|
|
|
- upTableFu={(id, newState, newDesc) => {
|
|
|
+ upTableFu={(id, newState, newDesc,newTime) => {
|
|
|
const oldObj = store.getState().B2Scene.B2TableList;
|
|
|
const newObj = {
|
|
|
list: oldObj.list.map((v) => ({
|
|
|
...v,
|
|
|
auditStatus: v.id === id ? newState : v.auditStatus,
|
|
|
auditDesc: v.id === id ? newDesc : v.auditDesc,
|
|
|
+ auditTime:v.id===id?newTime:v.auditTime
|
|
|
})),
|
|
|
total: oldObj.total,
|
|
|
};
|