liyongli 1 yıl önce
ebeveyn
işleme
7c2fac6b2c

+ 17 - 6
src/view/allMedia/imageProcessing/index.vue

@@ -51,11 +51,22 @@
         </el-table-column>
         <el-table-column align="center" prop="statusCode" label="审核结果">
           <template #default="scope">
-            <el-tag :type="scope.row.reviewResult ? status[scope.row.reviewResult.label] : 'info'">
-              {{
-                scope.row.reviewResult ? scope.row.reviewResult.labelDesc : '-'
-              }}
-            </el-tag>
+            <div>
+              <el-tag
+                v-if="scope.row.reviewResult && scope.row.reviewResult.label"
+                :type="
+                  scope.row.reviewResult
+                    ? status[scope.row.reviewResult.label]
+                    : 'info'
+                "
+              >
+                {{
+                  scope.row.reviewResult
+                    ? scope.row.reviewResult.labelDesc
+                    : '-'
+                }}
+              </el-tag>
+            </div>
           </template>
         </el-table-column>
         <el-table-column align="center" prop="address" label="操作">
@@ -141,7 +152,7 @@ const fileList = ref([]);
 const input = ref('');
 const page_data = ref({
   page: 1,
-  pageSize: 20,
+  pageSize: 15,
   title: '',
   total: 0
 });

+ 30 - 7
src/view/allMedia/videoProcessing/index.vue

@@ -51,11 +51,22 @@
         </el-table-column>
         <el-table-column align="center" prop="statusCode" label="审核结果">
           <template #default="scope">
-            <el-tag :type="scope.row.reviewResult ? status[scope.row.reviewResult.label] : 'info'">
-              {{
-                scope.row.reviewResult ? scope.row.reviewResult.labelDesc : '-'
-              }}
-            </el-tag>
+            <div>
+              <el-tag
+                v-if="scope.row.reviewResult && scope.row.reviewResult.label"
+                :type="
+                  scope.row.reviewResult
+                    ? status[scope.row.reviewResult.label]
+                    : 'info'
+                "
+              >
+                {{
+                  scope.row.reviewResult
+                    ? scope.row.reviewResult.labelDesc
+                    : '-'
+                }}
+              </el-tag>
+            </div>
           </template>
         </el-table-column>
         <el-table-column align="center" prop="address" label="操作">
@@ -123,7 +134,7 @@ import header_local from '../components/header.vue';
 import { UploadFilled } from '@element-plus/icons-vue';
 import { ElMessage, genFileId } from 'element-plus';
 import { storeVideo, historyVideo, deleteRowVideo } from '@/api/processing';
-import { ref } from 'vue';
+import { ref, onUnmounted } from 'vue';
 import config from '../../../config/index';
 import { useRouter } from 'vue-router';
 const route = useRouter();
@@ -136,7 +147,7 @@ const fileList = ref([]);
 const input = ref('');
 const page_data = ref({
   page: 1,
-  pageSize: 20,
+  pageSize: 15,
   title: '',
   total: 0
 });
@@ -226,6 +237,18 @@ function deleteRow(row) {
     ElMessage.success('删除成功');
   });
 }
+
+
+onUnmounted(() => {});
+
+// var notification = new Notification('这是一个系统提醒', {
+//   body: '这是提醒的正文内容',
+//   icon: 'path/to/icon.png' // 可选的图标路径
+// });
+// // 可以在通知被点击时执行一些操作
+// notification.onclick = function () {
+//   console.log('用户点击了系统提醒');
+// };
 </script>
 
 <style>