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

zhouweidong 发布系统代码 [ibz-lite,应用]

上级 15890669
......@@ -1347,16 +1347,27 @@ export default class MetaDynamicModelGridViewBase extends Vue {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
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: 'meta-dynamic-model-edit-view',
height: 0,
width: 0,
title: this.$t('entities.metadynamicmodel.views.editview.title'),
};
openPopupModal(view, data);
}
......
......@@ -30,6 +30,20 @@
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.pdynainstid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='pdynainstid' :itemRules="this.rules().pdynainstid" class='' :caption="$t('entities.metadynamicmodel.main_form.details.pdynainstid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.pdynainstid.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.pdynainstid"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.pdynainstid.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
......@@ -497,6 +511,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem.required, type: 'string', message: '文件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文件 值不能为空', trigger: 'blur' },
],
pdynainstid: [
{ required: this.detailsModel.pdynainstid.required, type: 'string', message: '父实例 值不能为空', trigger: 'change' },
{ required: this.detailsModel.pdynainstid.required, type: 'string', message: '父实例 值不能为空', trigger: 'blur' },
],
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册