iZaiZaiA hace 2 años
padre
commit
9e0c9c93a2

+ 5 - 1
src/global/components/hc-card/index.vue

@@ -32,7 +32,7 @@
                 <slot></slot>
             </template>
         </div>
-        <div class="hc-card-action-box" v-if="isSlotAction">
+        <div class="hc-card-action-box" :class="actionUi" v-if="isSlotAction">
             <slot name='action'/>
         </div>
     </el-card>
@@ -65,6 +65,10 @@ const props = defineProps({
         type: [String,Number],
         default: ''
     },
+    actionUi: {
+        type: String,
+        default: ''
+    },
 })
 
 const slots = useSlots()

+ 5 - 1
src/global/components/hc-drawer/index.vue

@@ -2,7 +2,7 @@
     <Suspense v-if="isBody">
         <Teleport :to="`#${toId}`">
             <el-drawer ref="drawerRef" :modal-class="uis" :custom-class="`hc-drawer-box ${ui}`" v-model="isShow" :with-header="false" :direction="direction" :size="size" destroy-on-close @closed="drawerClosed">
-                <HcCard :title="title" :extraText="extraText" :actionSize="actionSize" :scrollbar="scrollbar" v-if="isCard">
+                <HcCard :title="title" :extraText="extraText" :actionSize="actionSize" :scrollbar="scrollbar" :actionUi="actionUi" v-if="isCard">
                     <template #header v-if="isSlotHeader">
                         <slot name='header'/>
                     </template>
@@ -71,6 +71,10 @@ const props = defineProps({
         type: Boolean,
         default: true
     },
+    actionUi: {
+        type: String,
+        default: ''
+    },
 })
 
 //变量

+ 6 - 6
src/views/data-fill/wbs.vue

@@ -2,7 +2,7 @@
     <div class="h-full">
         <HcCard :scrollbar="false" id-ref="wbs-node-tree-card-target" v-if="wbsTypeTabKey === 'map'">
             <template #header>
-                <HcTooltip keys="wbs_views_drawings" v-if="NodeStatus !== '3' && isDrawer">
+                <HcTooltip keys="wbs_views_drawings" v-if="isDrawer">
                     <el-button hc-btn :disabled="!nodeDataInfo?.fileUrl" @click="viewsDrawings">
                         <HcIcon name="image"/>
                         <span>查看图纸</span>
@@ -30,7 +30,7 @@
                     <div class="dot-view blue">已填报-未上报</div>
                 </div>
             </template>
-            <HcDrawer :show="isDrawer" :scrollbar="false" actionSize="lg" to-id="wbs-node-tree-card-target" @close="drawerClose">
+            <HcDrawer :show="isDrawer" actionUi="text-center" to-id="wbs-node-tree-card-target" @close="drawerClose">
                 <!--清表列表-->
                 <el-scrollbar ref="ListItemScrollRef" v-if="ListItemDatas.length > 0">
                     <ListItem ref="ListItemsRef" :datas="ListItemDatas" :status="NodeStatus" :classify="authBtnTabKey" @offsetTop="ListItemOffsetTop" @renew="getTableDataAll"/>
@@ -111,9 +111,9 @@
                 <div class="horizontal-drag-line" @mousedown="onmousedown"/>
             </div>
             <div class="hc-layout-content-box">
-                <HcCard :scrollbar="false" actionSize="lg">
+                <HcCard actionUi="text-center">
                     <template #header>
-                        <HcTooltip keys="wbs_views_drawings" v-if="NodeStatus !== '3'">
+                        <HcTooltip keys="wbs_views_drawings">
                             <el-button hc-btn :disabled="!nodeDataInfo?.fileUrl" @click="viewsDrawings">
                                 <HcIcon name="image"/>
                                 <span>查看图纸</span>
@@ -293,10 +293,10 @@
                         <div class="title-box">{{element.title}}</div>
                         <div class="icon-box">
                             <span class="icon" @click="downSortClick(index)">
-                                <HcIcon name="south" ui="text-lg"/>
+                                <HcIcon name="arrow-down" ui="text-lg"/>
                             </span>
                             <span class="icon" @click="upSortClick(index)">
-                                <HcIcon name="north" ui="text-lg"/>
+                                <HcIcon name="arrow-up" ui="text-lg"/>
                             </span>
                         </div>
                     </div>