Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
4d1d99af
提交
4d1d99af
编写于
7月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码
上级
00bd469b
变更
13
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
653 行增加
和
631 行删除
+653
-631
app-actionbar.vue
app_CRM/src/components/app-actionbar/app-actionbar.vue
+0
-1
app-keep-alive.vue
app_CRM/src/components/app-keep-alive/app-keep-alive.vue
+1
-1
tab-page-exp.vue
app_CRM/src/components/tab-page-exp/tab-page-exp.vue
+20
-21
router.ts
app_CRM/src/pages/ungroup/central/router.ts
+0
-1
campaign-service-base.ts
app_CRM/src/service/campaign/campaign-service-base.ts
+41
-41
contact-service-base.ts
app_CRM/src/service/contact/contact-service-base.ts
+147
-147
ibiz-list-service-base.ts
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
+64
-64
opportunity-service-base.ts
app_CRM/src/service/opportunity/opportunity-service-base.ts
+252
-252
product-service-base.ts
app_CRM/src/service/product/product-service-base.ts
+50
-50
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+50
-50
AppContextStore.ts
.../studio-core/service/app-context-store/AppContextStore.ts
+2
-0
AppNavHistory.ts
.../src/studio-core/service/app-nav-history/AppNavHistory.ts
+2
-0
AppNavHistoryBase.ts
.../studio-core/service/app-nav-history/AppNavHistoryBase.ts
+24
-3
未找到文件。
app_CRM/src/components/app-actionbar/app-actionbar.vue
浏览文件 @
4d1d99af
...
...
@@ -39,7 +39,6 @@ export default class AppActionBar extends Vue {
* @memberof AppActionBar
*/
public
handleClick
(
$event
:
any
)
{
console
.
log
(
this
.
items
);
this
.
$emit
(
"itemClick"
,
$event
);
}
}
...
...
app_CRM/src/components/app-keep-alive/app-keep-alive.vue
浏览文件 @
4d1d99af
...
...
@@ -116,7 +116,7 @@ export default {
},
matches
(
pattern
,
name
)
{
if
(
Array
.
isArray
(
pattern
))
{
return
pattern
.
indexOf
(
name
)
>
-
1
;
return
pattern
.
findIndex
(
item
=>
item
.
fullPath
===
name
)
!==
-
1
;
}
else
if
(
typeof
pattern
===
'string'
)
{
return
pattern
.
split
(
','
).
indexOf
(
name
)
>
-
1
;
}
else
if
(
this
.
isRegExp
(
pattern
))
{
...
...
app_CRM/src/components/tab-page-exp/tab-page-exp.vue
浏览文件 @
4d1d99af
<
template
>
<div
class=
"ibiz-page-tag"
v-if=
"
$appService.navHistory.historyPathList
> 0"
>
<div
class=
"ibiz-page-tag"
v-if=
"
appService.navHistory.metaList.length
> 0"
>
<div
class=
"move-btn move-left"
@
click=
"leftMove"
>
<icon
type=
"ios-arrow-back"
/>
</div>
<div
ref=
"scrollBody"
class=
"tags-body"
>
<div
ref=
"scrollChild"
class=
"tags-container"
:style=
"
{left: styleLeft + 'px'}">
<transition-group
name=
"tags-transition"
>
<template
v-for=
"(
page, index) of $appService.navHistory.historyPath
List"
>
<Tag
ref=
"tagElement"
:key=
"index"
:class=
"isActive(
page) ? 'tag-is-active' : ''"
:name=
"index"
closable
@
click
.
native=
"changePage(page)"
@
on-close=
"onClose(page
)"
>
<template
v-for=
"(
meta, index) of appService.navHistory.meta
List"
>
<Tag
ref=
"tagElement"
:key=
"index"
:class=
"isActive(
appService.navHistory.historyList[index]) ? 'tag-is-active' : ''"
:name=
"index"
closable
@
click
.
native=
"changePage(appService.navHistory.historyList[index])"
@
on-close=
"onClose(appService.navHistory.historyList[index]
)"
>
<div
class=
"tag-text"
>
<div
:title=
"getCaption(
page.meta.caption, page.
meta.info)"
style=
"max-width: 300px;"
>
<i
v-if=
"
page.meta.iconCls && !Object.is(page.meta.iconCls, '')"
:class=
"page.
meta.iconCls"
></i>
<img
v-else
:src=
"
page.
meta.imgPath"
class=
"text-icon"
/>
{{
getCaption
(
page
.
meta
.
caption
,
page
.
meta
.
info
)
}}
<div
:title=
"getCaption(
meta.caption,
meta.info)"
style=
"max-width: 300px;"
>
<i
v-if=
"
meta.iconCls && !Object.is(meta.iconCls, '')"
:class=
"
meta.iconCls"
></i>
<img
v-else
:src=
"meta.imgPath"
class=
"text-icon"
/>
{{
getCaption
(
meta
.
caption
,
meta
.
info
)
}}
</div>
</div>
</Tag>
...
...
@@ -39,10 +39,13 @@
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Provide
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
import
{
Environment
}
from
'../../environments/environment'
;
import
{
AppService
}
from
'../../studio-core/service/app-service/AppService'
;
@
Component
({})
export
default
class
TabPageExp
extends
Vue
{
protected
appService
:
AppService
=
new
AppService
();
@
Provide
()
public
styleLeft
:
number
=
0
;
...
...
@@ -116,11 +119,7 @@ export default class TabPageExp extends Vue {
* @memberof TabPageExp
*/
public
onClose
(
page
:
any
)
{
if
(
!
page
)
{
this
.
$appService
.
navHistory
.
remove
(
page
);
this
.
gotoPage
();
}
const
appview
=
this
.
$store
.
getters
[
'viewaction/getAppView'
](
page
.
viewtag
);
const
appview
=
this
.
$store
.
getters
[
'viewaction/getAppView'
](
this
.
appService
.
navHistory
.
viewTagMap
.
get
(
page
.
fullPath
));
if
(
appview
&&
appview
.
viewdatachange
)
{
const
title
:
any
=
this
.
$t
(
'app.tabpage.sureclosetip.title'
);
const
content
:
any
=
this
.
$t
(
'app.tabpage.sureclosetip.content'
);
...
...
@@ -128,15 +127,15 @@ export default class TabPageExp extends Vue {
title
:
title
,
content
:
content
,
onOk
:
()
=>
{
this
.
$
appService
.
navHistory
.
remove
(
page
);
this
.
gotoPage
();
this
.
appService
.
navHistory
.
remove
(
page
);
this
.
gotoPage
(
page
);
},
onCancel
:
()
=>
{
}
});
}
else
{
this
.
$
appService
.
navHistory
.
remove
(
page
);
this
.
gotoPage
();
this
.
appService
.
navHistory
.
remove
(
page
);
this
.
gotoPage
(
page
);
}
}
...
...
@@ -147,7 +146,7 @@ export default class TabPageExp extends Vue {
* @memberof TabPageExp
*/
public
isClose
()
{
if
(
this
.
$
appService
.
navHistory
.
historyList
.
length
>
1
)
{
if
(
this
.
appService
.
navHistory
.
historyList
.
length
>
1
)
{
return
true
;
}
return
false
;
...
...
@@ -195,7 +194,7 @@ export default class TabPageExp extends Vue {
if
(
this
.
$route
.
meta
&&
(
!
Object
.
is
(
this
.
$route
.
meta
.
caption
,
caption
)))
{
return
;
}
this
.
$store
.
commit
(
"setCurPageCaption"
,
{
route
:
this
.
$route
,
caption
:
title
,
info
:
info
});
this
.
appService
.
navHistory
.
setCaption
(
{
route
:
this
.
$route
,
caption
:
title
,
info
:
info
});
setTimeout
(()
=>
{
this
.
moveToView
(
this
.
$route
);
},
1
);
...
...
@@ -208,7 +207,7 @@ export default class TabPageExp extends Vue {
* @memberof TabPageExp
*/
public
moveToView
(
page
:
any
)
{
const
pages
:
any
[]
=
this
.
$
appService
.
navHistory
.
historyList
;
const
pages
:
any
[]
=
this
.
appService
.
navHistory
.
historyList
;
let
leftWidth
:
number
=
0
;
this
.
$nextTick
(()
=>
{
pages
.
forEach
((
page
,
index
)
=>
{
...
...
@@ -252,10 +251,10 @@ export default class TabPageExp extends Vue {
*/
public
doTagAction
(
name
:
string
)
{
if
(
Object
.
is
(
name
,
'closeAll'
))
{
this
.
$
appService
.
navHistory
.
reset
();
this
.
appService
.
navHistory
.
reset
();
this
.
gotoPage
();
}
else
if
(
Object
.
is
(
name
,
'closeOther'
))
{
this
.
$
appService
.
navHistory
.
removeOther
(
this
.
$route
);
this
.
appService
.
navHistory
.
removeOther
(
this
.
$route
);
this
.
moveToView
(
this
.
$route
);
}
}
...
...
app_CRM/src/pages/ungroup/central/router.ts
浏览文件 @
4d1d99af
...
...
@@ -9,7 +9,6 @@ Vue.use(Router);
const
appService
=
new
AppService
();
const
router
=
new
Router
({
routes
:
[
{
...
...
app_CRM/src/service/campaign/campaign-service-base.ts
浏览文件 @
4d1d99af
此差异已折叠。
点击以展开。
app_CRM/src/service/contact/contact-service-base.ts
浏览文件 @
4d1d99af
此差异已折叠。
点击以展开。
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
4d1d99af
此差异已折叠。
点击以展开。
app_CRM/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
4d1d99af
此差异已折叠。
点击以展开。
app_CRM/src/service/product/product-service-base.ts
浏览文件 @
4d1d99af
此差异已折叠。
点击以展开。
app_CRM/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
4d1d99af
此差异已折叠。
点击以展开。
app_CRM/src/studio-core/service/app-context-store/AppContextStore.ts
浏览文件 @
4d1d99af
import
{
SingletonMode
}
from
'../../decorators/SingletonMode'
;
import
{
AppContextStoreBase
}
from
'./AppContextStoreBase'
;
/**
...
...
@@ -7,6 +8,7 @@ import { AppContextStoreBase } from './AppContextStoreBase';
* @class AppContextStore
* @extends {AppContextStoreBase}
*/
@
SingletonMode
()
export
class
AppContextStore
extends
AppContextStoreBase
{
}
\ No newline at end of file
app_CRM/src/studio-core/service/app-nav-history/AppNavHistory.ts
浏览文件 @
4d1d99af
import
{
SingletonMode
}
from
'../../decorators/SingletonMode'
;
import
{
AppNavHistoryBase
}
from
'./AppNavHistoryBase'
;
/**
...
...
@@ -7,6 +8,7 @@ import { AppNavHistoryBase } from './AppNavHistoryBase';
* @class AppNavHistory
* @extends {AppNavHistoryBase}
*/
@
SingletonMode
()
export
class
AppNavHistory
extends
AppNavHistoryBase
{
}
\ No newline at end of file
app_CRM/src/studio-core/service/app-nav-history/AppNavHistoryBase.ts
浏览文件 @
4d1d99af
import
{
Util
}
from
'@/utils'
;
import
{
AppContextStore
}
from
'../app-context-store/AppContextStore'
;
import
{
UIStateService
}
from
'../UIStateService'
;
...
...
@@ -33,6 +34,14 @@ export class AppNavHistoryBase {
*/
public
readonly
historyList
:
any
[]
=
[];
/**
* 参数列表
*
* @type {string[]}
* @memberof AppNavHistoryBase
*/
public
readonly
metaList
:
string
[]
=
[];
/**
* 视图标识
*
...
...
@@ -43,6 +52,9 @@ export class AppNavHistoryBase {
/**
* 导航缓存,忽略判断的导航参数正则
*
* @type {RegExp}
* @memberof AppNavHistoryBase
*/
public
readonly
navIgnoreParameters
:
RegExp
=
new
RegExp
(
/
(
srftabactivate|srftreeexpactivate
)
/
);
...
...
@@ -95,7 +107,11 @@ export class AppNavHistoryBase {
*/
public
add
(
page
:
any
):
void
{
if
(
this
.
findHistoryIndex
(
page
)
===
-
1
)
{
if
(
this
.
uiStateService
.
layoutState
.
styleMode
===
'DEFAULT'
&&
page
?.
matched
?.
length
===
1
)
{
return
;
}
this
.
historyList
.
push
(
page
);
this
.
metaList
.
push
(
Util
.
deepCopy
(
page
.
meta
));
}
}
...
...
@@ -109,6 +125,7 @@ export class AppNavHistoryBase {
const
i
=
this
.
findHistoryIndex
(
page
);
if
(
i
!==
-
1
)
{
this
.
historyList
.
splice
(
i
,
1
);
this
.
metaList
.
splice
(
i
,
1
);
}
}
...
...
@@ -119,6 +136,7 @@ export class AppNavHistoryBase {
*/
public
reset
():
void
{
this
.
historyList
.
splice
(
0
,
this
.
historyList
.
length
);
this
.
metaList
.
splice
(
0
,
this
.
metaList
.
length
);
}
/**
...
...
@@ -133,8 +151,8 @@ export class AppNavHistoryBase {
if
(
i
===
-
1
)
{
return
false
;
}
const
page
=
this
.
history
List
[
i
];
Object
.
assign
(
page
.
meta
,
{
caption
,
info
});
const
meta
=
this
.
meta
List
[
i
];
Object
.
assign
(
meta
,
{
caption
,
info
});
return
true
;
}
...
...
@@ -153,7 +171,6 @@ export class AppNavHistoryBase {
}
const
page
=
this
.
historyList
[
i
];
this
.
viewTagMap
.
set
(
page
.
fullPath
,
tag
);
console
.
log
(
this
.
viewTagMap
);
return
true
;
}
...
...
@@ -167,8 +184,12 @@ export class AppNavHistoryBase {
const
i
=
this
.
findHistoryIndex
(
page
);
if
(
i
!==
-
1
)
{
const
page
=
this
.
historyList
[
i
];
const
meta
=
this
.
metaList
[
i
];
this
.
historyList
.
splice
(
0
,
this
.
historyList
.
length
);
this
.
metaList
.
splice
(
0
,
this
.
metaList
.
length
);
this
.
historyList
.
push
(
page
);
this
.
metaList
.
push
(
meta
);
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录