Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
ab7be1aa
提交
ab7be1aa
编写于
7月 29, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge branch 'dev'
上级
8ffa8311
变更
10
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
104 行增加
和
27 行删除
+104
-27
app-actionbar.vue
src/components/app-actionbar/app-actionbar.vue
+18
-4
app-column-link.vue
src/components/app-column-link/app-column-link.vue
+25
-0
app-embed-picker.vue
src/components/app-embed-picker/app-embed-picker.vue
+25
-11
app-form-druipart.vue
src/components/app-form-druipart/app-form-druipart.vue
+1
-0
app-lang.vue
src/components/app-lang/app-lang.vue
+1
-1
app-menu-item.vue
src/components/app-menu-item/app-menu-item.vue
+6
-6
app-orgsector.vue
src/components/app-orgsector/app-orgsector.vue
+24
-2
input-box.less
src/components/input-box/input-box.less
+1
-1
entity-service.ts
src/service/entity-service.ts
+1
-0
uiaction-tool.ts
src/utils/uiaction-tool/uiaction-tool.ts
+2
-2
未找到文件。
src/components/app-actionbar/app-actionbar.vue
浏览文件 @
ab7be1aa
...
...
@@ -2,9 +2,9 @@
<div
class=
"app-actionbar"
>
<div
class=
"app-actionbar-item"
v-for=
"(item,index) in items"
:key=
"index"
>
<Badge
v-if=
"item.counterService&&item.counterService.counterData"
v-show=
"item.visabled"
:count=
"item.counterService.counterData[item.counterId]"
type=
"primary"
>
<i-button
:style=
"
{'pointer-events':item.disabled?'none':'auto'}" @click="handleClick(item
.viewlogicname
)">
<i
v-if=
"item.icon"
style=
"margin-right: 5px;"
:class=
"item.icon"
></i>
{{
item
.
actionName
}}
</i-button>
<i-button
:style=
"
{'pointer-events':item.disabled?'none':'auto'}" @click="handleClick(item
, $event
)">
<i
v-if=
"item.icon"
style=
"margin-right: 5px;"
:class=
"item.icon"
></i>
{{
item
.
actionName
}}
</i-button>
</Badge>
<i-button
v-show=
"item.visabled"
:style=
"
{'pointer-events':item.disabled?'none':'auto'}" v-else @click="handleClick(item
.viewlogicname
)">
{{
item
.
actionName
}}
</i-button>
<i-button
v-show=
"item.visabled"
:style=
"
{'pointer-events':item.disabled?'none':'auto'}" v-else @click="handleClick(item
, $event
)">
{{
item
.
actionName
}}
</i-button>
</div>
</div>
</
template
>
...
...
@@ -49,6 +49,14 @@ export default class AppActionBar extends Vue {
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 部件数据
*
* @type {*}
* @memberof AppActionBar
*/
public
data
:
any
;
/**
* 组件初始化
*
...
...
@@ -61,6 +69,7 @@ export default class AppActionBar extends Vue {
return
;
}
if
(
Object
.
is
(
action
,
'loadmodel'
)){
this
.
data
=
data
;
this
.
calcActionItemAuthState
(
data
,
this
.
items
,
this
.
uiService
);
}
});
...
...
@@ -72,8 +81,13 @@ export default class AppActionBar extends Vue {
*
* @memberof AppActionBar
*/
public
handleClick
(
$event
:
any
){
this
.
$emit
(
'itemClick'
,
$event
);
public
handleClick
(
item
:
any
,
$event
:
any
){
let
_data
=
{
tag
:
item
.
viewlogicname
,
params
:
this
.
data
,
event
:
$event
};
this
.
$emit
(
'itemClick'
,
_data
);
}
/**
...
...
src/components/app-column-link/app-column-link.vue
浏览文件 @
ab7be1aa
...
...
@@ -30,6 +30,22 @@ export default class AppColumnLink extends Vue {
*/
@
Prop
()
public
linkview
?:
any
;
/**
* 局部上下文导航参数
*
* @type {any}
* @memberof AppColumnLink
*/
@
Prop
()
public
localContext
!
:
any
;
/**
* 局部导航参数
*
* @type {any}
* @memberof AppColumnLink
*/
@
Prop
()
public
localParam
!
:
any
;
/**
* 值项名称
*
...
...
@@ -281,6 +297,15 @@ export default class AppColumnLink extends Vue {
// 合并表单参数
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{};
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{};
// 附加参数处理
if
(
this
.
localContext
&&
Object
.
keys
(
this
.
localContext
).
length
>
0
)
{
let
_context
=
this
.
$util
.
computedNavData
(
this
.
data
,
arg
.
context
,
arg
.
param
,
this
.
localContext
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
localParam
&&
Object
.
keys
(
this
.
localParam
).
length
>
0
)
{
let
_param
=
this
.
$util
.
computedNavData
(
this
.
data
,
arg
.
param
,
arg
.
param
,
this
.
localParam
);
Object
.
assign
(
arg
.
param
,
_param
);
}
return
true
;
}
...
...
src/components/app-embed-picker/app-embed-picker.vue
浏览文件 @
ab7be1aa
...
...
@@ -6,12 +6,16 @@
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
@
viewdataschange=
"setValue(
args
)"
@
viewdataschange=
"setValue(
$event
)"
style=
"height:100%;"
>
</component>
</div>
<template
v-if=
"placeholder"
>
<div
v-if=
"value"
class=
"app-embed-value"
>
{{
value
}}
</div>
<div
v-if=
"value"
class=
"app-embed-value"
>
<span
v-for=
"(item,index) in value"
:key=
"index"
>
{{
item
}}
</span>
</div>
<div
v-else
class=
"app-embed-placeholder"
>
{{
placeholder
}}
</div>
</
template
>
</div>
...
...
@@ -174,8 +178,8 @@ export default class AppEmbedPicker extends Vue {
}
let
arg
:
any
=
{};
// 合并视图上下文参数和视图参数
let
param
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
));
let
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
));
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
// 附加参数处理
if
(
this
.
localContext
&&
Object
.
keys
(
this
.
localContext
).
length
>
0
)
{
let
_context
=
this
.
$util
.
computedNavData
(
this
.
data
,
arg
.
context
,
arg
.
param
,
this
.
localContext
);
...
...
@@ -185,8 +189,8 @@ export default class AppEmbedPicker extends Vue {
let
_param
=
this
.
$util
.
computedNavData
(
this
.
data
,
arg
.
param
,
arg
.
param
,
this
.
localParam
);
Object
.
assign
(
arg
.
param
,
_param
);
}
this
.
viewdata
=
JSON
.
stringify
(
context
);
this
.
viewparam
=
JSON
.
stringify
(
param
);
this
.
viewdata
=
JSON
.
stringify
(
arg
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
arg
.
param
);
}
/**
...
...
@@ -243,11 +247,21 @@ export default class AppEmbedPicker extends Vue {
* @memberof AppEmbedPicker
*/
public
setValue
(
item
:
any
)
{
let
selectsrfkey
:
Array
<
any
>
=
[];
let
selectsrfmajortext
:
Array
<
any
>
=
[];
if
(
item
&&
Array
.
isArray
(
item
)){
item
.
forEach
((
select
:
any
)
=>
{
selectsrfkey
.
push
(
select
.
srfkey
);
selectsrfmajortext
.
push
(
select
.
srfmajortext
);
})
if
(
this
.
valueItem
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
valueItem
,
value
:
item
[
0
].
srfkey
});
let
value
=
selectsrfkey
.
length
>
0
?
selectsrfkey
:
''
;
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
valueItem
,
value
:
value
});
}
if
(
this
.
name
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
item
[
0
].
srfmajortext
});
let
value
=
selectsrfmajortext
.
length
>
0
?
selectsrfmajortext
:
''
;
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
value
});
}
}
}
...
...
src/components/app-form-druipart/app-form-druipart.vue
浏览文件 @
ab7be1aa
...
...
@@ -291,6 +291,7 @@ export default class AppFormDRUIPart extends Vue {
let
_param
:
any
=
this
.
$util
.
computedNavData
(
formData
,
tempContext
,
this
.
viewparams
,
this
.
localParam
);
Object
.
assign
(
tempParam
,
_param
);
}
if
(
this
.
viewparams
.
hasOwnProperty
(
'copymode'
))
Object
.
assign
(
tempParam
,{
copymode
:
this
.
viewparams
.
copymode
});
this
.
viewparam
=
JSON
.
stringify
(
tempParam
);
if
(
this
.
isRelationalData
)
{
// 从数据模式无遮罩层
...
...
src/components/app-lang/app-lang.vue
浏览文件 @
ab7be1aa
<
template
>
<dropdown
trigger=
'click'
@
on-click=
"selectLang"
>
<dropdown
v-if=
"localList.length > 1"
trigger=
'click'
@
on-click=
"selectLang"
>
<span>
{{
title
}}
<icon
size=
'18'
type=
'md-arrow-dropdown'
></icon>
...
...
src/components/app-menu-item/app-menu-item.vue
浏览文件 @
ab7be1aa
...
...
@@ -2,7 +2,7 @@
<div
class=
"app-menu-item"
>
<template
v-for=
"item in menus"
>
<template
v-if=
"item.items && Array.isArray(item.items) && item.items.length > 0"
>
<el-submenu
:class=
"
{'isCollpase' : appMenuCollapseFlag}
" v-show="!item.hidden" :index="item.name" :popper-class="popperClass" :key="item.id">
<el-submenu
:class=
"
[
{'isCollpase' : appMenuCollapseFlag},item.textcls]
" v-show="!item.hidden" :index="item.name" :popper-class="popperClass" :key="item.id">
<template
slot=
'title'
>
<template
v-if=
"item.icon && item.icon != ''"
>
<img
:src=
"item.icon"
class=
'app-menu-icon'
/>
...
...
@@ -20,21 +20,21 @@
</template>
<
template
v-else
>
<template
v-if=
"item.type =='MENUITEM'"
>
<el-menu-item
:class=
"
{'isFirst' : isFirst}
" v-show="!item.hidden" :index="item.name" :key="item.id">
<el-menu-item
:class=
"
[
{'isFirst' : isFirst},item.textcls]
" v-show="!item.hidden" :index="item.name" :key="item.id">
<template
v-if=
"item.icon && item.icon != ''"
>
<img
:src=
"item.icon"
class=
'app-menu-icon'
/>
<span
v-if=
"
isCollap
se"
ref=
"circleText"
:class=
"
{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<span
v-if=
"
(isFirst && isCollapse) ? true : fal
se"
ref=
"circleText"
:class=
"
{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
/template
>
<
template
v
-
else
-
if
=
"item.iconcls && item.iconcls != ''"
>
<
i
:
class
=
"[item.iconcls, 'app-menu-icon']"
><
/i
>
<
span
v
-
if
=
"
isCollap
se"
ref
=
"circleText"
:
class
=
"{'app-menu-circle' : appMenuCollapseFlag, 'text' : true
}
"
:
title
=
"$t(`app.menus.${ctrlName
}
.${item.name
}
`)"
>
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
span
v
-
if
=
"
(isFirst && isCollapse) ? true : fal
se"
ref
=
"circleText"
:
class
=
"{'app-menu-circle' : appMenuCollapseFlag, 'text' : true
}
"
:
title
=
"$t(`app.menus.${ctrlName
}
.${item.name
}
`)"
>
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
/template
>
<
template
v
-
else
>
<
i
v
-
if
=
"isFirst"
class
=
'fa fa-cogs app-menu-icon'
><
/i
>
<
span
v
-
if
=
"
isCollap
se"
ref
=
"circleText"
:
class
=
"{'app-menu-circle' : appMenuCollapseFlag, 'text' : true
}
"
:
title
=
"$t(`app.menus.${ctrlName
}
.${item.name
}
`)"
>
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
span
v
-
if
=
"
(isFirst && isCollapse) ? true : fal
se"
ref
=
"circleText"
:
class
=
"{'app-menu-circle' : appMenuCollapseFlag, 'text' : true
}
"
:
title
=
"$t(`app.menus.${ctrlName
}
.${item.name
}
`)"
>
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
/template
>
<
template
slot
=
"title"
>
<
span
ref
=
"circleText"
:
class
=
"{'app-menu-circle' : appMenuCollapseFlag, 'text' : true
}
"
:
title
=
"$t(`app.menus.${ctrlName
}
.${item.name
}
`)"
>
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
span
:
class
=
"{'app-menu-circle' : appMenuCollapseFlag, 'text' : true
}
"
:
title
=
"$t(`app.menus.${ctrlName
}
.${item.name
}
`)"
>
{{
$t
(
`app.menus.${ctrlName
}
.${item.name
}
`
)
}}
<
/span
>
<
template
v
-
if
=
"counterdata && counterdata[item.counterid] && counterdata[item.counterid] > 0"
>
<
span
class
=
"pull-right"
>
<
badge
:
count
=
"counterdata[item.counterid]"
:
overflow
-
count
=
"9999"
><
/badge
>
...
...
src/components/app-orgsector/app-orgsector.vue
浏览文件 @
ab7be1aa
...
...
@@ -65,14 +65,36 @@ export default class AppOrgSector extends Vue {
* @memberof AppOrgSector
*/
public
mounted
()
{
this
.
getData
();
}
/**
* 获取数据
*
* @memberof AppOrgSector
*/
public
getData
(){
if
(
this
.
$store
.
getters
.
getAppData
())
{
if
(
this
.
$store
.
getters
.
getAppData
().
context
&&
this
.
$store
.
getters
.
getAppData
().
context
.
srforgsectorid
&&
this
.
$store
.
getters
.
getAppData
().
context
.
srforgsectorname
)
{
let
_context
=
this
.
$store
.
getters
.
getAppData
().
context
;
let
_srforgname
=
this
.
$store
.
getters
.
getAppData
().
context
.
srforgname
;
let
_srforgsectorname
=
this
.
$store
.
getters
.
getAppData
().
context
.
srforgsectorname
;
if
(
_context
&&
this
.
$store
.
getters
.
getAppData
().
context
.
srforgsectorid
){
this
.
selectedOrgId
=
this
.
$store
.
getters
.
getAppData
().
context
.
srforgsectorid
;
this
.
selectedOrgName
=
this
.
$store
.
getters
.
getAppData
().
context
.
srforgsectorname
;
}
else
{
return
false
;
}
if
(
_context
&&
_srforgname
&&
_srforgsectorname
){
this
.
selectedOrgName
=
_srforgname
+
'-'
+
_srforgsectorname
;
}
else
if
(
_context
&&
_srforgname
)
{
this
.
selectedOrgName
=
_srforgname
;
}
else
if
(
_context
&&
_srforgsectorname
)
{
this
.
selectedOrgName
=
_srforgsectorname
;
}
if
(
this
.
$store
.
getters
.
getAppData
().
srforgsections
)
{
this
.
selectedOrgArray
=
this
.
$store
.
getters
.
getAppData
().
srforgsections
;
}
}
}
...
...
src/components/input-box/input-box.less
浏览文件 @
ab7be1aa
...
...
@@ -9,7 +9,7 @@
width: 100%;
}
.ivu-input-number-input{
text-align:
righ
t;
text-align:
lef
t;
}
.ivu-input-number-input:hover{
padding-right:22px;
...
...
src/service/entity-service.ts
浏览文件 @
ab7be1aa
...
...
@@ -203,6 +203,7 @@ export default class EntityService {
if
(
context
.
srfsessionkey
&&
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_'
+
this
.
APPDENAME
),
'undefined'
)){
let
tempData
:
any
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_'
+
this
.
APPDENAME
)
as
any
);
data
.
srffrontuf
=
"0"
;
data
[
this
.
APPDEKEY
]
=
null
;
tempData
.
push
(
data
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_'
+
this
.
APPDENAME
,
JSON
.
stringify
(
tempData
));
return
{
"status"
:
200
,
"data"
:
data
};
...
...
src/utils/uiaction-tool/uiaction-tool.ts
浏览文件 @
ab7be1aa
...
...
@@ -52,7 +52,7 @@ export class UIActionTool {
return
;
}
let
value
:
string
|
null
=
_params
[
name
];
if
(
value
&&
value
.
startsWith
(
'%'
)
&&
value
.
endsWith
(
'%'
))
{
if
(
value
&&
typeof
(
value
)
===
'string'
&&
value
.
startsWith
(
'%'
)
&&
value
.
endsWith
(
'%'
))
{
const
key
=
value
.
substring
(
1
,
value
.
length
-
1
);
if
(
arg
&&
arg
.
hasOwnProperty
(
key
))
{
value
=
(
arg
[
key
]
!==
null
&&
arg
[
key
]
!==
undefined
)
?
arg
[
key
]
:
null
;
...
...
@@ -76,7 +76,7 @@ export class UIActionTool {
}
let
value
:
string
|
null
=
_params
[
name
];
let
values
:
any
[]
=
[];
if
(
value
&&
value
.
startsWith
(
'%'
)
&&
value
.
endsWith
(
'%'
))
{
if
(
value
&&
typeof
(
value
)
===
'string'
&&
value
.
startsWith
(
'%'
)
&&
value
.
endsWith
(
'%'
))
{
const
key
=
value
.
substring
(
1
,
value
.
length
-
1
);
args
.
forEach
((
arg
:
any
)
=>
{
if
(
arg
&&
arg
.
hasOwnProperty
(
key
))
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录