Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
196e7185
提交
196e7185
编写于
7月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
66117a28
变更
15
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
185 行增加
和
185 行删除
+185
-185
input-box.less
app_web/src/components/input-box/input-box.less
+3
-0
ouindex-view-base.vue
app_web/src/pages/ou/ouindex-view/ouindex-view-base.vue
+9
-0
interceptor.ts
app_web/src/utils/interceptor/interceptor.ts
+6
-0
ouindex-view-appmenu-base.vue
...ts/app/ouindex-view-appmenu/ouindex-view-appmenu-base.vue
+13
-5
main-form-base.vue
...eb/src/widgets/ibzdepartment/main-form/main-form-base.vue
+15
-18
new-form-form-base.vue
...idgets/ibzdepartment/new-form-form/new-form-form-base.vue
+15
-18
main-form-base.vue
...b/src/widgets/ibzdept-member/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_web/src/widgets/ibzemployee/main-form/main-form-base.vue
+15
-18
new-form-form-base.vue
.../widgets/ibzemployee/new-form-form/new-form-form-base.vue
+15
-18
main-form-base.vue
.../src/widgets/ibzorganization/main-form/main-form-base.vue
+15
-18
new-form-form-base.vue
...gets/ibzorganization/new-form-form/new-form-form-base.vue
+15
-18
main-form-base.vue
app_web/src/widgets/ibzpost/main-form/main-form-base.vue
+15
-18
main-form-base.vue
...b/src/widgets/ibzteam-member/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_web/src/widgets/ibzteam/main-form/main-form-base.vue
+15
-18
application-web-prod.yml
...ibzou-app-web/src/main/resources/application-web-prod.yml
+4
-0
未找到文件。
app_web/src/components/input-box/input-box.less
浏览文件 @
196e7185
...
...
@@ -8,4 +8,7 @@
.ivu-input-number-input{
text-align: right;
}
.ivu-input-number-input:hover{
padding-right:22px;
}
}
\ No newline at end of file
app_web/src/pages/ou/ouindex-view/ouindex-view-base.vue
浏览文件 @
196e7185
...
...
@@ -21,6 +21,7 @@
viewtag=
"ouindex-view"
:selectTheme=
"selectTheme"
:isDefaultPage=
"isDefaultPage"
:isBlankMode=
"isBlankMode"
:defPSAppView=
"defPSAppView"
name=
"appmenu"
ref=
'appmenu'
...
...
@@ -626,6 +627,14 @@ export default class OUIndexViewBase extends Vue {
*/
public
isDefaultPage
:
boolean
=
true
;
/**
* 空白视图模式
*
* @type {boolean}
* @memberof OUIndexViewBase
*/
public
isBlankMode
:
boolean
=
false
;
/**
* 获取样式
*
...
...
app_web/src/utils/interceptor/interceptor.ts
浏览文件 @
196e7185
...
...
@@ -114,6 +114,12 @@ export class Interceptors {
if
(
res
.
status
===
401
)
{
this
.
doNoLogin
(
_data
.
data
);
}
if
(
res
.
status
===
403
){
if
(
res
.
data
&&
res
.
data
.
status
&&
Object
.
is
(
res
.
data
.
status
,
"FORBIDDEN"
)){
let
alertMessage
:
string
=
"非常抱歉,您无权操作此数据,如需操作请联系管理员!"
;
Object
.
assign
(
res
.
data
,{
localizedMessage
:
alertMessage
,
message
:
alertMessage
});
}
}
// if (res.status === 404) {
// this.router.push({ path: '/404' });
// } else if (res.status === 500) {
...
...
app_web/src/widgets/app/ouindex-view-appmenu/ouindex-view-appmenu-base.vue
浏览文件 @
196e7185
...
...
@@ -323,13 +323,21 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
@
Prop
()
mode
:
any
;
/**
*
当前菜单是否在默认视图上
*
应用起始页面
*
* @type {
*
}
* @type {
boolean
}
* @memberof OUIndexViewBase
*/
@
Prop
({
default
:
false
})
isDefaultPage
?:
boolean
;
/**
* 空白视图模式
*
* @type {boolean}
* @memberof OUIndexViewBase
*/
@
Prop
({
default
:
false
})
isBlankMode
?:
boolean
;
/**
* 默认打开视图
*
...
...
@@ -441,7 +449,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
* @memberof OUIndexViewBase
*/
public
doMenuSelect
():
void
{
if
(
!
this
.
isDefaultPage
)
{
if
(
!
this
.
isDefaultPage
||
this
.
isBlankMode
)
{
return
;
}
const
appFuncs
:
any
[]
=
this
.
menuMode
.
getAppFuncs
();
...
...
@@ -485,7 +493,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
public
computeMenuSelect
(
items
:
any
[],
appfunctag
:
string
):
boolean
{
const
appFuncs
:
any
[]
=
this
.
menuMode
.
getAppFuncs
();
return
items
.
some
((
item
:
any
)
=>
{
if
(
Object
.
is
(
appfunctag
,
''
)
&&
!
Object
.
is
(
item
.
appfunctag
,
''
))
{
if
(
Object
.
is
(
appfunctag
,
''
)
&&
!
Object
.
is
(
item
.
appfunctag
,
''
)
&&
item
.
opendefault
)
{
const
appfunc
=
appFuncs
.
find
((
_appfunc
:
any
)
=>
Object
.
is
(
_appfunc
.
appfunctag
,
item
.
appfunctag
));
if
(
appfunc
.
routepath
)
{
this
.
defaultActive
=
item
.
name
;
...
...
@@ -493,7 +501,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
return
true
;
}
}
if
(
Object
.
is
(
item
.
appfunctag
,
appfunctag
))
{
if
(
Object
.
is
(
item
.
appfunctag
,
appfunctag
)
&&
item
.
opendefault
)
{
this
.
setHideSideBar
(
item
);
this
.
defaultActive
=
item
.
name
;
return
true
;
...
...
app_web/src/widgets/ibzdepartment/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -105,6 +105,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -993,7 +994,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -1025,23 +1026,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzdepartment/new-form-form/new-form-form-base.vue
浏览文件 @
196e7185
...
...
@@ -54,6 +54,7 @@ import NewFormService from './new-form-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -796,7 +797,7 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof NewFormBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -822,23 +823,19 @@ export default class NewFormBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof NewFormBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzdept-member/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -84,6 +84,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -735,7 +736,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -757,23 +758,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzemployee/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -216,6 +216,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -1381,7 +1382,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -1438,23 +1439,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzemployee/new-form-form/new-form-form-base.vue
浏览文件 @
196e7185
...
...
@@ -60,6 +60,7 @@ import NewFormService from './new-form-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -883,7 +884,7 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof NewFormBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -913,23 +914,19 @@ export default class NewFormBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof NewFormBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzorganization/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -72,6 +72,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -847,7 +848,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -874,23 +875,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzorganization/new-form-form/new-form-form-base.vue
浏览文件 @
196e7185
...
...
@@ -48,6 +48,7 @@ import NewFormService from './new-form-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -741,7 +742,7 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof NewFormBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -765,23 +766,19 @@ export default class NewFormBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof NewFormBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzpost/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -49,6 +49,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -700,7 +701,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -722,23 +723,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzteam-member/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -84,6 +84,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -777,7 +778,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -801,23 +802,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
app_web/src/widgets/ibzteam/main-form/main-form-base.vue
浏览文件 @
196e7185
...
...
@@ -76,6 +76,7 @@ import MainService from './main-form-service';
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
@
Component
({
...
...
@@ -710,7 +711,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof MainBase
*/
public
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
})
{
...
...
@@ -733,23 +734,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param
{{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @param
name 属性名
* @memberof MainBase
*/
public
checkItem
(
name
:
string
):
boolean
{
let
regular
:
any
=
null
;
let
isRight
:
boolean
=
false
;
this
.
rules
[
name
].
forEach
((
item
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
name
:
string
)
=>
{
if
(
name
==
'pattern'
){
regular
=
item
[
name
];
}
});
});
if
(
regular
){
isRight
=
regular
.
test
(
this
.
data
[
name
]);
}
return
isRight
;
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
...
...
ibzou-app/ibzou-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
196e7185
...
...
@@ -39,6 +39,10 @@ zuul:
path
:
/v7/login
serviceId
:
ibzuaa-api
stripPrefix
:
false
changepwd
:
path
:
/v7/changepwd
serviceId
:
ibzuaa-api
stripPrefix
:
false
uaa
:
path
:
/uaa/**
serviceId
:
ibzuaa-api
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录