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:
guoyuqi 2024-04-07 20:06:06 +08:00 committed by Craftsman
parent fce4f17571
commit 090e4d5bf9
5 changed files with 15 additions and 5 deletions

View File

@ -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})

View File

@ -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>>({});

View File

@ -131,6 +131,8 @@ export const INT = {
value: 0,
props: {
precision: 0,
max: 999999999999999,
min: -999999999999999,
placeholder: t('formCreate.PleaseEnter'),
},
};

View File

@ -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;

View File

@ -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>