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

zoo457790531 发布系统代码 [ibiz-rt,ibizlab-runtime]

上级 5e510c6e
......@@ -671,12 +671,12 @@
"viewname": "WFUserPickupGridView",
"viewtag": "c9c73c8d2e61bd29a304622f3d39b522"
},
"meta_dynamicmodeldynainstgridview": {
"metadynamicmodeldynainstgridview": {
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELDynaInstGridView",
"viewname": "MetaDynamicModelDynaInstGridView",
"viewtag": "cec3236f5a1f742f9b91f313506ccc6c"
},
"sysdepartmentpickupview": {
......@@ -711,6 +711,14 @@
"viewname": "JobsInfoGridView",
"viewtag": "e4856779577562e9880855e6c66d63e5"
},
"metadynamicmodeleditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "disk",
"viewname": "MetaDynamicModelEditView",
"viewtag": "e8892afaebe9a899e5d528d5b55d3cc5"
},
"sysemployeepickupgridview": {
"title": "人员选择表格视图",
"caption": "人员",
......
......@@ -24,6 +24,30 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
editview: {
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),
systemid: commonLogic.appcommonhandle("系统",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
dynainst_form: {
details: {
......@@ -149,6 +173,16 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("过滤",null),
},
},
editviewtoolbar_toolbar: {
tbitem1: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("关闭",null),
tip: commonLogic.appcommonhandle("关闭",null),
},
},
dynainstgridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
......
......@@ -24,6 +24,30 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
editview: {
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),
systemid: commonLogic.appcommonhandle("系统",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
dynainst_form: {
details: {
......@@ -149,6 +173,16 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Filter",null),
},
},
editviewtoolbar_toolbar: {
tbitem1: {
caption: commonLogic.appcommonhandle("Save And Close",null),
tip: commonLogic.appcommonhandle("Save And Close Window",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("关闭",null),
tip: commonLogic.appcommonhandle("关闭",null),
},
},
dynainstgridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
......
......@@ -24,6 +24,30 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
editview: {
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),
systemid: commonLogic.appcommonhandle("系统",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
dynainst_form: {
details: {
......@@ -149,6 +173,16 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("过滤",null),
},
},
editviewtoolbar_toolbar: {
tbitem1: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("关闭",null),
tip: commonLogic.appcommonhandle("关闭",null),
},
},
dynainstgridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
......
......@@ -679,12 +679,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "WFUserPickupGridView",
"viewtag": "c9c73c8d2e61bd29a304622f3d39b522"
},
"meta_dynamicmodeldynainstgridview": {
"metadynamicmodeldynainstgridview": {
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELDynaInstGridView",
"viewname": "MetaDynamicModelDynaInstGridView",
"viewtag": "cec3236f5a1f742f9b91f313506ccc6c"
},
"sysdepartmentpickupview": {
......@@ -719,6 +719,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "JobsInfoGridView",
"viewtag": "e4856779577562e9880855e6c66d63e5"
},
"metadynamicmodeleditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "disk",
"viewname": "MetaDynamicModelEditView",
"viewtag": "e8892afaebe9a899e5d528d5b55d3cc5"
},
"sysemployeepickupgridview": {
"title": "人员选择表格视图",
"caption": "人员",
......
.meta-dynamic-model-dyna-inst-grid-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 MetaDynamicModelDynaInstGridViewBase from './meta-dynamic-model-dyna-inst-grid-view-base.vue';
import view_grid from '@widgets/meta-dynamic-model/main-grid/main-grid.vue';
import view_searchform from '@widgets/meta-dynamic-model/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
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 MetaDynamicModelDynaInstGridView extends MetaDynamicModelDynaInstGridViewBase {
}
</script>
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.meta-dynamic-model-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 MetaDynamicModelEditViewBase from './meta-dynamic-model-edit-view-base.vue';
import view_form from '@widgets/meta-dynamic-model/main-form/main-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 MetaDynamicModelEditView extends MetaDynamicModelEditViewBase {
}
</script>
\ No newline at end of file
......@@ -1322,10 +1322,10 @@ export default class MetaDynamicModelGridViewBase extends Vue {
});
}
const view: any = {
viewname: 'meta-dynamicmodeldyna-inst-edit-view',
viewname: 'meta-dynamic-model-edit-view',
height: 0,
width: 0,
title: this.$t('entities.metadynamicmodel.views.dynainsteditview.title'),
title: this.$t('entities.metadynamicmodel.views.editview.title'),
};
openPopupModal(view, data);
}
......@@ -1359,7 +1359,7 @@ export default class MetaDynamicModelGridViewBase extends Vue {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'dynainsteditview', parameterName: 'dynainsteditview' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
if(fullargs && fullargs.copymode){
......
......@@ -14,6 +14,7 @@ export const PageComponents = {
Vue.component('sys-user-role-grid-view', () => import('@pages/uaa/sys-user-role-grid-view/sys-user-role-grid-view.vue'));
Vue.component('sys-department-pickup-view', () => import('@pages/ou/sys-department-pickup-view/sys-department-pickup-view.vue'));
Vue.component('pay-trade-grid-view', () => import('@pages/pay/pay-trade-grid-view/pay-trade-grid-view.vue'));
Vue.component('meta-dynamic-model-edit-view', () => import('@pages/disk/meta-dynamic-model-edit-view/meta-dynamic-model-edit-view.vue'));
Vue.component('wfmember-edit-view', () => import('@pages/workflow/wfmember-edit-view/wfmember-edit-view.vue'));
Vue.component('jobs-log-grid-view', () => import('@pages/task/jobs-log-grid-view/jobs-log-grid-view.vue'));
Vue.component('sys-role-pickup-grid-view', () => import('@pages/uaa/sys-role-pickup-grid-view/sys-role-pickup-grid-view.vue'));
......@@ -80,7 +81,7 @@ export const PageComponents = {
Vue.component('sys-organization-edit-view', () => import('@pages/ou/sys-organization-edit-view/sys-organization-edit-view.vue'));
Vue.component('pay-open-access-edit-view', () => import('@pages/pay/pay-open-access-edit-view/pay-open-access-edit-view.vue'));
Vue.component('sys-role-pickup-view', () => import('@pages/uaa/sys-role-pickup-view/sys-role-pickup-view.vue'));
Vue.component('meta-dynamicmodeldyna-inst-grid-view', () => import('@pages/disk/meta-dynamicmodeldyna-inst-grid-view/meta-dynamicmodeldyna-inst-grid-view.vue'));
Vue.component('meta-dynamic-model-dyna-inst-grid-view', () => import('@pages/disk/meta-dynamic-model-dyna-inst-grid-view/meta-dynamic-model-dyna-inst-grid-view.vue'));
Vue.component('sys-app-edit-view', () => import('@pages/uaa/sys-app-edit-view/sys-app-edit-view.vue'));
Vue.component('sys-post-pickup-grid-view', () => import('@pages/ou/sys-post-pickup-grid-view/sys-post-pickup-grid-view.vue'));
Vue.component('dict-option-grid-view', () => import('@pages/dict/dict-option-grid-view/dict-option-grid-view.vue'));
......
......@@ -276,6 +276,20 @@ const router = new Router({
},
component: () => import('@pages/pay/pay-trade-grid-view/pay-trade-grid-view.vue'),
},
{
path: 'metadynamicmodels/:metadynamicmodel?/editview/:editview?',
meta: {
caption: 'entities.metadynamicmodel.views.editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/disk/meta-dynamic-model-edit-view/meta-dynamic-model-edit-view.vue'),
},
{
path: 'wfusers/:wfuser?/wfmembers/:wfmember?/editview/:editview?',
meta: {
......@@ -2015,7 +2029,7 @@ const router = new Router({
],
requireAuth: true,
},
component: () => import('@pages/disk/meta-dynamicmodeldyna-inst-grid-view/meta-dynamicmodeldyna-inst-grid-view.vue'),
component: () => import('@pages/disk/meta-dynamic-model-dyna-inst-grid-view/meta-dynamic-model-dyna-inst-grid-view.vue'),
},
{
path: 'sysapps/:sysapp?/editview/:editview?',
......@@ -3852,7 +3866,7 @@ const router = new Router({
],
requireAuth: true,
},
component: () => import('@pages/disk/meta-dynamicmodeldyna-inst-grid-view/meta-dynamicmodeldyna-inst-grid-view.vue'),
component: () => import('@pages/disk/meta-dynamic-model-dyna-inst-grid-view/meta-dynamic-model-dyna-inst-grid-view.vue'),
},
{
path: '/sysorganizations/:sysorganization?/sysdepartments/:sysdepartment?/pickupview/:pickupview?',
......@@ -3934,6 +3948,19 @@ const router = new Router({
},
component: () => import('@pages/task/jobs-info-grid-view/jobs-info-grid-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/disk/meta-dynamic-model-edit-view/meta-dynamic-model-edit-view.vue'),
},
{
path: '/sysorganizations/:sysorganization?/sysdepartments/:sysdepartment?/sysemployees/:sysemployee?/pickupgridview/:pickupgridview?',
meta: {
......
......@@ -689,7 +689,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'92d51d41db51a671793ee8dc8876f9e9',
'e8892afaebe9a899e5d528d5b55d3cc5',
],
},
{
......@@ -820,7 +820,7 @@ export const viewstate: any = {
{
viewtag: 'cec3236f5a1f742f9b91f313506ccc6c',
viewmodule: 'disk',
viewname: 'META_DYNAMICMODELDynaInstGridView',
viewname: 'MetaDynamicModelDynaInstGridView',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -867,6 +867,15 @@ export const viewstate: any = {
'49b6b437f10c4e73e47d87d5d0f76cfd',
],
},
{
viewtag: 'e8892afaebe9a899e5d528d5b55d3cc5',
viewmodule: 'disk',
viewname: 'MetaDynamicModelEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'ed2bd80851a999d7a0d70ea15507ad0d',
viewmodule: 'ou',
......
......@@ -98,7 +98,8 @@ export default class MetaDynamicModelUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set(':',{viewname:'dynainsteditview',srfappde:'metadynamicmodels',component:'meta-dynamicmodeldyna-inst-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-grid-view'});
this.allViewMap.set(':',{viewname:'dynainstgridview',srfappde:'metadynamicmodels',component:'meta-dynamicmodeldyna-inst-grid-view'});
this.allViewMap.set(':',{viewname:'dynainstgridview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-dyna-inst-grid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-edit-view'});
}
/**
......
......@@ -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: 'META_DYNAMICMODELDynaInstGridView' + (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: 'META_DYNAMICMODELDynaInstGridView' + (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 } ;
......
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export default class MainModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainModel
*/
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: 'systemid',
prop: 'system_id',
dataType: 'TEXT',
},
{
name: 'pdynainstid',
prop: 'pdynainstid',
dataType: 'PICKUP',
},
{
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 MainBase from './main-form-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</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: 'META_DYNAMICMODELDynaInstGridView'+(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: 'META_DYNAMICMODELDynaInstGridView'+(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: 'META_DYNAMICMODELDynaInstGridView'+(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: 'META_DYNAMICMODELDynaInstGridView'+(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: 'META_DYNAMICMODELDynaInstGridView'+(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: 'META_DYNAMICMODELDynaInstGridView'+(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;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册