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

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

上级 7143e4c8
...@@ -803,17 +803,30 @@ export default class IBIZBOOKUsr6GridViewBase extends Vue { ...@@ -803,17 +803,30 @@ export default class IBIZBOOKUsr6GridViewBase extends Vue {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' }, { pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'optionview', parameterName: 'optionview' },
]; ];
const _this: any = this; const _this: any = this;
if(fullargs && fullargs.copymode){ if(fullargs && fullargs.copymode){
Object.assign(data,{copymode:true}); Object.assign(data,{copymode:true});
} }
const openIndexViewTab = (data: any) => { const openPopupModal = (view: any, data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data); let container: Subject<any> = this.$appmodal.openModal(view, tempContext, data);
this.$router.push(routePath); container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
} }
openIndexViewTab(data); const view: any = {
viewname: 'ibizbookoption-view',
height: 1000,
width: 1000,
title: this.$t('entities.ibizbook.views.optionview.title'),
};
openPopupModal(view, data);
} }
......
...@@ -2130,15 +2130,17 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -2130,15 +2130,17 @@ export default class MainMenuBase extends Vue implements ControlInterface {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' }, { pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'optionview', parameterName: 'optionview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const view = {
if(Object.is(this.$route.fullPath,path)){ viewname: 'ibizbookoption-view',
return; title: (this.$t('entities.ibizbook.views.optionview.title') as any),
} height: 1000,
this.$nextTick(function(){ width: 1000,
this.$router.push(path); };
}) const appmodal = this.$appmodal.openModal(view, JSON.parse(JSON.stringify(this.context)),viewparam);
appmodal.subscribe((result: any) => {
console.log(result);
});
} }
/** /**
......
...@@ -709,30 +709,30 @@ export default class RulesFormBase extends Vue implements ControlInterface { ...@@ -709,30 +709,30 @@ export default class RulesFormBase extends Vue implements ControlInterface {
] ]
}, },
], ],
price:[ type:[
{ {
type:"VALUERANGE2", type:"STRINGLENGTH",
condOP:"", condOP:"",
ruleInfo:"数值必须大于[0.0]且小于等于[100.0]", ruleInfo:"内容长度必须大于[0]且小于等于[6]",
isKeyCond:false, isKeyCond:false,
isNotMode:false, isNotMode:false,
maxValue:100, maxValue:6,
minValue:0, minValue:0,
deName:"price", deName:"type",
isIncludeMaxValue:true, isIncludeMaxValue:true,
isIncludeMinValue:false, isIncludeMinValue:false,
}, },
], ],
type:[ price:[
{ {
type:"STRINGLENGTH", type:"VALUERANGE2",
condOP:"", condOP:"",
ruleInfo:"内容长度必须大于[0]且小于等于[6]", ruleInfo:"数值必须大于[0.0]且小于等于[100.0]",
isKeyCond:false, isKeyCond:false,
isNotMode:false, isNotMode:false,
maxValue:6, maxValue:100,
minValue:0, minValue:0,
deName:"type", deName:"price",
isIncludeMaxValue:true, isIncludeMaxValue:true,
isIncludeMinValue:false, isIncludeMinValue:false,
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册