Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
1a96081d
提交
1a96081d
编写于
6月 22, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
1c081bf8
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
234 行增加
和
9 行删除
+234
-9
account_en_US.ts
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
+2
-0
account_zh_CN.ts
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
+2
-0
page-register.ts
app_CRM/src/pages/ungroup/central/page-register.ts
+1
-1
router.ts
app_CRM/src/pages/ungroup/central/router.ts
+8
-8
state.ts
app_CRM/src/store/modules/view-action/state.ts
+1
-0
account-treeview-base.vue
...idgets/account/account-treeview/account-treeview-base.vue
+220
-0
未找到文件。
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
浏览文件 @
1a96081d
...
...
@@ -710,6 +710,8 @@ export default {
root
:
'全部客户'
,
},
uiactions
:
{
openmaineditview
:
"编辑"
,
remove
:
"Remove"
,
},
},
};
\ No newline at end of file
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
浏览文件 @
1a96081d
...
...
@@ -709,6 +709,8 @@ export default {
root
:
'全部客户'
,
},
uiactions
:
{
openmaineditview
:
'编辑'
,
remove
:
'删除'
,
},
},
};
\ No newline at end of file
app_CRM/src/pages/ungroup/central/page-register.ts
浏览文件 @
1a96081d
...
...
@@ -17,8 +17,8 @@ export const PageComponents = {
Vue
.
component
(
'contact-info-person'
,
()
=>
import
(
'@pages/base/contact-info-person/contact-info-person.vue'
));
Vue
.
component
(
'campaign-info-schedule'
,
()
=>
import
(
'@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'
));
Vue
.
component
(
'opportunity-grid-view'
,
()
=>
import
(
'@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'
));
Vue
.
component
(
'goal-edit-view'
,
()
=>
import
(
'@pages/sales/goal-edit-view/goal-edit-view.vue'
));
Vue
.
component
(
'letter-edit-view'
,
()
=>
import
(
'@pages/base/letter-edit-view/letter-edit-view.vue'
));
Vue
.
component
(
'goal-edit-view'
,
()
=>
import
(
'@pages/sales/goal-edit-view/goal-edit-view.vue'
));
Vue
.
component
(
'transaction-currency-pickup-view'
,
()
=>
import
(
'@pages/base/transaction-currency-pickup-view/transaction-currency-pickup-view.vue'
));
Vue
.
component
(
'opportunity-product-edit-view'
,
()
=>
import
(
'@pages/sales/opportunity-product-edit-view/opportunity-product-edit-view.vue'
));
Vue
.
component
(
'email-edit-view'
,
()
=>
import
(
'@pages/base/email-edit-view/email-edit-view.vue'
));
...
...
app_CRM/src/pages/ungroup/central/router.ts
浏览文件 @
1a96081d
...
...
@@ -535,32 +535,32 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'
),
},
{
path
:
'
goals/:goal
?/editview/:editview?'
,
path
:
'
letters/:letter
?/editview/:editview?'
,
meta
:
{
caption
:
'entities.
goal
.views.editview.title'
,
caption
:
'entities.
letter
.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'central'
,
parameterName
:
'central'
},
{
pathName
:
'
goals'
,
parameterName
:
'goal
'
},
{
pathName
:
'
letters'
,
parameterName
:
'letter
'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/
sales/goal-edit-view/goal
-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/
base/letter-edit-view/letter
-edit-view.vue'
),
},
{
path
:
'
letters/:letter
?/editview/:editview?'
,
path
:
'
goals/:goal
?/editview/:editview?'
,
meta
:
{
caption
:
'entities.
letter
.views.editview.title'
,
caption
:
'entities.
goal
.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'central'
,
parameterName
:
'central'
},
{
pathName
:
'
letters'
,
parameterName
:
'letter
'
},
{
pathName
:
'
goals'
,
parameterName
:
'goal
'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/
base/letter-edit-view/letter
-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/
sales/goal-edit-view/goal
-edit-view.vue'
),
},
{
path
:
'transactioncurrencies/:transactioncurrency?/pickupview/:pickupview?'
,
...
...
app_CRM/src/store/modules/view-action/state.ts
浏览文件 @
1a96081d
...
...
@@ -614,6 +614,7 @@ export const viewstate: any = {
viewdatachange
:
false
,
refviews
:
[
'5c7e90ccfaeb49b5bd84ae6c17b479e3'
,
'6e18ac74e5685439110f9b4e534ee005'
,
],
},
{
...
...
app_CRM/src/widgets/account/account-treeview/account-treeview-base.vue
浏览文件 @
1a96081d
...
...
@@ -56,6 +56,7 @@ import { UIActionTool,Util } from '@/utils';
import
AccountService
from
'@/service/account/account-service'
;
import
AccountService
from
'./account-treeview-service'
;
import
AccountUIService
from
'@/uiservice/account/account-ui-service'
;
@
Component
({
...
...
@@ -142,6 +143,171 @@ export default class AccountBase extends Vue implements ControlInterface {
*/
public
appEntityService
:
AccountService
=
new
AccountService
({
$store
:
this
.
$store
});
/**
* childaccount_cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Account
*/
public
childaccount_cm_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
childaccount_cm_deuiaction1_click
(
null
,
'childaccount_cm'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
childaccount_cm_deuiaction2_click
(
null
,
'childaccount_cm'
,
$event2
);
}
}
/**
* rootaccount_cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Account
*/
public
rootaccount_cm_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
rootaccount_cm_deuiaction1_click
(
null
,
'rootaccount_cm'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
rootaccount_cm_deuiaction2_click
(
null
,
'rootaccount_cm'
,
$event2
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
rootaccount_cm_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
AccountUIService
=
new
AccountUIService
();
curUIService
.
Account_OpenMainEditView
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Account"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
rootaccount_cm_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Account"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
childaccount_cm_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
AccountUIService
=
new
AccountUIService
();
curUIService
.
Account_OpenMainEditView
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Account"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
childaccount_cm_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Account"
);
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountGradationBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
remove
instanceof
Function
))
{
return
;
}
xData
.
remove
(
args
);
}
/**
...
...
@@ -712,10 +878,64 @@ export default class AccountBase extends Vue implements ControlInterface {
const
data
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
node
.
data
));
this
.
currentselectedNode
=
{
...
data
};
const
tags
:
string
[]
=
data
.
id
.
split
(
';'
);
if
(
tags
[
0
]
===
"ChildAccount"
)
{
content
=
this
.
renderContextMenuChildaccount
();
}
if
(
tags
[
0
]
===
"RootAccount"
)
{
content
=
this
.
renderContextMenuRootaccount
();
}
}
return
content
;
}
/**
* 绘制ChildAccount类型右键菜单
*
* @param {*} node
* @returns
* @memberof Account
*/
public
renderContextMenuChildaccount
()
{
return
(
<
dropdown
class
=
"tree-right-menu"
trigger
=
"custom"
visible
=
{
true
}
on
-
on
-
click
=
{(
$event
:
any
)
=>
this
.
childaccount_cm_click
({
tag
:
$event
})}
>
<
dropdown
-
menu
slot
=
"list"
>
<
dropdown
-
item
name
=
"deuiaction1"
>
<
i
class
=
'fa fa-edit'
><
/i>
编辑
<
/dropdown-item>
<
dropdown
-
item
name
=
"deuiaction2"
>
<
i
class
=
'fa fa-remove'
><
/i>
删除
<
/dropdown-item>
<
/dropdown-menu>
<
/dropdown>
);
}
/**
* 绘制RootAccount类型右键菜单
*
* @param {*} node
* @returns
* @memberof Account
*/
public
renderContextMenuRootaccount
()
{
return
(
<
dropdown
class
=
"tree-right-menu"
trigger
=
"custom"
visible
=
{
true
}
on
-
on
-
click
=
{(
$event
:
any
)
=>
this
.
rootaccount_cm_click
({
tag
:
$event
})}
>
<
dropdown
-
menu
slot
=
"list"
>
<
dropdown
-
item
name
=
"deuiaction1"
>
<
i
class
=
'fa fa-edit'
><
/i>
编辑
<
/dropdown-item>
<
dropdown
-
item
name
=
"deuiaction2"
>
<
i
class
=
'fa fa-remove'
><
/i>
删除
<
/dropdown-item>
<
/dropdown-menu>
<
/dropdown>
);
}
/**
* 设置选中高亮
*
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录