Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
0ee58f30
提交
0ee58f30
编写于
7月 07, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
30db453a
变更
7
展开全部
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
847 行增加
和
443 行删除
+847
-443
account_en_US.ts
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
+36
-38
account_zh_CN.ts
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
+36
-41
account-ui-service-base.ts
app_CRM/src/uiservice/account/account-ui-service-base.ts
+0
-129
gradation-treegridex-base.tsx
...ccount/gradation-treegridex/gradation-treegridex-base.tsx
+3
-213
gradation-treegridex-model.ts
...ccount/gradation-treegridex/gradation-treegridex-model.ts
+0
-8
gradation-treegridex-service.ts
...ount/gradation-treegridex/gradation-treegridex-service.ts
+771
-8
gradation-treegridex.html
...ts/account/gradation-treegridex/gradation-treegridex.html
+1
-6
未找到文件。
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
浏览文件 @
0ee58f30
...
@@ -765,7 +765,29 @@ export default {
...
@@ -765,7 +765,29 @@ export default {
tip
:
"关闭"
,
tip
:
"关闭"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
treegridexviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
},
usablegridviewtoolbar_toolbar
:
{
tbitem1_openquickcreateview
:
{
tbitem1_openquickcreateview
:
{
caption
:
"新建"
,
caption
:
"新建"
,
tip
:
"新建"
,
tip
:
"新建"
,
...
@@ -802,34 +824,20 @@ export default {
...
@@ -802,34 +824,20 @@ export default {
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem19
:
{
tbitem14_inactive
:
{
caption
:
"Filter"
,
caption
:
"停用"
,
tip
:
"Filter"
,
tip
:
"停用"
,
},
},
treegridexviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
},
tbitem
7
:
{
tbitem
15
:
{
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem
8
:
{
tbitem
19
:
{
caption
:
"
Remove
"
,
caption
:
"
Filter
"
,
tip
:
"
Remove {0}
"
,
tip
:
"
Filter
"
,
},
},
},
},
usable
gridviewtoolbar_toolbar
:
{
stop
gridviewtoolbar_toolbar
:
{
tbitem1_openquickcreateview
:
{
tbitem1_openquickcreateview
:
{
caption
:
"新建"
,
caption
:
"新建"
,
tip
:
"新建"
,
tip
:
"新建"
,
...
@@ -866,9 +874,9 @@ export default {
...
@@ -866,9 +874,9 @@ export default {
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem14_
in
active
:
{
tbitem14_active
:
{
caption
:
"
停用
"
,
caption
:
"
激活
"
,
tip
:
"
停用
"
,
tip
:
"
激活
"
,
},
},
tbitem15
:
{
tbitem15
:
{
caption
:
"-"
,
caption
:
"-"
,
...
@@ -879,7 +887,7 @@ export default {
...
@@ -879,7 +887,7 @@ export default {
tip
:
"Filter"
,
tip
:
"Filter"
,
},
},
},
},
stop
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
tbitem1_openquickcreateview
:
{
tbitem1_openquickcreateview
:
{
caption
:
"新建"
,
caption
:
"新建"
,
tip
:
"新建"
,
tip
:
"新建"
,
...
@@ -916,14 +924,6 @@ export default {
...
@@ -916,14 +924,6 @@ export default {
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem14_active
:
{
caption
:
"激活"
,
tip
:
"激活"
,
},
tbitem15
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
tbitem19
:
{
caption
:
"Filter"
,
caption
:
"Filter"
,
tip
:
"Filter"
,
tip
:
"Filter"
,
...
@@ -931,11 +931,9 @@ export default {
...
@@ -931,11 +931,9 @@ export default {
},
},
gradation_treeview
:
{
gradation_treeview
:
{
nodes
:
{
nodes
:
{
root
:
"默认根节点"
,
},
},
uiactions
:
{
uiactions
:
{
account_openmaineditview
:
"编辑"
,
account_inactive
:
"停用"
,
account_remove
:
"删除"
,
},
},
},
},
};
};
\ No newline at end of file
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
浏览文件 @
0ee58f30
...
@@ -764,7 +764,29 @@ export default {
...
@@ -764,7 +764,29 @@ export default {
tip
:
"关闭"
,
tip
:
"关闭"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
treegridexviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
},
usablegridviewtoolbar_toolbar
:
{
tbitem1_openquickcreateview
:
{
tbitem1_openquickcreateview
:
{
caption
:
"新建"
,
caption
:
"新建"
,
tip
:
"新建"
,
tip
:
"新建"
,
...
@@ -801,34 +823,20 @@ export default {
...
@@ -801,34 +823,20 @@ export default {
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem19
:
{
tbitem14_inactive
:
{
caption
:
"过滤"
,
caption
:
"停用"
,
tip
:
"过滤"
,
tip
:
"停用"
,
},
},
treegridexviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
},
tbitem
7
:
{
tbitem
15
:
{
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem
8
:
{
tbitem
19
:
{
caption
:
"
删除
"
,
caption
:
"
过滤
"
,
tip
:
"
删除
"
,
tip
:
"
过滤
"
,
},
},
},
},
usable
gridviewtoolbar_toolbar
:
{
stop
gridviewtoolbar_toolbar
:
{
tbitem1_openquickcreateview
:
{
tbitem1_openquickcreateview
:
{
caption
:
"新建"
,
caption
:
"新建"
,
tip
:
"新建"
,
tip
:
"新建"
,
...
@@ -865,9 +873,9 @@ export default {
...
@@ -865,9 +873,9 @@ export default {
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem14_
in
active
:
{
tbitem14_active
:
{
caption
:
"
停用
"
,
caption
:
"
激活
"
,
tip
:
"
停用
"
,
tip
:
"
激活
"
,
},
},
tbitem15
:
{
tbitem15
:
{
caption
:
"-"
,
caption
:
"-"
,
...
@@ -878,7 +886,7 @@ export default {
...
@@ -878,7 +886,7 @@ export default {
tip
:
"过滤"
,
tip
:
"过滤"
,
},
},
},
},
stop
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
tbitem1_openquickcreateview
:
{
tbitem1_openquickcreateview
:
{
caption
:
"新建"
,
caption
:
"新建"
,
tip
:
"新建"
,
tip
:
"新建"
,
...
@@ -915,14 +923,6 @@ export default {
...
@@ -915,14 +923,6 @@ export default {
caption
:
"-"
,
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem14_active
:
{
caption
:
"激活"
,
tip
:
"激活"
,
},
tbitem15
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
tbitem19
:
{
caption
:
"过滤"
,
caption
:
"过滤"
,
tip
:
"过滤"
,
tip
:
"过滤"
,
...
@@ -930,18 +930,13 @@ export default {
...
@@ -930,18 +930,13 @@ export default {
},
},
gradation_treeview
:
{
gradation_treeview
:
{
nodes
:
{
nodes
:
{
root
:
"默认根节点"
,
},
},
uiactions
:
{
uiactions
:
{
account_openmaineditview
:
"编辑"
,
account_inactive
:
"停用"
,
account_remove
:
"删除"
,
},
},
},
},
gradation_treegridex
:
{
gradation_treegridex
:
{
uiactions
:
{
uiactions
:
{
account_openmaineditview
:
"编辑"
,
account_inactive
:
"停用"
,
account_remove
:
"删除"
,
},
},
},
},
};
};
\ No newline at end of file
app_CRM/src/uiservice/account/account-ui-service-base.ts
浏览文件 @
0ee58f30
...
@@ -382,135 +382,6 @@ export default class AccountUIServiceBase extends UIService {
...
@@ -382,135 +382,6 @@ export default class AccountUIServiceBase extends UIService {
backend
();
backend
();
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
Account_OpenMainEditView
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
account
:
'%account%'
});
Object
.
assign
(
params
,
{
accountid
:
'%account%'
});
Object
.
assign
(
params
,
{
accountname
:
'%accountname%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'accounts'
,
parameterName
:
'account'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
return
null
;
}
openIndexViewTab
(
data
);
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
Account_Remove
(
args
:
any
[],
context
:
any
=
{},
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
){
let
confirmResult
:
boolean
=
await
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
actionContext
.
$Modal
.
confirm
({
title
:
'警告'
,
content
:
'确认删除?'
,
onOk
:
()
=>
{
resolve
(
true
);},
onCancel
:
()
=>
{
resolve
(
false
);}
});
});
if
(
!
confirmResult
){
return
;
}
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
account
:
'%account%'
});
Object
.
assign
(
params
,
{
accountid
:
'%account%'
});
Object
.
assign
(
params
,
{
accountname
:
'%accountname%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
// 直接调实体服务需要转换的数据
if
(
context
&&
context
.
srfsessionid
){
context
.
srfsessionkey
=
context
.
srfsessionid
;
delete
context
.
srfsessionid
;
}
const
backend
=
()
=>
{
const
curService
:
AccountService
=
new
AccountService
();
curService
.
Remove
(
context
,
data
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
response
.
message
});
return
;
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'删除成功'
});
const
_this
:
any
=
actionContext
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
return
response
;
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
return
;
}
if
(
response
.
status
===
401
)
{
return
;
}
return
response
;
});
};
backend
();
}
/**
/**
* 编辑
* 编辑
*
*
...
...
app_CRM/src/widgets/account/gradation-treegridex/gradation-treegridex-base.tsx
浏览文件 @
0ee58f30
...
@@ -3,7 +3,6 @@ import { Subject, Subscription } from 'rxjs';
...
@@ -3,7 +3,6 @@ import { Subject, Subscription } from 'rxjs';
import
{
Watch
,
MainControlBase
}
from
'@/studio-core'
;
import
{
Watch
,
MainControlBase
}
from
'@/studio-core'
;
import
AccountService
from
'@/service/account/account-service'
;
import
AccountService
from
'@/service/account/account-service'
;
import
GradationService
from
'./gradation-treegridex-service'
;
import
GradationService
from
'./gradation-treegridex-service'
;
import
AccountUIService
from
'@/uiservice/account/account-ui-service'
;
/**
/**
...
@@ -49,218 +48,6 @@ export class GradationTreegridexBase extends MainControlBase {
...
@@ -49,218 +48,6 @@ export class GradationTreegridexBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'account'
;
protected
appDeName
:
string
=
'account'
;
/**
* childaccount_cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GradationTreegridexBase
*/
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
,
'deuiaction3'
))
{
this
.
childaccount_cm_deuiaction3_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 GradationTreegridexBase
*/
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
,
'deuiaction3'
))
{
this
.
rootaccount_cm_deuiaction3_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_deuiaction3_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_Inactive
(
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
];
}
// 界面行为
const
curUIService
:
AccountUIService
=
new
AccountUIService
();
curUIService
.
Account_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_deuiaction3_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_Inactive
(
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
];
}
// 界面行为
const
curUIService
:
AccountUIService
=
new
AccountUIService
();
curUIService
.
Account_Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Account"
);
}
/**
/**
* 显示处理提示
* 显示处理提示
*
*
...
@@ -331,6 +118,9 @@ export class GradationTreegridexBase extends MainControlBase {
...
@@ -331,6 +118,9 @@ export class GradationTreegridexBase extends MainControlBase {
* @memberof Gradation
* @memberof Gradation
*/
*/
public
getColumnValue
(
task
:
any
,
field
:
string
)
{
public
getColumnValue
(
task
:
any
,
field
:
string
)
{
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'ROOT'
))
{
return
task
[
field
];
}
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'RootAccount'
))
{
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'RootAccount'
))
{
return
task
[
field
];
return
task
[
field
];
}
}
...
...
app_CRM/src/widgets/account/gradation-treegridex/gradation-treegridex-model.ts
浏览文件 @
0ee58f30
...
@@ -52,10 +52,6 @@ export default class GradationModel {
...
@@ -52,10 +52,6 @@ export default class GradationModel {
name
:
'id'
,
name
:
'id'
,
prop
:
'accountid'
prop
:
'accountid'
},
},
{
name
:
'telephone1'
,
prop
:
'telephone1'
},
{
{
name
:
'accountname'
,
name
:
'accountname'
,
prop
:
'accountname'
prop
:
'accountname'
...
@@ -72,10 +68,6 @@ export default class GradationModel {
...
@@ -72,10 +68,6 @@ export default class GradationModel {
name
:
'accountname'
,
name
:
'accountname'
,
prop
:
'accountname'
prop
:
'accountname'
},
},
{
name
:
'telephone1'
,
prop
:
'telephone1'
},
];
];
break
;
break
;
}
}
...
...
app_CRM/src/widgets/account/gradation-treegridex/gradation-treegridex-service.ts
浏览文件 @
0ee58f30
此差异已折叠。
点击以展开。
app_CRM/src/widgets/account/gradation-treegridex/gradation-treegridex.html
浏览文件 @
0ee58f30
...
@@ -10,14 +10,9 @@
...
@@ -10,14 +10,9 @@
:select-on-indeterminate=
"isSingleSelect"
:select-on-indeterminate=
"isSingleSelect"
@
current-change=
"select.apply(_self, arguments)"
@
current-change=
"select.apply(_self, arguments)"
>
>
<el-table-column
show-overflow-tooltip
prop=
"accountname"
label=
"
客户名称
"
:width=
"50"
:align=
"''"
>
<el-table-column
show-overflow-tooltip
prop=
"accountname"
label=
""
:width=
"50"
:align=
"''"
>
<template
v-slot=
"{ row }"
>
<template
v-slot=
"{ row }"
>
<span>
{{ getColumnValue(row, 'accountname') }}
</span>
<span>
{{ getColumnValue(row, 'accountname') }}
</span>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"telephone1"
label=
"主要电话"
:width=
"100"
:align=
"''"
>
<template
v-slot=
"{ row }"
>
<span>
{{ getColumnValue(row, 'telephone1') }}
</span>
</template>
</el-table-column>
</el-table>
</el-table>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录