Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
T
TopJS3API
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carver_Hu
TopJS3API
Commits
8417f2bc
Commit
8417f2bc
authored
Jan 13, 2020
by
Carver_Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
05dbb0f5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
131 additions
and
22 deletions
+131
-22
TopIKM6模块配置用途整理.txt
TopIKM6模块配置用途整理.txt
+65
-0
excel.js
excelVersion3/excel.js
+1
-1
excelConfig.json
excelVersion3/excelConfig.json
+26
-1
test.js
excelVersion3/test.js
+23
-0
lodash_study.js
lodash_study.js
+14
-16
stringDemo.js
字符串压缩与解压缩算法脚本/stringDemo.js
+2
-4
No files found.
TopIKM6模块配置用途整理.txt
0 → 100644
View file @
8417f2bc
------------------------------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模块----------------------------------
用途:存放模块功能,如增、删、改、查、刷新之类
excelVersion3/excel.js
View file @
8417f2bc
...
@@ -473,4 +473,4 @@ db.removeConnection('MES_DB'); //移除数据库连接
...
@@ -473,4 +473,4 @@ db.removeConnection('MES_DB'); //移除数据库连接
// 2、新增列名不能重名,否则会与之前的列名数据冲突
// 2、新增列名不能重名,否则会与之前的列名数据冲突
// 3、若手动修改配置文件中的新增字段名,则会在数据库中新增该字段信息,
// 3、若手动修改配置文件中的新增字段名,则会在数据库中新增该字段信息,
// 且其数据取该字段对应的列名的数据,若被修改的字段与其对应的列名在分别在数据库中都不存在,
// 且其数据取该字段对应的列名的数据,若被修改的字段与其对应的列名在分别在数据库中都不存在,
// 则会更新整体新增字段,虽然数据不会变,但是没有意义,不要这样修改
// 则会更新整体新增字段,虽然数据不会变,但是没有意义,不要这样修改
\ No newline at end of file
excelVersion3/excelConfig.json
View file @
8417f2bc
{
"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
excelVersion3/test.js
0 → 100644
View file @
8417f2bc
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
lodash_study.js
View file @
8417f2bc
...
@@ -118,17 +118,13 @@ var cl = require('console');
...
@@ -118,17 +118,13 @@ var cl = require('console');
// cl.log(_.fill([4, 6, 8, 10, 1, 2, 3, 23, 23], '*', 1, 6));//替换,但范围是顾头不顾尾
// cl.log(_.fill([4, 6, 8, 10, 1, 2, 3, 23, 23], '*', 1, 6));//替换,但范围是顾头不顾尾
arr
=
{
'a'
:
1
,
'b'
:
'2'
,
'c'
:
3
};
// arr = {'a': 1, 'b': '2', 'c': 3};
cl
.
log
(
_
.
pick
(
arr
,
[
'a'
]))
// cl.log(_.pick(arr, ['a']))
cl
.
log
(
arr
)
// cl.log(arr)
var
object
=
{
'a'
:
1
,
'b'
:
'2'
,
'c'
:
3
};
cl
.
log
(
_
.
pickBy
(
object
,
_
.
isNumber
));
cl
.
log
(
object
)
// var object = { 'a': 1, 'b': '2', 'c': 3 };
// cl.log(_.pickBy(object, _.isNumber));
// cl.log(object)
// var users = {
// var users = {
// 'barney': { 'age': 36, 'active': true },
// 'barney': { 'age': 36, 'active': true },
...
@@ -151,10 +147,12 @@ cl.log(object)
...
@@ -151,10 +147,12 @@ cl.log(object)
// }));
// }));
arr
=
[
'confirmation123'
,
'aaa'
,
'con'
,
'bbb'
,
'confirmation1231312'
]
// arr = ['confirmation123', 'aaa', 'con', 'bbb', 'confirmation1231312']
cl
.
log
(
_
.
filter
(
arr
,
function
(
o
){
// cl.log(_.filter(arr, function(o){
if
(
_
.
includes
(
o
,
'con'
)){
// if(_.includes(o, 'con')){
return
o
;
// return o;
};
// };
}));
// }));
//-------------------------------------lodash整理----------------------------------------
字符串压缩与解压缩算法脚本/stringDemo.js
View file @
8417f2bc
...
@@ -55,6 +55,4 @@ a = 'aaanaaanbbnnnbbbbbbbbbbsssssss';
...
@@ -55,6 +55,4 @@ a = 'aaanaaanbbnnnbbbbbbbbbbsssssss';
cl
.
log
(
stringZip
(
a
));
cl
.
log
(
stringZip
(
a
));
b
=
'3a5b4c7d9f'
;
b
=
'3a5b4c7d9f'
;
cl
.
log
(
stringUnzip
(
b
));
cl
.
log
(
stringUnzip
(
b
));
\ No newline at end of file
//扩展:效率问题
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment