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

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

上级 fdc90f95
......@@ -297,6 +297,7 @@ export default {
menuitem23: "左右编辑视图",
menuitem24: "分页编辑视图",
menuitem25: "嵌入编辑视图",
menuitem161: "实体向导视图",
menuitem141: "多数据视图",
menuitem9: "列表视图",
menuitem21: "左右表格视图",
......
......@@ -297,6 +297,7 @@ export default {
menuitem23: "左右编辑视图",
menuitem24: "分页编辑视图",
menuitem25: "嵌入编辑视图",
menuitem161: "实体向导视图",
menuitem141: "多数据视图",
menuitem9: "列表视图",
menuitem21: "左右表格视图",
......
......@@ -2347,6 +2347,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: '18F8A496-2AD7-43E4-84E2-06584AA785C6',
name: 'menuitem161',
text: '实体向导视图',
type: 'MENUITEM',
counterid: '',
tooltip: '实体向导视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc49',
resourcetag: '',
},
],
},
......
......@@ -176,7 +176,33 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
*/
public async IBIZAPPVIEW_openDocument(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
actionContext.$Notice.error({ title: '错误', desc: '不支持多项数据' });
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'MULTIKEY';
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);
}
......
......@@ -2478,6 +2478,25 @@ export default class MainMenuModel {
authtag:'Web-MainMenu-menuitem25',
},
],
},
{
id: '18F8A496-2AD7-43E4-84E2-06584AA785C6',
name: 'menuitem161',
text: '实体向导视图',
type: 'MENUITEM',
counterid: '',
tooltip: '实体向导视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc49',
resourcetag: '',
authtag:'Web-MainMenu-menuitem161',
},
],
},
......
......@@ -1639,7 +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: "MULTIDATA"},
"openDocument":{name:"openDocument",icon:"",caption:"打开文档",disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: "", actiontarget: "MULTIKEY"},
};
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册