Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzrt
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzrt
提交
aef8d721
提交
aef8d721
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
4577fe2a
master
无相关合并请求
变更
28
隐藏空白字符变更
内嵌
并排
正在显示
28 个修改的文件
包含
366 行增加
和
398 行删除
+366
-398
input-box.less
app_Web/src/components/input-box/input-box.less
+3
-0
index-base.vue
app_Web/src/pages/rt/index/index-base.vue
+9
-0
interceptor.ts
app_Web/src/utils/interceptor/interceptor.ts
+6
-0
index-appmenu-base.vue
app_Web/src/widgets/app/index-appmenu/index-appmenu-base.vue
+10
-2
main-form-base.vue
...Web/src/widgets/dict-catalog/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/dict-option/main-form/main-form-base.vue
+15
-18
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
main-form-base.vue
app_Web/src/widgets/jobs-info/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/jobs-log/main-form/main-form-base.vue
+15
-18
main-form-base.vue
...eb/src/widgets/jobs-registry/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/sys-app/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/sys-role/main-form/main-form-base.vue
+15
-18
main-form-base.vue
...eb/src/widgets/sys-user-role/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/wfgroup/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/wfmember/main-form/main-form-base.vue
+15
-18
main-form-base.vue
...widgets/wfprocess-definition/main-form/main-form-base.vue
+15
-18
main-form-base.vue
app_Web/src/widgets/wfremodel/main-form/main-form-base.vue
+15
-18
application-web-prod.yml
...ibzrt-app-web/src/main/resources/application-web-prod.yml
+4
-0
application-dev.yml
ibzrt-boot/src/main/resources/application-dev.yml
+4
-0
未找到文件。
app_Web/src/components/input-box/input-box.less
浏览文件 @
aef8d721
...
...
@@ -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
This diff is collapsed.
Click to expand it.
app_Web/src/pages/rt/index/index-base.vue
浏览文件 @
aef8d721
...
...
@@ -21,6 +21,7 @@
viewtag=
"index"
:selectTheme=
"selectTheme"
:isDefaultPage=
"isDefaultPage"
:isBlankMode=
"isBlankMode"
:defPSAppView=
"defPSAppView"
name=
"appmenu"
ref=
'appmenu'
...
...
@@ -637,6 +638,14 @@ export default class IndexBase extends Vue {
*/
public
isDefaultPage
:
boolean
=
false
;
/**
* 空白视图模式
*
* @type {boolean}
* @memberof IndexBase
*/
public
isBlankMode
:
boolean
=
false
;
/**
* 获取样式
*
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/utils/interceptor/interceptor.ts
浏览文件 @
aef8d721
...
...
@@ -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) {
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/app/index-appmenu/index-appmenu-base.vue
浏览文件 @
aef8d721
...
...
@@ -323,13 +323,21 @@ export default class IndexBase extends Vue implements ControlInterface {
@
Prop
()
mode
:
any
;
/**
*
当前菜单是否在默认视图上
*
应用起始页面
*
* @type {
*
}
* @type {
boolean
}
* @memberof IndexBase
*/
@
Prop
({
default
:
false
})
isDefaultPage
?:
boolean
;
/**
* 空白视图模式
*
* @type {boolean}
* @memberof IndexBase
*/
@
Prop
({
default
:
false
})
isBlankMode
?:
boolean
;
/**
* 默认打开视图
*
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/dict-catalog/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -80,6 +80,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
({
...
...
@@ -754,7 +755,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
})
{
...
...
@@ -778,23 +779,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/dict-option/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -144,6 +144,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
({
...
...
@@ -984,7 +985,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
})
{
...
...
@@ -1015,23 +1016,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzdepartment/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzdepartment/new-form-form/new-form-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof NewFormBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzdept-member/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzemployee/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzemployee/new-form-form/new-form-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof NewFormBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzorganization/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzorganization/new-form-form/new-form-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof NewFormBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzpost/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzteam-member/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibzteam/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -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 }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/jobs-info/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -129,6 +129,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
({
...
...
@@ -990,7 +991,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
})
{
...
...
@@ -1022,23 +1023,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/jobs-log/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -85,6 +85,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
({
...
...
@@ -841,7 +842,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
})
{
...
...
@@ -868,23 +869,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/jobs-registry/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -60,6 +60,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
({
...
...
@@ -690,7 +691,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
})
{
...
...
@@ -711,23 +712,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/sys-app/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -90,6 +90,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
({
...
...
@@ -825,7 +826,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
})
{
...
...
@@ -851,23 +852,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/sys-role/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -123,6 +123,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
({
...
...
@@ -763,7 +764,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
})
{
...
...
@@ -789,23 +790,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/sys-user-role/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -97,6 +97,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
({
...
...
@@ -769,7 +770,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
})
{
...
...
@@ -792,23 +793,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/wfgroup/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -68,6 +68,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
({
...
...
@@ -679,7 +680,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
})
{
...
...
@@ -700,23 +701,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/wfmember/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -57,6 +57,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
({
...
...
@@ -687,7 +688,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
})
{
...
...
@@ -708,23 +709,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/wfprocess-definition/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -85,6 +85,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
({
...
...
@@ -799,7 +800,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
})
{
...
...
@@ -824,23 +825,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/wfremodel/main-form/main-form-base.vue
浏览文件 @
aef8d721
...
...
@@ -36,6 +36,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
({
...
...
@@ -624,7 +625,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
})
{
...
...
@@ -643,23 +644,19 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单项检查逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @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
;
* @param name 属性名
* @memberof MainBase
*/
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
);
});;
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
ibzrt-app/ibzrt-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
aef8d721
...
...
@@ -107,6 +107,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
...
...
This diff is collapsed.
Click to expand it.
ibzrt-boot/src/main/resources/application-dev.yml
浏览文件 @
aef8d721
...
...
@@ -132,6 +132,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
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录