Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzwf
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzwf
提交
3a843875
提交
3a843875
编写于
11月 09, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-wf,统一工作流]
上级
73b15d48
变更
66
隐藏空白字符变更
内嵌
并排
正在显示
66 个修改的文件
包含
638 行增加
和
243 行删除
+638
-243
CHANGELOG.md
app_web/CHANGELOG.md
+72
-0
app-register.ts
app_web/src/app-register.ts
+2
-0
app-actionbar.vue
app_web/src/components/app-actionbar/app-actionbar.vue
+2
-0
app-column-link.vue
app_web/src/components/app-column-link/app-column-link.vue
+1
-1
app-form-group.vue
app_web/src/components/app-form-group/app-form-group.vue
+2
-0
app-format-data.vue
app_web/src/components/app-format-data/app-format-data.vue
+1
-1
app-image-romate.vue
app_web/src/components/app-image-romate/app-image-romate.vue
+102
-0
app-orgsector.vue
app_web/src/components/app-orgsector/app-orgsector.vue
+24
-7
app-picker.vue
app_web/src/components/app-picker/app-picker.vue
+25
-3
app-rawitem.vue
app_web/src/components/app-rawitem/app-rawitem.vue
+25
-21
login.vue
app_web/src/components/login/login.vue
+3
-0
tab-exp-view-engine.ts
app_web/src/engine/view/tab-exp-view-engine.ts
+10
-0
view-engine.ts
app_web/src/engine/view/view-engine.ts
+2
-0
en-US.ts
app_web/src/locale/lang/en-US.ts
+0
-1
zh-CN.ts
app_web/src/locale/lang/zh-CN.ts
+0
-1
components_en_US.ts
app_web/src/locale/lanres/components/components_en_US.ts
+4
-0
components_zh_CN.ts
app_web/src/locale/lanres/components/components_zh_CN.ts
+4
-0
wfgroup_en_US.ts
app_web/src/locale/lanres/entities/wfgroup/wfgroup_en_US.ts
+1
-0
wfgroup_zh_CN.ts
app_web/src/locale/lanres/entities/wfgroup/wfgroup_zh_CN.ts
+1
-0
wfmember_en_US.ts
...web/src/locale/lanres/entities/wfmember/wfmember_en_US.ts
+1
-0
wfmember_zh_CN.ts
...web/src/locale/lanres/entities/wfmember/wfmember_zh_CN.ts
+1
-0
wfprocess-definition_en_US.ts
...tities/wfprocess-definition/wfprocess-definition_en_US.ts
+1
-0
wfprocess-definition_zh_CN.ts
...tities/wfprocess-definition/wfprocess-definition_zh_CN.ts
+1
-0
wftask_en_US.ts
app_web/src/locale/lanres/entities/wftask/wftask_en_US.ts
+1
-0
wftask_zh_CN.ts
app_web/src/locale/lanres/entities/wftask/wftask_zh_CN.ts
+1
-0
wfuser_en_US.ts
app_web/src/locale/lanres/entities/wfuser/wfuser_en_US.ts
+1
-0
wfuser_zh_CN.ts
app_web/src/locale/lanres/entities/wfuser/wfuser_zh_CN.ts
+1
-0
wfgroup-edit-view-base.vue
...ges/workflow/wfgroup-edit-view/wfgroup-edit-view-base.vue
+2
-2
wfgroup-grid-view-base.vue
...ges/workflow/wfgroup-grid-view/wfgroup-grid-view-base.vue
+2
-2
wfgroup-mpickup-view-base.vue
...rkflow/wfgroup-mpickup-view/wfgroup-mpickup-view-base.vue
+3
-56
wfgroup-pickup-grid-view-base.vue
...fgroup-pickup-grid-view/wfgroup-pickup-grid-view-base.vue
+2
-2
wfgroup-pickup-view-base.vue
...workflow/wfgroup-pickup-view/wfgroup-pickup-view-base.vue
+2
-2
wfindex-view-base.vue
...web/src/pages/workflow/wfindex-view/wfindex-view-base.vue
+2
-2
wfmember-edit-view-base.vue
...s/workflow/wfmember-edit-view/wfmember-edit-view-base.vue
+2
-2
wfmember-grid-view-base.vue
...s/workflow/wfmember-grid-view/wfmember-grid-view-base.vue
+2
-2
wfprocess-definition-edit-view-base.vue
...inition-edit-view/wfprocess-definition-edit-view-base.vue
+2
-2
wfprocess-definition-grid-view-base.vue
...inition-grid-view/wfprocess-definition-grid-view-base.vue
+2
-2
wfremodel-edit-view-base.vue
...workflow/wfremodel-edit-view/wfremodel-edit-view-base.vue
+2
-2
wftask-edit-view-base.vue
...pages/workflow/wftask-edit-view/wftask-edit-view-base.vue
+2
-2
wftask-grid-view-base.vue
...pages/workflow/wftask-grid-view/wftask-grid-view-base.vue
+2
-2
wfuser-edit-view-base.vue
...pages/workflow/wfuser-edit-view/wfuser-edit-view-base.vue
+2
-2
wfuser-grid-view-base.vue
...pages/workflow/wfuser-grid-view/wfuser-grid-view-base.vue
+2
-2
wfuser-mpickup-view-base.vue
...workflow/wfuser-mpickup-view/wfuser-mpickup-view-base.vue
+3
-56
wfuser-pickup-grid-view-base.vue
.../wfuser-pickup-grid-view/wfuser-pickup-grid-view-base.vue
+2
-2
wfuser-pickup-view-base.vue
...s/workflow/wfuser-pickup-view/wfuser-pickup-view-base.vue
+2
-2
wfgroup-ui-service-base.ts
app_web/src/uiservice/wfgroup/wfgroup-ui-service-base.ts
+7
-0
wfmember-ui-service-base.ts
app_web/src/uiservice/wfmember/wfmember-ui-service-base.ts
+7
-0
wfprocess-definition-ui-service-base.ts
...rocess-definition/wfprocess-definition-ui-service-base.ts
+7
-0
wfremodel-ui-service-base.ts
app_web/src/uiservice/wfremodel/wfremodel-ui-service-base.ts
+7
-0
wfsystem-ui-service-base.ts
app_web/src/uiservice/wfsystem/wfsystem-ui-service-base.ts
+7
-0
wftask-ui-service-base.ts
app_web/src/uiservice/wftask/wftask-ui-service-base.ts
+7
-0
wfuser-ui-service-base.ts
app_web/src/uiservice/wfuser/wfuser-ui-service-base.ts
+7
-0
view-tool.ts
app_web/src/utils/view-tool/view-tool.ts
+1
-1
main-grid-base.vue
app_web/src/widgets/wfgroup/main-grid/main-grid-base.vue
+46
-5
main-grid-service.ts
app_web/src/widgets/wfgroup/main-grid/main-grid-service.ts
+2
-2
main-grid-base.vue
app_web/src/widgets/wfmember/main-grid/main-grid-base.vue
+46
-5
main-grid-service.ts
app_web/src/widgets/wfmember/main-grid/main-grid-service.ts
+2
-2
main-grid-base.vue
...widgets/wfprocess-definition/main-grid/main-grid-base.vue
+56
-13
main-grid-service.ts
...dgets/wfprocess-definition/main-grid/main-grid-service.ts
+2
-2
main-grid-base.vue
app_web/src/widgets/wftask/main-grid/main-grid-base.vue
+53
-5
main-grid-service.ts
app_web/src/widgets/wftask/main-grid/main-grid-service.ts
+2
-2
main-grid-base.vue
app_web/src/widgets/wfuser/main-grid/main-grid-base.vue
+48
-5
main-grid-service.ts
app_web/src/widgets/wfuser/main-grid/main-grid-service.ts
+2
-2
config.xml
config.xml
+0
-5
Dockerfile
ibzwf-provider/ibzwf-provider-api/src/main/docker/Dockerfile
+1
-1
ibzwf-provider-api.yaml
...bzwf-provider-api/src/main/docker/ibzwf-provider-api.yaml
+1
-14
未找到文件。
app_web/CHANGELOG.md
浏览文件 @
3a843875
## v7.0.0-alpha.21 [2020-10-31]
### Bug修复
修复视图类型门户部件通知嵌入视图刷新问题
修复表格行编辑传值无效和设置表格行编辑禁用无效问题
修复表格列触发行为权限控制无效问题
修复表格导出代码表转化问题
修复行编辑时合并行主键到上下文中
修复多表单编辑视图(部件视图)临时模式异常问题
修复修复表单值规则异常问题
### 功能新增及优化
#### 模板
新增导航类部件快速搜索栏提示
新增分页导航面板主状态逻辑
新增图片预览(可旋转)控件
新增多数据部件无值显示内容适配
新增分页导航视图工具栏权限状态逻辑
新增适配界面行为中显示处理
新增支持是否支持实体主状态属性
优化列表加载、刷新逻辑
优化直接内容项组件
优化甘特图部件和树表格部件加载逻辑
优化后台界面行为异常处理逻辑
优化分页导航面板切换分页刷新逻辑
优化树导航视图树节点刷新逻辑
优化表单更新项传入调用方法名称
优化行编辑值校验错误信息提示
#### 基础文件
新增图片预览(可旋转)控件
新增计算分页导航视图工具栏权限状态逻辑
新增支持是否支持实体主状态逻辑
新增切换组织部门功能
优化数据选择下拉控件(下拉列表宽度和编辑器宽度保持一致)
优化直接内容项组件
修复数据选择无值抛出null
修复登录完成user存储到localStorage
修复表格值为0不显示问题
## v7.0.0-alpha.20 [2020-10-18]
### Bug修复
...
...
app_web/src/app-register.ts
浏览文件 @
3a843875
...
...
@@ -97,6 +97,7 @@ import AppFormPart from './components/app-form-part/app-form-part.vue'
import
AppAlert
from
'./components/app-alert/app-alert.vue'
import
AppAlertGroup
from
'./components/app-alert-group/app-alert-group.vue'
import
AppRawItem
from
'./components/app-rawitem/app-rawitem.vue'
import
AppImageRomate
from
'./components/app-image-romate/app-image-romate.vue'
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
...
@@ -209,5 +210,6 @@ export const AppComponents = {
v
.
component
(
'app-alert'
,
AppAlert
);
v
.
component
(
'app-alert-group'
,
AppAlertGroup
);
v
.
component
(
'app-rawitem'
,
AppRawItem
);
v
.
component
(
'app-image-romate'
,
AppImageRomate
)
},
};
\ No newline at end of file
app_web/src/components/app-actionbar/app-actionbar.vue
浏览文件 @
3a843875
...
...
@@ -100,6 +100,8 @@ export default class AppActionBar extends Vue {
* @memberof AppActionBar
*/
public
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
){
if
(
!
UIService
.
isEnableDEMainState
)
return
;
for
(
const
key
in
ActionModel
)
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
return
;
...
...
app_web/src/components/app-column-link/app-column-link.vue
浏览文件 @
3a843875
...
...
@@ -279,7 +279,7 @@ export default class AppColumnLink extends Vue {
if
(
result
.
datas
&&
Array
.
isArray
(
result
.
datas
))
{
Object
.
assign
(
item
,
result
.
datas
[
0
]);
}
console
.
log
(
item
);
this
.
$emit
(
'refresh'
,
item
);
}
/**
...
...
app_web/src/components/app-form-group/app-form-group.vue
浏览文件 @
3a843875
...
...
@@ -158,6 +158,8 @@ export default class AppFormGroup extends Vue {
* @memberof AppFormGroup
*/
public
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
){
if
(
!
UIService
.
isEnableDEMainState
)
return
;
for
(
const
key
in
ActionModel
)
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
return
;
...
...
app_web/src/components/app-format-data/app-format-data.vue
浏览文件 @
3a843875
...
...
@@ -47,7 +47,7 @@ export default class AppFormatData extends Vue {
* @memberof AppFormatData
*/
getcurValue
(){
if
(
this
.
data
){
if
(
this
.
data
||
this
.
data
==
0
){
if
(
Object
.
is
(
this
.
dataType
,
"DECIMAL"
)
||
Object
.
is
(
this
.
dataType
,
"FLOAT"
)
||
Object
.
is
(
this
.
dataType
,
"CURRENCY"
)){
let
number
=
Number
(
this
.
data
);
let
precision
=
Number
(
this
.
precision
);
...
...
app_web/src/components/app-image-romate/app-image-romate.vue
0 → 100644
浏览文件 @
3a843875
<
template
>
<div
class=
'app-image-preview'
>
<el-image
:src=
"data[name]"
:previewSrcList=
"previewList"
:disabled=
"disabled"
>
</el-image>
</div>
</
template
>
<
script
lang =
'ts'
>
import
{
Vue
,
Component
,
Prop
,
Watch
,
Provide
}
from
'vue-property-decorator'
;
import
{
Subject
,
Unsubscribable
}
from
'rxjs'
;
@
Component
({})
export
default
class
AppImageRomate
extends
Vue
{
/**
* 表单状态
*
* @type {any}
* @memberof AppImageRomate
*/
@
Prop
()
public
formState
:
any
;
/**
* 图片数据
*
* @type {any}
* @memberof AppImageRomate
*/
@
Prop
()
public
data
!
:
any
;
/**
* 字段名
*
* @type {any}
* @memberof AppImageRomate
*/
@
Prop
()
public
name
:
any
;
/**
* 禁用状态
*
* @type {boolean}
* @memberof AppImageRomate
*/
@
Prop
()
public
disabled
:
boolean
=
false
;
/**
* 预览图片数组
*
* @type {boolean}
* @memberof AppImageRomate
*/
public
previewList
:
Array
<
any
>
=
[];
/**
* 表单状态事件
*
* @private
* @type {(Unsubscribable | undefined)}
* @memberof AppImageUpload
*/
private
formStateEvent
:
Unsubscribable
|
undefined
;
/**
* Vue生命周期
*
* @type {boolean}
* @memberof AppImageRomate
*/
public
created
()
{
if
(
this
.
formState
)
{
this
.
formStateEvent
=
this
.
formState
.
subscribe
((
$event
:
any
)
=>
{
// 表单加载完成
if
(
this
.
data
&&
this
.
name
)
{
this
.
handleData
();
}
});
}
}
/**
* 数据处理
*
* @type {boolean}
* @memberof AppImageRomate
*/
public
handleData
()
{
this
.
previewList
.
push
(
this
.
data
[
this
.
name
]);
}
/**
* 组件销毁
*
* @memberof AppImageRomate
*/
public
destroyed
():
void
{
if
(
this
.
formStateEvent
)
{
this
.
formStateEvent
.
unsubscribe
();
}
}
}
</
script
>
\ No newline at end of file
app_web/src/components/app-orgsector/app-orgsector.vue
浏览文件 @
3a843875
...
...
@@ -22,6 +22,7 @@
</div>
</
template
>
<
script
lang =
'ts'
>
import
{
Http
}
from
'@/utils/http/http'
;
import
{
Vue
,
Component
,
Inject
}
from
"vue-property-decorator"
;
@
Component
({})
...
...
@@ -110,17 +111,33 @@ export default class AppOrgSector extends Vue {
let
item
:
any
=
this
.
selectedOrgArray
.
find
((
_item
:
any
)
=>
{
return
_item
.
srforgsectorid
===
data
;
});
if
(
item
.
srforgsectorid
&&
item
.
srforgsectorname
)
{
this
.
selectedOrgId
=
item
.
srforgsectorid
;
this
.
selectedOrgName
=
item
.
srforgsectorname
;
this
.
reload
();
this
.
switchDepartment
(
data
).
then
((
response
:
any
)
=>
{
if
(
response
.
status
==
200
)
{
if
(
item
.
srforgsectorid
&&
item
.
srforgsectorname
)
{
this
.
selectedOrgId
=
item
.
srforgsectorid
;
this
.
selectedOrgName
=
item
.
srforgsectorname
;
}
this
.
updateStoreOrgData
(
item
);
this
.
reload
();
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
?
response
.
data
.
message
:(
this
.
$t
(
'components.appOrgSector.errorSwitch'
)
as
string
)
});
}
}).
catch
((
error
:
any
)
=>
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'components.appOrgSector.errorSwitch'
)
as
string
)
});
})
}
}
this
.
updateStoreOrgData
(
item
);
/**
* 调用远端切换部门接口
*
* @memberof AppOrgSector
*/
public
async
switchDepartment
(
data
:
any
){
return
await
Http
.
getInstance
().
post
(
`/oumaps/switch`
,
data
,
false
);
}
/**
* 更新仓库
Org
信息
* 更新仓库
部门
信息
*
* @memberof AppOrgSector
*/
...
...
app_web/src/components/app-picker/app-picker.vue
浏览文件 @
3a843875
...
...
@@ -37,7 +37,7 @@
</div>
<div
v-else-if=
"Object.is(editortype, 'dropdown')"
class=
'app-picker'
>
<el-select
ref=
"appPicker"
remote
:remote-method=
"(query) => this.onSearch(query, null, true)"
:value=
"refvalue"
size=
'small'
filterable
@
change=
"onSelect"
:disabled=
"disabled"
style=
'width:100%;'
clearable
@
change=
"onSelect"
:disabled=
"disabled"
style=
'width:100%;'
clearable
popper-class=
"app-picker-dropdown"
@
clear=
"onClear"
@
visible-change=
"onSelectOpen"
>
<
template
v-if=
"items"
>
<template
v-for=
"_item in items"
>
...
...
@@ -260,6 +260,14 @@ export default class AppPicker extends Vue {
*/
public
selectValue
=
this
.
value
;
/**
* 下拉列表节点元素
*
* @type {*}
* @memberof AppPicker
*/
public
dropdownDom
:
any
=
{};
/**
* 获取关联数据项值
*
...
...
@@ -314,6 +322,8 @@ export default class AppPicker extends Vue {
* @memberof AppPicker
*/
public
mounted
()
{
const
dropdownDom
:
any
=
this
.
$el
.
getElementsByClassName
(
'app-picker-dropdown'
)[
0
];
this
.
dropdownDom
=
dropdownDom
;
}
/**
...
...
@@ -331,10 +341,22 @@ export default class AppPicker extends Vue {
public
onSelectOpen
(
flag
:
boolean
):
void
{
this
.
open
=
flag
;
if
(
this
.
open
)
{
//设置下拉列表的最大宽度
this
.
setDropdownWidth
();
this
.
onSearch
(
this
.
curvalue
,
null
,
true
);
}
}
/**
* 设置下拉列表最大宽度使下拉列表宽度和编辑器宽度一致
*
* @memberof AppPicker
*/
public
setDropdownWidth
(){
const
elInput
:
any
=
this
.
$el
.
getElementsByClassName
(
'el-input__inner'
)[
0
];
this
.
dropdownDom
.
style
.
maxWidth
=
elInput
.
offsetWidth
+
'px'
;
}
/**
* 执行搜索数据
* @param query
...
...
@@ -434,10 +456,10 @@ export default class AppPicker extends Vue {
*/
public
onClear
(
$event
:
any
):
void
{
if
(
this
.
valueitem
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
valueitem
,
value
:
''
});
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
valueitem
,
value
:
null
});
}
if
(
this
.
name
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
''
});
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
null
});
}
this
.
fillPickUpData
();
this
.
$forceUpdate
();
...
...
app_web/src/components/app-rawitem/app-rawitem.vue
浏览文件 @
3a843875
<
template
>
<div>
<span
v-if=
"caption"
>
{{
caption
}}
</span>
<div
:class=
"contentStyle"
:style=
"sizeStyle"
>
<template
v-if=
"Object.is(contentType,'RAW')"
>
{{
rawContent
?
rawContent
:
''
}}
</
template
>
<
template
v-else-if=
"Object.is(contentType,'HTML')"
>
{{
htmlContent
?
htmlContent
:
''
}}
</
template
>
<
template
v-else-if=
"Object.is(contentType,'IMAGE')"
>
<i
:class=
"imageClass ? imageClass : ''"
></i>
</
template
>
<div
:style=
"sizeStyle"
>
<span>
{{
caption
}}
</span>
<div
v-if=
"Object.is(contentType,'RAW')"
:class=
"contentStyle"
>
<slot></slot>
</div>
<div
v-else-if=
"Object.is(contentType,'HTML')"
:class=
"contentStyle"
v-html=
"htmlContent"
/>
<div
v-else-if=
"Object.is(contentType,'IMAGE')"
:class=
"contentStyle"
>
<i
:class=
"imageClass ? imageClass : ''"
></i>
</div>
</div>
</
template
>
...
...
@@ -22,20 +18,28 @@ import { Component, Vue, Prop, Model, Watch } from "vue-property-decorator";
export
default
class
AppRawItem
extends
Vue
{
/**
*
内容类型
*
应用上下文
*
* @type {string}
* @memberof AppRawItem
*/
@
Prop
()
public
conte
ntType
!
:
string
;
@
Prop
()
public
conte
xt
!
:
any
;
/**
* 直接内容
*
* @type {strin}
* @memberof AppRawItem
*/
@
Prop
()
public
rawContent
?:
string
;
* 视图参数
*
* @type {string}
* @memberof AppRawItem
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 内容类型
*
* @type {string}
* @memberof AppRawItem
*/
@
Prop
()
public
contentType
!
:
string
;
/**
* html内容
...
...
@@ -46,7 +50,7 @@ export default class AppRawItem extends Vue {
@
Prop
()
public
htmlContent
?:
string
;
/**
*
html内容
*
图片
*
* @type {strin}
* @memberof AppRawItem
...
...
app_web/src/components/login/login.vue
浏览文件 @
3a843875
...
...
@@ -183,6 +183,9 @@ export default class Login extends Vue {
localStorage
.
setItem
(
'token'
,
data
.
token
);
this
.
setCookie
(
'ibzuaa-token'
,
data
.
token
,
0
);
}
if
(
data
&&
data
.
user
){
localStorage
.
setItem
(
'user'
,
JSON
.
stringify
(
data
.
user
));
}
// 设置cookie,保存账号密码7天
this
.
setCookie
(
"loginname"
,
loginname
,
7
);
// 跳转首页
...
...
app_web/src/engine/view/tab-exp-view-engine.ts
浏览文件 @
3a843875
...
...
@@ -44,4 +44,14 @@ export default class TabExpViewEngine extends ViewEngine {
this
.
setViewState2
({
tag
:
_item
.
name
,
action
:
'load'
,
viewdata
:
this
.
view
.
context
});
});
}
/**
* 计算按钮状态
*
* @memberof TabExpViewEngine
*/
public
computeToolbarState
(
state
:
boolean
,
data
:
any
){
this
.
calcToolbarItemState
(
state
);
this
.
calcToolbarItemAuthState
(
data
);
}
}
\ No newline at end of file
app_web/src/engine/view/view-engine.ts
浏览文件 @
3a843875
...
...
@@ -187,6 +187,8 @@ export default class ViewEngine {
*/
public
calcToolbarItemAuthState
(
data
:
any
){
const
_this
:
any
=
this
;
if
(
!
_this
.
view
.
appUIService
.
isEnableDEMainState
)
return
;
for
(
const
key
in
_this
.
view
.
toolBarModels
)
{
if
(
!
_this
.
view
.
toolBarModels
.
hasOwnProperty
(
key
))
{
return
;
...
...
app_web/src/locale/lang/en-US.ts
浏览文件 @
3a843875
...
...
@@ -44,7 +44,6 @@ export default {
show
:
"Show"
,
records
:
"records"
,
totle
:
"totle"
,
noData
:
"No data"
,
valueVail
:
"Value cannot be empty"
,
group
:
"Group"
,
other
:
"Other"
,
...
...
app_web/src/locale/lang/zh-CN.ts
浏览文件 @
3a843875
...
...
@@ -44,7 +44,6 @@ export default {
show
:
"显示"
,
records
:
"条"
,
totle
:
"共"
,
noData
:
"无数据"
,
valueVail
:
"值不能为空"
,
group
:
"分组"
,
other
:
"其他"
,
...
...
app_web/src/locale/lanres/components/components_en_US.ts
浏览文件 @
3a843875
...
...
@@ -11,6 +11,10 @@ export default {
indexPage
:
'home page'
,
continue
:
'to continue browsing'
,
},
appOrgSector
:{
successSwitch
:
'The switch was successful'
,
errorSwitch
:
'The switchover failed'
,
},
appAutocomplete
:
{
error
:
'Error'
,
miss
:
'Missing parameter '
,
...
...
app_web/src/locale/lanres/components/components_zh_CN.ts
浏览文件 @
3a843875
...
...
@@ -11,6 +11,10 @@ export default {
indexPage
:
'首页'
,
continue
:
'继续浏览'
,
},
appOrgSector
:{
successSwitch
:
'切换成功'
,
errorSwitch
:
'切换失败'
,
},
appAutocomplete
:
{
error
:
'错误'
,
miss
:
'缺少参数'
,
...
...
app_web/src/locale/lanres/entities/wfgroup/wfgroup_en_US.ts
浏览文件 @
3a843875
...
...
@@ -52,6 +52,7 @@ export default {
groupname
:
"组名称"
,
groupscope
:
"范围"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfgroup/wfgroup_zh_CN.ts
浏览文件 @
3a843875
...
...
@@ -51,6 +51,7 @@ export default {
groupname
:
"组名称"
,
groupscope
:
"范围"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfmember/wfmember_en_US.ts
浏览文件 @
3a843875
...
...
@@ -51,6 +51,7 @@ export default {
mdeptname
:
"主部门"
,
groupname
:
"用户组"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfmember/wfmember_zh_CN.ts
浏览文件 @
3a843875
...
...
@@ -50,6 +50,7 @@ export default {
mdeptname
:
"主部门"
,
groupname
:
"用户组"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfprocess-definition/wfprocess-definition_en_US.ts
浏览文件 @
3a843875
...
...
@@ -55,6 +55,7 @@ export default {
modelversion
:
"模型版本"
,
modelenable
:
"模型是否启用"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfprocess-definition/wfprocess-definition_zh_CN.ts
浏览文件 @
3a843875
...
...
@@ -54,6 +54,7 @@ export default {
modelversion
:
"模型版本"
,
modelenable
:
"模型是否启用"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wftask/wftask_en_US.ts
浏览文件 @
3a843875
...
...
@@ -53,6 +53,7 @@ export default {
taskdefinitionkey
:
"TaskDefinitionKey"
,
taskid
:
"任务标识"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wftask/wftask_zh_CN.ts
浏览文件 @
3a843875
...
...
@@ -52,6 +52,7 @@ export default {
taskdefinitionkey
:
"TaskDefinitionKey"
,
taskid
:
"任务标识"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfuser/wfuser_en_US.ts
浏览文件 @
3a843875
...
...
@@ -60,6 +60,7 @@ export default {
orgname
:
"单位名称"
,
mdeptname
:
"主部门名称"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/locale/lanres/entities/wfuser/wfuser_zh_CN.ts
浏览文件 @
3a843875
...
...
@@ -59,6 +59,7 @@ export default {
orgname
:
"单位名称"
,
mdeptname
:
"主部门名称"
,
},
nodata
:
""
,
uiactions
:
{
},
},
...
...
app_web/src/pages/workflow/wfgroup-edit-view/wfgroup-edit-view-base.vue
浏览文件 @
3a843875
...
...
@@ -274,11 +274,11 @@ export default class WFGroupEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -646,7 +646,7 @@ export default class WFGroupEditViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFGroupEditView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfgroup-grid-view/wfgroup-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -303,11 +303,11 @@ export default class WFGroupGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -680,7 +680,7 @@ export default class WFGroupGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFGroupGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfgroup-mpickup-view/wfgroup-mpickup-view-base.vue
浏览文件 @
3a843875
...
...
@@ -7,60 +7,7 @@
<div
class=
"content-container pickup-view"
>
<div
class=
'view-body-messages'
>
</div>
<div
class=
"translate-contant"
>
<div
class=
"center"
:style=
"
{width : !isShowButton ? '100%' : ''}">
<view
_pickupviewpanel
:viewState=
"viewState"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:context=
"JSON.parse(JSON.stringify(context))"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
name=
"pickupviewpanel"
ref=
'pickupviewpanel'
@
selectionchange=
"pickupviewpanel_selectionchange($event)"
@
activated=
"pickupviewpanel_activated($event)"
@
load=
"pickupviewpanel_load($event)"
@
closeview=
"closeView($event)"
>
</view
_pickupviewpanel
>
</div>
<div
v-if=
"isShowButton"
class=
"translate-buttons"
>
<div
class=
"buttons"
>
<i-button
type=
"primary"
:title=
"this.containerModel.view_rightbtn.text"
:disabled=
"this.containerModel.view_rightbtn.disabled"
@
click=
"onCLickRight"
>
<i
class=
"el-icon-arrow-right"
></i>
</i-button>
<i-button
type=
"primary"
:title=
"this.containerModel.view_leftbtn.text"
:disabled=
"this.containerModel.view_leftbtn.disabled"
@
click=
"onCLickLeft"
>
<i
class=
"el-icon-arrow-left"
></i>
</i-button>
<i-button
type=
"primary"
:title=
"this.containerModel.view_allrightbtn.text"
@
click=
"onCLickAllRight"
>
<i
class=
"el-icon-d-arrow-right"
></i>
</i-button>
<i-button
type=
"primary"
:title=
"this.containerModel.view_allleftbtn.text"
@
click=
"onCLickAllLeft"
>
<i
class=
"el-icon-d-arrow-left"
></i>
</i-button>
</div>
</div>
<div
v-if=
"isShowButton"
class=
"right"
>
<div
class=
"mpicker-select"
>
<div
v-for=
"(item, index) in viewSelections"
:key=
"index"
:class=
"item._select ? 'select' : ''"
@
click=
"selectionsClick(item)"
@
dblclick=
"selectionsDBLClick(item)"
>
<span>
{{
item
.
srfmajortext
}}
</span>
</div>
</div>
</div>
</div>
<card
v-if=
"isShowButton"
:dis-hover=
"true"
:bordered=
"false"
class=
"footer"
>
<row
:style=
"
{ textAlign: 'right' }">
<i-button
type=
"primary"
:disabled=
"this.viewSelections.length > 0 ? false : true"
@
click=
"onClickOk"
>
{{
this
.
containerModel
.
view_okbtn
.
text
}}
</i-button>
<i-button
@
click=
"onClickCancel"
>
{{
this
.
containerModel
.
view_cancelbtn
.
text
}}
</i-button>
</row>
</card>
</div>
<div
class=
'view-bottom-messages'
>
</div>
...
...
@@ -222,11 +169,11 @@ export default class WFGroupMPickupViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -550,7 +497,7 @@ export default class WFGroupMPickupViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFGroupMPickupView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -198,11 +198,11 @@ export default class WFGroupPickupGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -533,7 +533,7 @@ export default class WFGroupPickupGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFGroupPickupGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfgroup-pickup-view/wfgroup-pickup-view-base.vue
浏览文件 @
3a843875
...
...
@@ -188,11 +188,11 @@ export default class WFGroupPickupViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -516,7 +516,7 @@ export default class WFGroupPickupViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFGroupPickupView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfindex-view/wfindex-view-base.vue
浏览文件 @
3a843875
...
...
@@ -187,11 +187,11 @@ export default class WFIndexViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -489,7 +489,7 @@ export default class WFIndexViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFIndexView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfmember-edit-view/wfmember-edit-view-base.vue
浏览文件 @
3a843875
...
...
@@ -274,11 +274,11 @@ export default class WFMemberEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -646,7 +646,7 @@ export default class WFMemberEditViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFMemberEditView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfmember-grid-view/wfmember-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -303,11 +303,11 @@ export default class WFMemberGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -680,7 +680,7 @@ export default class WFMemberGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFMemberGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfprocess-definition-edit-view/wfprocess-definition-edit-view-base.vue
浏览文件 @
3a843875
...
...
@@ -274,11 +274,11 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -646,7 +646,7 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFProcessDefinitionEditView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfprocess-definition-grid-view/wfprocess-definition-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -303,11 +303,11 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -680,7 +680,7 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFProcessDefinitionGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfremodel-edit-view/wfremodel-edit-view-base.vue
浏览文件 @
3a843875
...
...
@@ -199,11 +199,11 @@ export default class WFREModelEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -546,7 +546,7 @@ export default class WFREModelEditViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFREModelEditView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wftask-edit-view/wftask-edit-view-base.vue
浏览文件 @
3a843875
...
...
@@ -274,11 +274,11 @@ export default class WFTaskEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -646,7 +646,7 @@ export default class WFTaskEditViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFTaskEditView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wftask-grid-view/wftask-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -280,11 +280,11 @@ export default class WFTaskGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -647,7 +647,7 @@ export default class WFTaskGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFTaskGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfuser-edit-view/wfuser-edit-view-base.vue
浏览文件 @
3a843875
...
...
@@ -274,11 +274,11 @@ export default class WFUserEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -646,7 +646,7 @@ export default class WFUserEditViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFUserEditView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfuser-grid-view/wfuser-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -303,11 +303,11 @@ export default class WFUserGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -680,7 +680,7 @@ export default class WFUserGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFUserGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfuser-mpickup-view/wfuser-mpickup-view-base.vue
浏览文件 @
3a843875
...
...
@@ -7,60 +7,7 @@
<div
class=
"content-container pickup-view"
>
<div
class=
'view-body-messages'
>
</div>
<div
class=
"translate-contant"
>
<div
class=
"center"
:style=
"
{width : !isShowButton ? '100%' : ''}">
<view
_pickupviewpanel
:viewState=
"viewState"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:context=
"JSON.parse(JSON.stringify(context))"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
name=
"pickupviewpanel"
ref=
'pickupviewpanel'
@
selectionchange=
"pickupviewpanel_selectionchange($event)"
@
activated=
"pickupviewpanel_activated($event)"
@
load=
"pickupviewpanel_load($event)"
@
closeview=
"closeView($event)"
>
</view
_pickupviewpanel
>
</div>
<div
v-if=
"isShowButton"
class=
"translate-buttons"
>
<div
class=
"buttons"
>
<i-button
type=
"primary"
:title=
"this.containerModel.view_rightbtn.text"
:disabled=
"this.containerModel.view_rightbtn.disabled"
@
click=
"onCLickRight"
>
<i
class=
"el-icon-arrow-right"
></i>
</i-button>
<i-button
type=
"primary"
:title=
"this.containerModel.view_leftbtn.text"
:disabled=
"this.containerModel.view_leftbtn.disabled"
@
click=
"onCLickLeft"
>
<i
class=
"el-icon-arrow-left"
></i>
</i-button>
<i-button
type=
"primary"
:title=
"this.containerModel.view_allrightbtn.text"
@
click=
"onCLickAllRight"
>
<i
class=
"el-icon-d-arrow-right"
></i>
</i-button>
<i-button
type=
"primary"
:title=
"this.containerModel.view_allleftbtn.text"
@
click=
"onCLickAllLeft"
>
<i
class=
"el-icon-d-arrow-left"
></i>
</i-button>
</div>
</div>
<div
v-if=
"isShowButton"
class=
"right"
>
<div
class=
"mpicker-select"
>
<div
v-for=
"(item, index) in viewSelections"
:key=
"index"
:class=
"item._select ? 'select' : ''"
@
click=
"selectionsClick(item)"
@
dblclick=
"selectionsDBLClick(item)"
>
<span>
{{
item
.
srfmajortext
}}
</span>
</div>
</div>
</div>
</div>
<card
v-if=
"isShowButton"
:dis-hover=
"true"
:bordered=
"false"
class=
"footer"
>
<row
:style=
"
{ textAlign: 'right' }">
<i-button
type=
"primary"
:disabled=
"this.viewSelections.length > 0 ? false : true"
@
click=
"onClickOk"
>
{{
this
.
containerModel
.
view_okbtn
.
text
}}
</i-button>
<i-button
@
click=
"onClickCancel"
>
{{
this
.
containerModel
.
view_cancelbtn
.
text
}}
</i-button>
</row>
</card>
</div>
<div
class=
'view-bottom-messages'
>
</div>
...
...
@@ -222,11 +169,11 @@ export default class WFUserMPickupViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -550,7 +497,7 @@ export default class WFUserMPickupViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFUserMPickupView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfuser-pickup-grid-view/wfuser-pickup-grid-view-base.vue
浏览文件 @
3a843875
...
...
@@ -198,11 +198,11 @@ export default class WFUserPickupGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -533,7 +533,7 @@ export default class WFUserPickupGridViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFUserPickupGridView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/workflow/wfuser-pickup-view/wfuser-pickup-view-base.vue
浏览文件 @
3a843875
...
...
@@ -188,11 +188,11 @@ export default class WFUserPickupViewBase extends Vue {
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
...
...
@@ -516,7 +516,7 @@ export default class WFUserPickupViewBase extends Vue {
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
WFUserPickupView
'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/uiservice/wfgroup/wfgroup-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFGroupUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFGroupUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/uiservice/wfmember/wfmember-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFMemberUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFMemberUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/uiservice/wfprocess-definition/wfprocess-definition-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFProcessDefinitionUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFProcessDefinitionUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/uiservice/wfremodel/wfremodel-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFREModelUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFREModelUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/uiservice/wfsystem/wfsystem-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFSystemUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFSystemUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/uiservice/wftask/wftask-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFTaskUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFTaskUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/uiservice/wfuser/wfuser-ui-service-base.ts
浏览文件 @
3a843875
...
...
@@ -20,6 +20,13 @@ export default class WFUserUIServiceBase extends UIService {
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof WFUserUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
...
...
app_web/src/utils/view-tool/view-tool.ts
浏览文件 @
3a843875
...
...
@@ -258,7 +258,7 @@ export class ViewTool {
return
result
;
}
const
_item
=
ActionModel
[
key
];
if
(
_item
&&
_item
[
'dataaccaction'
]
&&
UIService
){
if
(
_item
&&
_item
[
'dataaccaction'
]
&&
UIService
&&
UIService
.
isEnableDEMainState
){
let
dataActionResult
:
any
;
if
(
Object
.
is
(
_item
[
'actiontarget'
],
"NONE"
)
||
Object
.
is
(
_item
[
'actiontarget'
],
""
)){
dataActionResult
=
UIService
.
getResourceOPPrivs
(
_item
[
'dataaccaction'
]);
...
...
app_web/src/widgets/wfgroup/main-grid/main-grid-base.vue
浏览文件 @
3a843875
...
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.wfgroup.main_grid.nod
ata'
)
}}
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
...
@@ -566,6 +566,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
* 部件刷新
*
...
...
@@ -606,6 +614,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'groupname'
,
...
...
@@ -614,6 +623,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'groupscope'
,
...
...
@@ -622,6 +632,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
]
...
...
@@ -732,6 +743,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
...
...
@@ -740,6 +752,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
...
...
@@ -1099,7 +1112,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
if
(
items
)
{
...
...
@@ -1674,8 +1687,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
if
(
!
await
this
.
validateAll
()){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
}
let
successItems
:
any
=
[];
...
...
@@ -1815,9 +1836,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
wfgroup
:
data
.
groupid
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
...
@@ -2058,6 +2081,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
</
script
>
...
...
app_web/src/widgets/wfgroup/main-grid/main-grid-service.ts
浏览文件 @
3a843875
...
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
...
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
...
...
app_web/src/widgets/wfmember/main-grid/main-grid-base.vue
浏览文件 @
3a843875
...
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.wfmember.main_grid.nod
ata'
)
}}
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
...
@@ -578,6 +578,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
* 部件刷新
*
...
...
@@ -618,6 +626,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'orgname'
,
...
...
@@ -626,6 +635,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'mdeptname'
,
...
...
@@ -634,6 +644,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'groupname'
,
...
...
@@ -642,6 +653,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
]
...
...
@@ -752,6 +764,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
...
...
@@ -760,6 +773,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
...
...
@@ -1119,7 +1133,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
if
(
items
)
{
...
...
@@ -1695,8 +1709,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
if
(
!
await
this
.
validateAll
()){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
}
let
successItems
:
any
=
[];
...
...
@@ -1836,9 +1858,10 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
...
@@ -2079,6 +2102,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
</
script
>
...
...
app_web/src/widgets/wfmember/main-grid/main-grid-service.ts
浏览文件 @
3a843875
...
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
...
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
...
...
app_web/src/widgets/wfprocess-definition/main-grid/main-grid-base.vue
浏览文件 @
3a843875
...
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.wfprocessdefinition.main_grid.nod
ata'
)
}}
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
...
@@ -592,6 +592,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
* 部件刷新
*
...
...
@@ -632,6 +640,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'definitionname'
,
...
...
@@ -640,6 +649,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'pssystemid'
,
...
...
@@ -648,6 +658,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'modelversion'
,
...
...
@@ -656,6 +667,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'modelenable'
,
...
...
@@ -664,6 +676,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
]
...
...
@@ -774,6 +787,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
...
...
@@ -782,6 +796,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
...
...
@@ -1110,14 +1125,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
)
{
let
codelistColumns
:
Array
<
any
>
=
[
{
name
:
'modelenable'
,
srfkey
:
'YesNo'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
{
name
:
'modelenable'
,
srfkey
:
'YesNo'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
];
let
_this
=
this
;
for
(
const
codelist
of
codelistColumns
)
{
...
...
@@ -1149,7 +1164,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
if
(
items
)
{
...
...
@@ -1726,8 +1741,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
if
(
!
await
this
.
validateAll
()){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
}
let
successItems
:
any
=
[];
...
...
@@ -1867,9 +1890,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
wfprocessdefinition
:
data
.
definitionkey
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
...
@@ -2110,6 +2135,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
</
script
>
...
...
app_web/src/widgets/wfprocess-definition/main-grid/main-grid-service.ts
浏览文件 @
3a843875
...
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
...
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
...
...
app_web/src/widgets/wftask/main-grid/main-grid-base.vue
浏览文件 @
3a843875
...
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.wftask.main_grid.nod
ata'
)
}}
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
...
@@ -643,6 +643,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
* 部件刷新
*
...
...
@@ -683,6 +691,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'taskname'
,
...
...
@@ -691,6 +700,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'description'
,
...
...
@@ -699,6 +709,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'createtime'
,
...
...
@@ -707,6 +718,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'businesskey'
,
...
...
@@ -715,6 +727,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'definitionid'
,
...
...
@@ -723,6 +736,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'definitionkey'
,
...
...
@@ -731,6 +745,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'instanceid'
,
...
...
@@ -739,6 +754,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'taskdefinitionkey'
,
...
...
@@ -747,6 +763,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'taskid'
,
...
...
@@ -755,6 +772,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
]
...
...
@@ -865,6 +883,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
...
...
@@ -873,6 +892,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
...
...
@@ -1232,7 +1252,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
if
(
items
)
{
...
...
@@ -1814,8 +1834,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
if
(
!
await
this
.
validateAll
()){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
}
let
successItems
:
any
=
[];
...
...
@@ -1955,9 +1983,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
wftask
:
data
.
taskid
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
...
@@ -2198,6 +2228,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
</
script
>
...
...
app_web/src/widgets/wftask/main-grid/main-grid-service.ts
浏览文件 @
3a843875
...
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
...
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
...
...
app_web/src/widgets/wfuser/main-grid/main-grid-base.vue
浏览文件 @
3a843875
...
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.wfuser.main_grid.nod
ata'
)
}}
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
...
@@ -590,6 +590,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
* 部件刷新
*
...
...
@@ -630,6 +638,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'personname'
,
...
...
@@ -638,6 +647,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'username'
,
...
...
@@ -646,6 +656,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'orgname'
,
...
...
@@ -654,6 +665,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
{
name
:
'mdeptname'
,
...
...
@@ -662,6 +674,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
]
...
...
@@ -772,6 +785,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
...
...
@@ -780,6 +794,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
...
...
@@ -1139,7 +1154,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
if
(
items
)
{
...
...
@@ -1716,8 +1731,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
if
(
!
await
this
.
validateAll
()){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
}
let
successItems
:
any
=
[];
...
...
@@ -1857,9 +1880,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
wfuser
:
data
.
userid
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
...
@@ -2100,6 +2125,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
</
script
>
...
...
app_web/src/widgets/wfuser/main-grid/main-grid-service.ts
浏览文件 @
3a843875
...
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
...
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
...
...
config.xml
浏览文件 @
3a843875
...
...
@@ -37,11 +37,6 @@
git clone -b master $para2 ibzwf/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzwf/
mvn clean package -Papi
cd ibzwf-provider/ibzwf-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzwf-provider-api.yaml ibzlab-rt --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
ibzwf-provider/ibzwf-provider-api/src/main/docker/Dockerfile
浏览文件 @
3a843875
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar
EXPOSE
40003
EXPOSE
8081
ADD
ibzwf-provider-api.jar /ibzwf-provider-api.jar
ibzwf-provider/ibzwf-provider-api/src/main/docker/ibzwf-provider-api.yaml
浏览文件 @
3a843875
...
...
@@ -3,22 +3,9 @@ services:
ibzwf-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest
ports
:
-
"
40003:40003
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40003
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.102.211:8848
deploy
:
resources
:
limits
:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录