Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
721260ee
提交
721260ee
编写于
7月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 部署微服务应用
上级
33839d8e
变更
28
显示空白字符变更
内嵌
并排
正在显示
28 个修改的文件
包含
673 行增加
和
40 行删除
+673
-40
view-config.json
app_WebSite/public/assets/json/view-config.json
+4
-4
web-site-channel_en_US.ts
...anres/entities/web-site-channel/web-site-channel_en_US.ts
+5
-1
web-site-channel_zh_CN.ts
...anres/entities/web-site-channel/web-site-channel_zh_CN.ts
+5
-1
web-site-content_en_US.ts
...anres/entities/web-site-content/web-site-content_en_US.ts
+5
-1
web-site-content_zh_CN.ts
...anres/entities/web-site-content/web-site-content_zh_CN.ts
+5
-1
web-site-resource_en_US.ts
...res/entities/web-site-resource/web-site-resource_en_US.ts
+5
-1
web-site-resource_zh_CN.ts
...res/entities/web-site-resource/web-site-resource_zh_CN.ts
+5
-1
web-site_en_US.ts
...ite/src/locale/lanres/entities/web-site/web-site_en_US.ts
+5
-1
web-site_zh_CN.ts
...ite/src/locale/lanres/entities/web-site/web-site_zh_CN.ts
+5
-1
viewconfig.ts
app_WebSite/src/mock/viewconfig/viewconfig.ts
+4
-4
web-site-channel-edit-view-base.tsx
...ite-channel-edit-view/web-site-channel-edit-view-base.tsx
+1
-1
web-site-channel-edit-view.html
...eb-site-channel-edit-view/web-site-channel-edit-view.html
+1
-1
web-site-channel-edit-view.vue
...web-site-channel-edit-view/web-site-channel-edit-view.vue
+1
-1
web-site-channel-grid-view-base.tsx
...ite-channel-grid-view/web-site-channel-grid-view-base.tsx
+151
-0
web-site-content-edit-view-base.tsx
...ite-content-edit-view/web-site-content-edit-view-base.tsx
+1
-1
web-site-content-edit-view.html
...eb-site-content-edit-view/web-site-content-edit-view.html
+1
-1
web-site-content-edit-view.vue
...web-site-content-edit-view/web-site-content-edit-view.vue
+1
-1
web-site-content-grid-view-base.tsx
...ite-content-grid-view/web-site-content-grid-view-base.tsx
+151
-0
web-site-edit-view-base.tsx
...s/web-site/web-site-edit-view/web-site-edit-view-base.tsx
+1
-1
web-site-edit-view.html
...pages/web-site/web-site-edit-view/web-site-edit-view.html
+1
-1
web-site-edit-view.vue
.../pages/web-site/web-site-edit-view/web-site-edit-view.vue
+1
-1
web-site-grid-view-base.tsx
...s/web-site/web-site-grid-view/web-site-grid-view-base.tsx
+151
-0
web-site-grid-view.html
...pages/web-site/web-site-grid-view/web-site-grid-view.html
+0
-3
web-site-resource-edit-view-base.tsx
...e-resource-edit-view/web-site-resource-edit-view-base.tsx
+1
-1
web-site-resource-edit-view.html
...-site-resource-edit-view/web-site-resource-edit-view.html
+1
-1
web-site-resource-edit-view.vue
...b-site-resource-edit-view/web-site-resource-edit-view.vue
+1
-1
web-site-resource-grid-view-base.tsx
...e-resource-grid-view/web-site-resource-grid-view-base.tsx
+151
-0
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+9
-9
未找到文件。
app_WebSite/public/assets/json/view-config.json
浏览文件 @
721260ee
...
...
@@ -20,7 +20,7 @@
"memo"
:
""
},
"websitecontenteditview"
:
{
"title"
:
"
内容编辑视图
"
,
"title"
:
"
站点内容
"
,
"caption"
:
"站点内容"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
@@ -30,7 +30,7 @@
"memo"
:
"系统自动添加"
},
"websiteresourceeditview"
:
{
"title"
:
"
网站资源编辑视图
"
,
"title"
:
"
站点资源
"
,
"caption"
:
"站点资源"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
@@ -40,7 +40,7 @@
"memo"
:
"系统自动添加"
},
"websiteeditview"
:
{
"title"
:
"
实体编辑视图
"
,
"title"
:
"
站点
"
,
"caption"
:
"站点"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
@@ -50,7 +50,7 @@
"memo"
:
"系统自动添加"
},
"websitechanneleditview"
:
{
"title"
:
"
频道编辑视图
"
,
"title"
:
"
站点频道
"
,
"caption"
:
"站点频道"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-channel/web-site-channel_en_US.ts
浏览文件 @
721260ee
...
...
@@ -24,7 +24,7 @@ export default {
},
editview
:
{
caption
:
"站点频道"
,
title
:
"
频道编辑视图
"
,
title
:
"
站点频道
"
,
},
},
main_form
:
{
...
...
@@ -68,6 +68,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-channel/web-site-channel_zh_CN.ts
浏览文件 @
721260ee
...
...
@@ -23,7 +23,7 @@ export default {
},
editview
:
{
caption
:
"站点频道"
,
title
:
"
频道编辑视图
"
,
title
:
"
站点频道
"
,
},
},
main_form
:
{
...
...
@@ -67,6 +67,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-content/web-site-content_en_US.ts
浏览文件 @
721260ee
...
...
@@ -25,7 +25,7 @@ export default {
views
:
{
editview
:
{
caption
:
"站点内容"
,
title
:
"
内容编辑视图
"
,
title
:
"
站点内容
"
,
},
gridview
:
{
caption
:
"站点内容"
,
...
...
@@ -112,6 +112,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-content/web-site-content_zh_CN.ts
浏览文件 @
721260ee
...
...
@@ -24,7 +24,7 @@ export default {
views
:
{
editview
:
{
caption
:
"站点内容"
,
title
:
"
内容编辑视图
"
,
title
:
"
站点内容
"
,
},
gridview
:
{
caption
:
"站点内容"
,
...
...
@@ -111,6 +111,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-resource/web-site-resource_en_US.ts
浏览文件 @
721260ee
...
...
@@ -17,7 +17,7 @@ export default {
},
editview
:
{
caption
:
"站点资源"
,
title
:
"
网站资源编辑视图
"
,
title
:
"
站点资源
"
,
},
},
main_form
:
{
...
...
@@ -53,6 +53,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-resource/web-site-resource_zh_CN.ts
浏览文件 @
721260ee
...
...
@@ -16,7 +16,7 @@ export default {
},
editview
:
{
caption
:
"站点资源"
,
title
:
"
网站资源编辑视图
"
,
title
:
"
站点资源
"
,
},
},
main_form
:
{
...
...
@@ -52,6 +52,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site/web-site_en_US.ts
浏览文件 @
721260ee
...
...
@@ -14,7 +14,7 @@ export default {
views
:
{
editview
:
{
caption
:
"站点"
,
title
:
"
实体编辑视图
"
,
title
:
"
站点
"
,
},
gridview
:
{
caption
:
"站点"
,
...
...
@@ -105,6 +105,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site/web-site_zh_CN.ts
浏览文件 @
721260ee
...
...
@@ -13,7 +13,7 @@ export default {
views
:
{
editview
:
{
caption
:
"站点"
,
title
:
"
实体编辑视图
"
,
title
:
"
站点
"
,
},
gridview
:
{
caption
:
"站点"
,
...
...
@@ -104,6 +104,10 @@ export default {
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
...
...
app_WebSite/src/mock/viewconfig/viewconfig.ts
浏览文件 @
721260ee
...
...
@@ -24,7 +24,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"3aae044bf3c4e3a671ad89955fd060a4"
},
"websitecontenteditview"
:
{
"title"
:
"
内容编辑视图
"
,
"title"
:
"
站点内容
"
,
"caption"
:
"站点内容"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
@@ -32,7 +32,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"4c92892c16cb5a6470428de20126ccbf"
},
"websiteresourceeditview"
:
{
"title"
:
"
网站资源编辑视图
"
,
"title"
:
"
站点资源
"
,
"caption"
:
"站点资源"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
@@ -40,7 +40,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"522fbb98f1202b6544acbd2b91c542ef"
},
"websiteeditview"
:
{
"title"
:
"
实体编辑视图
"
,
"title"
:
"
站点
"
,
"caption"
:
"站点"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
@@ -48,7 +48,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"97f41e16790401fccbc7d297a6e37e93"
},
"websitechanneleditview"
:
{
"title"
:
"
频道编辑视图
"
,
"title"
:
"
站点频道
"
,
"caption"
:
"站点频道"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"WebSite"
,
...
...
app_WebSite/src/pages/web-site/web-site-channel-edit-view/web-site-channel-edit-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -4,7 +4,7 @@ import WebSiteChannelService from '@/service/web-site-channel/web-site-channel-s
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
/**
*
频道编辑视图
视图基类
*
站点频道
视图基类
*
* @export
* @class WebSiteChannelEditViewBase
...
...
app_WebSite/src/pages/web-site/web-site-channel-edit-view/web-site-channel-edit-view.html
浏览文件 @
721260ee
<studio-view-style2
viewName=
"websitechanneleditview"
viewTitle=
"
频道编辑视图
"
class=
'deeditview web-site-channel-edit-view'
>
<studio-view-style2
viewName=
"websitechanneleditview"
viewTitle=
"
站点频道
"
class=
'deeditview web-site-channel-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
...
...
app_WebSite/src/pages/web-site/web-site-channel-edit-view/web-site-channel-edit-view.vue
浏览文件 @
721260ee
...
...
@@ -6,7 +6,7 @@ import { WebSiteChannelEditViewBase } from './web-site-channel-edit-view-base';
import view_form from '@widgets/web-site-channel/main-form/main-form.vue';
/**
*
频道编辑视图
视图
*
站点频道
视图
*
* @export
* @class WebSiteChannelEditView
...
...
app_WebSite/src/pages/web-site/web-site-channel-grid-view/web-site-channel-grid-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -67,6 +67,8 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
* @memberof WebSiteChannelGridView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem6
:
{
name
:
'tbitem6'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
...
...
@@ -134,12 +136,21 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
* @memberof WebSiteChannelGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
toolbar_tbitem6_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
...
...
@@ -242,6 +253,34 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
...
...
@@ -298,6 +337,62 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
...
...
@@ -490,6 +585,26 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
...
...
@@ -548,6 +663,42 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
newRow
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
...
...
app_WebSite/src/pages/web-site/web-site-content-edit-view/web-site-content-edit-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -4,7 +4,7 @@ import WebSiteContentService from '@/service/web-site-content/web-site-content-s
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
/**
*
内容编辑视图
视图基类
*
站点内容
视图基类
*
* @export
* @class WebSiteContentEditViewBase
...
...
app_WebSite/src/pages/web-site/web-site-content-edit-view/web-site-content-edit-view.html
浏览文件 @
721260ee
<studio-view-style2
viewName=
"websitecontenteditview"
viewTitle=
"
内容编辑视图
"
class=
'deeditview web-site-content-edit-view'
>
<studio-view-style2
viewName=
"websitecontenteditview"
viewTitle=
"
站点内容
"
class=
'deeditview web-site-content-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
...
...
app_WebSite/src/pages/web-site/web-site-content-edit-view/web-site-content-edit-view.vue
浏览文件 @
721260ee
...
...
@@ -6,7 +6,7 @@ import { WebSiteContentEditViewBase } from './web-site-content-edit-view-base';
import view_form from '@widgets/web-site-content/main-form/main-form.vue';
/**
*
内容编辑视图
视图
*
站点内容
视图
*
* @export
* @class WebSiteContentEditView
...
...
app_WebSite/src/pages/web-site/web-site-content-grid-view/web-site-content-grid-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -67,6 +67,8 @@ export class WebSiteContentGridViewBase extends GridViewBase {
* @memberof WebSiteContentGridView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem6
:
{
name
:
'tbitem6'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
...
...
@@ -134,12 +136,21 @@ export class WebSiteContentGridViewBase extends GridViewBase {
* @memberof WebSiteContentGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
toolbar_tbitem6_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
...
...
@@ -242,6 +253,34 @@ export class WebSiteContentGridViewBase extends GridViewBase {
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
...
...
@@ -298,6 +337,62 @@ export class WebSiteContentGridViewBase extends GridViewBase {
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
...
...
@@ -490,6 +585,26 @@ export class WebSiteContentGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
...
...
@@ -548,6 +663,42 @@ export class WebSiteContentGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
newRow
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
...
...
app_WebSite/src/pages/web-site/web-site-edit-view/web-site-edit-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -4,7 +4,7 @@ import WebSiteService from '@/service/web-site/web-site-service';
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
/**
*
实体编辑视图
视图基类
*
站点
视图基类
*
* @export
* @class WebSiteEditViewBase
...
...
app_WebSite/src/pages/web-site/web-site-edit-view/web-site-edit-view.html
浏览文件 @
721260ee
<studio-view-style2
viewName=
"websiteeditview"
viewTitle=
"
实体编辑视图
"
class=
'deeditview web-site-edit-view'
>
<studio-view-style2
viewName=
"websiteeditview"
viewTitle=
"
站点
"
class=
'deeditview web-site-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
...
...
app_WebSite/src/pages/web-site/web-site-edit-view/web-site-edit-view.vue
浏览文件 @
721260ee
...
...
@@ -6,7 +6,7 @@ import { WebSiteEditViewBase } from './web-site-edit-view-base';
import view_form from '@widgets/web-site/main-form/main-form.vue';
/**
*
实体编辑视图
视图
*
站点
视图
*
* @export
* @class WebSiteEditView
...
...
app_WebSite/src/pages/web-site/web-site-grid-view/web-site-grid-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -67,6 +67,8 @@ export class WebSiteGridViewBase extends GridViewBase {
* @memberof WebSiteGridView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem6
:
{
name
:
'tbitem6'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
...
...
@@ -134,12 +136,21 @@ export class WebSiteGridViewBase extends GridViewBase {
* @memberof WebSiteGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
toolbar_tbitem6_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
...
...
@@ -242,6 +253,34 @@ export class WebSiteGridViewBase extends GridViewBase {
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
...
...
@@ -298,6 +337,62 @@ export class WebSiteGridViewBase extends GridViewBase {
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
...
...
@@ -480,6 +575,26 @@ export class WebSiteGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
...
...
@@ -538,6 +653,42 @@ export class WebSiteGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
newRow
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
...
...
app_WebSite/src/pages/web-site/web-site-grid-view/web-site-grid-view.html
浏览文件 @
721260ee
<studio-view-style2
viewName=
"websitegridview"
viewTitle=
"站点"
class=
'degridview web-site-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
...
...
app_WebSite/src/pages/web-site/web-site-resource-edit-view/web-site-resource-edit-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -4,7 +4,7 @@ import WebSiteResourceService from '@/service/web-site-resource/web-site-resourc
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
/**
*
网站资源编辑视图
视图基类
*
站点资源
视图基类
*
* @export
* @class WebSiteResourceEditViewBase
...
...
app_WebSite/src/pages/web-site/web-site-resource-edit-view/web-site-resource-edit-view.html
浏览文件 @
721260ee
<studio-view-style2
viewName=
"websiteresourceeditview"
viewTitle=
"
网站资源编辑视图
"
class=
'deeditview web-site-resource-edit-view'
>
<studio-view-style2
viewName=
"websiteresourceeditview"
viewTitle=
"
站点资源
"
class=
'deeditview web-site-resource-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
...
...
app_WebSite/src/pages/web-site/web-site-resource-edit-view/web-site-resource-edit-view.vue
浏览文件 @
721260ee
...
...
@@ -6,7 +6,7 @@ import { WebSiteResourceEditViewBase } from './web-site-resource-edit-view-base'
import view_form from '@widgets/web-site-resource/main-form/main-form.vue';
/**
*
网站资源编辑视图
视图
*
站点资源
视图
*
* @export
* @class WebSiteResourceEditView
...
...
app_WebSite/src/pages/web-site/web-site-resource-grid-view/web-site-resource-grid-view-base.tsx
浏览文件 @
721260ee
...
...
@@ -67,6 +67,8 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
* @memberof WebSiteResourceGridView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem6
:
{
name
:
'tbitem6'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
...
...
@@ -134,12 +136,21 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
* @memberof WebSiteResourceGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
toolbar_tbitem6_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
...
...
@@ -242,6 +253,34 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
...
...
@@ -298,6 +337,62 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_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
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
...
...
@@ -490,6 +585,26 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
...
...
@@ -548,6 +663,42 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
newRow
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
...
...
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
721260ee
...
...
@@ -10853,7 +10853,7 @@
<!--输出实体[WEBSITE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-website-2
3
-128"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-website-2
7
-128"
>
<createTable
tableName=
"WEBSITE"
>
<column
name=
"WEBSITENAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -10879,7 +10879,7 @@
<!--输出实体[WEBSITECHANNEL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitechannel-
34
-129"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitechannel-
41
-129"
>
<createTable
tableName=
"WEBSITECHANNEL"
>
<column
name=
"WEBSITECHANNELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITECHANNEL_WEBSITECHANN"
/>
...
...
@@ -10913,7 +10913,7 @@
<!--输出实体[WEBSITECONTENT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitecontent-3
4
-130"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitecontent-3
7
-130"
>
<createTable
tableName=
"WEBSITECONTENT"
>
<column
name=
"WEBSITECONTENTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITECONTENT_WEBSITECONTE"
/>
...
...
@@ -10957,7 +10957,7 @@
<!--输出实体[WEBSITERESOURCE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websiteresource-1
5
-131"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websiteresource-1
7
-131"
>
<createTable
tableName=
"WEBSITERESOURCE"
>
<column
name=
"WEBSITERESOURCEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITERESOURCE_WEBSITERESO"
/>
...
...
@@ -11904,21 +11904,21 @@
<!--输出实体[UOMSCHEDULE]外键关系 -->
<!--输出实体[WEBSITE]外键关系 -->
<!--输出实体[WEBSITECHANNEL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-
34
-427"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-
41
-427"
>
<addForeignKeyConstraint
baseColumnNames=
"PWEBSITECHANNELID"
baseTableName=
"WEBSITECHANNEL"
constraintName=
"DER1N_WEBSITECHANNEL_WEBSITECH"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITECHANNELID"
referencedTableName=
"WEBSITECHANNEL"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-
34
-428"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-
41
-428"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITECHANNEL"
constraintName=
"DER1N_WEBSITECHANNEL_WEBSITE_W"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
</changeSet>
<!--输出实体[WEBSITECONTENT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-3
4
-429"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-3
7
-429"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITECHANNELID"
baseTableName=
"WEBSITECONTENT"
constraintName=
"DER1N_WEBSITECONTENT_WEBSITECH"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITECHANNELID"
referencedTableName=
"WEBSITECHANNEL"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-3
4
-430"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-3
7
-430"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITECONTENT"
constraintName=
"DER1N_WEBSITECONTENT_WEBSITE_W"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
</changeSet>
<!--输出实体[WEBSITERESOURCE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websiteresource-1
5
-431"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websiteresource-1
7
-431"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITERESOURCE"
constraintName=
"DER1N_WEBSITERESOURCE_WEBSITE_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
</changeSet>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录