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

zoo457790531 发布系统代码 [ibz-disk,存储]

上级 cfa083c3
[
{
"srfkey": "DynamicModelStatus",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "0",
"label": "未激活",
"text": "未激活",
"class":"",
"data":"",
"codename":"Item_0",
"color": "rgba(245, 158, 18, 1)",
"value": "0",
"disabled": false
}
, {
"id": "1",
"label": "已激活",
"text": "已激活",
"class":"",
"data":"",
"codename":"Item_1",
"color": "rgba(100, 235, 22, 1)",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "SysOperator",
"emptytext": "未定义",
"codelisttype":"dynamic",
......
......@@ -15,6 +15,22 @@
"viewname": "SDFileGridView",
"viewtag": "795a12a2bfb63a98ce5bb80310509360"
},
"metadynamicmodeldynainsteditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstEditView",
"viewtag": "92d51d41db51a671793ee8dc8876f9e9"
},
"metadynamicmodelgridview": {
"title": "动态模型",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelGridView",
"viewtag": "af9cfc34d957186380a012e322abff0c"
},
"sdindexview": {
"title": "ibizlab-disk",
"caption": "ibizlab-disk",
......@@ -22,5 +38,21 @@
"viewmodule": "disk",
"viewname": "SDIndexView",
"viewtag": "c0a8e8c1058d9a5cdb5a6edbf9855886"
},
"metadynamicmodeldynainstgridview": {
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstGridView",
"viewtag": "cec3236f5a1f742f9b91f313506ccc6c"
},
"metadynamicmodeleditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelEditView",
"viewtag": "e8892afaebe9a899e5d528d5b55d3cc5"
}
}
......@@ -39,7 +39,8 @@ export class AuthServiceRegister {
* @memberof AuthServiceRegister
*/
protected init(): void {
this.allAuthService.set('sdfile', () => import('@/authservice/sdfile/sdfile-auth-service'));
this.allAuthService.set('metadynamicmodel', () => import('@/authservice/meta-dynamic-model/meta-dynamic-model-auth-service'));
this.allAuthService.set('sdfile', () => import('@/authservice/sdfile/sdfile-auth-service'));
}
/**
......
import AuthService from '../auth-service';
/**
* 动态模型权限服务对象基类
*
* @export
* @class MetaDynamicModelAuthServiceBase
* @extends {AuthService}
*/
export default class MetaDynamicModelAuthServiceBase extends AuthService {
/**
* Creates an instance of MetaDynamicModelAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof MetaDynamicModelAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof MetaDynamicModelAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = this.getSysOPPrivs();
let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
// 统一资源优先
Object.keys(curDefaultOPPrivs).forEach((name:string) => {
if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){
curDefaultOPPrivs[name] = copyDefaultOPPrivs[name];
}
});
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import MetaDynamicModelAuthServiceBase from './meta-dynamic-model-auth-service-base';
/**
* 动态模型权限服务对象
*
* @export
* @class MetaDynamicModelAuthService
* @extends {MetaDynamicModelAuthServiceBase}
*/
export default class MetaDynamicModelAuthService extends MetaDynamicModelAuthServiceBase {
/**
* Creates an instance of MetaDynamicModelAuthService.
*
* @param {*} [opts={}]
* @memberof MetaDynamicModelAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import metadynamicmodel_BO_CN from '@locale/lanres/entities/meta-dynamic-model/meta-dynamic-model_BO_CN';
import sdfile_BO_CN from '@locale/lanres/entities/sdfile/sdfile_BO_CN';
import components_BO_CN from '@locale/lanres/components/components_BO_CN';
import codelist_BO_CN from '@locale/lanres/codelist/codelist_BO_CN';
......@@ -128,6 +129,7 @@ function getAppLocale(){
menus: {
sdindexview: {
menuitem1: commonLogic.appcommonhandle("文件",null),
menuitem2: commonLogic.appcommonhandle("动态模型",null),
},
},
formpage:{
......@@ -222,6 +224,7 @@ function getAppLocale(){
},
},
entities: {
metadynamicmodel: metadynamicmodel_BO_CN(),
sdfile: sdfile_BO_CN(),
},
components: components_BO_CN(),
......
import metadynamicmodel_en_US from '@locale/lanres/entities/meta-dynamic-model/meta-dynamic-model_en_US';
import sdfile_en_US from '@locale/lanres/entities/sdfile/sdfile_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
......@@ -128,6 +129,7 @@ function getAppLocale(){
menus: {
sdindexview: {
menuitem1: commonLogic.appcommonhandle("文件",null),
menuitem2: commonLogic.appcommonhandle("动态模型",null),
},
},
formpage:{
......@@ -223,6 +225,7 @@ function getAppLocale(){
},
},
entities: {
metadynamicmodel: metadynamicmodel_en_US(),
sdfile: sdfile_en_US(),
},
components: components_en_US(),
......
import metadynamicmodel_zh_CN from '@locale/lanres/entities/meta-dynamic-model/meta-dynamic-model_zh_CN';
import sdfile_zh_CN from '@locale/lanres/entities/sdfile/sdfile_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
......@@ -128,6 +129,7 @@ function getAppLocale(){
menus: {
sdindexview: {
menuitem1: commonLogic.appcommonhandle("文件",null),
menuitem2: commonLogic.appcommonhandle("动态模型",null),
},
},
formpage:{
......@@ -222,6 +224,7 @@ function getAppLocale(){
},
},
entities: {
metadynamicmodel: metadynamicmodel_zh_CN(),
sdfile: sdfile_zh_CN(),
},
components: components_zh_CN(),
......
......@@ -2,6 +2,11 @@ import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null)
},
SysOperator: {
"empty": commonLogic.appcommonhandle("",null),
},
......
......@@ -2,6 +2,11 @@ import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null)
},
SysOperator: {
"empty": commonLogic.appcommonhandle("",null),
},
......
......@@ -2,6 +2,11 @@ import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null),
},
SysOperator: {
"empty": commonLogic.appcommonhandle("",null),
},
......
import MetaDynamicModel_BO_CN_Base from './meta-dynamic-model_BO_CN_base';
function getLocaleResource(){
const MetaDynamicModel_BO_CN_OwnData = {};
const targetData = Object.assign(MetaDynamicModel_BO_CN_Base(), MetaDynamicModel_BO_CN_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
import MetaDynamicModel_en_US_Base from './meta-dynamic-model_en_US_base';
function getLocaleResource(){
const MetaDynamicModel_en_US_OwnData = {};
const targetData = Object.assign(MetaDynamicModel_en_US_Base(), MetaDynamicModel_en_US_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
import MetaDynamicModel_zh_CN_Base from './meta-dynamic-model_zh_CN_base';
function getLocaleResource(){
const MetaDynamicModel_zh_CN_OwnData = {};
const targetData = Object.assign(MetaDynamicModel_zh_CN_Base(), MetaDynamicModel_zh_CN_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
......@@ -27,6 +27,24 @@ mock.onGet('v7/sdindex-viewappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto1',
resourcetag: '',
},
{
id: '4AD5C30C-D39B-42EC-9418-70615CA75A3C',
name: 'menuitem2',
text: '动态模型',
type: 'MENUITEM',
counterid: '',
tooltip: '动态模型',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc',
resourcetag: '',
},
],
}];
......
......@@ -8,6 +8,37 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status, [
{
srfkey: "DynamicModelStatus",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "0",
label: "未激活",
text: "未激活",
"class":"",
"data":"",
"codename":"Item_0",
"color": "rgba(245, 158, 18, 1)",
value: "0",
disabled: false,
},
{
id: "1",
label: "已激活",
text: "已激活",
"class":"",
"data":"",
"codename":"Item_1",
"color": "rgba(100, 235, 22, 1)",
value: "1",
disabled: false,
},
]
},
{
"srfkey": "SysOperator",
"emptytext": "未定义",
"codelisttype":"dynamic",
......
......@@ -7,4 +7,5 @@ import './login/login';
import './upload/upload';
// 实体级接口对象
import './entity/meta-dynamic-models/meta-dynamic-models';
import './entity/sdfiles/sdfiles';
......@@ -23,6 +23,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SDFileGridView",
"viewtag": "795a12a2bfb63a98ce5bb80310509360"
},
"metadynamicmodeldynainsteditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstEditView",
"viewtag": "92d51d41db51a671793ee8dc8876f9e9"
},
"metadynamicmodelgridview": {
"title": "动态模型",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelGridView",
"viewtag": "af9cfc34d957186380a012e322abff0c"
},
"sdindexview": {
"title": "ibizlab-disk",
"caption": "ibizlab-disk",
......@@ -30,6 +46,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewmodule": "disk",
"viewname": "SDIndexView",
"viewtag": "c0a8e8c1058d9a5cdb5a6edbf9855886"
},
"metadynamicmodeldynainstgridview": {
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelDynaInstGridView",
"viewtag": "cec3236f5a1f742f9b91f313506ccc6c"
},
"metadynamicmodeleditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelEditView",
"viewtag": "e8892afaebe9a899e5d528d5b55d3cc5"
}
}];
});
......
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('sdfile-edit-view', () => import('@pages/disk/sdfile-edit-view/sdfile-edit-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('sdfile-edit-view', () => import('@pages/disk/sdfile-edit-view/sdfile-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('sdfile-grid-view', () => import('@pages/disk/sdfile-grid-view/sdfile-grid-view.vue'));
}
};
\ No newline at end of file
......@@ -35,6 +35,20 @@ const router = new Router({
},
component: () => import('@pages/disk/sdindex-view/sdindex-view.vue'),
children: [
{
path: 'metadynamicmodels/:metadynamicmodel?/editview/:editview?',
meta: {
caption: 'entities.metadynamicmodel.views.editview.caption',
info:'',
parameters: [
{ pathName: 'sdindexview', parameterName: 'sdindexview' },
{ 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: 'sdfiles/:sdfile?/editview/:editview?',
meta: {
......@@ -49,6 +63,20 @@ const router = new Router({
},
component: () => import('@pages/disk/sdfile-edit-view/sdfile-edit-view.vue'),
},
{
path: 'metadynamicmodels/:metadynamicmodel?/gridview/:gridview?',
meta: {
caption: 'entities.metadynamicmodel.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'sdindexview', parameterName: 'sdindexview' },
{ 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: 'sdfiles/:sdfile?/gridview/:gridview?',
meta: {
......@@ -91,6 +119,32 @@ const router = new Router({
requireAuth: true,
},
component: () => import('@pages/disk/sdfile-grid-view/sdfile-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: '/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'),
},
...globalRoutes,
{
......
.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
.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
.meta-dynamic-model-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 MetaDynamicModelGridViewBase from './meta-dynamic-model-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 MetaDynamicModelGridView extends MetaDynamicModelGridViewBase {
}
</script>
\ No newline at end of file
......@@ -39,7 +39,8 @@ export class EntityServiceRegister {
* @memberof EntityServiceRegister
*/
protected init(): void {
this.allEntityService.set('sdfile', () => import('@/service/sdfile/sdfile-service'));
this.allEntityService.set('metadynamicmodel', () => import('@/service/meta-dynamic-model/meta-dynamic-model-service'));
this.allEntityService.set('sdfile', () => import('@/service/sdfile/sdfile-service'));
}
/**
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 动态模型服务对象基类
*
* @export
* @class MetaDynamicModelServiceBase
* @extends {EntityServie}
*/
export default class MetaDynamicModelServiceBase extends EntityService {
/**
* Creates an instance of MetaDynamicModelServiceBase.
*
* @param {*} [opts={}]
* @memberof MetaDynamicModelServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof MetaDynamicModelServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='metadynamicmodel';
this.APPDEKEY = 'configid';
this.APPDENAME = 'metadynamicmodels';
this.APPDETEXT = 'configname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzdisk';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/metadynamicmodels/${context.metadynamicmodel}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/metadynamicmodels`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/metadynamicmodels/${context.metadynamicmodel}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/metadynamicmodels/${context.metadynamicmodel}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/metadynamicmodels/${context.metadynamicmodel}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/metadynamicmodels/getdraft`,isloading);
res.data.metadynamicmodel = data.metadynamicmodel;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/metadynamicmodels/${context.metadynamicmodel}/checkkey`,data,isloading);
return res;
}
/**
* Init接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Init(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/metadynamicmodels/${context.metadynamicmodel}/init`,data,isloading);
return res;
}
/**
* InitBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async InitBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/metadynamicmodels/initbatch`,tempData,isloading);
}
/**
* Publish接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Publish(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/metadynamicmodels/${context.metadynamicmodel}/publish`,data,isloading);
return res;
}
/**
* PublishBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async PublishBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/metadynamicmodels/publishbatch`,tempData,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/metadynamicmodels/${context.metadynamicmodel}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/metadynamicmodels/fetchdefault`,tempData,isloading);
return res;
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/metadynamicmodels/searchdefault`,tempData,isloading);
}
/**
* FetchDynaInst接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async FetchDynaInst(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/metadynamicmodels/fetchdynainst`,tempData,isloading);
return res;
}
/**
* searchDynaInst接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public async searchDynaInst(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/metadynamicmodels/searchdynainst`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import MetaDynamicModelServiceBase from './meta-dynamic-model-service-base';
/**
* 动态模型服务对象
*
* @export
* @class MetaDynamicModelService
* @extends {MetaDynamicModelServiceBase}
*/
export default class MetaDynamicModelService extends MetaDynamicModelServiceBase {
/**
* Creates an instance of MetaDynamicModelService.
*
* @param {*} [opts={}]
* @memberof MetaDynamicModelService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -22,6 +22,26 @@ export const viewstate: any = {
'646581c57dbd5cf6c2570e4013f3adb8',
],
},
{
viewtag: '92d51d41db51a671793ee8dc8876f9e9',
viewmodule: 'lite',
viewname: 'MetaDynamicModelDynaInstEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'af9cfc34d957186380a012e322abff0c',
],
},
{
viewtag: 'af9cfc34d957186380a012e322abff0c',
viewmodule: 'lite',
viewname: 'MetaDynamicModelGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'e8892afaebe9a899e5d528d5b55d3cc5',
],
},
{
viewtag: 'c0a8e8c1058d9a5cdb5a6edbf9855886',
viewmodule: 'disk',
......@@ -29,9 +49,29 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'af9cfc34d957186380a012e322abff0c',
'795a12a2bfb63a98ce5bb80310509360',
],
},
{
viewtag: 'cec3236f5a1f742f9b91f313506ccc6c',
viewmodule: 'lite',
viewname: 'MetaDynamicModelDynaInstGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'92d51d41db51a671793ee8dc8876f9e9',
],
},
{
viewtag: 'e8892afaebe9a899e5d528d5b55d3cc5',
viewmodule: 'lite',
viewname: 'MetaDynamicModelEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
],
createdviews: [],
}
\ No newline at end of file
import MetaDynamicModelUIServiceBase from './meta-dynamic-model-ui-service-base';
/**
* 动态模型UI服务对象
*
* @export
* @class MetaDynamicModelUIService
*/
export default class MetaDynamicModelUIService extends MetaDynamicModelUIServiceBase {
/**
* Creates an instance of MetaDynamicModelUIService.
*
* @param {*} [opts={}]
* @memberof MetaDynamicModelUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -39,7 +39,8 @@ export class UIServiceRegister {
* @memberof UIServiceRegister
*/
protected init(): void {
this.allUIService.set('sdfile', () => import('@/uiservice/sdfile/sdfile-ui-service'));
this.allUIService.set('metadynamicmodel', () => import('@/uiservice/meta-dynamic-model/meta-dynamic-model-ui-service'));
this.allUIService.set('sdfile', () => import('@/uiservice/sdfile/sdfile-ui-service'));
}
/**
......
......@@ -595,6 +595,9 @@ export default class SDIndexViewBase extends Vue implements ControlInterface {
navDataService.removeNavData(this.viewtag);
}
switch (item.appfunctag) {
case 'AppFunc':
this.clickAppFunc(item);
return;
case 'Auto1':
this.clickAuto1(item);
return;
......@@ -605,6 +608,29 @@ export default class SDIndexViewBase extends Vue implements ControlInterface {
}
/**
* 动态模型表格视图
*
* @param {*} [item={}]
* @memberof SDIndexView
*/
public clickAppFunc(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
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);
})
}
/**
* 文件
*
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
......@@ -7,6 +7,10 @@ logging:
#zuul网关路由设置
zuul:
routes:
meta_dynamicmodel:
path: /metadynamicmodels/**
serviceId: ${ibiz.ref.service.ibzdisk-api:ibzdisk-api}
stripPrefix: false
sd_file:
path: /sdfiles/**
serviceId: ${ibiz.ref.service.ibzdisk-api:ibzdisk-api}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册