style(系统管理): 修改模板表格icon样式对齐
This commit is contained in:
parent
73f8854f48
commit
6f8732a829
|
@ -20,8 +20,8 @@ export enum TemplateIconEnum {
|
||||||
// 模版列表图标卡片icon
|
// 模版列表图标卡片icon
|
||||||
export enum TemplateCardEnum {
|
export enum TemplateCardEnum {
|
||||||
FUNCTIONAL = 'caseTemplate', // 用例模版
|
FUNCTIONAL = 'caseTemplate', // 用例模版
|
||||||
API = 'api_ui_Template', // ui模板
|
API = 'api_ui_Template', // API模板
|
||||||
UI = 'uiTemplate', // API模板
|
UI = 'uiTemplate', // UI模板
|
||||||
TEST_PLAN = 'testPlanTemplate', // 测试计划模板
|
TEST_PLAN = 'testPlanTemplate', // 测试计划模板
|
||||||
BUG = 'defectTemplate', // 缺陷模板
|
BUG = 'defectTemplate', // 缺陷模板
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,10 +27,12 @@
|
||||||
{{ record.enableThirdPart ? t('system.orgTemplate.yes') : t('system.orgTemplate.no') }}
|
{{ record.enableThirdPart ? t('system.orgTemplate.yes') : t('system.orgTemplate.no') }}
|
||||||
</template>
|
</template>
|
||||||
<template #name="{ record }">
|
<template #name="{ record }">
|
||||||
<span class="ml-2 cursor-pointer text-[rgb(var(--primary-5))]" @click="previewDetail(record)">{{
|
<div class="flex items-center">
|
||||||
record.name
|
<span class="ml-2 cursor-pointer text-[rgb(var(--primary-5))]" @click="previewDetail(record)">{{
|
||||||
}}</span>
|
record.name
|
||||||
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
}}</span>
|
||||||
|
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #operation="{ record }">
|
<template #operation="{ record }">
|
||||||
<div class="flex flex-row flex-nowrap">
|
<div class="flex flex-row flex-nowrap">
|
||||||
|
|
|
@ -21,25 +21,27 @@
|
||||||
</div>
|
</div>
|
||||||
<MsBaseTable v-bind="propsRes" ref="tableRef" v-on="propsEvent">
|
<MsBaseTable v-bind="propsRes" ref="tableRef" v-on="propsEvent">
|
||||||
<template #name="{ record }">
|
<template #name="{ record }">
|
||||||
<MsIcon
|
<div class="flex items-center">
|
||||||
v-if="!record.internal"
|
<MsIcon
|
||||||
:type="getIconType(record.type)?.iconName || ''"
|
v-if="!record.internal"
|
||||||
size="16"
|
:type="getIconType(record.type)?.iconName || ''"
|
||||||
:class="{
|
size="16"
|
||||||
'text-[rgb(var(--primary-5))]': props.mode === 'project',
|
:class="{
|
||||||
'cursor-pointer': props.mode === 'project',
|
'text-[rgb(var(--primary-5))]': props.mode === 'project',
|
||||||
}"
|
'cursor-pointer': props.mode === 'project',
|
||||||
/>
|
}"
|
||||||
<span
|
/>
|
||||||
class="ml-2"
|
<span
|
||||||
:class="{
|
class="ml-2"
|
||||||
'text-[rgb(var(--primary-5))]': props.mode === 'project',
|
:class="{
|
||||||
'cursor-pointer': props.mode === 'project',
|
'text-[rgb(var(--primary-5))]': props.mode === 'project',
|
||||||
}"
|
'cursor-pointer': props.mode === 'project',
|
||||||
@click="showDetail(record)"
|
}"
|
||||||
>{{ record.name }}</span
|
@click="showDetail(record)"
|
||||||
|
>{{ record.name }}</span
|
||||||
|
>
|
||||||
|
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag></div
|
||||||
>
|
>
|
||||||
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
|
||||||
</template>
|
</template>
|
||||||
<template #operation="{ record }">
|
<template #operation="{ record }">
|
||||||
<div class="flex flex-row flex-nowrap items-center">
|
<div class="flex flex-row flex-nowrap items-center">
|
||||||
|
|
|
@ -68,12 +68,9 @@
|
||||||
|
|
||||||
// 先判断项目是否是开启
|
// 先判断项目是否是开启
|
||||||
const isEnableProject = computed(() => {
|
const isEnableProject = computed(() => {
|
||||||
if (props.mode === 'organization') {
|
return props.mode === 'organization'
|
||||||
return !templateStore.projectStatus[props.cardItem.key];
|
? !templateStore.projectStatus[props.cardItem.key]
|
||||||
}
|
: templateStore.ordStatus[props.cardItem.key];
|
||||||
if (props.mode === 'project') {
|
|
||||||
return templateStore.ordStatus[props.cardItem.key];
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const moreActions = ref<ActionsItem[]>([
|
const moreActions = ref<ActionsItem[]>([
|
||||||
|
|
|
@ -19,8 +19,10 @@
|
||||||
</div>
|
</div>
|
||||||
<MsBaseTable v-bind="propsRes" ref="tableRef" v-on="propsEvent">
|
<MsBaseTable v-bind="propsRes" ref="tableRef" v-on="propsEvent">
|
||||||
<template #name="{ record }">
|
<template #name="{ record }">
|
||||||
<span class="ml-2">{{ record.name }}</span>
|
<div class="flex items-center">
|
||||||
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
<span class="ml-2">{{ record.name }}</span>
|
||||||
|
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #enableThirdPart="{ record }">
|
<template #enableThirdPart="{ record }">
|
||||||
{{ record.enableThirdPart ? t('system.orgTemplate.yes') : t('system.orgTemplate.no') }}
|
{{ record.enableThirdPart ? t('system.orgTemplate.yes') : t('system.orgTemplate.no') }}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<MsBaseTable v-bind="propsRes" ref="tableRef" v-on="propsEvent">
|
<MsBaseTable v-bind="propsRes" ref="tableRef" v-on="propsEvent">
|
||||||
<template #name="{ record }">
|
<template #name="{ record }">
|
||||||
<MsIcon v-if="!record.internal" :type="getIconType(record.type)?.iconName || ''" size="16" />
|
<div class="flex items-center">
|
||||||
<span class="ml-2">{{ record.name }}</span>
|
<MsIcon v-if="!record.internal" :type="getIconType(record.type)?.iconName || ''" size="16" />
|
||||||
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
<span class="ml-2">{{ record.name }}</span>
|
||||||
|
<MsTag v-if="record.internal" size="small" class="ml-2">{{ t('system.orgTemplate.isSystem') }}</MsTag>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #apiFieldId="{ record }">
|
<template #apiFieldId="{ record }">
|
||||||
<a-input
|
<a-input
|
||||||
|
|
Loading…
Reference in New Issue