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} #{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})

View File

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

View File

@ -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'),
}, },
}; };

View File

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

View File

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