Переглянути джерело

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/Food/expertReviewPage.vue
gydx2024_zhangzhipeng 1 місяць тому
батько
коміт
738da3f49f
1 змінених файлів з 21 додано та 3 видалено
  1. 21 3
      src/Food/expertReviewPage.vue

+ 21 - 3
src/Food/expertReviewPage.vue

@@ -13,7 +13,7 @@
                     <el-button type="danger" @click="banExpertsVisible = true">禁止某位专家出席</el-button>
                 </div>
                 <div style="margin-top: 40px;width: 140px">
-                    <el-button type="primary" style="width: 143.3px">生成房间分配表</el-button>
+                    <el-button type="primary" style="width: 143px" @click="roomNumber">生成房间分配表</el-button>
                 </div>
             </div>
         </div>
@@ -27,8 +27,11 @@
                 <div class="rounds_div"><span class="rounds_font">第六轮</span></div>
             </div>
             <div style="width: 600px;height: 650px; display: flex;flex-direction: column;background-color: #304156;">
-                <div class="my_div" style="height: 50px">
-                    <span class="my_div_span">房间号</span>
+                <div class="my_div" style="height: 50px;">
+                    <span class="my_div_span" style="line-height: 0;">房间号</span>
+                    <span v-for="item in demoArray" class="room_span">
+                        {{item.name}}
+                    </span>
                 </div>
                 <div class="my_div">
                     <hr  style="border: 1px dashed #ccc; width: 100%;;margin-top: 50px;">
@@ -139,6 +142,7 @@
         name: "expertReviewPage",
         data(){
             return{
+                demoArray: [],
                 expertData : [
 
                 ],
@@ -164,6 +168,11 @@
         methods : {
             numberExpert(){
                 this.numberExpertsVisible = false;
+                for (let i = 0; i < this.formNumberExperts.totalNumber/4; i++) {
+                    let e = {};
+                    e.name = i+1+"号房间";
+                    this.demoArray.push(e);
+                }
                 this.formNumberExperts.totalNumber = '';
                 this.formNumberExperts.aNumber = '';
                 this.formNumberExperts.bNumber = '';
@@ -177,6 +186,9 @@
                 this.banExpertsVisible = false;
                 this.formBanExpert.name = '';
                 this.formBanExpert.id = '';
+            },
+            roomNumber(){
+
             }
         }
     }
@@ -223,4 +235,10 @@
         writing-mode:tb-rl;
         color: black;
     }
+    .room_span{
+        font-size: 20px;
+        margin-left: 24px;
+        position: relative;
+        color: #B8CADB;
+    }
 </style>