Commit 8417f2bc authored by Carver_Hu's avatar Carver_Hu

更新

parent 05dbb0f5
------------------------------language模块--------------------------------
用途:设置自定义属性名称的显示语言
有三种:en、zhcn、zhtw, 分别对应:英文、中文、台湾
------------------------------moduleConf模块------------------------------
用途:存放模块配置
# 模块标题(标题名、英文、中文、台湾)
sys_title: ""
sys_title_en: ""
sys_title_zhcn: ""
sys_title_zhtw: ""
sys_icon: "" # 模块图标
sys_plugin: "" # 模块对应的插件DLL名称(?)
sys_class: "" # 模块对应的类名(?)
sys_open_right: "" # 打开模块的权限(对应在perssion模块下面的权限)
sys_save_action: "" # 当关闭窗口时,如果提示是否保存,保存调用的action
sys_enum_list: [] # 该模块用到的枚举列表
sys_permission_list: [""] # 该模块用到的除了Action之外的权限列表(在哪里找调用?)
"sys_uim":{ # 系统界面工具
"MAINMENU_POPUP": [ # 表格的右键菜单
{"type":"menuitem","action":""} # action对应的是action模块下的功能
]
"MAIN_TOOLBAR": [ # 工具栏
{"type":"toolitem","action":""},
]
}
"sys_ui":{ # 系统界面
# TUI数据参考界面TUI编写手册
}
------------------------------permission模块------------------------------
用途:标记权限
#标签名(分别对应标签名、英文、中文、台湾)
label: ""
label_en: ""
label_zhcn: ""
label_zhtw: ""
------------------------------enum模块------------------------------------
用途:存放枚举信息
# 注意:配置的name必须为module的唯一名称, 若不清楚要咨询开发人员
# 错误的配置可能会造成保存的用户、角色数据错误
------------------------------action模块----------------------------------
用途:存放模块功能,如增、删、改、查、刷新之类
{"fileCollectionPath":"./","runnFile":"flag.txt","fieldMatch":{"order_no":"Order\n生管投料单号","confirmation":"Confirmation\n总数量","plant":"Plant\n厂别","material":"Material\n批号","material_description":"Material Description\n批次说明","posting_date":"Posting Date\n生产时间","confirmation_entry_time":"Confirmation Entry Time\n确认时间","activity":"Activity","work_center":"Work Center\n生产站别","confirmed_yield":"Confirmed Yield (GMEIN)","base_unit":"Base Unit of Measure (=GMEIN)","confirmed_scrap":"Confirmed scrap (MEINH)\n报废数量","reason_for_variance":"Reason for Variance\n报废代码","rework":"Rework\n重工数量","confirmation_text":"Confirmation text","entered_by_user":"Entered by User","ind_final_confirmation":"Ind.Final Confirmation","milestone_confirmed":"Milestone confirmed","ind_delete_doc":"Ind. delete doc.","attr_data":{"test3":"test3","test1":"test1","test2":"test2","":""}}}
\ No newline at end of file
{
"fileCollectionPath": "./",
"runnFile": "flag.txt",
"fieldMatch": {
"order_no": "Order\n生管投料单号",
"confirmation": "Confirmation\n总数量",
"plant": "Plant\n厂别",
"material": "Material\n批号",
"material_description": "Material Description\n批次说明",
"posting_date": "Posting Date\n生产时间",
"confirmation_entry_time": "Confirmation Entry Time\n确认时间",
"activity": "Activity",
"work_center": "Work Center\n生产站别",
"confirmed_yield": "Confirmed Yield (GMEIN)",
"base_unit": "Base Unit of Measure (=GMEIN)",
"confirmed_scrap": "Confirmed scrap (MEINH)\n报废数量",
"reason_for_variance": "Reason for Variance\n报废代码",
"rework": "Rework\n重工数量",
"confirmation_text": "Confirmation text",
"entered_by_user": "Entered by User",
"ind_final_confirmation": "Ind.Final Confirmation",
"milestone_confirmed": "Milestone confirmed",
"ind_delete_doc": "Ind. delete doc.",
"attr_data": {}
}
}
\ No newline at end of file
var _ = require('lodash');
var cl = require('console');
a = ' '
print(a.length)
print(a.trim().length)
arr = ['name', ' ']
s = []
// arr.forEach(function(item){
// if(item.trim().length != 0){
// s.push(item);
// };
// })
_.filter(arr, function(item){
if(item.trim().length != 0){
s.push(item);
};
})
cl.log(s)
\ No newline at end of file
......@@ -118,17 +118,13 @@ var cl = require('console');
// cl.log(_.fill([4, 6, 8, 10, 1, 2, 3, 23, 23], '*', 1, 6));//替换,但范围是顾头不顾尾
arr = {'a': 1, 'b': '2', 'c': 3};
cl.log(_.pick(arr, ['a']))
cl.log(arr)
var object = { 'a': 1, 'b': '2', 'c': 3 };
cl.log(_.pickBy(object, _.isNumber));
cl.log(object)
// arr = {'a': 1, 'b': '2', 'c': 3};
// cl.log(_.pick(arr, ['a']))
// cl.log(arr)
// var object = { 'a': 1, 'b': '2', 'c': 3 };
// cl.log(_.pickBy(object, _.isNumber));
// cl.log(object)
// var users = {
// 'barney': { 'age': 36, 'active': true },
......@@ -151,10 +147,12 @@ cl.log(object)
// }));
arr = ['confirmation123', 'aaa', 'con', 'bbb', 'confirmation1231312']
cl.log(_.filter(arr, function(o){
if(_.includes(o, 'con')){
return o;
};
}));
// arr = ['confirmation123', 'aaa', 'con', 'bbb', 'confirmation1231312']
// cl.log(_.filter(arr, function(o){
// if(_.includes(o, 'con')){
// return o;
// };
// }));
//-------------------------------------lodash整理----------------------------------------
......@@ -56,5 +56,3 @@ cl.log(stringZip(a));
b = '3a5b4c7d9f';
cl.log(stringUnzip(b));
\ No newline at end of file
//扩展:效率问题
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment