fix(缺陷管理): 修复缺陷管理数字类型自定义字段却当做string处理导致组件不识别的问题
--bug=1036852 --user=宋天阳 【缺陷管理】编辑修改缺陷中 数字类型字段失败 https://www.tapd.cn/55049933/s/1472180;--bug=1036381 --user=宋天阳 【缺陷管理】修改缺陷管理的数字类型的自定义字段失败 https://www.tapd.cn/55049933/s/1472179
This commit is contained in:
parent
a2407c5713
commit
5250909719
|
@ -202,6 +202,10 @@
|
|||
const { t } = useI18n();
|
||||
const { openDeleteModal } = useModal();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'submit'): void;
|
||||
}>();
|
||||
|
||||
const props = defineProps<{
|
||||
visible: boolean;
|
||||
detailId: string; // 详情 id
|
||||
|
@ -276,6 +280,8 @@
|
|||
detail.customFields.forEach((item) => {
|
||||
if (item.type === 'MULTIPLE_SELECT') {
|
||||
tmpObj[item.id] = JSON.parse(item.value);
|
||||
} else if (item.type === 'INT') {
|
||||
tmpObj[item.id] = Number(item.value);
|
||||
} else {
|
||||
tmpObj[item.id] = item.value;
|
||||
}
|
||||
|
@ -306,6 +312,7 @@
|
|||
|
||||
function updateSuccess() {
|
||||
detailDrawerRef.value?.initDetail();
|
||||
emit('submit');
|
||||
}
|
||||
|
||||
const contentTabList = computed(() => {
|
||||
|
|
|
@ -588,6 +588,8 @@
|
|||
tmpObj[item.id] = '';
|
||||
} else if (item.type === 'MULTIPLE_SELECT') {
|
||||
tmpObj[item.id] = JSON.parse(item.value);
|
||||
} else if (item.type === 'INT') {
|
||||
tmpObj[item.id] = Number(item.value);
|
||||
} else {
|
||||
tmpObj[item.id] = item.value;
|
||||
}
|
||||
|
|
|
@ -108,6 +108,7 @@
|
|||
:table-data="propsRes.data"
|
||||
:page-change="propsEvent.pageChange"
|
||||
:pagination="propsRes.msPagination!"
|
||||
@submit="fetchData"
|
||||
/>
|
||||
<DeleteModal
|
||||
:id="currentDeleteObj.id"
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
const deleteHandler = (node: MsTreeNodeData) => {
|
||||
openModal({
|
||||
type: 'error',
|
||||
title: t('caseManagement.featureCase.deleteTipTitle', { name: node.name }),
|
||||
title: t('caseManagement.featureCase.moduleDeleteTipTitle', { name: node.name }),
|
||||
content: t('caseManagement.featureCase.deleteCaseTipContent'),
|
||||
okText: t('caseManagement.featureCase.deleteConfirm'),
|
||||
okButtonProps: {
|
||||
|
|
|
@ -25,6 +25,7 @@ export default {
|
|||
'caseManagement.featureCase.renameSuccess': '重命名成功',
|
||||
'caseManagement.featureCase.nameNotNullTip': '名称不能为空',
|
||||
'caseManagement.featureCase.deleteTipTitle': '是否删除 {name} 用例 ?',
|
||||
'caseManagement.featureCase.moduleDeleteTipTitle': '是否删除 {name} 模块 ?',
|
||||
'caseManagement.featureCase.deleteCaseTipContent': '删除后,此节点下的所有资源都会被删除,请谨慎操作。',
|
||||
'caseManagement.featureCase.deleteConfirm': '确认删除',
|
||||
'caseManagement.featureCase.deleteSuccess': '删除成功',
|
||||
|
|
Loading…
Reference in New Issue