This commit is contained in:
@@ -171,7 +171,7 @@ export default {
|
|||||||
);
|
);
|
||||||
|
|
||||||
//upload the data
|
//upload the data
|
||||||
await this.upload(dat);
|
await this.upload(dat);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error);
|
window.$gz.errorHandler.handleFormError(error);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -312,7 +312,20 @@ function transform(dat, atype) {
|
|||||||
z.Items = newItems;
|
z.Items = newItems;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case window.$gz.type.TaskGroup:
|
||||||
|
dat.forEach(z => {
|
||||||
|
var newItems = [];
|
||||||
|
z.Items.split(",").forEach((x, i) => {
|
||||||
|
newItems.push({
|
||||||
|
Sequence: i,
|
||||||
|
Task: x
|
||||||
|
});
|
||||||
|
});
|
||||||
|
z.Items = newItems;
|
||||||
|
});
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
//console.log("transform after:", dat);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
@@ -485,6 +498,9 @@ function cleanData(dat, atype) {
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case window.$gz.type.TaskGroup:
|
||||||
|
allowedProps.push(...["Name", "Active", "Notes", "Items"]);
|
||||||
|
break;
|
||||||
case window.$gz.type.TravelRate:
|
case window.$gz.type.TravelRate:
|
||||||
allowedProps.push(
|
allowedProps.push(
|
||||||
...[
|
...[
|
||||||
|
|||||||
Reference in New Issue
Block a user