5.0.218
parent
5a880dc7bb
commit
84390e4a22
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -13051,6 +13051,89 @@ declare type onCheckChangedHandle = (cmp: SelectTreeBase,node: ztree.ITreeNode)
|
|||
*/
|
||||
declare type onSelectChangedHandle = (cmp: SelectTreeBase,node: ztree.ITreeNode,value: string) => void
|
||||
/**
|
||||
*table的弹出窗
|
||||
*/
|
||||
class TableFormBase {
|
||||
|
||||
/**
|
||||
* 点击取消
|
||||
|
||||
*/
|
||||
cancel(): void
|
||||
|
||||
/**
|
||||
* 初始化组件的css
|
||||
* @returns 返回组件样式对象.
|
||||
|
||||
*/
|
||||
iniCss(): any
|
||||
|
||||
/**
|
||||
* 点击确定
|
||||
|
||||
*/
|
||||
ok(): void
|
||||
|
||||
/**
|
||||
* 渲染并显示窗口
|
||||
* @param config 渲染参数* @returns 返回窗口实例
|
||||
|
||||
*/
|
||||
static render(config: ITableFormBaseConfig): TableFormBase
|
||||
|
||||
}
|
||||
/**
|
||||
*弹出tabel的配置
|
||||
*/
|
||||
interface ITableConfig {
|
||||
cols: any
|
||||
contentType: string
|
||||
/**
|
||||
*数据数组
|
||||
*/
|
||||
data: any
|
||||
elem: any
|
||||
even: Boolean
|
||||
limit: number
|
||||
response: any
|
||||
}
|
||||
/**
|
||||
*弹出窗口的配置
|
||||
*/
|
||||
interface ITableFormBaseConfig {
|
||||
/**
|
||||
*弹出的窗口配置项
|
||||
*/
|
||||
formConfig: IFormOptions
|
||||
/**
|
||||
*是否允许多选
|
||||
*/
|
||||
multselect: boolean
|
||||
/**
|
||||
*取消回调
|
||||
*/
|
||||
onCancel: any
|
||||
/**
|
||||
*关闭回调
|
||||
*/
|
||||
onClose: any
|
||||
/**
|
||||
*点击确定时候的回调
|
||||
*/
|
||||
onOk: TableFormOkHandle
|
||||
/**
|
||||
*弹出的table配置项
|
||||
*/
|
||||
tableConfig: ITableConfig
|
||||
}
|
||||
/**
|
||||
*确定的回调类型
|
||||
*@params undefined rows 选择的行对象
|
||||
*@returns undefined 返回 true 关闭窗口,则反之
|
||||
|
||||
*/
|
||||
declare type TableFormOkHandle = (rows: any[]) => boolean
|
||||
/**
|
||||
*树形组件基类
|
||||
*/
|
||||
class TreeBase extends DbComponentBase {
|
||||
|
@ -17477,7 +17560,7 @@ static getBrowserVersion(): string
|
|||
* @param obj 类的实例 或者 类 或者 类名字符* @returns 返回类名 错误返回null
|
||||
|
||||
*/
|
||||
static getClassName(obj: any): any
|
||||
static getClassName(obj: any): string
|
||||
|
||||
/**
|
||||
* 得到组件的属性帮助的url
|
||||
|
@ -17515,6 +17598,13 @@ static getCookieValue(cookieName: string): any
|
|||
*/
|
||||
static getCookies(): object
|
||||
|
||||
/**
|
||||
* 同步获取当前的用户信息
|
||||
* @returns 返回用户信息
|
||||
|
||||
*/
|
||||
static getCurrentUser(): any
|
||||
|
||||
/**
|
||||
* 获取加密解码的工具类
|
||||
* @returns 加密/解密辅助类
|
||||
|
@ -22065,10 +22155,11 @@ ok(): void
|
|||
/**
|
||||
* 保存数据
|
||||
提交后台的数据
|
||||
* @param callback 完成提交数据到后台后的回调
|
||||
* @param finishcallback 完成提交数据到后台后的回调
|
||||
* @param beforePostCallBack 可选参数 提交前的回调
|
||||
|
||||
*/
|
||||
post(callback: DataSourcePostHandle): void
|
||||
post(finishcallback: DataSourcePostHandle,beforePostCallBack: EditorPagePostHandle): void
|
||||
|
||||
/**
|
||||
* 多数据源合并提交保存
|
||||
|
@ -22080,6 +22171,11 @@ post(callback: DataSourcePostHandle): void
|
|||
unionPost(dss: DataSourceBase[],callback: DataSourcePostHandle): void
|
||||
|
||||
}
|
||||
/**
|
||||
*提交事件类型
|
||||
|
||||
*/
|
||||
declare type EditorPagePostHandle = (cmp: EditorPage,changes: any) => void
|
||||
/**
|
||||
*甘特图组件
|
||||
*/
|
||||
|
|
|
@ -377,6 +377,18 @@ layui.config({
|
|||
treeObj.updateNode(node);
|
||||
/**刷新页面 */
|
||||
treeAction.raiseResDataEvent();
|
||||
},
|
||||
/**
|
||||
* 导入
|
||||
*/
|
||||
import() {
|
||||
|
||||
},
|
||||
/**
|
||||
* 导出
|
||||
*/
|
||||
export() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -432,6 +444,14 @@ layui.config({
|
|||
$('#btnTreeRefresh').on('click', function () {
|
||||
treeAction.loadTree();
|
||||
});
|
||||
// 导入
|
||||
$('#btnTreeImport').on('click', function () {
|
||||
treeAction.import();
|
||||
});
|
||||
// 导出
|
||||
$('#btnTreeExport').on('click', function () {
|
||||
treeAction.export();
|
||||
});
|
||||
|
||||
//加载树
|
||||
treeAction.loadTree();
|
||||
|
@ -938,6 +958,9 @@ layui.config({
|
|||
layer.close(index);
|
||||
}
|
||||
});
|
||||
},
|
||||
import() {
|
||||
|
||||
},
|
||||
sumbit: function (fields) {
|
||||
//将字段编号转成大写
|
||||
|
|
|
@ -1875,6 +1875,8 @@ ul.navbarSearchResult::-webkit-scrollbar-track {
|
|||
.kdayun-menu-container .kdayun-menu-child li.layui-this a {
|
||||
background-color: var(--kd-color);
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -190,6 +190,14 @@
|
|||
<i class="layui-icon layui-icon-delete"></i>
|
||||
删除
|
||||
</li>
|
||||
<#-- <li id="btnTreeImport">
|
||||
<i class="fa fa-cloud-upload"></i>
|
||||
导入
|
||||
</li>
|
||||
<li id="btnTreeExport">
|
||||
<i class="fa fa-cloud-download"></i>
|
||||
导出
|
||||
</li> -->
|
||||
</ul>
|
||||
<script type="text/html" id="toolbarField">
|
||||
<div class="layui-btn-container">
|
||||
|
@ -200,7 +208,9 @@
|
|||
<button class="layui-btn layui-btn-sm" id="btnUpdateDB" lay-filter="btnUpdateDB" lay-event="updateFieldToDB">
|
||||
<i class="layui-icon layui-icon-table"></i>同步表结构</button>
|
||||
<button id="btnFieldExport" class="layui-btn layui-btn-sm" data-type="export" lay-event="exportField">
|
||||
<i class="layui-icon layui-icon-templeate-1"></i>导出列表</button>
|
||||
<i class="layui-icon layui-icon-templeate-1"></i>导出模型</button>
|
||||
<#-- <button id="btnFieldImport" class="layui-btn layui-btn-sm" data-type="export" lay-event="btnFieldImport">
|
||||
<i class="fa fa-cloud-upload"></i>导入模型</button> -->
|
||||
<div class="layui-inline zl-seacher-div">
|
||||
<div class="layui-inline">
|
||||
<input type="text" placeholder="请输入查找的值" id="edtSeacherField" autocomplete="on" class="layui-input layui-inline zl-seacher-input">
|
||||
|
|
Loading…
Reference in New Issue