Explorar o código

修改头部导航样式

lm hai 3 semanas
pai
achega
93706fcb0b

+ 4 - 1
src/layout/components/header.vue

@@ -238,13 +238,16 @@ const confirmPassWord = async (formEl: FormInstance | undefined) => {
   height: 100%;
   display: flex;
   align-items: center;
+  flex: 1 1;
+  margin-left: max(calc(((100% - 448px) / 2) - 266px - 20px ), 20px);
+  margin-right: 20px;
   li{
     height: 100%;
     display: flex;
     justify-content: center;
     align-items: center;
 
-    padding:10px;
+    padding:0 20px;
     font-size: 18px;
     color: #FFFFFF;
     cursor: pointer;

+ 10 - 10
src/views/reviewManagement/stepComponent/questionnaireTemplateComponent/QuestionnaireTemplateComponent.vue

@@ -133,17 +133,17 @@ const HandleQuestionnaireTemplateChange = (row,val)=>{
         })
     }else{
         tableData.value = tableData.value.map(item=>{
-        if(item.name === row.name){
-            return {
-                    ...item,
-                    fullScore:aimQuesitonnaire.fullScore,
-                    questionCount:aimQuesitonnaire.questionCount
+            if(item.name === row.name){
+                return {
+                        ...item,
+                        fullScore:aimQuesitonnaire.fullScore,
+                        questionCount:aimQuesitonnaire.questionCount
+                    }
+                }else{
+                    return item
                 }
-            }else{
-                return item
-            }
-        })
-    }
+            })
+        }
 }
 
 // 预览问卷