617626e0 by lihua

fix: 样式

1 parent 09488cbc
......@@ -248,6 +248,12 @@
}
}
.el-select-v2-popper {
.el-select-dropdown__item {
padding: 0px 16px;
}
}
.el-select-dropdown__item {
--el-text-color-regular: var(--el-color-regular);
--el-fill-color-light: #f5f5f5;
......
......@@ -548,11 +548,14 @@ const cntLabelMap = ref({
<div class="table_tool_wrap">
<div class="tools_btns">
<el-button v-if="!isLook" type="primary" @click="batchConfirm">批量确认</el-button>
<div v-show="!sensitiveTableDataLoading" class="cnt-desc">{{ '表总数:' + changeNum(cntSumInfo.tableNum || 0, 0) + '张 字段总数:'
+ changeNum(cntSumInfo.fieldNum || 0, 0) + '个 敏感表总数:' +
changeNum(cntSumInfo.sensitiveTableNum || 0, 0) + '张 敏感字段总数:' + changeNum(cntSumInfo.sensitiveFieldNum || 0, 0) +
'个,其中' + labelTypeList?.map(l => `${l.label}:${changeNum(cntSumInfo[cntLabelMap[l.value]] || 0, 0)}个`).join(' ') + ' 非敏感:' + changeNum(cntSumInfo['nonSensitiveNum'] || 0, 0) + '个'
}}</div>
<div v-show="!sensitiveTableDataLoading" class="cnt-desc">{{'表总数:' + changeNum(cntSumInfo.tableNum || 0, 0) +
'张 字段总数:'
+ changeNum(cntSumInfo.fieldNum || 0, 0) + '个 敏感表总数:' +
changeNum(cntSumInfo.sensitiveTableNum || 0, 0) + '张 敏感字段总数:' + changeNum(cntSumInfo.sensitiveFieldNum || 0,
0) +
'个,其中' + labelTypeList?.map(l => `${l.label}${changeNum(cntSumInfo[cntLabelMap[l.value]] || 0,
0)}个`).join(',') + ',非敏感' + changeNum(cntSumInfo['nonSensitiveNum'] || 0, 0) + '个'
}}</div>
</div>
</div>
<div class="table_panel_wrap">
......@@ -586,13 +589,18 @@ const cntLabelMap = ref({
@popverBtnClick="handleLabelPopoverClick" />
</template>
<template #default="scope">
<el-select-v2 v-if="scope.row['isEdit']" v-model="scope.row['labelGuid']" filterable
<el-select-v2 v-if="scope.row['isEdit']" v-model="scope.row['labelGuid']" filterable popper-class="el-select-v2-popper"
:options="allDataLabelList" placeholder="请选择" clearable :props="{ value: 'guid', label: 'labelName' }"
@change="(val) => handleSelectChange(val, scope)" />
@change="(val) => handleSelectChange(val, scope)">
<template #default="{ item }">
<ellipsis-tooltip :content="item.labelName ?? ''" class-name="w100f"
:refName="'tooltipOver' + item.guid"></ellipsis-tooltip>
</template>
</el-select-v2>
<span v-else>{{ scope.row["labelName"] || '--' }}</span>
</template>
</el-table-column>
<el-table-column label="标签类型" prop="labelTypeName" class-name="filter-cell" width="120" align="left"
<el-table-column label="标签类型" prop="labelTypeName" class-name="filter-cell" width="130" align="left"
show-overflow-tooltip>
<template #header>
<span>标签类型</span>
......@@ -619,7 +627,7 @@ const cntLabelMap = ref({
<span v-else>{{ '--' }}</span>
</template>
</el-table-column>
<el-table-column v-if="!isLook" label="操作" width="100px" align="left" fixed="right" show-overflow-tooltip>
<el-table-column v-if="!isLook" label="操作" width="90px" align="left" fixed="right" show-overflow-tooltip>
<template #default="scope">
<span class="text_btn" v-if="!scope.row['isEdit']" @click="handleFieldClickEdit(scope)"
v-preReClick>编辑</span>
......@@ -648,9 +656,10 @@ const cntLabelMap = ref({
.table_tool_wrap {
display: flex;
.cnt-desc {
line-height: 21px;
white-space: break-spaces;
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!