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}
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="key=='create_user' or key=='createUser'">
|
||||
<when test="key=='createUser'">
|
||||
and atc.create_user in
|
||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||
(#{value})
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="key=='update_user' or key=='updateUser'">
|
||||
<when test="key=='updateUser'">
|
||||
and atc.update_user in
|
||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||
(#{value})
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="key=='delete_user' or key=='deleteUser'">
|
||||
<when test="key=='deleteUser'">
|
||||
and atc.delete_user in
|
||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||
(#{value})
|
||||
|
|
|
@ -187,6 +187,7 @@
|
|||
moduleOptions?: { label: string; value: string }[]; // 功能模块对应用例下拉
|
||||
confirmLoading: boolean;
|
||||
associatedIds: string[]; // 已关联用例id集合用于去重已关联
|
||||
hasNotAssociatedIds?: string[];
|
||||
type: RequestModuleEnum[keyof RequestModuleEnum];
|
||||
moduleCountParams?: TableQueryParams; // 获取模块树数量额外的参数
|
||||
hideProjectSelect?: boolean; // 是否隐藏项目选择
|
||||
|
@ -352,7 +353,7 @@
|
|||
},
|
||||
];
|
||||
|
||||
const { propsRes, propsEvent, loadList, setLoadListParams, resetSelector } = useTable(
|
||||
const { propsRes, propsEvent, loadList, setLoadListParams, resetSelector, setTableSelected } = useTable(
|
||||
props.getTableFunc,
|
||||
{
|
||||
columns,
|
||||
|
@ -396,6 +397,11 @@
|
|||
projectId: innerProject.value,
|
||||
excludeIds: [...props.associatedIds], // 已经存在的关联的id列表
|
||||
});
|
||||
if (props.hasNotAssociatedIds && props.hasNotAssociatedIds.length > 0) {
|
||||
props.hasNotAssociatedIds.forEach((hasNotAssociatedId) => {
|
||||
setTableSelected(hasNotAssociatedId);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const combine = ref<Record<string, any>>({});
|
||||
|
|
|
@ -131,6 +131,8 @@ export const INT = {
|
|||
value: 0,
|
||||
props: {
|
||||
precision: 0,
|
||||
max: 999999999999999,
|
||||
min: -999999999999999,
|
||||
placeholder: t('formCreate.PleaseEnter'),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
:get-table-func="getCaseList"
|
||||
:confirm-loading="confirmLoading"
|
||||
:associated-ids="[]"
|
||||
:has-not-associated-ids="props.hasNotAssociatedIds"
|
||||
:type="RequestModuleEnum.CASE_MANAGEMENT"
|
||||
:table-params="{ reviewId: props.reviewId }"
|
||||
hide-project-select
|
||||
|
@ -94,6 +95,7 @@
|
|||
project: string;
|
||||
reviewId?: string;
|
||||
reviewers?: string[];
|
||||
hasNotAssociatedIds?: string[];
|
||||
}>();
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:visible', val: boolean): void;
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
v-model:visible="caseAssociateVisible"
|
||||
v-model:project="caseAssociateProject"
|
||||
:reviewers="reviewForm.reviewers"
|
||||
:associated-ids="selectedAssociateCasesParams.selectIds"
|
||||
:has-not-associated-ids="selectedAssociateCasesParams.selectIds"
|
||||
@success="writeAssociateCases"
|
||||
/>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue