Sfoglia il codice sorgente

试验编号修改

duy 3 mesi fa
parent
commit
10153a16d4
1 ha cambiato i file con 15 aggiunte e 7 eliminazioni
  1. 15 7
      src/views/tentative/basic/code.vue

+ 15 - 7
src/views/tentative/basic/code.vue

@@ -1,13 +1,16 @@
 <template>
     <hc-body split>
         <template #left>
-            <hc-card scrollbar>
-                <hc-menu-simple 
-                    :datas="menuOptions" 
-                    :keys="menuKey" 
-                    @change="handleMenuValue"
-                />
-            </hc-card>
+            <div class="hc-menu-contents-box">
+                <el-scrollbar>
+                    <HcMenuSimple
+                        :datas="menuOptions" 
+                        :keys="menuKey" 
+                        :props="menuProps"
+                        @change="handleMenuValue"
+                    />
+                </el-scrollbar>
+            </div>
         </template>
         <hc-card>
             <template #header>
@@ -132,6 +135,11 @@ const menuOptions = ref([
     { key: '4', label: '记录表编号' },
     { key: '5', label: '报告表编号' },
 ])
+//左侧菜单
+const menuProps = {
+    key: 'key',
+    label: 'label',
+}
 const typeOptions = ref([])
 const getTypeOptions = async ()=>{
         const { data } = await getDictionary({