From 9cad6a832c786989be620573b09badccfe7e3b51 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期一, 25 八月 2025 15:11:37 +0800
Subject: [PATCH] 首页头部,样式调整

---
 src/views/classManage/jobDetail.vue |   63 ++++++++++++++++++-------------
 1 files changed, 37 insertions(+), 26 deletions(-)

diff --git a/src/views/classManage/jobDetail.vue b/src/views/classManage/jobDetail.vue
index ea7a47f..45e06c0 100644
--- a/src/views/classManage/jobDetail.vue
+++ b/src/views/classManage/jobDetail.vue
@@ -253,20 +253,20 @@
 const options = ref([
   {
     label: '鍏ㄩ儴',
-    value: 'all'
+    value: 'all',
   },
   {
     label: '鏈壒鏀�',
-    value: 'WaitCheck'
+    value: 'WaitCheck',
   },
   {
     label: '宸叉壒鏀�',
-    value: 'Normal'
+    value: 'Normal',
   },
   {
     label: '鏈彁浜�',
-    value: 'WaitSubmit'
-  }
+    value: 'WaitSubmit',
+  },
 ])
 
 let pages = reactive({
@@ -274,7 +274,7 @@
   page: 1,
   pageSize: 15,
   count: 0,
-  loading: true
+  loading: true,
 })
 
 const questionKey = [
@@ -288,7 +288,7 @@
   'Embedded_QuestionBank_QuestionType',
   'Embedded_QuestionBank_Score',
   'Embedded_QuestionBank_Stem',
-  'Embedded_QuestionBank_StemStyle'
+  'Embedded_QuestionBank_StemStyle',
 ]
 
 //  鍒嗛〉
@@ -343,7 +343,7 @@
     taskId: classInfo?.taskWorkId,
     classId: classInfo?.id,
     filterList,
-    searchList
+    searchList,
   }
   MG.edu
     .getTaskSubmitList(data)
@@ -356,7 +356,7 @@
         { name: '绠�绛旈', totalScore: 0, value: 'shortAnswer', data: [] },
         { name: '璁鸿堪棰�', totalScore: 0, value: 'discuss', data: [] },
         { name: '杩炵嚎棰�', totalScore: 0, value: 'matching', data: [] },
-        { name: '鍒嗙被棰�', totalScore: 0, value: 'classification', data: [] }
+        { name: '鍒嗙被棰�', totalScore: 0, value: 'classification', data: [] },
       ]
       try {
         let list: any = []
@@ -368,7 +368,7 @@
             type: item.type,
             state: item.state,
             submit: item.submit,
-            updateTaskSubmitCmsItemRequests: []
+            updateTaskSubmitCmsItemRequests: [],
           }
           item.singleChoiceName = '鍗曢�夐'
           item.singleChoiceArr = []
@@ -423,23 +423,23 @@
         const lenghtArr = [...res.datas]
         singleChoiceLength.value = lenghtArr.reduce(
           (max: any, obj: any) => Math.max(max, obj.singleChoiceArr.length),
-          0
+          0,
         )
         multipleChoiceLength.value = lenghtArr.reduce(
           (max: any, obj: any) => Math.max(max, obj.multipleChoiceArr.length),
-          0
+          0,
         )
         judgeLength.value = lenghtArr.reduce(
           (max: any, obj: any) => Math.max(max, obj.judgeArr.length),
-          0
+          0,
         )
         completionLength.value = lenghtArr.reduce(
           (max: any, obj: any) => Math.max(max, obj.completionArr.length),
-          0
+          0,
         )
         otherLength.value = lenghtArr.reduce(
           (max: any, obj: any) => Math.max(max, obj.otherArr.length),
-          0
+          0,
         )
         tableLoading.value = false
         tableData.value = res.datas
@@ -463,7 +463,7 @@
     taskId: classInfo?.taskWorkId, // taskData?.id
     path: String(classInfo?.taskCmsId), //taskData?.rootCmsItemId
     type: '*',
-    keys: questionKey
+    keys: questionKey,
   }
   MG.edu
     .getTaskCmsItem(data)
@@ -498,7 +498,7 @@
     .catch((e: any) => {
       ElMessage({
         message: '鍒楄〃鑾峰彇澶辫触',
-        type: 'error'
+        type: 'error',
       })
       tableLoading.value = false
       console.log(e)
@@ -531,7 +531,7 @@
           questionType: item.Embedded_QuestionBank_QuestionType,
           questionAnalysisCon: item.Embedded_QuestionBank_AnalysisCon,
           questionAnswer: item.Embedded_QuestionBank_Answer,
-          customAnswer: null
+          customAnswer: null,
         }
       } catch (error) {
         console.log(item)
@@ -564,7 +564,7 @@
     taskId: classInfo?.taskWorkId,
     classId: classInfo?.id,
     filterList,
-    searchList
+    searchList,
   }
   MG.edu
     .getUnSubmitList(data)
@@ -581,7 +581,7 @@
             ...item,
             index: index + 1,
             createDate: moment(item.createDate).format('YYYY-MM-DD'),
-            appUserId: item.appUser.id
+            appUserId: item.appUser.id,
           }
         })
         pages.count = totalSize
@@ -604,7 +604,7 @@
   if (item) {
     const requestData = {
       classId: classInfo?.id,
-      requests: []
+      requests: [],
     }
     const data = JSON.parse(item)
     listData.forEach((citem: any) => {
@@ -617,7 +617,7 @@
             score: uitem.score,
             answer: uitem.answer,
             state: 'Normal',
-            comments: 'judge'
+            comments: 'judge',
           }
         })
       }
@@ -668,7 +668,7 @@
     content,
     type: 'Normal',
     cmsTypeRefCode: '',
-    newDataListRequest: []
+    newDataListRequest: [],
   }
   MG.ugc
     .newTopicMessage(data)
@@ -676,7 +676,7 @@
       if (res) {
         ElMessage({
           type: 'success',
-          message: '宸插偓浜�'
+          message: '宸插偓浜�',
         })
       }
     })
@@ -691,8 +691,8 @@
     {
       compareType: 'Contains',
       keywords: searchKey.value,
-      field: 'Name'
-    }
+      field: 'Name',
+    },
   ]
   pages.page = 1
   if (workState.value != 'WaitSubmit') {
@@ -712,6 +712,7 @@
 
   .classManagePage-nav {
     width: 100%;
+    box-sizing: border-box;
     padding: 0 20px;
     height: 40px;
     border-bottom: 1px solid #e6e8ed;
@@ -737,6 +738,7 @@
       z-index: 99;
       background: #fff;
       box-shadow: 0px 0px 20px 1px #eeeeee83;
+      box-sizing: border-box;
     }
     .contentBox {
       width: 100%;
@@ -799,6 +801,14 @@
           align-items: center;
           justify-content: space-between;
           padding: 10px 0;
+          .selectState {
+            display: flex;
+            align-items: center;
+            width: 200px;
+            span {
+              min-width: 50px;
+            }
+          }
           .searchBox {
             width: 300px;
             float: left;
@@ -826,6 +836,7 @@
     border-radius: 5px;
     margin: 10px auto;
     padding-bottom: 20px;
+    box-sizing: border-box;
     .pubContent {
       position: relative;
       height: 80vh;

--
Gitblit v1.9.1