提交 f21f8b6a 编写于 作者: ibizdev's avatar ibizdev

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 fc995e39
......@@ -83,6 +83,7 @@ export default {
print: "Print",
exportmodel: "Export Data Model",
import: "数据导入",
ibizappview_opendocument: "打开文档",
},
},
viewchart_chart: {
......
......@@ -82,6 +82,7 @@ export default {
print: "打印",
exportmodel: "导出数据模型",
import: "数据导入",
ibizappview_opendocument: "打开文档",
},
},
viewchart_chart: {
......
......@@ -162,6 +162,49 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
openIndexViewTab(data);
}
/**
* 打开文档
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async IBIZAPPVIEW_openDocument(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { ibizappview: '%ibizappview%' });
Object.assign(params, { ibizappviewid: '%ibizappview%' });
Object.assign(params, { ibizappviewname: '%ibizappviewname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
const openPopupApp = (url: string) => {
window.open(url, '_blank');
return null;
}
const url = `${data.documentaddress}`;
openPopupApp(url);
}
/**
* 获取指定数据的重定向页面
......
......@@ -632,6 +632,34 @@ export default class ViewListBase extends Vue implements ControlInterface {
this.Import(datas, contextJO,paramJO, $event, xData,this,"IBIZAPPVIEW");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public list_operation_u59112f7_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:IBIZAPPVIEWUIService = new IBIZAPPVIEWUIService();
curUIService.IBIZAPPVIEW_openDocument(datas,contextJO, paramJO, $event, xData,this,"IBIZAPPVIEW");
}
/**
* 新建
*
......@@ -1611,6 +1639,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
* @memberof ViewListBase
*/
public actionModel:any ={
"openDocument":{name:"openDocument",icon:"",caption:"打开文档",disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: "", actiontarget: "SINGLEKEY"},
};
/**
......@@ -1662,6 +1691,9 @@ export default class ViewListBase extends Vue implements ControlInterface {
if(Object.is('Import', tag)) {
this.list_quicktoolbar_tbitem23_click(data, tag, $event);
}
if(Object.is('openDocument', tag)) {
this.list_operation_u59112f7_click(data, tag, $event);
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册