浏览代码

文件题名框添加

duy 5 月之前
父节点
当前提交
8802d2a9ca
共有 1 个文件被更改,包括 14 次插入6 次删除
  1. 14 6
      src/views/data-fill/wbs.vue

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

@@ -145,12 +145,12 @@
                     @change="authBtnTabClick"
                 >
                     <template #extra>
-                        <!-- <div v-if="ListItemDatas.length > 0" class="mr-2 flex items-center justify-center whitespace-nowrap">
-                            <div>  文件题名</div>
-                            <div class="title-input">{{ titleInput }}</div>
-                        </div> -->
+                        <div v-if="ListItemDatas.length > 0" class="mr-1 flex items-center justify-center whitespace-nowrap">
+                            <div class="font-500">  文件题名</div>
+                            <div class="title-input h-[30px] flex items-center leading-[30px]" :style="{ width: titleInput ? '' : '100px' }">{{ titleInput }}</div>
+                        </div>
                         
-                        <!-- <HcTooltip keys="node_base_data">
+                        <HcTooltip keys="node_base_data">
                             <el-button
                                 hc-btn
                                 type="primary"
@@ -158,7 +158,7 @@
                             >
                                 节点基础数据
                             </el-button>
-                        </HcTooltip> -->
+                        </HcTooltip>
                         <HcTooltip keys="wbs_views_sort_btn">
                             <el-button
                                 v-if="nodeDataInfo?.nodeClass !== 2"
@@ -2756,6 +2756,11 @@ const searchNodeAllTable = async () => {
         type: authBtnTabKey.value,
     })
     ListItemDatas.value = getArrValue(data)
+    if (ListItemDatas.value?.length > 0) {
+        titleInput.value = ListItemDatas.value[0]['fileName']
+    } else {
+        titleInput.value = ''
+    }
     ListItemLoading.value = false
 }
 
@@ -3426,6 +3431,9 @@ const resetForm = ()=>{
     background-color: #dcdfe6;
     line-height: 13px;
     border-radius: 5px;
+    font-weight: 500;
+    margin-left: 4px;
+
 }
 .hc-add-node-modal-foot-box {
     position: relative;