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

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

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