增加文字提示,以及按钮切换

This commit is contained in:
yujh 2024-07-18 17:04:17 +08:00
parent b5f81f226c
commit 14144002d3
2 changed files with 7 additions and 3 deletions

View File

@ -791,6 +791,7 @@
}); });
}, },
initData() { initData() {
debugger;
const that = this; const that = this;
that.tableLoading = true; that.tableLoading = true;
const wsId = that.$store.getters.getWsIdFn; const wsId = that.$store.getters.getWsIdFn;
@ -1838,7 +1839,6 @@
* @param currRepositoryDetailId * @param currRepositoryDetailId
*/ */
openRepositoryInfoById(type,mainRepository) {// openRepositoryInfoById(type,mainRepository) {//
debugger;
let that = this; let that = this;
// //
if(that.isHighSecurity && that.isFileSecurity){ if(that.isHighSecurity && that.isFileSecurity){
@ -1877,6 +1877,7 @@
this.$router.push({path: '/Repository', query: {id: id, versionId: versionId, path: arr.join(','), param: Math.random()}}); this.$router.push({path: '/Repository', query: {id: id, versionId: versionId, path: arr.join(','), param: Math.random()}});
}, },
positionTableRoleRepository(id, versionId, childSize, folder) {// positionTableRoleRepository(id, versionId, childSize, folder) {//
debugger;
if (childSize == 0) { if (childSize == 0) {
// //
if (folder) { if (folder) {

View File

@ -212,10 +212,13 @@
node-key="id" node-key="id"
lazy lazy
:load="loadNode"> :load="loadNode">
<span slot-scope="{node, data}"> <span slot-scope="{node, data}" >
<i class="awsui-iconfont tree-content-icon tree-content-icon-padding" :style="{'color': node.data.icon.color}" <i class="awsui-iconfont tree-content-icon tree-content-icon-padding" :style="{'color': node.data.icon.color}"
v-html="node.data.icon.icon"></i> v-html="node.data.icon.icon"></i>
<el-tooltip class="item" effect="dark" :content="node.label" placement="top">
<span :style="{'font-weight': data.id.length < 36 ? '600' : ''}">{{node.label}}</span> <span :style="{'font-weight': data.id.length < 36 ? '600' : ''}">{{node.label}}</span>
</el-tooltip>
</span> </span>
</el-tree> </el-tree>
</el-main> </el-main>