gemercheung 1 anno fa
parent
commit
8da944cb27

+ 5 - 2
packages/qjkankan-editor/src/lang/weblate/zh.json

@@ -547,7 +547,10 @@
             "continue_edit": "继续编辑",
             "had_created_but_no_link": "已成功新建作品,但刷新作品列表失败,请稍后手动刷新。",
             "delete_work": "删除作品",
-            "comfirm_delete": "确定要删除作品吗?"
+            "comfirm_delete": "确定要删除作品吗?",
+            "online_gen": "在线制作",
+            "cam_gen": "相机生成",
+            "calcing": "计算中..."
         },
         "components": {
             "prev": "上一张",
@@ -968,4 +971,4 @@
         "FAILURE_3024": "存储空间已满",
         "loading_fail": "加载失败"
     }
-}
+}

+ 27 - 1
packages/qjkankan-editor/src/views/material/works/cam.vue

@@ -62,6 +62,9 @@
             <span class="snCode" v-if="item.snCode">
               SN: {{ item.snCode }}</span
             >
+            <div class="calc-mask" v-if="item.calcStatus === 0">
+              <span>{{ calcing }}</span>
+            </div>
           </div>
           <div class="li-info">
             <div>
@@ -179,6 +182,7 @@ export default {
       no_title: i18n.t("gather.no_title"),
       no_search_result: i18n.t("gather.no_search_result"),
       select_material: i18n.t("gather.select_material"),
+      calcing: i18n.t("material.works.calcing"),
 
       config,
       list: [],
@@ -598,6 +602,28 @@ export default {
         position: relative;
         border-radius: 6px;
         overflow: hidden;
+        .calc-mask {
+          display: none;
+          width: 100%;
+          height: 100%;
+          top: 0;
+          position: absolute;
+          left: 0;
+          z-index: 10000;
+          pointer-events: none;
+          justify-content: center;
+          align-items: center;
+          color: #fff;
+        }
+        &.disabled {
+          > * {
+            pointer-events: none;
+          }
+          .calc-mask {
+            background: rgba(0, 0, 0, 0.6);
+            display: flex;
+          }
+        }
 
         .li-hover {
           display: none;
@@ -732,7 +758,7 @@ export default {
       }
 
       &:hover {
-        .wrapper {
+        .wrapper:not(.disabled) {
           box-shadow: 0px 2px 12px 0px rgba(50, 50, 51, 0.12);
           transform: translateY(-6px);
 

+ 4 - 2
packages/qjkankan-editor/src/views/material/works/index.vue

@@ -3,11 +3,11 @@
     <div class="tab">
       <div class="tab-l">
         <span @click="changeTab('list')" :class="{ active: isActive('list') }">
-          在线制作
+          {{ online_gen }}
           {{ work1TotalNum ? `(${work1TotalNum})` : "" }}
         </span>
         <span @click="changeTab('cam')" :class="{ active: isActive('cam') }">
-          相机生成
+          {{ cam_gen }}
           {{ work2TotalNum ? `(${work2TotalNum})` : "" }}
         </span>
       </div>
@@ -74,6 +74,8 @@ export default {
       search: i18n.t("material.works.search"),
       searchKey: "",
       currentTab: "list",
+      online_gen: i18n.t("material.works.online_gen"),
+      cam_gen: i18n.t("material.works.cam_gen"),
     };
   },