shaogen1995 1 年之前
父節點
當前提交
1ba80c9c78
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 7 0
      src/pages/B1Plan/B1tab2.tsx
  2. 5 0
      src/pages/B1Plan/data.ts

+ 7 - 0
src/pages/B1Plan/B1tab2.tsx

@@ -369,6 +369,7 @@ function B1tab1({ topType, setTopType }: Props, ref: any) {
             <div className="B1topRow">
               <span>场景审核:</span>
               <Select
+                disabled={!tableSelect.isUploadScene}
                 style={{ width: 200 }}
                 value={tableSelect.auditStatus}
                 onChange={(e) =>
@@ -380,6 +381,7 @@ function B1tab1({ topType, setTopType }: Props, ref: any) {
             <div className="B1topRow">
               <span>场景推送:</span>
               <Select
+                disabled={!tableSelect.isUploadScene}
                 style={{ width: 200 }}
                 value={tableSelect.pushStatus}
                 onChange={(e) =>
@@ -391,6 +393,7 @@ function B1tab1({ topType, setTopType }: Props, ref: any) {
             <div className="B1topRow">
               <span>Json推送:</span>
               <Select
+                disabled={!tableSelect.isUploadScene}
                 style={{ width: 200 }}
                 value={tableSelect.jsonStatus}
                 onChange={(e) =>
@@ -406,6 +409,10 @@ function B1tab1({ topType, setTopType }: Props, ref: any) {
                   setTableSelect({
                     ...tableSelect,
                     isUploadScene: e.target.checked ? 0 : 1,
+                    // 把 场景审核 场景推送 Json推送变成初始值
+                    auditStatus: "",
+                    pushStatus: "",
+                    jsonStatus: "",
                   });
                 }}
               >

+ 5 - 0
src/pages/B1Plan/data.ts

@@ -54,6 +54,7 @@ export const B1options1Obj = {
 // 推送状态状态数据转换
 export const B1options2Obj = {
   0: "待推送",
+  1: "推送中",
   2: "推送成功",
   3: "推送失败",
 };
@@ -69,6 +70,10 @@ export const B1options2 = [
     label: "待推送",
   },
   {
+    value: 1,
+    label: "推送中",
+  },
+  {
     value: 2,
     label: "推送成功",
   },