fix(用例管理):修复用例评审创建关联用例的时候回显已选用例问题以及数字输入框科学记数法显示问题
--bug=1038347 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038347 --bug=1037248 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037248
This commit is contained in:
parent
fce4f17571
commit
090e4d5bf9
|
@ -446,19 +446,19 @@
|
||||||
#{value}
|
#{value}
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
<when test="key=='create_user' or key=='createUser'">
|
<when test="key=='createUser'">
|
||||||
and atc.create_user in
|
and atc.create_user in
|
||||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||||
(#{value})
|
(#{value})
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
<when test="key=='update_user' or key=='updateUser'">
|
<when test="key=='updateUser'">
|
||||||
and atc.update_user in
|
and atc.update_user in
|
||||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||||
(#{value})
|
(#{value})
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
<when test="key=='delete_user' or key=='deleteUser'">
|
<when test="key=='deleteUser'">
|
||||||
and atc.delete_user in
|
and atc.delete_user in
|
||||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||||
(#{value})
|
(#{value})
|
||||||
|
|
|
@ -187,6 +187,7 @@
|
||||||
moduleOptions?: { label: string; value: string }[]; // 功能模块对应用例下拉
|
moduleOptions?: { label: string; value: string }[]; // 功能模块对应用例下拉
|
||||||
confirmLoading: boolean;
|
confirmLoading: boolean;
|
||||||
associatedIds: string[]; // 已关联用例id集合用于去重已关联
|
associatedIds: string[]; // 已关联用例id集合用于去重已关联
|
||||||
|
hasNotAssociatedIds?: string[];
|
||||||
type: RequestModuleEnum[keyof RequestModuleEnum];
|
type: RequestModuleEnum[keyof RequestModuleEnum];
|
||||||
moduleCountParams?: TableQueryParams; // 获取模块树数量额外的参数
|
moduleCountParams?: TableQueryParams; // 获取模块树数量额外的参数
|
||||||
hideProjectSelect?: boolean; // 是否隐藏项目选择
|
hideProjectSelect?: boolean; // 是否隐藏项目选择
|
||||||
|
@ -352,7 +353,7 @@
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const { propsRes, propsEvent, loadList, setLoadListParams, resetSelector } = useTable(
|
const { propsRes, propsEvent, loadList, setLoadListParams, resetSelector, setTableSelected } = useTable(
|
||||||
props.getTableFunc,
|
props.getTableFunc,
|
||||||
{
|
{
|
||||||
columns,
|
columns,
|
||||||
|
@ -396,6 +397,11 @@
|
||||||
projectId: innerProject.value,
|
projectId: innerProject.value,
|
||||||
excludeIds: [...props.associatedIds], // 已经存在的关联的id列表
|
excludeIds: [...props.associatedIds], // 已经存在的关联的id列表
|
||||||
});
|
});
|
||||||
|
if (props.hasNotAssociatedIds && props.hasNotAssociatedIds.length > 0) {
|
||||||
|
props.hasNotAssociatedIds.forEach((hasNotAssociatedId) => {
|
||||||
|
setTableSelected(hasNotAssociatedId);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const combine = ref<Record<string, any>>({});
|
const combine = ref<Record<string, any>>({});
|
||||||
|
|
|
@ -131,6 +131,8 @@ export const INT = {
|
||||||
value: 0,
|
value: 0,
|
||||||
props: {
|
props: {
|
||||||
precision: 0,
|
precision: 0,
|
||||||
|
max: 999999999999999,
|
||||||
|
min: -999999999999999,
|
||||||
placeholder: t('formCreate.PleaseEnter'),
|
placeholder: t('formCreate.PleaseEnter'),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
:get-table-func="getCaseList"
|
:get-table-func="getCaseList"
|
||||||
:confirm-loading="confirmLoading"
|
:confirm-loading="confirmLoading"
|
||||||
:associated-ids="[]"
|
:associated-ids="[]"
|
||||||
|
:has-not-associated-ids="props.hasNotAssociatedIds"
|
||||||
:type="RequestModuleEnum.CASE_MANAGEMENT"
|
:type="RequestModuleEnum.CASE_MANAGEMENT"
|
||||||
:table-params="{ reviewId: props.reviewId }"
|
:table-params="{ reviewId: props.reviewId }"
|
||||||
hide-project-select
|
hide-project-select
|
||||||
|
@ -94,6 +95,7 @@
|
||||||
project: string;
|
project: string;
|
||||||
reviewId?: string;
|
reviewId?: string;
|
||||||
reviewers?: string[];
|
reviewers?: string[];
|
||||||
|
hasNotAssociatedIds?: string[];
|
||||||
}>();
|
}>();
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'update:visible', val: boolean): void;
|
(e: 'update:visible', val: boolean): void;
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
v-model:visible="caseAssociateVisible"
|
v-model:visible="caseAssociateVisible"
|
||||||
v-model:project="caseAssociateProject"
|
v-model:project="caseAssociateProject"
|
||||||
:reviewers="reviewForm.reviewers"
|
:reviewers="reviewForm.reviewers"
|
||||||
:associated-ids="selectedAssociateCasesParams.selectIds"
|
:has-not-associated-ids="selectedAssociateCasesParams.selectIds"
|
||||||
@success="writeAssociateCases"
|
@success="writeAssociateCases"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue