Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
1f886370
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1f886370
编写于
9月 15, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
组织管理和个人设置增加字段登录IP
上级
7091083d
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
104 addition
and
5 deletion
+104
-5
o2web/source/x_component_Org/PersonExplorer.js
o2web/source/x_component_Org/PersonExplorer.js
+28
-0
o2web/source/x_component_Org/lp/en.js
o2web/source/x_component_Org/lp/en.js
+3
-1
o2web/source/x_component_Org/lp/zh-cn.js
o2web/source/x_component_Org/lp/zh-cn.js
+3
-1
o2web/source/x_component_Profile/$Main/default/view.html
o2web/source/x_component_Profile/$Main/default/view.html
+7
-0
o2web/source/x_component_Profile/$Main/default/viewBrowser.html
...source/x_component_Profile/$Main/default/viewBrowser.html
+7
-0
o2web/source/x_component_Profile/$Main/empower/view.html
o2web/source/x_component_Profile/$Main/empower/view.html
+7
-0
o2web/source/x_component_Profile/$Main/empower/viewBrowser.html
...source/x_component_Profile/$Main/empower/viewBrowser.html
+7
-0
o2web/source/x_component_Profile/$Main/newVersion/style.css
o2web/source/x_component_Profile/$Main/newVersion/style.css
+1
-1
o2web/source/x_component_Profile/$Main/newVersion/view.html
o2web/source/x_component_Profile/$Main/newVersion/view.html
+7
-0
o2web/source/x_component_Profile/$Main/newVersion/viewBrowser.html
...rce/x_component_Profile/$Main/newVersion/viewBrowser.html
+7
-0
o2web/source/x_component_Profile/Main.js
o2web/source/x_component_Profile/Main.js
+21
-2
o2web/source/x_component_Profile/lp/en.js
o2web/source/x_component_Profile/lp/en.js
+3
-0
o2web/source/x_component_Profile/lp/zh-cn.js
o2web/source/x_component_Profile/lp/zh-cn.js
+3
-0
未找到文件。
o2web/source/x_component_Org/PersonExplorer.js
浏览文件 @
1f886370
...
...
@@ -49,6 +49,7 @@ MWF.xApplication.Org.PersonExplorer = new Class({
"
weibo
"
:
""
,
"
mobile
"
:
""
,
"
name
"
:
""
,
"
ipAddress
"
:
""
,
"
controllerList
"
:
[],
"
woPersonAttributeList
"
:[],
"
woIdentityList
"
:
[],
...
...
@@ -692,6 +693,9 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
var
n
=
this
.
editContentNode
.
getElement
(
"
.infor_birthday
"
);
if
(
n
)
n
.
set
(
"
text
"
,
this
.
data
.
birthday
||
""
);
var
n
=
this
.
editContentNode
.
getElement
(
"
.infor_ipAddress
"
);
if
(
n
)
n
.
set
(
"
text
"
,
this
.
data
.
ipAddress
||
""
);
this
.
editContentNode
.
getElements
(
"
td.inforTitle
"
).
setStyles
(
this
.
style
.
baseInforTitleNode
);
this
.
editContentNode
.
getElements
(
"
td.inforContent
"
).
setStyles
(
this
.
style
.
baseInforContentNode
);
this
.
editContentNode
.
getElements
(
"
td.inforAction
"
).
setStyles
(
this
.
style
.
baseInforActionNode
);
...
...
@@ -715,6 +719,8 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
"
<td class='inforTitle'>
"
+
this
.
explorer
.
app
.
lp
.
personOfficePhone
+
"
:</td><td class='inforContent infor_officePhone'>
"
+
(
this
.
data
.
officePhone
||
""
)
+
"
</td></tr>
"
;
html
+=
"
<tr><td class='inforTitle'>
"
+
this
.
explorer
.
app
.
lp
.
personBoardDate
+
"
:</td><td class='inforContent infor_boardDate'>
"
+
(
this
.
data
.
boardDate
||
""
)
+
"
</td>
"
+
"
<td class='inforTitle'>
"
+
this
.
explorer
.
app
.
lp
.
personBirthday
+
"
:</td><td class='inforContent infor_birthday'>
"
+
(
this
.
data
.
birthday
||
""
)
+
"
</td></tr>
"
;
html
+=
"
<tr><td class='inforTitle'>
"
+
this
.
explorer
.
app
.
lp
.
ipAddress
+
"
:</td><td class='inforContent infor_ipAddress'>
"
+
(
this
.
data
.
ipAddress
||
""
)
+
"
</td>
"
+
"
<td class='inforTitle'></td></tr>
"
;
html
+=
"
<tr><td colspan='4' class='inforAction'></td></tr>
"
;
//this.baseInforRightNode.set("html", html);
...
...
@@ -829,6 +835,11 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
});
}.
bind
(
this
));
tdContents
[
12
].
setStyles
(
this
.
style
.
baseInforContentNode_edit
).
empty
();
this
.
ipAddressInputNode
=
new
Element
(
"
input
"
,
{
"
styles
"
:
this
.
style
.
inputNode
,
"
placeHolder
"
:
this
.
explorer
.
app
.
lp
.
ipAddressPlaceHolder
,
}).
inject
(
tdContents
[
12
]);
this
.
ipAddressInputNode
.
set
(
"
value
"
,
(
this
.
data
.
ipAddress
));
var
_self
=
this
;
this
.
editContentNode
.
getElements
(
"
input
"
).
addEvents
({
...
...
@@ -857,6 +868,21 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
this
.
explorer
.
app
.
notice
(
this
.
explorer
.
app
.
lp
.
inputPersonInfor
,
"
error
"
,
this
.
explorer
.
propertyContentNode
);
return
false
;
}
var
array
=
[];
var
ipAddress
=
this
.
ipAddressInputNode
.
get
(
"
value
"
)
||
""
;
var
ipV4Format
=
/^
(
25
[
0-5
]
|2
[
0-4
][
0-9
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4}){1,5})
|
((
:
[
0-9A-Fa-f
]{1,4}){0,3}
:
((
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)(\.(
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)){3}))
|:
))
|
(([
0-9A-Fa-f
]{1,4}
:
){1}(((
:
[
0-9A-Fa-f
]{1,4}){1,6})
|
((
:
[
0-9A-Fa-f
]{1,4}){0,4}
:
((
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)(\.(
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)){3}))
|:
))
|
(
:
(((
:
[
0-9A-Fa-f
]{1,4}){1,7})
|
((
:
[
0-9A-Fa-f
]{1,4}){0,5}
:
((
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)(\.(
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)){3}))
|:
)))(
%.+
)?\s
*$/
;
if
(
ipAddress
.
trim
()
){
ipAddress
.
split
(
"
,
"
).
each
(
function
(
ip
){
if
(
!
ip
.
match
(
ipV4Format
)
&&
!
ip
.
match
(
ipV6Format
))
array
.
push
(
ip
);
})
}
if
(
array
.
length
>
0
){
this
.
explorer
.
app
.
notice
(
this
.
explorer
.
app
.
lp
.
ipAddressIncorrectNotice
+
array
.
join
(
"
,
"
),
"
error
"
,
this
.
explorer
.
propertyContentNode
);
return
false
;
}
//this.data.genderType = gender;
if
(
!
this
.
uniqueInputNode
.
get
(
"
value
"
))
this
.
data
.
unique
=
this
.
employeeInputNode
.
get
(
"
value
"
);
this
.
content
.
propertyContentScrollNode
.
mask
({
...
...
@@ -896,6 +922,7 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
data
.
officePhone
=
this
.
officePhoneInputNode
.
get
(
"
value
"
);
data
.
boardDate
=
this
.
boardDateInputNode
.
get
(
"
value
"
);
data
.
birthday
=
this
.
birthdayInputNode
.
get
(
"
value
"
);
data
.
ipAddress
=
this
.
ipAddressInputNode
.
get
(
"
value
"
);
var
tdContents
=
this
.
editContentNode
.
getElements
(
"
td.inforContent
"
);
var
radios
=
tdContents
[
4
].
getElements
(
"
input
"
);
...
...
@@ -947,6 +974,7 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
tdContents
[
9
].
setStyles
(
this
.
style
.
baseInforContentNode
).
set
(
"
text
"
,
this
.
data
.
officePhone
||
""
);
tdContents
[
10
].
setStyles
(
this
.
style
.
baseInforContentNode
).
set
(
"
text
"
,
this
.
data
.
boardDate
||
""
);
tdContents
[
11
].
setStyles
(
this
.
style
.
baseInforContentNode
).
set
(
"
text
"
,
this
.
data
.
birthday
||
""
);
tdContents
[
12
].
setStyles
(
this
.
style
.
baseInforContentNode
).
set
(
"
text
"
,
this
.
data
.
ipAddress
||
""
);
this
.
mode
=
"
read
"
;
...
...
o2web/source/x_component_Org/lp/en.js
浏览文件 @
1f886370
...
...
@@ -40,7 +40,9 @@ MWF.xApplication.Org.LP = {
"
back
"
:
"
返回
"
,
"
name
"
:
"
名称
"
,
"
description
"
:
"
描述
"
,
"
ipAddress
"
:
"
登录IP
"
,
"
ipAddressPlaceHolder
"
:
"
如果不为空,匹配的ip地址才能登录该账号,用“,”分隔多值
"
,
"
ipAddressIncorrectNotice
"
:
"
IP地址格式不正确:
"
,
"
createSubCompany
"
:
"
创建子公司
"
,
"
createSubDepartment
"
:
"
创建子部门
"
,
...
...
o2web/source/x_component_Org/lp/zh-cn.js
浏览文件 @
1f886370
...
...
@@ -40,7 +40,9 @@ MWF.xApplication.Org.LP = {
"
back
"
:
"
返回
"
,
"
name
"
:
"
名称
"
,
"
description
"
:
"
描述
"
,
"
ipAddress
"
:
"
登录IP
"
,
"
ipAddressPlaceHolder
"
:
"
如果不为空,匹配的ip地址才能登录该账号,用“,”分隔多值
"
,
"
ipAddressIncorrectNotice
"
:
"
IP地址格式不正确:
"
,
"
createSubCompany
"
:
"
创建子公司
"
,
"
createSubDepartment
"
:
"
创建子部门
"
,
...
...
o2web/source/x_component_Profile/$Main/default/view.html
浏览文件 @
1f886370
...
...
@@ -68,6 +68,13 @@
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_inforTitle"
>
{{ $.lp.ipAddress }}
</div>
<div
class=
"o2_profile_inforContent"
>
<input
class=
"o2_profile_inforContentInput"
value=
"{{$.data.ipAddress}}"
placeholder=
"{{$.lp.ipAddressPlaceHolder}}"
/>
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_saveInforAction"
>
{{ $.lp.saveInfor }}
</div>
</div>
...
...
o2web/source/x_component_Profile/$Main/default/viewBrowser.html
浏览文件 @
1f886370
...
...
@@ -68,6 +68,13 @@
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_inforTitle"
>
{{ $.lp.ipAddress }}
</div>
<div
class=
"o2_profile_inforContent"
>
<input
class=
"o2_profile_inforContentInput"
value=
"{{$.data.ipAddress}}"
placeholder=
"{{$.lp.ipAddressPlaceHolder}}"
/>
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_saveInforAction"
>
{{ $.lp.saveInfor }}
</div>
</div>
...
...
o2web/source/x_component_Profile/$Main/empower/view.html
浏览文件 @
1f886370
...
...
@@ -68,6 +68,13 @@
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_inforTitle"
>
{{ $.lp.ipAddress }}
</div>
<div
class=
"o2_profile_inforContent"
>
<input
class=
"o2_profile_inforContentInput"
value=
"{{$.data.ipAddress}}"
placeholder=
"{{$.lp.ipAddressPlaceHolder}}"
/>
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_saveInforAction"
>
{{ $.lp.saveInfor }}
</div>
</div>
...
...
o2web/source/x_component_Profile/$Main/empower/viewBrowser.html
浏览文件 @
1f886370
...
...
@@ -68,6 +68,13 @@
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_inforTitle"
>
{{ $.lp.ipAddress }}
</div>
<div
class=
"o2_profile_inforContent"
>
<input
class=
"o2_profile_inforContentInput"
value=
"{{$.data.ipAddress}}"
placeholder=
"{{$.lp.ipAddressPlaceHolder}}"
/>
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_saveInforAction"
>
{{ $.lp.saveInfor }}
</div>
</div>
...
...
o2web/source/x_component_Profile/$Main/newVersion/style.css
浏览文件 @
1f886370
...
...
@@ -35,7 +35,7 @@
height
:
100%
;
}
.o2_profile_configNode
{
min-height
:
6
4
0px
;
min-height
:
6
9
0px
;
/*position: relative;*/
}
.o2_profile_inforConfigArea
{
...
...
o2web/source/x_component_Profile/$Main/newVersion/view.html
浏览文件 @
1f886370
...
...
@@ -61,6 +61,13 @@
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_inforTitle"
>
{{ $.lp.ipAddress }}
</div>
<div
class=
"o2_profile_inforContent"
>
<input
class=
"o2_profile_inforContentInput"
value=
"{{$.data.ipAddress}}"
placeholder=
"{{$.lp.ipAddressPlaceHolder}}"
/>
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_saveInforAction"
>
{{ $.lp.saveInfor }}
</div>
</div>
...
...
o2web/source/x_component_Profile/$Main/newVersion/viewBrowser.html
浏览文件 @
1f886370
...
...
@@ -61,6 +61,13 @@
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_inforTitle"
>
{{ $.lp.ipAddress }}
</div>
<div
class=
"o2_profile_inforContent"
>
<input
class=
"o2_profile_inforContentInput"
value=
"{{$.data.ipAddress}}"
placeholder=
"{{$.lp.ipAddressPlaceHolder}}"
/>
</div>
</div>
<div
class=
"o2_profile_inforLine"
>
<div
class=
"o2_profile_saveInforAction"
>
{{ $.lp.saveInfor }}
</div>
</div>
...
...
o2web/source/x_component_Profile/Main.js
浏览文件 @
1f886370
...
...
@@ -8,7 +8,7 @@ MWF.xApplication.Profile.Main = new Class({
"
name
"
:
"
Profile
"
,
"
icon
"
:
"
icon.png
"
,
"
width
"
:
"
1100
"
,
"
height
"
:
"
768
"
,
"
height
"
:
"
820
"
,
"
isResize
"
:
false
,
"
isMax
"
:
false
,
"
mvcStyle
"
:
"
style.css
"
,
...
...
@@ -122,7 +122,10 @@ MWF.xApplication.Profile.Main = new Class({
this
.
officePhoneInputNode
=
inputs
[
2
];
this
.
weixinInputNode
=
inputs
[
3
];
this
.
qqInputNode
=
inputs
[
4
];
this
.
signatureInputNode
=
this
.
tab
.
pages
[
0
].
contentNode
.
getElement
(
"
textarea
"
).
addEvent
(
"
focus
"
,
function
(){
this
.
ipAddressInputNode
=
inputs
[
5
];
this
.
signatureInputNode
=
this
.
tab
.
pages
[
0
].
contentNode
.
getElement
(
"
textarea
"
);
this
.
signatureInputNode
.
addEvent
(
"
focus
"
,
function
(){
this
.
addClass
(
"
mainColor_border mainColor_color
"
);
}).
addEvent
(
"
blur
"
,
function
(){
this
.
removeClass
(
"
mainColor_border mainColor_color
"
);
...
...
@@ -815,11 +818,27 @@ MWF.xApplication.Profile.Main = new Class({
},
savePersonInfor
:
function
(){
var
array
=
[];
var
ipAddress
=
this
.
ipAddressInputNode
.
get
(
"
value
"
)
||
""
;
var
ipV4Format
=
/^
(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
01
]?[
0-9
][
0-9
]?)\.(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
01
]?[
0-9
][
0-9
]?)\.(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
01
]?[
0-9
][
0-9
]?)\.(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
01
]?[
0-9
][
0-9
]?)
$/
;
var
ipV6Format
=
/^
\s
*
((([
0-9A-Fa-f
]{1,4}
:
){7}([
0-9A-Fa-f
]{1,4}
|:
))
|
(([
0-9A-Fa-f
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?\d)(\.(
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)){3}))
|:
))
|
(
:
(((
:
[
0-9A-Fa-f
]{1,4}){1,7})
|
((
:
[
0-9A-Fa-f
]{1,4}){0,5}
:
((
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)(\.(
25
[
0-5
]
|2
[
0-4
]\d
|1
\d\d
|
[
1-9
]?\d)){3}))
|:
)))(
%.+
)?\s
*$/
;
if
(
ipAddress
.
trim
()
){
ipAddress
.
split
(
"
,
"
).
each
(
function
(
ip
){
if
(
!
ip
.
match
(
ipV4Format
)
&&
!
ip
.
match
(
ipV6Format
))
array
.
push
(
ip
);
})
}
if
(
array
.
length
>
0
){
this
.
notice
(
this
.
lp
.
ipAddressIncorrectNotice
+
array
.
join
(
"
,
"
),
"
error
"
);
return
false
;
}
this
.
personData
.
officePhone
=
this
.
officePhoneInputNode
.
get
(
"
value
"
);
this
.
personData
.
mail
=
this
.
mailInputNode
.
get
(
"
value
"
);
this
.
personData
.
mobile
=
this
.
mobileInputNode
.
get
(
"
value
"
);
this
.
personData
.
weixin
=
this
.
weixinInputNode
.
get
(
"
value
"
);
this
.
personData
.
qq
=
this
.
qqInputNode
.
get
(
"
value
"
);
this
.
personData
.
ipAddress
=
this
.
ipAddressInputNode
.
get
(
"
value
"
);
this
.
personData
.
signature
=
this
.
signatureInputNode
.
get
(
"
value
"
);
this
.
action
.
updatePerson
(
this
.
personData
,
function
(){
this
.
notice
(
this
.
lp
.
saveInforOk
,
"
success
"
);
...
...
o2web/source/x_component_Profile/lp/en.js
浏览文件 @
1f886370
...
...
@@ -32,6 +32,9 @@ MWF.xApplication.Profile.LP = {
"
signature
"
:
"
个人签名
"
,
"
saveInfor
"
:
"
保存个人信息
"
,
"
saveInforOk
"
:
"
保存个人信息成功
"
,
"
ipAddress
"
:
"
登录IP
"
,
"
ipAddressPlaceHolder
"
:
"
如果不为空,匹配的ip地址才能登录该账号,用“,”分隔多值
"
,
"
ipAddressIncorrectNotice
"
:
"
IP地址格式不正确:
"
,
"
passwordRule
"
:
"
密码规则
"
,
"
oldPassword
"
:
"
原密码
"
,
...
...
o2web/source/x_component_Profile/lp/zh-cn.js
浏览文件 @
1f886370
...
...
@@ -33,6 +33,9 @@ MWF.xApplication.Profile.LP = {
"
signature
"
:
"
个人签名
"
,
"
saveInfor
"
:
"
保存个人信息
"
,
"
saveInforOk
"
:
"
保存个人信息成功
"
,
"
ipAddress
"
:
"
登录IP
"
,
"
ipAddressPlaceHolder
"
:
"
如果不为空,匹配的ip地址才能登录,用,分隔多值
"
,
"
ipAddressIncorrectNotice
"
:
"
IP地址格式不正确:
"
,
"
passwordRule
"
:
"
密码规则
"
,
"
oldPassword
"
:
"
原密码
"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录