From 6023b713ba3cf468b5fb43ec101ef3cfc383e9d9 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 14 十二月 2023 09:11:43 +0800 Subject: [PATCH] 项目左侧树文字提示 --- Source/UBCS-WEB/src/views/modeling/Business.vue | 91 +++++++++++++++++++++++++-------------------- 1 files changed, 50 insertions(+), 41 deletions(-) diff --git a/Source/UBCS-WEB/src/views/modeling/Business.vue b/Source/UBCS-WEB/src/views/modeling/Business.vue index 775856c..df22c8a 100644 --- a/Source/UBCS-WEB/src/views/modeling/Business.vue +++ b/Source/UBCS-WEB/src/views/modeling/Business.vue @@ -1,30 +1,37 @@ <template> <el-container> -<!-- <el-header class="businessHeader" style="height: 40px;padding:0 8px">--> + <!-- <el-header class="businessHeader" style="height: 40px;padding:0 8px">--> -<!-- </el-header>--> + <!-- </el-header>--> <el-container> <el-aside style="width: 20%"> <basic-container class="businessTreeContainer"> <div class="app"> <div style="display: flex;margin-bottom: 10px;justify-content: space-around;"> - <el-button v-if="permissionList.addBtn" size="mini" type="primary" @click="businessAdd" plain style="width: 60px"> + <el-button v-if="permissionList.addBtn" plain size="mini" style="width: 60px" type="primary" + @click="businessAdd"> 鏂板 </el-button> - <el-button v-if="permissionList.editBtn" size="mini" type="primary" @click="businessEdit" plain style="width: 60px"> + <el-button v-if="permissionList.editBtn" plain size="mini" style="width: 60px" type="primary" + @click="businessEdit"> 淇敼 </el-button> - <el-button v-if="permissionList.table" size="mini" type="primary" - @click="selectFromTable" plain> 浠庡凡鏈変腑鑾峰彇 + <el-button v-if="permissionList.table" plain size="mini" + type="primary" @click="selectFromTable"> 浠庡凡鏈変腑鑾峰彇 </el-button> </div> - <avue-tree :data="treeData" :option="treeOption" class="businessTree" @node-click="nodeClick" style="width: fit-content;"> - <template slot-scope="{ node, data }" class="el-tree-node__label"> - <span> + <avue-tree :data="treeData" :option="treeOption" class="businessTree" style="height: 70.3vh" + @node-click="nodeClick"> + <template slot-scope="{ node, data }" class="el-tree-node__label"> + <el-tooltip :content="$createElement('div', { domProps: { innerHTML: node.label } })" class="item" effect="dark" + open-delay="250" + placement="right-start"> + <span> <i :class="(node || {}).level === 2 ? 'el-icon-star-off' : 'el-icon-folder-opened'"></i> {{ (node || {}).label }} </span> - </template> + </el-tooltip> + </template> </avue-tree> </div> @@ -87,17 +94,17 @@ </template> {{ obj.lifeCycleName ? obj.lifeCycleName + '(' + obj.lifeCycleId + ')' : '' }} </el-descriptions-item> -<!-- <el-descriptions-item :contentStyle="descriptionOption.contentStyle"--> -<!-- :labelStyle="descriptionOption.labelStyle">--> -<!-- <template slot="label">--> -<!-- <i :class="icons.view"></i>--> -<!-- 瑙嗗浘--> -<!-- </template>--> -<!-- <el-tag v-if="obj.viewText" size="small">--> -<!-- {{ obj.viewText }}--> -<!-- </el-tag>--> -<!-- <span v-else></span>--> -<!-- </el-descriptions-item>--> + <!-- <el-descriptions-item :contentStyle="descriptionOption.contentStyle"--> + <!-- :labelStyle="descriptionOption.labelStyle">--> + <!-- <template slot="label">--> + <!-- <i :class="icons.view"></i>--> + <!-- 瑙嗗浘--> + <!-- </template>--> + <!-- <el-tag v-if="obj.viewText" size="small">--> + <!-- {{ obj.viewText }}--> + <!-- </el-tag>--> + <!-- <span v-else></span>--> + <!-- </el-descriptions-item>--> <!-- <el-descriptions-item> <template slot="label"> <i class="el-icon-arrow-down"></i> @@ -125,7 +132,8 @@ </avue-crud> </basic-container> </el-main> - <el-dialog :visible="ref.visible" append-to-body title="浠庢暟鎹簱涓坊鍔�" width="700px" @close="dialoghandelfalse" top="9vh"> + <el-dialog :visible="ref.visible" append-to-body title="浠庢暟鎹簱涓坊鍔�" top="9vh" width="700px" + @close="dialoghandelfalse"> 閫夋嫨棰嗗煙锛� <el-select v-model="domain" placeholder="璇烽�夋嫨" size="small" @change="refOnLoad"> <el-option v-for="item in domainOptions" :key="item.value" :label="item.label" :value="item.value"> @@ -163,7 +171,7 @@ name: "Business", data() { return { - type:"", + type: "", //鐢熷懡鍛ㄦ湡瀵硅瘽妗嗙姸鎬� packageLifeBox: false, //鐗堟湰瑙勫垯鐘舵�� @@ -187,7 +195,7 @@ btmType: {}, }, loadOption: { - height:'auto', + height: 'auto', border: true, editBtn: false, addBtn: false, @@ -396,26 +404,27 @@ .app { - overflow: auto; + overflow-y: auto; height: 84.3vh; } -.app::-webkit-scrollbar { - height: 15px; // 绾靛悜婊氬姩鏉� 蹇呭啓 - background: white; - border: white; - width: 10px; - -} - -// 婊氬姩鏉$殑婊戝潡 -.app::-webkit-scrollbar-thumb { - width: 10px; - height: 10px; - background-color: #ececec; - border-radius: 20px; - border: #ececec; -} +// +//.app::-webkit-scrollbar { +// height: 15px; // 绾靛悜婊氬姩鏉� 蹇呭啓 +// background: white; +// border: white; +// width: 10px; +// +//} +// +//// 婊氬姩鏉$殑婊戝潡 +//.app::-webkit-scrollbar-thumb { +// width: 10px; +// height: 10px; +// background-color: #ececec; +// border-radius: 20px; +// border: #ececec; +//} </style> -- Gitblit v1.9.3