瀏覽代碼

2022.7.27

ggooalice 2 年之前
父節點
當前提交
4ef1dd02eb
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/count/count.vue

+ 8 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/count/count.vue

@@ -88,7 +88,14 @@
             </template>
         </van-cell>
         <template v-else>
-            <van-cell v-for="item in showList" :key="item.id" :title="item.name" :value="item.department" title-style="color:#666"></van-cell>
+            <van-cell v-for="item in showList" :key="item.id" title-style="color:#666">
+                <template #title>
+                    <div style="text-align:center;">{{item.name}}</div>
+                </template>
+                <template #default>
+                    <div style="text-align:center;">{{item.department}}</div>
+                </template>
+            </van-cell>
         </template>
     </van-cell-group>
     <Footer page="index"></Footer>