Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
423d8692
提交
423d8692
编写于
12月 22, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 插件注释
上级
be4f4363
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
96 行增加
和
96 行删除
+96
-96
ibizbook-service-base.ts
app_Web/src/service/ibizbook/ibizbook-service-base.ts
+2
-2
ibizorder-ui-service-base.ts
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
+1
-1
plugin-grid-base.vue
...Web/src/widgets/ibizbook/plugin-grid/plugin-grid-base.vue
+64
-64
usr1206025757-form-base.vue
...s/ibizbook/usr1206025757-form/usr1206025757-form-base.vue
+29
-29
未找到文件。
app_Web/src/service/ibizbook/ibizbook-service-base.ts
浏览文件 @
423d8692
...
...
@@ -126,8 +126,8 @@ export default class IBIZBOOKServiceBase extends EntityService {
return
res
;
}
alert
(
Math
.
random
());
return
{
ok
:
true
,
data
:
[]
};
// alert(Math.random());
//
return { ok: true, data: [] };
/**
* Init接口方法
...
...
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
浏览文件 @
423d8692
...
...
@@ -608,7 +608,7 @@ export default class IBIZOrderUIServiceBase extends UIService {
window
.
open
(
url
,
'_blank'
);
return
{
ok
:
true
,
result
:
_args
};
}
const
url
=
`https://www.baidu.com/s?wd=
${
context
.
nameparam
}${
viewParams
.
param2
}
`
;
const
url
=
`https://www.baidu.com/s?wd=`
;
return
openPopupApp
(
url
);
}
...
...
app_Web/src/widgets/ibizbook/plugin-grid/plugin-grid-base.vue
浏览文件 @
423d8692
<
template
>
<div
:class=
"classNames"
:id=
"controlID"
style=
""
>
<a-form
class=
"control-content"
>
<
AppGrid
:columns=
"model.columns"
:items=
"store.data"
:singleSelect=
"singleSelect"
:selections=
"store.selections"
:showHeader=
"model.showHeader"
:current=
"store.curPage"
:limit=
"store.limit"
:totalRecord=
"store.totalRecord"
:context=
"store.context"
:viewParams=
"store.viewParams"
:enableRowEdit=
"model.enableRowEdit"
:paging=
"model.paging"
@
row-click=
"handleRowClick"
@
row-db-click=
"handleRowDbClick"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"(field: string, dir: '' | 'asc' | 'desc') => handleSortChange(controller, field, dir)"
@
page-change=
"(currentPage: number) => handlePageChange(controller, currentPage)"
@
page-size-change=
"(pageSize: number) => handlePageSizeChange(controller, pageSize)"
@
action-click=
"(logic: any, data: IParam, event: MouseEvent) => handleActionClick(controller, logic as IViewLogicInput, data, event)"
>
</AppGrid>
</a-form>
<div
:class=
"classNames"
:id=
"controlID"
style=
""
>
<a-form
class=
"control-content"
>
<
!--
<AppGrid
:columns=
"model.columns"
:items=
"store.data"
:singleSelect=
"singleSelect"
:selections=
"store.selections"
:showHeader=
"model.showHeader"
:current=
"store.curPage"
:limit=
"store.limit"
:totalRecord=
"store.totalRecord"
:context=
"store.context"
:viewParams=
"store.viewParams"
:enableRowEdit=
"model.enableRowEdit"
:paging=
"model.paging"
@
row-click=
"handleRowClick"
@
row-db-click=
"handleRowDbClick"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"(field: string, dir: '' | 'asc' | 'desc') => handleSortChange(controller, field, dir)"
@
page-change=
"(currentPage: number) => handlePageChange(controller, currentPage)"
@
page-size-change=
"(pageSize: number) => handlePageSizeChange(controller, pageSize)"
@
action-click=
"(logic: any, data: IParam, event: MouseEvent) => handleActionClick(controller, logic as IViewLogicInput, data, event)"
>
</AppGrid>
-->
</a-form>
</div>
</
template
>
// 基于 @CONTROL/表格/CONTROL-BASE.vue.ftl 生成
...
...
@@ -217,45 +217,45 @@ export default class PluginBase extends Vue implements ControlInterface {
}
import
{
AppGrid
}
from
"@components/widgets/grid"
;
import
{
IContext
,
IParam
,
IViewLogicInput
}
from
"@/core"
;
import
{
GridActionType
,
ICtrlDataAction
,
IGridAbility
,
IGridControllerParams
,
IGridStore
,
GridController
,
ILoadingHelper
,
LoadingHelper
,
createUUID
,
IViewCtx
}
from
"@/core"
;
import
{
handlePageChange
,
handlePageSizeChange
,
handleSortChange
,
handleComponentAction
}
from
'@/hooks/use-ctrl'
;
import
{
useNavParamsBind
,
useEventBind
,
handleActionClick
,
getCtrlClassNames
}
from
'@/hooks/use-ctrl'
;
import
GridService
from
"@/core/modules/ctrl-service/grid-service"
;
interface
Props
{
name
?:
string
;
context
:
IContext
;
viewParams
:
IParam
;
localContext
?:
IParam
,
localViewParams
?:
IParam
,
closeView
?:
Function
;
pLoadingHelper
?:
ILoadingHelper
;
pViewCtx
?:
IViewCtx
;
openView
?:
Function
;
newView
?:
Function
;
actions
:
ICtrlDataAction
;
singleSelect
?:
boolean
;
selectFirstDefault
?:
boolean
;
rowActiveMode
?:
0
|
1
|
2
;
defaultEnableRowEdit
?:
boolean
;
controller
:
GridController
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
singleSelect
:
false
,
rowActiveMode
:
2
});
const
model
:
IParam
=
props
.
controller
.
getModel
();
const
store
=
props
.
controller
.
getStore
();
const
classNames
=
computed
(()
=>
{
const
names
=
getCtrlClassNames
(
model
,
props
);
Object
.
assign
(
names
,
{
"app-control-grid--no-paging-bar"
:
model
.
enablePagingBar
,
"red-grid-header"
:
true
});
return
names
;
});
// import { AppGrid } from "@components/widgets/grid";
// import { IContext, IParam, IViewLogicInput } from "@/core";
// import { GridActionType, ICtrlDataAction, IGridAbility, IGridControllerParams, IGridStore, GridController, ILoadingHelper, LoadingHelper, createUUID, IViewCtx } from "@/core";
// import { handlePageChange, handlePageSizeChange, handleSortChange, handleComponentAction } from '@/hooks/use-ctrl';
// import { useNavParamsBind, useEventBind, handleActionClick, getCtrlClassNames } from '@/hooks/use-ctrl';
// import GridService from "@/core/modules/ctrl-service/grid-service";
// interface Props {
// name?: string;
// context: IContext;
// viewParams: IParam;
// localContext?: IParam,
// localViewParams?: IParam,
// closeView?: Function;
// pLoadingHelper?: ILoadingHelper;
// pViewCtx?: IViewCtx;
// openView?: Function;
// newView?: Function;
// actions: ICtrlDataAction;
// singleSelect?: boolean;
// selectFirstDefault?: boolean;
// rowActiveMode?: 0 | 1 | 2;
// defaultEnableRowEdit?: boolean;
// controller: GridController
// }
// const props = withDefaults(defineProps
<
Props
>
(),
{
// singleSelect: false,
// rowActiveMode: 2
// });
// const model: IParam = props.controller.getModel();
// const store = props.controller.getStore();
// const classNames = computed(() => {
// const names = getCtrlClassNames(model, props);
// Object.assign(names, {
// "app-control-grid--no-paging-bar": model.enablePagingBar,
// "red-grid-header": true
// });
// return names;
//
});
/**
* 代码表服务对象
...
...
app_Web/src/widgets/ibizbook/usr1206025757-form/usr1206025757-form-base.vue
浏览文件 @
423d8692
...
...
@@ -29,35 +29,35 @@
<app-form-group
:uiService=
"appUIService"
:data=
"transformData(data)"
:manageContainerStatus=
"detailsModel.grouppanel2.manageContainerStatus"
:isManageContainer=
"detailsModel.grouppanel2.isManageContainer"
@
managecontainerclick=
"manageContainerClick('grouppanel2')"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"'表单项'"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<row>
<i-col
v-show=
"detailsModel.formitem2.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<
AppCol
noRoot
class=
"red-solid"
:visible=
"store.detailModel.formitem2.visible"
:layoutOpts=
"
{parentLayout: 'TABLE_24COL',colMD: 24,}">
<template
v-slot:default=
"
{ slotStyle, slotClass }">
<AppFormItem
name=
"formitem2"
:slotStyle=
"slotStyle"
:slotClass=
"slotClass"
label=
""
labelPos=
"LEFT"
:labelWidth=
"130"
:showLabel=
"true"
:enableAnchor=
"false"
:rules=
"store.valueRule.formitem2"
:emptyCaption=
"false"
>
<div
class=
"form-editor-container"
>
<AppSwitch
name=
"formitem2"
:disabled=
"store.detailModel.formitem2.disabled"
style=
""
:value=
"store.data.formitem2"
@
component-action=
"(actionParam: IEvent
<string>
) => { handleComponentAction(controller, actionParam) }"
/>
</div>
</AppFormItem>
</
template
>
</AppCol>
<
!--
<AppCol
noRoot
class=
"red-solid"
:visible=
"store.detailModel.formitem2.visible"
:layoutOpts=
"
{parentLayout: 'TABLE_24COL',colMD: 24,}">
<template
v-slot:default=
"
{ slotStyle, slotClass }">
<AppFormItem
name=
"formitem2"
:slotStyle=
"slotStyle"
:slotClass=
"slotClass"
label=
""
labelPos=
"LEFT"
:labelWidth=
"130"
:showLabel=
"true"
:enableAnchor=
"false"
:rules=
"store.valueRule.formitem2"
:emptyCaption=
"false"
>
<div
class=
"form-editor-container"
>
<AppSwitch
name=
"formitem2"
:disabled=
"store.detailModel.formitem2.disabled"
style=
""
:value=
"store.data.formitem2"
@
component-action=
"(actionParam: IEvent
<string>
) => { handleComponentAction(controller, actionParam) }"
/>
</div>
</AppFormItem>
</
template
>
</AppCol>
-->
</i-col>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录