fix: 撤销表列操作_紧急

This commit is contained in:
xinxin.wu 2024-03-15 15:27:19 +08:00 committed by Craftsman
parent 99fd56d3d4
commit db9ce01770
5 changed files with 30 additions and 36 deletions

View File

@ -4,7 +4,7 @@
<slot name="quickCreate"></slot> <slot name="quickCreate"></slot>
</div> </div>
<a-table <a-table
v-bind="{ ...$attrs, ...scrollObj }" v-bind="$attrs"
:row-class="getRowClass" :row-class="getRowClass"
:span-method="spanMethod" :span-method="spanMethod"
:columns="currentColumns" :columns="currentColumns"
@ -390,7 +390,7 @@
return undefined; return undefined;
}); });
let scrollObj: Record<string, any> = {}; // let scrollObj: Record<string, any> = {};
const initColumn = async (arr?: MsTableColumn) => { const initColumn = async (arr?: MsTableColumn) => {
try { try {
let tmpArr: MsTableColumn = []; let tmpArr: MsTableColumn = [];
@ -401,29 +401,29 @@
} }
currentColumns.value = arr || tmpArr; currentColumns.value = arr || tmpArr;
// //
if (props.showSetting) { // if (props.showSetting) {
const isNoDragColumns = currentColumns.value.filter((item) => item.showDrag).length; // const isNoDragColumns = currentColumns.value.filter((item) => item.showDrag).length;
if (!isNoDragColumns) { // if (!isNoDragColumns) {
currentColumns.value = tmpArr.map((item: any) => { // currentColumns.value = tmpArr.map((item: any) => {
if (item.slotName === SpecialColumnEnum.OPERATION || item.slotName === SpecialColumnEnum.ACTION) { // if (item.slotName === SpecialColumnEnum.OPERATION || item.slotName === SpecialColumnEnum.ACTION) {
return { // return {
...item, // ...item,
}; // };
} // }
return { // return {
...item, // ...item,
width: '', // width: '',
}; // };
}); // });
scrollObj = { // scrollObj = {
scroll: { // scroll: {
x: 'auto', // x: 'auto',
}, // },
}; // };
} else { // } else {
scrollObj = {}; // scrollObj = {};
} // }
} // }
} catch (error) { } catch (error) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.error('InitColumn failed', error); console.error('InitColumn failed', error);

View File

@ -119,7 +119,7 @@ export const pathMap: PathMapItem[] = [
level: MENU_LEVEL[2], level: MENU_LEVEL[2],
children: [ children: [
{ {
key: 'BUG_MANAGEMENT_BUG_INDEX', // 缺陷管理-缺陷首页 key: 'BUG_MANAGEMENT_BUG_INDEX', // 缺陷管理
locale: 'menu.bugManagement.bugDetail', locale: 'menu.bugManagement.bugDetail',
route: RouteEnum.BUG_MANAGEMENT_INDEX, route: RouteEnum.BUG_MANAGEMENT_INDEX,
permission: [], permission: [],
@ -127,15 +127,7 @@ export const pathMap: PathMapItem[] = [
alias: 'BUG_SYNC_TASK', alias: 'BUG_SYNC_TASK',
}, },
{ {
key: 'BUG_MANAGEMENT_BUG_DETAIL', // 缺陷管理-缺陷详情 key: 'BUG_MANAGEMENT_BUG_RECYCLE', // 缺陷管理-回收站
locale: 'menu.bugManagement.bugDetail',
route: RouteEnum.BUG_MANAGEMENT_DETAIL,
permission: [],
level: MENU_LEVEL[2],
alias: 'BUG_TASK',
},
{
key: 'BUG_MANAGEMENT_BUG_recycle', // 缺陷管理-回收站
locale: 'menu.bugManagement.bugRecycle', locale: 'menu.bugManagement.bugRecycle',
route: RouteEnum.BUG_MANAGEMENT_RECYCLE, route: RouteEnum.BUG_MANAGEMENT_RECYCLE,
permission: [], permission: [],

View File

@ -22,6 +22,7 @@ export default {
'menu.workbench': 'Workbench', 'menu.workbench': 'Workbench',
'menu.testPlan': 'Test Plan', 'menu.testPlan': 'Test Plan',
'menu.bugManagement': 'Bug', 'menu.bugManagement': 'Bug',
' menu.bugManagement.bugRecycle': 'Recycle',
'menu.caseManagement': 'Case Management', 'menu.caseManagement': 'Case Management',
'menu.apiTest': 'API Test', 'menu.apiTest': 'API Test',
'menu.apiTest.debug': 'API debug', 'menu.apiTest.debug': 'API debug',

View File

@ -22,6 +22,7 @@ export default {
'menu.testPlan': '测试计划', 'menu.testPlan': '测试计划',
'menu.bugManagement': '缺陷管理', 'menu.bugManagement': '缺陷管理',
'menu.bugManagement.bugDetail': '缺陷管理', 'menu.bugManagement.bugDetail': '缺陷管理',
'menu.bugManagement.bugRecycle': '回收站',
'menu.caseManagement': '用例管理', 'menu.caseManagement': '用例管理',
'menu.apiTest': '接口测试', 'menu.apiTest': '接口测试',
'menu.apiTest.debug': '接口调试', 'menu.apiTest.debug': '接口调试',

View File

@ -2,7 +2,7 @@ export default {
bugManagement: { bugManagement: {
index: '缺陷管理', index: '缺陷管理',
addBug: '创建缺陷', addBug: '创建缺陷',
editBug: '编辑缺陷', editBug: '更新缺陷',
createBug: '创建缺陷', createBug: '创建缺陷',
syncBug: '同步缺陷', syncBug: '同步缺陷',
ID: 'ID', ID: 'ID',