5.0.223
parent
b50d8d3561
commit
51eef91e59
|
@ -139,5 +139,13 @@
|
|||
timeToLiveSeconds="0"
|
||||
overflowToDisk="false"
|
||||
statistics="true">
|
||||
</cache>
|
||||
</cache>
|
||||
<cache name="dataSourceDataCache"
|
||||
maxEntriesLocalHeap="2000"
|
||||
eternal="false"
|
||||
timeToIdleSeconds="3600"
|
||||
timeToLiveSeconds="0"
|
||||
overflowToDisk="false"
|
||||
statistics="true">
|
||||
</cache>
|
||||
</ehcache>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4388,13 +4388,6 @@ version: string
|
|||
*/
|
||||
close(forceDestory: boolean): void
|
||||
|
||||
/**
|
||||
* 窗口销毁前的处理函数
|
||||
里面可以清理事件等等
|
||||
|
||||
*/
|
||||
destory(): void
|
||||
|
||||
/**
|
||||
* 刷新组件/重画组件 子孙组件都重画
|
||||
|
||||
|
@ -7705,7 +7698,8 @@ xtype: string
|
|||
addEvents(args: any[]): void
|
||||
|
||||
/**
|
||||
* 清除所有的events 注意:该函数一般是页面关闭时候才调用 防止重复调用
|
||||
* 清除所有已经注册的事件处理
|
||||
注意:该函数一般是页面关闭时候才调用 防止重复调用.如果是运行中调用会导致未知的异常错误
|
||||
|
||||
*/
|
||||
clearAllEvents(): void
|
||||
|
@ -21192,6 +21186,16 @@ onToolButtonClick(handle: OnToolButtonClickHandle): void
|
|||
*/
|
||||
refreshRow(row: Row): void
|
||||
|
||||
/**
|
||||
* 设置单元格的值
|
||||
* @param cell 单元格的jQuery
|
||||
* @param row 行对象
|
||||
* @param column 列对象
|
||||
* @param value 值
|
||||
|
||||
*/
|
||||
setCellValue(cell: JQuery<any>,row: Row,column: TableColumn,value: any): void
|
||||
|
||||
/**
|
||||
* 设置类数组
|
||||
* @param columns 列数组
|
||||
|
@ -21828,10 +21832,68 @@ declare type OnTableColumnClickHandle = (column: TableColumn) => void
|
|||
*/
|
||||
declare type OnTableColumnResizeHandle = (column: TableColumn) => void
|
||||
/**
|
||||
* 列编辑器构建者
|
||||
*/
|
||||
class TableColumnEditorBuilder {
|
||||
|
||||
/**
|
||||
* 构建列编辑器
|
||||
* @param type 编辑器类型
|
||||
* @param column 列实例* @returns 返回列编辑器的实例
|
||||
|
||||
*/
|
||||
static build(type: TableColumnEditorType,column: any): TableColumnEditorBase
|
||||
|
||||
}
|
||||
/**
|
||||
*表的编辑类型
|
||||
*/
|
||||
enum TableColumnEditorType {
|
||||
checkbox = "checkobox",date = "date",dropdownTable = "dropdownTable",dropdownTree = "dropdownTree",number = "number",popTable = "popTable",popTree = "popTree",radio = "radio",select = "select",text = "text"
|
||||
|
||||
/**
|
||||
*复选
|
||||
*/
|
||||
checkbox = "checkobox",
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
date = "date",
|
||||
/**
|
||||
*下拉tabel
|
||||
*/
|
||||
dropdownTable = "dropdownTable",
|
||||
/**
|
||||
*下拉tree
|
||||
*/
|
||||
dropdownTree = "dropdownTree",
|
||||
/**
|
||||
*图片/文件
|
||||
*/
|
||||
image = "image",
|
||||
/**
|
||||
*数字
|
||||
*/
|
||||
number = "number",
|
||||
/**
|
||||
*弹出table
|
||||
*/
|
||||
popTable = "popTable",
|
||||
/**
|
||||
*弹出的树形
|
||||
*/
|
||||
popTree = "popTree",
|
||||
/**
|
||||
*单选框
|
||||
*/
|
||||
radio = "radio",
|
||||
/**
|
||||
*下拉列表
|
||||
*/
|
||||
select = "select",
|
||||
/**
|
||||
*文本
|
||||
*/
|
||||
text = "text"
|
||||
}
|
||||
/**
|
||||
*列编辑器基类
|
||||
|
@ -21845,20 +21907,6 @@ class TableColumnEditorBase {
|
|||
*/
|
||||
iniCss(): void
|
||||
|
||||
}
|
||||
/**
|
||||
* 列编辑器构建者
|
||||
*/
|
||||
class TableColumnEditorBuilder {
|
||||
|
||||
/**
|
||||
* 构建列编辑器
|
||||
* @param type 编辑器类型
|
||||
* @param column 列实例* @returns 返回列编辑器的实例
|
||||
|
||||
*/
|
||||
static build(type: TableColumnEditorType,column: TableColumn): TableColumnEditorBase
|
||||
|
||||
}
|
||||
/**
|
||||
*按钮
|
||||
|
@ -22046,6 +22094,14 @@ class TableListViewOptionColumn extends TableListViewColumnBase {
|
|||
展示IUploadFile结构的图片或者文件
|
||||
*/
|
||||
class TableListViewPictureColumn extends TableListViewColumnBase {
|
||||
/**
|
||||
*最多能上传多少文件
|
||||
*/
|
||||
maxFileCount: number
|
||||
/**
|
||||
*上传的路径
|
||||
*/
|
||||
uploadUrl: string
|
||||
|
||||
}
|
||||
/**
|
||||
|
@ -22083,6 +22139,12 @@ class TableListViewSwitchColumn extends TableListViewColumnBase {
|
|||
*/
|
||||
class TableListViewTextColumn extends TableListViewColumnBase {
|
||||
|
||||
}
|
||||
/**
|
||||
*图片/文件
|
||||
*/
|
||||
class TableEditorPicFile extends TableColumnEditorBase {
|
||||
|
||||
}
|
||||
/**
|
||||
*数据导出组件
|
||||
|
@ -22766,6 +22828,7 @@ class WorkFlow extends InvisibleBase {
|
|||
当审配与数据修改需要在同一个事务内的时候可以使用该函数
|
||||
* @param finishCallBack 完成回调 function (audFlag, audName, auditMemo, error) 如果 error是非空说明有错误发生.
|
||||
* @param wfParams 可选参数,传递参数到流程参数
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -22787,7 +22850,7 @@ btn.getPage().components.Table1.loadData();
|
|||
```
|
||||
|
||||
*/
|
||||
confirm(finishCallBack: WorkflowCallBack,wfParams: object): void
|
||||
confirm(finishCallBack: WorkflowCallBack,wfParams: object,attachment: string): void
|
||||
|
||||
/**
|
||||
* 通过行直接审核行并提交到后台. 会弹出指定的审核表单
|
||||
|
@ -22796,6 +22859,7 @@ confirm(finishCallBack: WorkflowCallBack,wfParams: object): void
|
|||
* @param row 需要审核的行
|
||||
* @param finishCallBack 完成回调 function (audFlag, audName, auditMemo, error) 如果 error是非空说明有错误发生.
|
||||
* @param wfParams 可选参数,传递参数到流程参数
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -22815,7 +22879,7 @@ Common.successMsg('审批完成');
|
|||
```
|
||||
|
||||
*/
|
||||
confirmAndPostByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object): void
|
||||
confirmAndPostByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object,attachment: string): void
|
||||
|
||||
/**
|
||||
* 直接审批流程 不弹出审核页面 传递对应的参数后就能审核流程
|
||||
|
@ -22824,6 +22888,7 @@ confirmAndPostByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object):
|
|||
* @param auditMemo 审核的备注
|
||||
* @param wfParams 流程变量 传递到流程引擎内的变量(例如:传递一个变量来会影响线路的路径)
|
||||
* @param finishCallBack 审批完成的回调
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -22843,7 +22908,7 @@ Common.successMsg('审批完成');
|
|||
```
|
||||
|
||||
*/
|
||||
confirmAndPostByRowDirect(row: Row,audFlag: WorkflowConfirmResult,auditMemo: string,wfParams: object,finishCallBack: DataSourcePostHandle): void
|
||||
confirmAndPostByRowDirect(row: Row,audFlag: WorkflowConfirmResult,auditMemo: string,wfParams: object,finishCallBack: DataSourcePostHandle,attachment: string): void
|
||||
|
||||
/**
|
||||
* 审核指定行的流程. 会弹出指定的审核表单
|
||||
|
@ -22853,6 +22918,7 @@ confirmAndPostByRowDirect(row: Row,audFlag: WorkflowConfirmResult,auditMemo: str
|
|||
* @param row 行
|
||||
* @param finishCallBack 审核完成的事件回调 function (audFlag, audName, auditMemo, error) 如果 error是非空说明有错误发生.
|
||||
* @param wfParams 流程变量 传递到流程引擎内的变量(例如:传递一个变量来会影响线路的路径)
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -22880,7 +22946,7 @@ btn.getPage().components.Table1.loadData();
|
|||
```
|
||||
|
||||
*/
|
||||
confirmByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object): void
|
||||
confirmByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object,attachment: string): void
|
||||
|
||||
/**
|
||||
* 得到关联数据源实例
|
||||
|
@ -22927,6 +22993,7 @@ getWorkFlowPic(processId: string): void
|
|||
当启动流程与数据修改需要在同一个事务内的时候可以使用该函数.
|
||||
* @param finishCallBack 完成回调函数 function (audFlag, audName, auditMemo, error) 如果 error是非空说明有错误发生.
|
||||
* @param wfParams 可选参数,传递参数到后台
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -22954,7 +23021,7 @@ btn.getPage().components.Table1.loadData();
|
|||
```
|
||||
|
||||
*/
|
||||
start(finishCallBack: WorkflowCallBack,wfParams: object): void
|
||||
start(finishCallBack: WorkflowCallBack,wfParams: object,attachment: string): void
|
||||
|
||||
/**
|
||||
* 通过行直接启动流程并提交到后台. 会弹出指定的审核表单
|
||||
|
@ -22962,6 +23029,7 @@ start(finishCallBack: WorkflowCallBack,wfParams: object): void
|
|||
* @param row 需要启动流程的行
|
||||
* @param finishCallBack 完成回调; function (audFlag, audName, auditMemo, error) 如果 error是非空说明有错误发生.
|
||||
* @param wfParams 可选参数,传递参数到流程参数
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -22981,7 +23049,7 @@ Common.successMsg('流程启动成功');
|
|||
```
|
||||
|
||||
*/
|
||||
startAndPostByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object): void
|
||||
startAndPostByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object,attachment: string): void
|
||||
|
||||
/**
|
||||
* 直接启动流程 不弹出审核页面 传递对应的参数后就能审核流程
|
||||
|
@ -22989,6 +23057,7 @@ startAndPostByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object): v
|
|||
* @param auditMemo 审核的备注
|
||||
* @param wfParams 流程变量 传递到流程引擎内的变量(例如:传递一个变量来会影响线路的路径)
|
||||
* @param finishCallBack 审批完成的回调
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -23008,7 +23077,7 @@ Common.successMsg('流程启动完成');
|
|||
```
|
||||
|
||||
*/
|
||||
startAndPostByRowDirect(row: Row,auditMemo: string,wfParams: object,finishCallBack: DataSourcePostHandle): void
|
||||
startAndPostByRowDirect(row: Row,auditMemo: string,wfParams: object,finishCallBack: DataSourcePostHandle,attachment: string): void
|
||||
|
||||
/**
|
||||
* 启动指定行的流程,会弹出指定的审核表单
|
||||
|
@ -23018,6 +23087,7 @@ startAndPostByRowDirect(row: Row,auditMemo: string,wfParams: object,finishCallBa
|
|||
* @param row 行
|
||||
* @param finishCallBack 完成的回调函数 function (audFlag, audName, auditMemo, error) 如果 error是非空说明有错误发生
|
||||
* @param wfParams 可选参数,传递参数到流程参数
|
||||
* @param attachment 可选参数, 附件
|
||||
例如:
|
||||
```javascript
|
||||
function Button13_onClickScript(cxt: ScriptContext, btn: Button) {
|
||||
|
@ -23044,7 +23114,7 @@ btn.getPage().components.Table1.loadData();
|
|||
```
|
||||
|
||||
*/
|
||||
startByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object): void
|
||||
startByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object,attachment: string): void
|
||||
|
||||
}
|
||||
/**
|
||||
|
@ -23052,11 +23122,12 @@ startByRow(row: Row,finishCallBack: WorkflowCallBack,wfParams: object): void
|
|||
*@param audFlag 审核结果的值
|
||||
*@param audName 审核结果名称
|
||||
*@param auditMemo 审核备注
|
||||
*@param attachment 附件
|
||||
*@param error 错误信息 非空就是无错误,则反之
|
||||
*@param wfParams 可选参数, 流程参数
|
||||
|
||||
*/
|
||||
declare type WorkflowCallBack = (audFlag: string,audName: string,auditMemo: string,error: string,wfParams: object) => void
|
||||
declare type WorkflowCallBack = (audFlag: string,audName: string,auditMemo: string,error: string,wfParams: object,attachment: string) => void
|
||||
/**
|
||||
*工作流属性编辑器
|
||||
*/
|
||||
|
@ -24393,10 +24464,11 @@ scanRqCode(callback: any): void
|
|||
|
||||
/**
|
||||
* 分享
|
||||
* @param shareInfo 分享参数设置
|
||||
* @param callback 完成回调
|
||||
|
||||
*/
|
||||
share(callback: any): void
|
||||
share(shareInfo: any,callback: any): void
|
||||
|
||||
/**
|
||||
* 微信签名
|
||||
|
@ -24523,10 +24595,11 @@ static setUserData(userData: IWxUserData): void
|
|||
|
||||
/**
|
||||
* 分享
|
||||
* @param shareInfo 分享参数设置
|
||||
* @param callback 回调函数
|
||||
|
||||
*/
|
||||
static share(callback: any): void
|
||||
static share(shareInfo: any,callback: any): void
|
||||
|
||||
/**
|
||||
* 权限签名
|
||||
|
|
|
@ -17,7 +17,7 @@ layui.extend({
|
|||
* 主题渲染
|
||||
*/
|
||||
function renderTheme() {
|
||||
window['kdtheme'].render(true,true);
|
||||
window['kdtheme'].render(true, true);
|
||||
}
|
||||
|
||||
renderTheme();
|
||||
|
@ -52,6 +52,7 @@ layui.extend({
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
//获取当前用户信息并填充
|
||||
$.ajax({
|
||||
url: layui.cache['contentPath'] + '/admin/coreuser/querycuruserinfo',
|
||||
|
@ -61,13 +62,18 @@ layui.extend({
|
|||
contentType: "application/json",
|
||||
success: function (result) {
|
||||
var data = result.obj;
|
||||
var getUrlPath = function (url) {
|
||||
if (url && (url.startsWith('http:') || url.startsWith('https:'))) {
|
||||
return url;
|
||||
} else if (url) {
|
||||
return layui.cache['contentPath'] + url
|
||||
} else {
|
||||
return layui.cache['contentPath'] + '/static/image/userImg.png'
|
||||
}
|
||||
}
|
||||
$('#OBJNAME').html(data.userCursor.OBJNAME);
|
||||
$('#ROLENAME').attr('roleid', data.currentRoleId);
|
||||
if (data.userCursor.TOUX != undefined && data.userCursor.TOUX != null && data.userCursor.TOUX != '') {
|
||||
$('#TOUX').prop('src', layui.cache['contentPath'] + data.userCursor.TOUX);
|
||||
} else {
|
||||
$('#TOUX').prop('src', layui.cache['contentPath'] + '/static/image/userImg.png');
|
||||
}
|
||||
$('#TOUX').prop('src', getUrlPath(data.userCursor.TOUX));
|
||||
},
|
||||
error: function (xhr, textStatus, errorThrown) {
|
||||
alert('请求异常!' + xhr.responseText);
|
||||
|
|
|
@ -849,11 +849,17 @@ layui.define(['view', 'theme', 'common'], function (exports) {
|
|||
* @param {*} userInfo 用户信息
|
||||
*/
|
||||
function renderTouX(userInfo) {
|
||||
if (userInfo.TOUX != undefined && userInfo.TOUX != null && userInfo.TOUX != '') {
|
||||
$('#TOUX').prop('src', layui.cache['contentPath'] + userInfo.TOUX);
|
||||
} else {
|
||||
$('#TOUX').prop('src', layui.cache['contentPath'] + '/static/image/userImg.png');
|
||||
|
||||
var getUrlPath = function (url) {
|
||||
if (url && (url.startsWith('http:') || url.startsWith('https:'))) {
|
||||
return url;
|
||||
} else if (url) {
|
||||
return layui.cache['contentPath'] + url
|
||||
} else {
|
||||
return layui.cache['contentPath'] + '/static/image/userImg.png'
|
||||
}
|
||||
}
|
||||
$('#TOUX').prop('src', getUrlPath(userInfo.TOUX));
|
||||
}
|
||||
/**
|
||||
* 渲染点击用户名的下拉系统的菜单
|
||||
|
|
Loading…
Reference in New Issue