fix(用例管理): 修复用例表格问题和富文本问题

This commit is contained in:
xinxin.wu 2024-02-20 15:11:30 +08:00 committed by Craftsman
parent 7d8e52cf8f
commit 47d3c0d7ff
5 changed files with 36 additions and 38 deletions

View File

@ -245,21 +245,21 @@
types: ['heading', 'paragraph'],
}),
ExtensionUnderline,
ExtensionTable.configure({
resizable: true,
}),
// ExtensionTable.configure({
// resizable: true,
// }),
ExtensionSubscript,
ExtensionSuperscript,
ExtensionPlaceholder.configure({
placeholder: '输入 / 以选择输入类型',
}),
ExtensionHighlight,
ExtensionVideo,
ExtensionAudio,
// ExtensionVideo,
// ExtensionAudio,
ExtensionCodeBlock.configure({
lowlight,
}),
ExtensionIframe,
// ExtensionIframe,
ExtensionColor,
ExtensionFontSize,
ExtensionIndent,
@ -300,26 +300,26 @@
// },
// ];
// },
getToolbarItems({ editors }: { editors: Editor }) {
return {
priority: 1000,
component: markRaw(ToolbarItem),
props: {
editor,
isActive: showSidebar.value,
title: t(''),
action: () => {
showSidebar.value = !showSidebar.value;
},
},
};
},
// getToolbarItems({ editors }: { editors: Editor }) {
// return {
// priority: 1000,
// component: markRaw(ToolbarItem),
// props: {
// editor,
// isActive: showSidebar.value,
// title: t(''),
// action: () => {
// showSidebar.value = !showSidebar.value;
// },
// },
// };
// },
};
},
}),
ExtensionDraggable,
ExtensionColumns,
ExtensionColumn,
// ExtensionColumns,
// ExtensionColumn,
ExtensionNodeSelected,
ExtensionTrailingNode,
Mention.configure({

View File

@ -34,7 +34,7 @@ const CaseManagement: AppRouteRecordRaw = {
component: () => import('@/views/case-management/caseManagementFeature/components/caseDetail.vue'),
meta: {
locale: 'menu.caseManagement.featureCaseDetail',
roles: ['FUNCTIONAL_CASE:READ+ADD'],
roles: ['FUNCTIONAL_CASE:READ+ADD', 'FUNCTIONAL_CASE:READ+UPDATE'],
breadcrumbs: [
{
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE,
@ -66,7 +66,7 @@ const CaseManagement: AppRouteRecordRaw = {
component: () => import('@/views/case-management/caseManagementFeature/components/recycleCaseTable.vue'),
meta: {
locale: 'menu.caseManagement.featureCaseRecycle',
roles: ['FUNCTIONAL_CASE:READ+ADD'],
roles: ['FUNCTIONAL_CASE:READ'],
breadcrumbs: [
{
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE,

View File

@ -1060,7 +1060,6 @@
...columns.slice(columns.length - 1, columns.length),
];
await tableStore.initColumn(TableKeyEnum.CASE_MANAGEMENT_TABLE, fullColumns, 'drawer');
tableRef.value?.initColumn(fullColumns);
}
//

View File

@ -104,17 +104,14 @@
// let testPlanTab: TabItemType[] = [];
function getTabList() {
if (licenseStore.hasLicense()) {
return [
{
key: 'changeHistory',
title: 'caseManagement.featureCase.changeHistory',
enable: true,
total: 0,
},
];
}
return [];
return [
{
key: 'changeHistory',
title: 'caseManagement.featureCase.changeHistory',
enable: true,
total: 0,
},
];
}
const tabDefaultSettingList = ref<TabItemType[]>([

View File

@ -192,8 +192,10 @@
watch(
() => showType.value,
() => {
initData();
(val) => {
if (val) {
initData();
}
}
);