This commit is contained in:
@@ -171,7 +171,7 @@ export default {
|
||||
);
|
||||
|
||||
//upload the data
|
||||
await this.upload(dat);
|
||||
await this.upload(dat);
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error);
|
||||
} finally {
|
||||
@@ -312,7 +312,20 @@ function transform(dat, atype) {
|
||||
z.Items = newItems;
|
||||
});
|
||||
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;
|
||||
case window.$gz.type.TaskGroup:
|
||||
allowedProps.push(...["Name", "Active", "Notes", "Items"]);
|
||||
break;
|
||||
case window.$gz.type.TravelRate:
|
||||
allowedProps.push(
|
||||
...[
|
||||
|
||||
Reference in New Issue
Block a user