fix(工作台): 修复工作台XX率文案&zoom配置导致柱子展示不全bug
This commit is contained in:
parent
adac9bc4b9
commit
be206f300c
|
@ -221,10 +221,7 @@
|
|||
}
|
||||
const isInit = ref(true);
|
||||
function changeProject() {
|
||||
if (isInit.value) {
|
||||
isInit.value = false;
|
||||
return;
|
||||
}
|
||||
if (isInit.value) return;
|
||||
nextTick(() => {
|
||||
initOverViewDetail();
|
||||
emit('change');
|
||||
|
@ -232,6 +229,7 @@
|
|||
}
|
||||
|
||||
onMounted(() => {
|
||||
isInit.value = false;
|
||||
initOverViewDetail();
|
||||
});
|
||||
|
||||
|
|
|
@ -17,8 +17,10 @@
|
|||
@change="changeProject"
|
||||
>
|
||||
</MsSelect>
|
||||
|
||||
<MsSelect
|
||||
v-model:model-value="memberIds"
|
||||
:key="props.refreshKey"
|
||||
v-model:model-value="innerHandleUsers"
|
||||
:options="memberOptions"
|
||||
allow-search
|
||||
allow-clear
|
||||
|
@ -82,8 +84,6 @@
|
|||
|
||||
const projectId = ref<string>(innerProjectIds.value[0]);
|
||||
|
||||
const memberIds = ref<string[]>(innerHandleUsers.value);
|
||||
|
||||
const timeForm = inject<Ref<TimeFormParams>>(
|
||||
'timeForm',
|
||||
ref({
|
||||
|
@ -181,7 +181,7 @@
|
|||
}
|
||||
|
||||
function changeProject() {
|
||||
memberIds.value = [];
|
||||
innerHandleUsers.value = [];
|
||||
nextTick(() => {
|
||||
getMemberOptions();
|
||||
initOverViewMemberDetail();
|
||||
|
@ -202,7 +202,7 @@
|
|||
if (val) {
|
||||
const [newProjectId] = val;
|
||||
projectId.value = newProjectId;
|
||||
memberIds.value = [];
|
||||
innerHandleUsers.value = [];
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -216,15 +216,6 @@
|
|||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => memberIds.value,
|
||||
(val) => {
|
||||
if (val) {
|
||||
innerHandleUsers.value = val;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => timeForm.value,
|
||||
(val) => {
|
||||
|
|
|
@ -85,8 +85,7 @@ export default {
|
|||
'workbench.homePage.notHasResPermission': 'No resource permission',
|
||||
'workbench.homePage.reviewRateTooltip':
|
||||
'Review Rate: Reviewed functional test cases / All functional test cases * 100%',
|
||||
'workbench.homePage.reviewPassRateTooltip':
|
||||
'Review Pass Rate: Passed reviewed test cases / All reviewed test cases * 100%',
|
||||
'workbench.homePage.reviewPassRateTooltip': 'Review pass rate: Reviewed use cases/all use cases *100%',
|
||||
'workbench.homePage.associateCaseCoverRateTooltip':
|
||||
'Association Coverage Rate: Associated functional test cases / All functional test cases * 100%',
|
||||
'workbench.homePage.caseReviewCoverRateTooltip':
|
||||
|
|
|
@ -81,7 +81,7 @@ export default {
|
|||
'workbench.homePage.notHasData': '无数据',
|
||||
'workbench.homePage.notHasResPermission': '无资源权限',
|
||||
'workbench.homePage.reviewRateTooltip': '评审率: 已评审功能用例/所有功能用例 * 100%',
|
||||
'workbench.homePage.reviewPassRateTooltip': '评审通过率:已评审通过的用例/所有完成评审的用例*100%',
|
||||
'workbench.homePage.reviewPassRateTooltip': '评审通过率:已评审通过的用例/所有用例*100%',
|
||||
'workbench.homePage.associateCaseCoverRateTooltip': '覆盖率:关联的功能用例/所有功能用例 * 100%',
|
||||
'workbench.homePage.caseReviewCoverRateTooltip': '覆盖率:已评审的用例/所有的用例*100%',
|
||||
'workbench.homePage.apiCountCoverRateTooltip': '接口覆盖率:接口(URL)有(用例或场景步骤)数/接口总数*100%',
|
||||
|
|
|
@ -233,10 +233,11 @@ export function getCommonBarOptions(hasRoom: boolean, color: string[]): Record<s
|
|||
type: 'slider',
|
||||
height: 24,
|
||||
bottom: 10,
|
||||
// TODO 待优化,xinxinwu 调研优化中
|
||||
start: 0,
|
||||
end: 30,
|
||||
minSpan: 30, // 最小滑动距离
|
||||
maxSpan: 70,
|
||||
minSpan: 0, // 最小滑动距离
|
||||
maxSpan: 100,
|
||||
showDetail: false,
|
||||
filterMode: 'filter',
|
||||
moveOnMouseMove: true,
|
||||
|
|
Loading…
Reference in New Issue