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

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

上级 b885374d
......@@ -144,8 +144,8 @@
"viewtag": "3c4651b0fddbda6565cce70dbada576a"
},
"metadynamicmodeldynainstgridview": {
"title": "副本",
"caption": "副本",
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstGridView",
......@@ -168,7 +168,7 @@
"viewtag": "4f19fa8bfbce2c71261ca7cc076f316e"
},
"metadynamicmodelgridview": {
"title": "动态模型表格视图",
"title": "动态模型",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
......@@ -335,6 +335,14 @@
"viewname": "MetaModuleEditView",
"viewtag": "b35e034dc0072ebf714a930060f78651"
},
"metadynamicmodeldynainsteditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstEditView",
"viewtag": "b81c2d5d0162a47fed1d37c7b66ed0b0"
},
"metadataseteditview": {
"title": "数据集编辑视图",
"caption": "数据集",
......
......@@ -17,15 +17,37 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
dynainstgridview: {
caption: commonLogic.appcommonhandle("副本",null),
title: commonLogic.appcommonhandle("副本",null),
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型",null),
},
dynainsteditview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("配置标识",null),
srfmajortext: commonLogic.appcommonhandle("配置名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
dynainst_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpage1: commonLogic.appcommonhandle("副本",null),
......@@ -196,6 +218,8 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("帮助",null),
},
},
dynainsteditviewtoolbar_toolbar: {
},
gridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
......
......@@ -17,15 +17,37 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
dynainstgridview: {
caption: commonLogic.appcommonhandle("副本",null),
title: commonLogic.appcommonhandle("副本",null),
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型",null),
},
dynainsteditview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("配置标识",null),
srfmajortext: commonLogic.appcommonhandle("配置名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
dynainst_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpage1: commonLogic.appcommonhandle("副本",null),
......@@ -196,6 +218,8 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Help",null),
},
},
dynainsteditviewtoolbar_toolbar: {
},
gridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
......
......@@ -17,15 +17,37 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
dynainstgridview: {
caption: commonLogic.appcommonhandle("副本",null),
title: commonLogic.appcommonhandle("副本",null),
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型",null),
},
dynainsteditview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("配置标识",null),
srfmajortext: commonLogic.appcommonhandle("配置名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
dynainst_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpage1: commonLogic.appcommonhandle("副本",null),
......@@ -196,6 +218,8 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("帮助",null),
},
},
dynainsteditviewtoolbar_toolbar: {
},
gridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
......
......@@ -152,8 +152,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "3c4651b0fddbda6565cce70dbada576a"
},
"metadynamicmodeldynainstgridview": {
"title": "副本",
"caption": "副本",
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstGridView",
......@@ -176,7 +176,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "4f19fa8bfbce2c71261ca7cc076f316e"
},
"metadynamicmodelgridview": {
"title": "动态模型表格视图",
"title": "动态模型",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
......@@ -343,6 +343,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "MetaModuleEditView",
"viewtag": "b35e034dc0072ebf714a930060f78651"
},
"metadynamicmodeldynainsteditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstEditView",
"viewtag": "b81c2d5d0162a47fed1d37c7b66ed0b0"
},
"metadataseteditview": {
"title": "数据集编辑视图",
"caption": "数据集",
......
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('dst-microservice-edit-view', () => import('@pages/lite/dst-microservice-edit-view/dst-microservice-edit-view.vue'));
Vue.component('meta-dynamic-model-dyna-inst-edit-view', () => import('@pages/lite/meta-dynamic-model-dyna-inst-edit-view/meta-dynamic-model-dyna-inst-edit-view.vue'));
Vue.component('dst-system-grid-view', () => import('@pages/lite/dst-system-grid-view/dst-system-grid-view.vue'));
Vue.component('meta-model-edit-view', () => import('@pages/lite/meta-model-edit-view/meta-model-edit-view.vue'));
Vue.component('meta-dynamic-model-grid-view', () => import('@pages/lite/meta-dynamic-model-grid-view/meta-dynamic-model-grid-view.vue'));
Vue.component('dst-data-source-grid-view', () => import('@pages/lite/dst-data-source-grid-view/dst-data-source-grid-view.vue'));
Vue.component('dst-microservice-pickup-grid-view', () => import('@pages/lite/dst-microservice-pickup-grid-view/dst-microservice-pickup-grid-view.vue'));
Vue.component('dst-data-source-pickup-grid-view', () => import('@pages/lite/dst-data-source-pickup-grid-view/dst-data-source-pickup-grid-view.vue'));
......@@ -35,7 +35,6 @@ export const PageComponents = {
Vue.component('meta-entity-edit-view', () => import('@pages/lite/meta-entity-edit-view/meta-entity-edit-view.vue'));
Vue.component('dst-microservice-pickup-view', () => import('@pages/lite/dst-microservice-pickup-view/dst-microservice-pickup-view.vue'));
Vue.component('meta-field-pickup-grid-view', () => import('@pages/lite/meta-field-pickup-grid-view/meta-field-pickup-grid-view.vue'));
Vue.component('meta-dynamic-model-edit-view', () => import('@pages/lite/meta-dynamic-model-edit-view/meta-dynamic-model-edit-view.vue'));
Vue.component('blade-visual-edit-view', () => import('@pages/avuedata/blade-visual-edit-view/blade-visual-edit-view.vue'));
Vue.component('dst-component-edit-view', () => import('@pages/lite/dst-component-edit-view/dst-component-edit-view.vue'));
Vue.component('meta-module-pickup-grid-view', () => import('@pages/lite/meta-module-pickup-grid-view/meta-module-pickup-grid-view.vue'));
......
......@@ -64,6 +64,20 @@ const router = new Router({
},
component: () => import('@pages/lite/dst-microservice-edit-view/dst-microservice-edit-view.vue'),
},
{
path: 'metadynamicmodels/:metadynamicmodel?/dynainsteditview/:dynainsteditview?',
meta: {
caption: 'entities.metadynamicmodel.views.dynainsteditview.caption',
info:'',
parameters: [
{ pathName: 'liteindex', parameterName: 'liteindex' },
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'dynainsteditview', parameterName: 'dynainsteditview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/meta-dynamic-model-dyna-inst-edit-view/meta-dynamic-model-dyna-inst-edit-view.vue'),
},
{
path: 'dstsystems/:dstsystem?/gridview/:gridview?',
meta: {
......@@ -92,20 +106,6 @@ const router = new Router({
},
component: () => import('@pages/lite/meta-model-edit-view/meta-model-edit-view.vue'),
},
{
path: 'metadynamicmodels/:metadynamicmodel?/gridview/:gridview?',
meta: {
caption: 'entities.metadynamicmodel.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'liteindex', parameterName: 'liteindex' },
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/meta-dynamic-model-grid-view/meta-dynamic-model-grid-view.vue'),
},
{
path: 'dstdatasources/:dstdatasource?/gridview/:gridview?',
meta: {
......@@ -1033,20 +1033,6 @@ const router = new Router({
},
component: () => import('@pages/lite/meta-field-pickup-grid-view/meta-field-pickup-grid-view.vue'),
},
{
path: 'metadynamicmodels/:metadynamicmodel?/editview/:editview?',
meta: {
caption: 'entities.metadynamicmodel.views.editview.caption',
info:'',
parameters: [
{ pathName: 'liteindex', parameterName: 'liteindex' },
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/meta-dynamic-model-edit-view/meta-dynamic-model-edit-view.vue'),
},
{
path: 'bladevisuals/:bladevisual?/editview/:editview?',
meta: {
......@@ -1501,19 +1487,6 @@ const router = new Router({
},
component: () => import('@pages/lite/dst-apigrid-view/dst-apigrid-view.vue'),
},
{
path: '/metadynamicmodels/:metadynamicmodel?/editview/:editview?',
meta: {
caption: 'entities.metadynamicmodel.views.editview.caption',
info:'',
parameters: [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/meta-dynamic-model-edit-view/meta-dynamic-model-edit-view.vue'),
},
{
path: '/metamodels/:metamodel?/gridview/:gridview?',
meta: {
......@@ -1953,19 +1926,6 @@ const router = new Router({
},
component: () => import('@pages/lite/dst-microservice-grid-view/dst-microservice-grid-view.vue'),
},
{
path: '/metadynamicmodels/:metadynamicmodel?/gridview/:gridview?',
meta: {
caption: 'entities.metadynamicmodel.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/meta-dynamic-model-grid-view/meta-dynamic-model-grid-view.vue'),
},
{
path: '/dstsystems/:dstsystem?/dstmicroservices/:dstmicroservice?/dstapis/:dstapi?/editview/:editview?',
meta: {
......@@ -2390,6 +2350,19 @@ const router = new Router({
},
component: () => import('@pages/lite/meta-module-edit-view/meta-module-edit-view.vue'),
},
{
path: '/metadynamicmodels/:metadynamicmodel?/dynainsteditview/:dynainsteditview?',
meta: {
caption: 'entities.metadynamicmodel.views.dynainsteditview.caption',
info:'',
parameters: [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'dynainsteditview', parameterName: 'dynainsteditview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/meta-dynamic-model-dyna-inst-edit-view/meta-dynamic-model-dyna-inst-edit-view.vue'),
},
{
path: '/dstsystems/:dstsystem?/metaentities/:metaentity?/metadatasets/:metadataset?/editview/:editview?',
meta: {
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.meta-dynamic-model-dyna-inst-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MetaDynamicModelDynaInstEditViewBase from './meta-dynamic-model-dyna-inst-edit-view-base.vue';
import view_form from '@widgets/meta-dynamic-model/dyna-inst-form/dyna-inst-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class MetaDynamicModelDynaInstEditView extends MetaDynamicModelDynaInstEditViewBase {
}
</script>
\ No newline at end of file
......@@ -140,7 +140,7 @@
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
fetchAction="FetchDynaInst"
:newdata="newdata"
:opendata="opendata"
name="grid"
......@@ -1347,7 +1347,7 @@ export default class MetaDynamicModelDynaInstGridViewBase extends Vue {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'dynainsteditview', parameterName: 'dynainsteditview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......@@ -1388,7 +1388,7 @@ export default class MetaDynamicModelDynaInstGridViewBase extends Vue {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'dynainsteditview', parameterName: 'dynainsteditview' },
];
const _this: any = this;
if(fullargs && fullargs.copymode){
......
......@@ -32,16 +32,6 @@ export const viewstate: any = {
'566e7ad7de2c879a911727539980e0d9',
],
},
{
viewtag: '1777e5578e41e94cdf738b950a961ab1',
viewmodule: 'lite',
viewname: 'MetaDynamicModelEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'409f7ea81d15d2e2f1ee295d189d965b',
],
},
{
viewtag: '18d59a3ac7947d7123e0be76e7cb71c0',
viewmodule: 'lite',
......@@ -172,7 +162,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'1777e5578e41e94cdf738b950a961ab1',
'b81c2d5d0162a47fed1d37c7b66ed0b0',
],
},
{
......@@ -194,16 +184,6 @@ export const viewstate: any = {
'83be61fac74682d541d364717e7f6f31',
],
},
{
viewtag: '4f66aaf7857f97a00ab6cf6c1c054262',
viewmodule: 'lite',
viewname: 'MetaDynamicModelGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'1777e5578e41e94cdf738b950a961ab1',
],
},
{
viewtag: '566e7ad7de2c879a911727539980e0d9',
viewmodule: 'lite',
......@@ -295,11 +275,11 @@ export const viewstate: any = {
'ec89001b31b540bbfbc5df332d300b29',
'e5a20b8d7ce2cf41e100a3738fcff3a3',
'10aa45718d82d8f115c75ba01abb2de1',
'4f66aaf7857f97a00ab6cf6c1c054262',
'd613248735503950b91cb7094b036cdc',
'f20b2b6dc4d1c75c48f5da3eca3a3274',
'16af256f35cdf891e8e04f8fe652e91b',
'1ade7920c947bf50c32012de9962a92d',
'409f7ea81d15d2e2f1ee295d189d965b',
'33ec4b7d5a31addaec9b033067520820',
'88894333da0e2e0f7a556ecabf7b48ab',
'18d59a3ac7947d7123e0be76e7cb71c0',
......@@ -382,6 +362,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'b81c2d5d0162a47fed1d37c7b66ed0b0',
viewmodule: 'lite',
viewname: 'MetaDynamicModelDynaInstEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'409f7ea81d15d2e2f1ee295d189d965b',
],
},
{
viewtag: 'c172e249359ac4100216c0b04ecf5a51',
viewmodule: 'lite',
......
......@@ -99,6 +99,7 @@ export default class MetaDynamicModelUIServiceBase extends UIService {
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-edit-view'});
this.allViewMap.set(':',{viewname:'dynainstgridview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-dyna-inst-grid-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-grid-view'});
this.allViewMap.set(':',{viewname:'dynainsteditview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-dyna-inst-edit-view'});
}
/**
......
......@@ -794,7 +794,7 @@ export default class LiteIndexBase extends Vue implements ControlInterface {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'dynainstgridview', parameterName: 'dynainstgridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......
......@@ -366,12 +366,12 @@ export default class LiteIndexModel {
appfunctag: 'AppFunc14',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'metadynamicmodelgridview',
codename: 'metadynamicmodeldynainstgridview',
deResParameters: [],
routepath: '/liteindex/:liteindex?/metadynamicmodels/:metadynamicmodel?/gridview/:gridview?',
routepath: '/liteindex/:liteindex?/metadynamicmodels/:metadynamicmodel?/dynainstgridview/:dynainstgridview?',
parameters: [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'dynainstgridview', parameterName: 'dynainstgridview' },
],
},
{
......
......@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
/**
* DynaInst 部件模型
*
* @export
* @class DynaInstModel
*/
export default class DynaInstModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DynaInstModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'configid',
dataType: 'TEXT',
},
{
name: 'srfmajortext',
prop: 'configname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'configname',
prop: 'configname',
dataType: 'TEXT',
},
{
name: 'formitem',
prop: 'modelfile',
dataType: 'TEXT',
},
{
name: 'configid',
prop: 'configid',
dataType: 'TEXT',
},
{
name: 'metadynamicmodel',
prop: 'configid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
padding: 6px;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
.app-form{
// 表单行间距
.app-form-item{
margin-bottom: 20px;
}
// 表单按钮margin
.app-form-button{
margin:0 6px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DynaInstBase from './dyna-inst-form-base.vue';
@Component({
components: {
}
})
export default class DynaInst extends DynaInstBase {
}
</script>
\ No newline at end of file
......@@ -837,7 +837,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(pageReset){
......@@ -932,7 +932,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -1038,7 +1038,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -1914,7 +1914,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -1922,7 +1922,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.metadynamicmodel){
......@@ -1989,7 +1989,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaDynamicModelDynaInstGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return;
}
let _this = this;
......
......@@ -244,7 +244,7 @@
<!--输出实体[META_DYNAMICMODEL]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_dynamicmodel-96-12">
<changeSet author="a_A_5d9d78509" id="tab-meta_dynamicmodel-105-12">
<createTable tableName="IBZDYNAMICMODEL">
<column name="DYNAINSTID" remarks="" type="VARCHAR(100)">
</column>
......@@ -448,10 +448,10 @@
<!--输出实体[DST_VIEW]外键关系 -->
<!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[META_DYNAMICMODEL]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-96-18">
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-105-18">
<addForeignKeyConstraint baseColumnNames="SYSTEMID" baseTableName="IBZDYNAMICMODEL" constraintName="DER1N_META_DYNAMICMODEL_DST_SY" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PSSYSTEMID" referencedTableName="IBZPSSYSTEM" validate="true"/>
</changeSet>
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-96-19">
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-105-19">
<addForeignKeyConstraint baseColumnNames="PDYNAINSTID" baseTableName="IBZDYNAMICMODEL" constraintName="DER1N_META_DYNAMICMODEL_META_D" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONFIGID" referencedTableName="IBZDYNAMICMODEL" validate="true"/>
</changeSet>
<!--输出实体[META_ENTITY]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册