@xuda.io/xuda-worker-bundle-min 1.3.985 → 1.3.986
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +15 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7355,6 +7355,21 @@ func.utils.get_resource_filename = function (build, filename) {
|
|
|
7355
7355
|
}
|
|
7356
7356
|
return filename;
|
|
7357
7357
|
};
|
|
7358
|
+
|
|
7359
|
+
func.utils.set_SYS_GLOBAL_OBJ_WIDGET_INFO = async function (SESSION_ID, docP) {
|
|
7360
|
+
var obj = _.clone(docP);
|
|
7361
|
+
obj.date = await func.utils.get_dateTime(SESSION_ID, "SYS_DATE", docP.date);
|
|
7362
|
+
obj.time = await func.utils.get_dateTime(SESSION_ID, "SYS_TIME", docP.date);
|
|
7363
|
+
|
|
7364
|
+
var datasource_changes = {
|
|
7365
|
+
[0]: {
|
|
7366
|
+
["data_system"]: {
|
|
7367
|
+
["SYS_GLOBAL_OBJ_WIDGET_INFO"]: obj,
|
|
7368
|
+
},
|
|
7369
|
+
},
|
|
7370
|
+
};
|
|
7371
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
7372
|
+
};
|
|
7358
7373
|
func.events = {};
|
|
7359
7374
|
func.events.validate = async function (
|
|
7360
7375
|
SESSION_ID,
|