代码调整
This commit is contained in:
parent
0343baabb6
commit
5982bc957f
@ -251,6 +251,7 @@ function onCreate() {
|
||||
createFormShow.value = false;
|
||||
tableRef.value.requestServerInteraction(); // 刷新列表
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
const error = err as ApiError;
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
@ -360,13 +361,14 @@ function getObjData(fieldInfo: Description, obj: obj) {
|
||||
const key = fieldInfo.fieldName;
|
||||
if (fieldInfo.type == 'array') {
|
||||
obj[key] = [];
|
||||
(fieldInfo.val as []).forEach((ii: Description[]) => {
|
||||
const iiObj = {};
|
||||
ii.forEach((e: Description) => {
|
||||
getObjData(e, iiObj);
|
||||
fieldInfo.val &&
|
||||
(fieldInfo.val as []).forEach((ii: Description[]) => {
|
||||
const iiObj = {};
|
||||
ii.forEach((e: Description) => {
|
||||
getObjData(e, iiObj);
|
||||
});
|
||||
obj[key].push(iiObj);
|
||||
});
|
||||
obj[key].push(iiObj);
|
||||
});
|
||||
} else if (fieldInfo.type == 'map') {
|
||||
const value = {};
|
||||
obj[key] = value;
|
||||
|
Loading…
Reference in New Issue
Block a user