/**
|
* 流程的文件查询方式
|
* 会直接调用文件管理的列表
|
* 用户点击文件名,数据行的右侧,点击按钮三种方式查看文件
|
*/
|
layui.define(['layer','table','vciWebFileManager'],function(exports){
|
var BusinessDocInProcess = function(){
|
this.id = "vciWebProBusinessDoc";
|
this.modelKey = "vciWebProBusinessDoc";
|
this.businessBtmInProcess = "";
|
this.businessOidsInProcess = "";
|
this.taskOidInProcess = "";
|
this.backPath = path;
|
};
|
|
BusinessDocInProcess.prototype.getContent = function(){
|
var me = this;
|
if($webUtil.isNotNull(me.taskOidInProcess) && me.taskOidInProcess.indexOf(",")>-1){
|
return '<div><span>只有单个流程的时候才能查看关联文件</span></div>';
|
}
|
return '<div><div layui-filter="file_toolbar_'+me.id+'" class="layui-btn-container"></div>' +
|
'<table id="file_' + me.id + '" lay-filter="file_' + me.id + '" ></table></div>';
|
};
|
|
BusinessDocInProcess.prototype.init = function(){
|
var that = this;
|
var vciFileManager = layui.vciWebFileManager;
|
vciFileManager.tableDivId = '#file_' + that.id;
|
vciFileManager.id = "file_" + that.id;
|
vciFileManager.inProcess = true;
|
vciFileManager.dataOid = that.taskOidInProcess;
|
vciFileManager.toolbarDivId = $('[layui-filter="file_toolbar_' + that.id + '"]');
|
vciFileManager.init();
|
};
|
|
BusinessDocInProcess.prototype.destroy= function(){
|
var that = this;
|
$('[layui-filter="file_toolbar_' + that.id + '"]').remove();
|
$('#file_' + that.id).remove();
|
};
|
|
var bdp = new BusinessDocInProcess();
|
exports('process/vciWebProBusinessDoc',bdp);
|
});
|