程设计-审批人-添加角色:增加根据租户选择角色的功能-补充一个文件
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
<IconFontSymbol icon="role" fill-color="#e0f8f2" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="role-belong-tenent" v-if="getAppEnvConfig().VITE_GLOB_TENANT_ENABLED&&showTenant">{{props.item?.tenantName && `租户:${props.item.tenantName}`}}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -24,9 +25,11 @@
|
||||
import RoleImg from '/@/assets/workflow/role.png';
|
||||
import IconFontSymbol from '/@/components/IconFontSymbol/Index.vue';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { getAppEnvConfig } from '/@/utils/env';
|
||||
const { t } = useI18n();
|
||||
let props = defineProps({
|
||||
item: Object,
|
||||
showTenant:false
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -35,6 +38,7 @@
|
||||
@bg-color: #effbf9;
|
||||
|
||||
.list-item {
|
||||
position: relative;
|
||||
width: 30%;
|
||||
height: 120px;
|
||||
background: @bg-color;
|
||||
@ -128,4 +132,14 @@
|
||||
border-width: 1px;
|
||||
border-style: dotted;
|
||||
}
|
||||
|
||||
.role-belong-tenent{
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
left: 10px;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user