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