refactor(工作台): 部分功能加x-pack权限

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-12-16 18:22:52 +08:00 committed by xiaomeinvG
parent b14534a967
commit b930461327
2 changed files with 19 additions and 7 deletions

View File

@ -22,8 +22,8 @@
:row-order-func="editApiTestCaseOrder"
:batch-operators="batchButtons"
:enable-selection="((isUpcoming===true||isFocus===true||isCreation===true) && isShowAllColumn === true)"
:operators="(isFinish===false && isShowAllColumn===true)?simpleOperators:[]"
:operator-width="isFinish===false?'180':'0'"
:operators="(isFinish===false && isShowAllColumn===true && showColum===true)?simpleOperators:[]"
:operator-width="(isFinish===false && showColum===true)?'180':'0'"
:disable-header-config=true
row-key="id"
@refresh="initTable"
@ -361,11 +361,13 @@ export default {
{
name: this.$t('commons.batch') + this.$t('workstation.sync'),
handleClick: this.openBatchSync,
isXPack: true,
permissions: ['PROJECT_TRACK_PLAN:READ+SCHEDULE']
},
{
name: this.$t('commons.batch') + this.$t('workstation.ignore'),
handleClick: this.openBatchIgnore,
isXPack: true,
permissions: ['PROJECT_TRACK_PLAN:READ+SCHEDULE']
},
],
@ -469,8 +471,9 @@ export default {
batchSyncCaseVisible: false,
batchIgnoreCaseVisible: false,
hasEditPermission: false,
store:{},
openUpdateRule: true
store: {},
openUpdateRule: true,
showColum: false
};
},
props: {
@ -532,6 +535,9 @@ export default {
},
created: function () {
this.store = useApiStore();
if (hasLicense()) {
this.showColum = true;
}
// tab
this.condition.versionId = this.currentVersion;
this.initTable();

View File

@ -14,7 +14,8 @@
:enable-order-drag="enableOrderDrag"
:enable-selection="((isUpcoming===true||isFocus===true||isCreation===true) && isShowAllColumn === true)"
:batch-operators="batchButtons"
:operators="isFinish===false?tableOperatorButtons:[]" :operator-width="isFinish===false?'140':'0'"
:operators="(isFinish===false && showColum===true) ?tableOperatorButtons:[]"
:operator-width="(isFinish===false && showColum===true)?'140':'0'"
row-key="id"
:disable-header-config=true
@refresh="initTable"
@ -458,11 +459,13 @@ export default {
{
name: this.$t('commons.batch') + this.$t('workstation.sync'),
handleClick: this.openBatchSync,
isXPack: true,
permissions: ['PROJECT_TRACK_PLAN:READ+SCHEDULE']
},
{
name: this.$t('commons.batch') + this.$t('workstation.ignore'),
handleClick: this.openBatchIgnore,
isXPack: true,
permissions: ['PROJECT_TRACK_PLAN:READ+SCHEDULE']
},
{
@ -515,8 +518,8 @@ export default {
batchIgnoreApiVisible: false,
hasEditPermission: false,
showFullscreen: false,
openUpdateRule: true
openUpdateRule: true,
showColum: false
};
},
props: {
@ -594,6 +597,9 @@ export default {
}
},
created: function () {
if (hasLicense()) {
this.showColum = true;
}
if (!this.projectName || this.projectName === "") {
this.getProjectName();
}