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

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

上级 afc923ea
...@@ -76,37 +76,6 @@ ...@@ -76,37 +76,6 @@
"appdedataset":"FetchDefault", "appdedataset":"FetchDefault",
"items": [] "items": []
}, },
{
"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": "AppType", "srfkey": "AppType",
"emptytext": "未定义", "emptytext": "未定义",
......
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
"viewname": "DstAPIGridView", "viewname": "DstAPIGridView",
"viewtag": "16af256f35cdf891e8e04f8fe652e91b" "viewtag": "16af256f35cdf891e8e04f8fe652e91b"
}, },
"metadynamicmodeleditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelEditView",
"viewtag": "1777e5578e41e94cdf738b950a961ab1"
},
"metamodelgridview": { "metamodelgridview": {
"title": "模型表格视图", "title": "模型表格视图",
"caption": "模型", "caption": "模型",
...@@ -151,6 +159,14 @@ ...@@ -151,6 +159,14 @@
"viewname": "DstMicroserviceGridView", "viewname": "DstMicroserviceGridView",
"viewtag": "4f19fa8bfbce2c71261ca7cc076f316e" "viewtag": "4f19fa8bfbce2c71261ca7cc076f316e"
}, },
"metadynamicmodelgridview": {
"title": "动态模型表格视图",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelGridView",
"viewtag": "4f66aaf7857f97a00ab6cf6c1c054262"
},
"dstapieditview": { "dstapieditview": {
"title": "接口编辑视图", "title": "接口编辑视图",
"caption": "接口", "caption": "接口",
...@@ -175,14 +191,6 @@ ...@@ -175,14 +191,6 @@
"viewname": "MetaEntityPickupGridView", "viewname": "MetaEntityPickupGridView",
"viewtag": "5c14ceb58f4392849324f2a6dc13eac2" "viewtag": "5c14ceb58f4392849324f2a6dc13eac2"
}, },
"dynamicmodelconfiggridview": {
"title": "动态模型配置表格视图",
"caption": "动态模型配置",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "DynamicModelConfigGridView",
"viewtag": "60de3991ba0f10d3baf57a55c43b69ee"
},
"dstsystempickupgridview": { "dstsystempickupgridview": {
"title": "系统选择表格视图", "title": "系统选择表格视图",
"caption": "系统", "caption": "系统",
...@@ -255,14 +263,6 @@ ...@@ -255,14 +263,6 @@
"viewname": "MetaEntityGridView", "viewname": "MetaEntityGridView",
"viewtag": "88894333da0e2e0f7a556ecabf7b48ab" "viewtag": "88894333da0e2e0f7a556ecabf7b48ab"
}, },
"dynamicmodelconfigeditview": {
"title": "动态模型配置编辑视图",
"caption": "动态模型配置",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "DynamicModelConfigEditView",
"viewtag": "8ea3fd15b81f812ae55aa5cc6be9975a"
},
"dstconfigeditview": { "dstconfigeditview": {
"title": "配置编辑视图", "title": "配置编辑视图",
"caption": "配置", "caption": "配置",
......
...@@ -48,12 +48,12 @@ export class AuthServiceRegister { ...@@ -48,12 +48,12 @@ export class AuthServiceRegister {
this.allAuthService.set('dstapi', () => import('@/authservice/dst-api/dst-api-auth-service')); this.allAuthService.set('dstapi', () => import('@/authservice/dst-api/dst-api-auth-service'));
this.allAuthService.set('dstrouter', () => import('@/authservice/dst-router/dst-router-auth-service')); this.allAuthService.set('dstrouter', () => import('@/authservice/dst-router/dst-router-auth-service'));
this.allAuthService.set('dstconfig', () => import('@/authservice/dst-config/dst-config-auth-service')); this.allAuthService.set('dstconfig', () => import('@/authservice/dst-config/dst-config-auth-service'));
this.allAuthService.set('dynamicmodelconfig', () => import('@/authservice/dynamic-model-config/dynamic-model-config-auth-service'));
this.allAuthService.set('metamodel', () => import('@/authservice/meta-model/meta-model-auth-service')); this.allAuthService.set('metamodel', () => import('@/authservice/meta-model/meta-model-auth-service'));
this.allAuthService.set('metamodule', () => import('@/authservice/meta-module/meta-module-auth-service')); this.allAuthService.set('metamodule', () => import('@/authservice/meta-module/meta-module-auth-service'));
this.allAuthService.set('dstdatasource', () => import('@/authservice/dst-data-source/dst-data-source-auth-service')); this.allAuthService.set('dstdatasource', () => import('@/authservice/dst-data-source/dst-data-source-auth-service'));
this.allAuthService.set('dstsystem', () => import('@/authservice/dst-system/dst-system-auth-service')); this.allAuthService.set('dstsystem', () => import('@/authservice/dst-system/dst-system-auth-service'));
this.allAuthService.set('metarelationship', () => import('@/authservice/meta-relationship/meta-relationship-auth-service')); this.allAuthService.set('metarelationship', () => import('@/authservice/meta-relationship/meta-relationship-auth-service'));
this.allAuthService.set('metadynamicmodel', () => import('@/authservice/meta-dynamic-model/meta-dynamic-model-auth-service'));
this.allAuthService.set('bladevisual', () => import('@/authservice/blade-visual/blade-visual-auth-service')); this.allAuthService.set('bladevisual', () => import('@/authservice/blade-visual/blade-visual-auth-service'));
this.allAuthService.set('metaentity', () => import('@/authservice/meta-entity/meta-entity-auth-service')); this.allAuthService.set('metaentity', () => import('@/authservice/meta-entity/meta-entity-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
...@@ -52,6 +52,7 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -52,6 +52,7 @@ import CodeListService from "@/codelist/codelist-service";
import EntityService from '@/service/entity-service'; import EntityService from '@/service/entity-service';
import { Vue, Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator'; import { Vue, Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { Environment } from '@/environments/environment'; import { Environment } from '@/environments/environment';
import moment from "moment";
@Component({ @Component({
}) })
...@@ -395,11 +396,11 @@ export default class AppDataUploadView extends Vue { ...@@ -395,11 +396,11 @@ export default class AppDataUploadView extends Vue {
let reader = new FileReader(); let reader = new FileReader();
reader.onload = (e:any) => { reader.onload = (e:any) => {
let data = e.target.result; let data = e.target.result;
this.workBookData = XLSX.read(data, {type: 'binary'}); this.workBookData = XLSX.read(data, {type: 'binary',cellDates: true});
let xlsxData = XLSX.utils.sheet_to_json(this.workBookData.Sheets[this.workBookData.SheetNames[0]]); let xlsxData = XLSX.utils.sheet_to_json(this.workBookData.Sheets[this.workBookData.SheetNames[0]]);
let list1 = this.getFirstRow(this.workBookData); let list1 = this.getFirstRow(this.workBookData);
xlsxData = this.AddXlsxData(xlsxData, list1); xlsxData = this.AddXlsxData(xlsxData, list1);
this.importDataArray = JSON.parse(JSON.stringify(xlsxData)); this.importDataArray = this.$util.deepCopy(xlsxData);
(this.$refs.inputUpLoad as any).value = ''; (this.$refs.inputUpLoad as any).value = '';
}; };
reader.readAsBinaryString(f); reader.readAsBinaryString(f);
...@@ -505,6 +506,11 @@ export default class AppDataUploadView extends Vue { ...@@ -505,6 +506,11 @@ export default class AppDataUploadView extends Vue {
data.forEach((item:any) =>{ data.forEach((item:any) =>{
let curObject:any = {}; let curObject:any = {};
Object.keys(item).forEach((ele:any) => { Object.keys(item).forEach((ele:any) => {
// todo XLSX读取时间为国际时间(东8区)+8H转为标准时间
if (item[ele] instanceof Date){
const tempDate:Date = item[ele];
item[ele] = moment(tempDate).add(8, 'h').format("YYYY-MM-DD HH:mm:ss");
}
if(this.allFieldMap.get(ele).codelist){ if(this.allFieldMap.get(ele).codelist){
let codelistTag:string = this.allFieldMap.get(ele).codelist.tag; let codelistTag:string = this.allFieldMap.get(ele).codelist.tag;
let codelistIsNumber:boolean = this.allFieldMap.get(ele).codelist.isnumber; let codelistIsNumber:boolean = this.allFieldMap.get(ele).codelist.isnumber;
......
...@@ -84,140 +84,142 @@ ...@@ -84,140 +84,142 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {Vue, Component, Prop, Model, Emit} from "vue-property-decorator"; import {Vue, Component, Prop, Model, Emit} from "vue-property-decorator";
import {Subject} from "rxjs"; import {Environment} from '@/environments/environment';
import {Environment} from '@/environments/environment'; import moment from 'moment';
import moment from 'moment';
@Component({}) @Component({})
export default class AppMessagePopover extends Vue { export default class AppMessagePopover extends Vue {
// 是否显示小圆点 // 是否显示小圆点
public showIsDot: any = false; public showIsDot: any = false;
// 默认显示的tab页 // 默认显示的tab页
public default_tab_pane: any = "first"; public default_tab_pane: any = "first";
// 待办列表 // 待办列表
public myTasks: any = []; public myTasks: any = [];
// 待办面板标签 // 待办面板标签
public myTasksLabel: any = "待办"; public myTasksLabel: any = "待办";
// 待办面板显示条数 // 待办面板显示条数
public taskShowCnt:number = 0; public taskShowCnt:number = 0;
// 消息列表 // 消息列表
public myMsgs: any = []; public myMsgs: any = [];
// 消息面板标签 // 消息面板标签
public myMsgsLabel: any = "消息"; public myMsgsLabel: any = "消息";
// 信息面板显示条数 // 信息面板显示条数
public msgShowCnt:number = 0; public msgShowCnt:number = 0;
/** /**
* vue创建 * vue创建
*/ */
created(): void {} created(): void {}
/** /**
* vue挂载 * vue挂载
*/ */
mounted(): void { mounted(): void {
// 首次获取待办列表 if(!Environment.workflow){
this.getMyTasks(); return;
// 定时器:每隔1分钟重新获取待办列表
const timer = setInterval(()=>{
this.getMyTasks();
},60000);
// 监听定时器,在vue销毁前清除定时器
this.$once('hook:beforeDestroy',()=>{
// 清除定时器
clearInterval(timer);
});
} }
// 首次获取待办列表
this.getMyTasks();
// 定时器:每隔1分钟重新获取待办列表
const timer = setInterval(()=>{
this.getMyTasks();
},60000);
// 监听定时器,在vue销毁前清除定时器
this.$once('hook:beforeDestroy',()=>{
// 清除定时器
clearInterval(timer);
});
}
/** /**
* 获取待办列表 * 获取待办列表
*/ */
public getMyTasks() { public getMyTasks() {
let url: any = '/wfcore/mytasks'; let url: any = '/wfcore/mytasks';
this.$http.get(url).then((response: any) => { this.$http.get(url).then((response: any) => {
if (response && response.status == 200) { if (response && response.status == 200) {
const data: any = response.data; const data: any = response.data;
if (data && data.length > 0) { if (data && data.length > 0) {
this.myTasks = data; this.myTasks = data;
this.showIsDot = true; this.showIsDot = true;
} else { } else {
this.myTasks = []; this.myTasks = [];
}
// 获取消息列表
this.getMyMsgs();
} }
}).catch((error: any) => { // 获取消息列表
console.warn("加载数据错误"); this.getMyMsgs();
})
}
/**
* 获取消息列表
*/
public getMyMsgs(){
// TODO:接口获取消息列表,这里用的待办数据
this.myMsgs = this.myTasks;
if (this.myMsgs.length > 0 && this.myTasks.length == 0) {
// 显示小圆点
this.showIsDot = true;
} }
} }).catch((error: any) => {
console.warn("加载数据错误");
})
}
/** /**
* 点击标签事件 * 获取消息列表
*/ */
public handleTag(data: any) { public getMyMsgs(){
if (!data) return this.$message.error("未获取到标签内容"); // TODO:接口获取消息列表,这里用的待办数据
// 拼接要打开的窗口地址 this.myMsgs = this.myTasks;
const baseUrl:any = Environment.BaseUrl; if (this.myMsgs.length > 0 && this.myTasks.length == 0) {
const openUrl:any = baseUrl + `/wfcore/mytasks/${data.processDefinitionKey}/web/${data.processInstanceBusinessKey}/usertasks/${data.taskDefinitionKey}`; // 显示小圆点
// 打开新窗口 this.showIsDot = true;
window.open(openUrl,'_blank');
} }
}
/** /**
* 销毁之前 * 点击标签事件
*/ */
beforeDestroy(): void { public handleTag(data: any) {
// 清空数据 if (!data) return this.$message.error("未获取到标签内容");
this.showIsDot = false; // 拼接要打开的窗口地址
this.myTasks = []; const baseUrl:any = Environment.BaseUrl;
this.myMsgs = []; const openUrl:any = baseUrl + `/wfcore/mytasks/${data.processDefinitionKey}/web/${data.processInstanceBusinessKey}/usertasks/${data.taskDefinitionKey}`;
} // 打开新窗口
window.open(openUrl,'_blank');
}
/** /**
* 时间格式转换 * 销毁之前
*/ */
public formatDate(date: string, format: string) { beforeDestroy(): void {
if(date && format) { // 清空数据
return moment(date).format(format); this.showIsDot = false;
} this.myTasks = [];
return date; this.myMsgs = [];
} }
/** /**
* 加载更多 * 时间格式转换
*/ */
public showMore(cnt: string) { public formatDate(date: string, format: string) {
if(Object.is('taskShowCnt', cnt)) { if(date && format) {
this.taskShowCnt + 10 < this.myTasks.length ? this.taskShowCnt += 10 : this.taskShowCnt += this.myTasks.length-this.taskShowCnt; return moment(date).format(format);
}
if(Object.is('msgShowCnt', cnt)) {
this.msgShowCnt + 10 < this.myMsgs.length ? this.msgShowCnt += 10 : this.msgShowCnt += this.myMsgs.length-this.msgShowCnt;
}
} }
return date;
}
/** /**
* 弹出框 显示/隐藏 时显示条数初始化 * 加载更多
*/ */
public initTabCnt() { public showMore(cnt: string) {
this.taskShowCnt = this.myTasks.length >= 10 ? 10 : this.myTasks.length; if(Object.is('taskShowCnt', cnt)) {
this.msgShowCnt = this.myMsgs.length >= 10 ? 10 : this.myMsgs.length; this.taskShowCnt + 10 < this.myTasks.length ? this.taskShowCnt += 10 : this.taskShowCnt += this.myTasks.length-this.taskShowCnt;
}
if(Object.is('msgShowCnt', cnt)) {
this.msgShowCnt + 10 < this.myMsgs.length ? this.msgShowCnt += 10 : this.msgShowCnt += this.myMsgs.length-this.msgShowCnt;
} }
}
/**
* 弹出框 显示/隐藏 时显示条数初始化
*/
public initTabCnt() {
this.taskShowCnt = this.myTasks.length >= 10 ? 10 : this.myTasks.length;
this.msgShowCnt = this.myMsgs.length >= 10 ? 10 : this.myMsgs.length;
} }
}
</script> </script>
<style lang='less'> <style lang='less'>
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
:filterable="filterable" :filterable="filterable"
@on-open-change="onClick" @on-open-change="onClick"
:placeholder="placeholder?placeholder:$t('components.dropDownListMpicker.placeholder')"> :placeholder="placeholder?placeholder:$t('components.dropDownListMpicker.placeholder')">
<i-option v-for="(item, index) in items" :key="index" :class="item.class" :value="item.value.toString()" :label="item.text"> <i-option v-for="(item, index) in items" :key="index" :class="item.class" :value="item.value ? item.value.toString():''" :label="item.text">
<Checkbox :value = "(currentVal.indexOf(item.value.toString()))==-1?false:true"> <Checkbox :value="(currentVal.indexOf(item.value ? item.value.toString() : '')) == -1 ? false : true">
{{Object.is(codelistType,'STATIC') ? $t('codelist.'+tag+'.'+item.value) : item.text}} {{Object.is(codelistType,'STATIC') ? $t('codelist.'+tag+'.'+item.value) : item.text}}
</Checkbox> </Checkbox>
</i-option> </i-option>
......
...@@ -394,7 +394,9 @@ export default class DropDownList extends Vue { ...@@ -394,7 +394,9 @@ export default class DropDownList extends Vue {
if(type === 'number'){ if(type === 'number'){
item.value = item.value.toString(); item.value = item.value.toString();
}else{ }else{
if(item.value.indexOf('.') == -1){ if(type == "null") {
this.valueType == "number" ? item.value = 0 : item.value = '';
}else if(item.value.indexOf('.') == -1){
item.value = parseInt(item.value); item.value = parseInt(item.value);
}else{ }else{
item.value = parseFloat(item.value); item.value = parseFloat(item.value);
......
...@@ -45,6 +45,8 @@ export const Environment = { ...@@ -45,6 +45,8 @@ export const Environment = {
ibizlabtUrl: 'https://www.ibizlab.cn', ibizlabtUrl: 'https://www.ibizlab.cn',
// ibiz论坛地址 // ibiz论坛地址
ibizbbstUrl: 'https://bbs.ibizlab.cn', ibizbbstUrl: 'https://bbs.ibizlab.cn',
// 是否启用工作流
workflow: false,
}; };
// 挂载外部配置文件 // 挂载外部配置文件
if ((window as any).Environment) { if ((window as any).Environment) {
......
...@@ -7,12 +7,12 @@ import dstview_BO_CN from '@locale/lanres/entities/dst-view/dst-view_BO_CN'; ...@@ -7,12 +7,12 @@ import dstview_BO_CN from '@locale/lanres/entities/dst-view/dst-view_BO_CN';
import dstapi_BO_CN from '@locale/lanres/entities/dst-api/dst-api_BO_CN'; import dstapi_BO_CN from '@locale/lanres/entities/dst-api/dst-api_BO_CN';
import dstrouter_BO_CN from '@locale/lanres/entities/dst-router/dst-router_BO_CN'; import dstrouter_BO_CN from '@locale/lanres/entities/dst-router/dst-router_BO_CN';
import dstconfig_BO_CN from '@locale/lanres/entities/dst-config/dst-config_BO_CN'; import dstconfig_BO_CN from '@locale/lanres/entities/dst-config/dst-config_BO_CN';
import dynamicmodelconfig_BO_CN from '@locale/lanres/entities/dynamic-model-config/dynamic-model-config_BO_CN';
import metamodel_BO_CN from '@locale/lanres/entities/meta-model/meta-model_BO_CN'; import metamodel_BO_CN from '@locale/lanres/entities/meta-model/meta-model_BO_CN';
import metamodule_BO_CN from '@locale/lanres/entities/meta-module/meta-module_BO_CN'; import metamodule_BO_CN from '@locale/lanres/entities/meta-module/meta-module_BO_CN';
import dstdatasource_BO_CN from '@locale/lanres/entities/dst-data-source/dst-data-source_BO_CN'; import dstdatasource_BO_CN from '@locale/lanres/entities/dst-data-source/dst-data-source_BO_CN';
import dstsystem_BO_CN from '@locale/lanres/entities/dst-system/dst-system_BO_CN'; import dstsystem_BO_CN from '@locale/lanres/entities/dst-system/dst-system_BO_CN';
import metarelationship_BO_CN from '@locale/lanres/entities/meta-relationship/meta-relationship_BO_CN'; import metarelationship_BO_CN from '@locale/lanres/entities/meta-relationship/meta-relationship_BO_CN';
import metadynamicmodel_BO_CN from '@locale/lanres/entities/meta-dynamic-model/meta-dynamic-model_BO_CN';
import bladevisual_BO_CN from '@locale/lanres/entities/blade-visual/blade-visual_BO_CN'; import bladevisual_BO_CN from '@locale/lanres/entities/blade-visual/blade-visual_BO_CN';
import metaentity_BO_CN from '@locale/lanres/entities/meta-entity/meta-entity_BO_CN'; import metaentity_BO_CN from '@locale/lanres/entities/meta-entity/meta-entity_BO_CN';
import components_BO_CN from '@locale/lanres/components/components_BO_CN'; import components_BO_CN from '@locale/lanres/components/components_BO_CN';
...@@ -260,12 +260,12 @@ function getAppLocale(){ ...@@ -260,12 +260,12 @@ function getAppLocale(){
dstapi: dstapi_BO_CN(), dstapi: dstapi_BO_CN(),
dstrouter: dstrouter_BO_CN(), dstrouter: dstrouter_BO_CN(),
dstconfig: dstconfig_BO_CN(), dstconfig: dstconfig_BO_CN(),
dynamicmodelconfig: dynamicmodelconfig_BO_CN(),
metamodel: metamodel_BO_CN(), metamodel: metamodel_BO_CN(),
metamodule: metamodule_BO_CN(), metamodule: metamodule_BO_CN(),
dstdatasource: dstdatasource_BO_CN(), dstdatasource: dstdatasource_BO_CN(),
dstsystem: dstsystem_BO_CN(), dstsystem: dstsystem_BO_CN(),
metarelationship: metarelationship_BO_CN(), metarelationship: metarelationship_BO_CN(),
metadynamicmodel: metadynamicmodel_BO_CN(),
bladevisual: bladevisual_BO_CN(), bladevisual: bladevisual_BO_CN(),
metaentity: metaentity_BO_CN(), metaentity: metaentity_BO_CN(),
}, },
......
...@@ -7,12 +7,12 @@ import dstview_en_US from '@locale/lanres/entities/dst-view/dst-view_en_US'; ...@@ -7,12 +7,12 @@ import dstview_en_US from '@locale/lanres/entities/dst-view/dst-view_en_US';
import dstapi_en_US from '@locale/lanres/entities/dst-api/dst-api_en_US'; import dstapi_en_US from '@locale/lanres/entities/dst-api/dst-api_en_US';
import dstrouter_en_US from '@locale/lanres/entities/dst-router/dst-router_en_US'; import dstrouter_en_US from '@locale/lanres/entities/dst-router/dst-router_en_US';
import dstconfig_en_US from '@locale/lanres/entities/dst-config/dst-config_en_US'; import dstconfig_en_US from '@locale/lanres/entities/dst-config/dst-config_en_US';
import dynamicmodelconfig_en_US from '@locale/lanres/entities/dynamic-model-config/dynamic-model-config_en_US';
import metamodel_en_US from '@locale/lanres/entities/meta-model/meta-model_en_US'; import metamodel_en_US from '@locale/lanres/entities/meta-model/meta-model_en_US';
import metamodule_en_US from '@locale/lanres/entities/meta-module/meta-module_en_US'; import metamodule_en_US from '@locale/lanres/entities/meta-module/meta-module_en_US';
import dstdatasource_en_US from '@locale/lanres/entities/dst-data-source/dst-data-source_en_US'; import dstdatasource_en_US from '@locale/lanres/entities/dst-data-source/dst-data-source_en_US';
import dstsystem_en_US from '@locale/lanres/entities/dst-system/dst-system_en_US'; import dstsystem_en_US from '@locale/lanres/entities/dst-system/dst-system_en_US';
import metarelationship_en_US from '@locale/lanres/entities/meta-relationship/meta-relationship_en_US'; import metarelationship_en_US from '@locale/lanres/entities/meta-relationship/meta-relationship_en_US';
import metadynamicmodel_en_US from '@locale/lanres/entities/meta-dynamic-model/meta-dynamic-model_en_US';
import bladevisual_en_US from '@locale/lanres/entities/blade-visual/blade-visual_en_US'; import bladevisual_en_US from '@locale/lanres/entities/blade-visual/blade-visual_en_US';
import metaentity_en_US from '@locale/lanres/entities/meta-entity/meta-entity_en_US'; import metaentity_en_US from '@locale/lanres/entities/meta-entity/meta-entity_en_US';
import components_en_US from '@locale/lanres/components/components_en_US'; import components_en_US from '@locale/lanres/components/components_en_US';
...@@ -261,12 +261,12 @@ function getAppLocale(){ ...@@ -261,12 +261,12 @@ function getAppLocale(){
dstapi: dstapi_en_US(), dstapi: dstapi_en_US(),
dstrouter: dstrouter_en_US(), dstrouter: dstrouter_en_US(),
dstconfig: dstconfig_en_US(), dstconfig: dstconfig_en_US(),
dynamicmodelconfig: dynamicmodelconfig_en_US(),
metamodel: metamodel_en_US(), metamodel: metamodel_en_US(),
metamodule: metamodule_en_US(), metamodule: metamodule_en_US(),
dstdatasource: dstdatasource_en_US(), dstdatasource: dstdatasource_en_US(),
dstsystem: dstsystem_en_US(), dstsystem: dstsystem_en_US(),
metarelationship: metarelationship_en_US(), metarelationship: metarelationship_en_US(),
metadynamicmodel: metadynamicmodel_en_US(),
bladevisual: bladevisual_en_US(), bladevisual: bladevisual_en_US(),
metaentity: metaentity_en_US(), metaentity: metaentity_en_US(),
}, },
......
...@@ -7,12 +7,12 @@ import dstview_zh_CN from '@locale/lanres/entities/dst-view/dst-view_zh_CN'; ...@@ -7,12 +7,12 @@ import dstview_zh_CN from '@locale/lanres/entities/dst-view/dst-view_zh_CN';
import dstapi_zh_CN from '@locale/lanres/entities/dst-api/dst-api_zh_CN'; import dstapi_zh_CN from '@locale/lanres/entities/dst-api/dst-api_zh_CN';
import dstrouter_zh_CN from '@locale/lanres/entities/dst-router/dst-router_zh_CN'; import dstrouter_zh_CN from '@locale/lanres/entities/dst-router/dst-router_zh_CN';
import dstconfig_zh_CN from '@locale/lanres/entities/dst-config/dst-config_zh_CN'; import dstconfig_zh_CN from '@locale/lanres/entities/dst-config/dst-config_zh_CN';
import dynamicmodelconfig_zh_CN from '@locale/lanres/entities/dynamic-model-config/dynamic-model-config_zh_CN';
import metamodel_zh_CN from '@locale/lanres/entities/meta-model/meta-model_zh_CN'; import metamodel_zh_CN from '@locale/lanres/entities/meta-model/meta-model_zh_CN';
import metamodule_zh_CN from '@locale/lanres/entities/meta-module/meta-module_zh_CN'; import metamodule_zh_CN from '@locale/lanres/entities/meta-module/meta-module_zh_CN';
import dstdatasource_zh_CN from '@locale/lanres/entities/dst-data-source/dst-data-source_zh_CN'; import dstdatasource_zh_CN from '@locale/lanres/entities/dst-data-source/dst-data-source_zh_CN';
import dstsystem_zh_CN from '@locale/lanres/entities/dst-system/dst-system_zh_CN'; import dstsystem_zh_CN from '@locale/lanres/entities/dst-system/dst-system_zh_CN';
import metarelationship_zh_CN from '@locale/lanres/entities/meta-relationship/meta-relationship_zh_CN'; import metarelationship_zh_CN from '@locale/lanres/entities/meta-relationship/meta-relationship_zh_CN';
import metadynamicmodel_zh_CN from '@locale/lanres/entities/meta-dynamic-model/meta-dynamic-model_zh_CN';
import bladevisual_zh_CN from '@locale/lanres/entities/blade-visual/blade-visual_zh_CN'; import bladevisual_zh_CN from '@locale/lanres/entities/blade-visual/blade-visual_zh_CN';
import metaentity_zh_CN from '@locale/lanres/entities/meta-entity/meta-entity_zh_CN'; import metaentity_zh_CN from '@locale/lanres/entities/meta-entity/meta-entity_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN'; import components_zh_CN from '@locale/lanres/components/components_zh_CN';
...@@ -260,12 +260,12 @@ function getAppLocale(){ ...@@ -260,12 +260,12 @@ function getAppLocale(){
dstapi: dstapi_zh_CN(), dstapi: dstapi_zh_CN(),
dstrouter: dstrouter_zh_CN(), dstrouter: dstrouter_zh_CN(),
dstconfig: dstconfig_zh_CN(), dstconfig: dstconfig_zh_CN(),
dynamicmodelconfig: dynamicmodelconfig_zh_CN(),
metamodel: metamodel_zh_CN(), metamodel: metamodel_zh_CN(),
metamodule: metamodule_zh_CN(), metamodule: metamodule_zh_CN(),
dstdatasource: dstdatasource_zh_CN(), dstdatasource: dstdatasource_zh_CN(),
dstsystem: dstsystem_zh_CN(), dstsystem: dstsystem_zh_CN(),
metarelationship: metarelationship_zh_CN(), metarelationship: metarelationship_zh_CN(),
metadynamicmodel: metadynamicmodel_zh_CN(),
bladevisual: bladevisual_zh_CN(), bladevisual: bladevisual_zh_CN(),
metaentity: metaentity_zh_CN(), metaentity: metaentity_zh_CN(),
}, },
......
...@@ -16,11 +16,6 @@ function getLocaleResourceBase(){ ...@@ -16,11 +16,6 @@ function getLocaleResourceBase(){
DstAppList: { DstAppList: {
"empty": commonLogic.appcommonhandle("",null), "empty": commonLogic.appcommonhandle("",null),
}, },
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null)
},
AppType: { AppType: {
"INNER": commonLogic.appcommonhandle("内置应用",null), "INNER": commonLogic.appcommonhandle("内置应用",null),
"THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null), "THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null),
......
...@@ -16,11 +16,6 @@ function getLocaleResourceBase(){ ...@@ -16,11 +16,6 @@ function getLocaleResourceBase(){
DstAppList: { DstAppList: {
"empty": commonLogic.appcommonhandle("",null), "empty": commonLogic.appcommonhandle("",null),
}, },
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null)
},
AppType: { AppType: {
"INNER": commonLogic.appcommonhandle("内置应用",null), "INNER": commonLogic.appcommonhandle("内置应用",null),
"THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null), "THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null),
......
...@@ -16,11 +16,6 @@ function getLocaleResourceBase(){ ...@@ -16,11 +16,6 @@ function getLocaleResourceBase(){
DstAppList: { DstAppList: {
"empty": commonLogic.appcommonhandle("",null), "empty": commonLogic.appcommonhandle("",null),
}, },
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null),
},
AppType: { AppType: {
"INNER": commonLogic.appcommonhandle("内置应用",null), "INNER": commonLogic.appcommonhandle("内置应用",null),
"THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null), "THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null),
......
...@@ -56,18 +56,6 @@ function getLocaleResourceBase(){ ...@@ -56,18 +56,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
n_apiname_like: commonLogic.appcommonhandle("名称(文本包含(%))",null),
n_msname_like: commonLogic.appcommonhandle("微服务标识(文本包含(%))",null),
n_servicename_like: commonLogic.appcommonhandle("微服务标识(文本包含(%))",null),
n_apipath_like: commonLogic.appcommonhandle("路径(文本包含(%))",null),
n_systemid_eq: commonLogic.appcommonhandle("系统标识(等于(=))",null),
},
uiactions: {
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: commonLogic.appcommonhandle("新建",null), caption: commonLogic.appcommonhandle("新建",null),
...@@ -117,10 +105,6 @@ function getLocaleResourceBase(){ ...@@ -117,10 +105,6 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("-",null), caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null),
}, },
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
tbitem18: { tbitem18: {
caption: commonLogic.appcommonhandle("帮助",null), caption: commonLogic.appcommonhandle("帮助",null),
tip: commonLogic.appcommonhandle("帮助",null), tip: commonLogic.appcommonhandle("帮助",null),
......
...@@ -56,18 +56,6 @@ function getLocaleResourceBase(){ ...@@ -56,18 +56,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
n_apiname_like: commonLogic.appcommonhandle("名称(文本包含(%))",null),
n_msname_like: commonLogic.appcommonhandle("微服务标识(文本包含(%))",null),
n_servicename_like: commonLogic.appcommonhandle("微服务标识(文本包含(%))",null),
n_apipath_like: commonLogic.appcommonhandle("路径(文本包含(%))",null),
n_systemid_eq: commonLogic.appcommonhandle("系统标识(等于(=))",null),
},
uiactions: {
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: commonLogic.appcommonhandle("New",null), caption: commonLogic.appcommonhandle("New",null),
...@@ -117,10 +105,6 @@ function getLocaleResourceBase(){ ...@@ -117,10 +105,6 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("-",null), caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null),
}, },
tbitem19: {
caption: commonLogic.appcommonhandle("Filter",null),
tip: commonLogic.appcommonhandle("Filter",null),
},
tbitem18: { tbitem18: {
caption: commonLogic.appcommonhandle("Help",null), caption: commonLogic.appcommonhandle("Help",null),
tip: commonLogic.appcommonhandle("Help",null), tip: commonLogic.appcommonhandle("Help",null),
......
...@@ -56,18 +56,6 @@ function getLocaleResourceBase(){ ...@@ -56,18 +56,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
n_apiname_like: commonLogic.appcommonhandle("名称(文本包含(%))",null),
n_msname_like: commonLogic.appcommonhandle("微服务标识(文本包含(%))",null),
n_servicename_like: commonLogic.appcommonhandle("微服务标识(文本包含(%))",null),
n_apipath_like: commonLogic.appcommonhandle("路径(文本包含(%))",null),
n_systemid_eq: commonLogic.appcommonhandle("系统标识(等于(=))",null),
},
uiactions: {
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: commonLogic.appcommonhandle("新建",null), caption: commonLogic.appcommonhandle("新建",null),
...@@ -117,10 +105,6 @@ function getLocaleResourceBase(){ ...@@ -117,10 +105,6 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("-",null), caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null),
}, },
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
tbitem18: { tbitem18: {
caption: commonLogic.appcommonhandle("帮助",null), caption: commonLogic.appcommonhandle("帮助",null),
tip: commonLogic.appcommonhandle("帮助",null), tip: 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 commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
fields: {
dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
status: commonLogic.appcommonhandle("状态",null),
modelfile: commonLogic.appcommonhandle("文件",null),
configname: commonLogic.appcommonhandle("名称",null),
configid: commonLogic.appcommonhandle("ID",null),
system_id: commonLogic.appcommonhandle("系统标识",null),
pdynainstid: commonLogic.appcommonhandle("ID",null),
},
views: {
editview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
},
main_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpanel1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("ID",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),
modelfile: commonLogic.appcommonhandle("文件",null),
configid: commonLogic.appcommonhandle("ID",null),
},
uiactions: {
},
},
main_grid: {
columns: {
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("删除并关闭",null),
tip: commonLogic.appcommonhandle("删除并关闭",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem12: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem14: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem18: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem5: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("保存并新建",null),
tip: commonLogic.appcommonhandle("保存并新建",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("第一个记录",null),
tip: commonLogic.appcommonhandle("第一个记录",null),
},
tbitem24: {
caption: commonLogic.appcommonhandle("上一个记录",null),
tip: commonLogic.appcommonhandle("上一个记录",null),
},
tbitem25: {
caption: commonLogic.appcommonhandle("下一个记录",null),
tip: commonLogic.appcommonhandle("下一个记录",null),
},
tbitem26: {
caption: commonLogic.appcommonhandle("最后一个记录",null),
tip: commonLogic.appcommonhandle("最后一个记录",null),
},
tbitem22: {
caption: commonLogic.appcommonhandle("帮助",null),
tip: commonLogic.appcommonhandle("帮助",null),
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("导出",null),
tip: commonLogic.appcommonhandle("导出",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("导出数据模型",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
tbitem18: {
caption: commonLogic.appcommonhandle("帮助",null),
tip: commonLogic.appcommonhandle("帮助",null),
},
},
};
return data;
}
export default getLocaleResourceBase;
\ 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 commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
fields: {
dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
status: commonLogic.appcommonhandle("状态",null),
modelfile: commonLogic.appcommonhandle("文件",null),
configname: commonLogic.appcommonhandle("名称",null),
configid: commonLogic.appcommonhandle("ID",null),
system_id: commonLogic.appcommonhandle("系统标识",null),
pdynainstid: commonLogic.appcommonhandle("ID",null),
},
views: {
editview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
},
main_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpanel1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("ID",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),
modelfile: commonLogic.appcommonhandle("文件",null),
configid: commonLogic.appcommonhandle("ID",null),
},
uiactions: {
},
},
main_grid: {
columns: {
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("Save",null),
tip: commonLogic.appcommonhandle("Save",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("Remove And Close",null),
tip: commonLogic.appcommonhandle("Remove And Close Window",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem12: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem14: {
caption: commonLogic.appcommonhandle("Copy",null),
tip: commonLogic.appcommonhandle("Copy {0}",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem18: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem5: {
caption: commonLogic.appcommonhandle("Save And Close",null),
tip: commonLogic.appcommonhandle("Save And Close Window",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("Save And New",null),
tip: commonLogic.appcommonhandle("Save And New",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("第一个记录",null),
tip: commonLogic.appcommonhandle("第一个记录",null),
},
tbitem24: {
caption: commonLogic.appcommonhandle("上一个记录",null),
tip: commonLogic.appcommonhandle("上一个记录",null),
},
tbitem25: {
caption: commonLogic.appcommonhandle("下一个记录",null),
tip: commonLogic.appcommonhandle("下一个记录",null),
},
tbitem26: {
caption: commonLogic.appcommonhandle("最后一个记录",null),
tip: commonLogic.appcommonhandle("最后一个记录",null),
},
tbitem22: {
caption: commonLogic.appcommonhandle("Help",null),
tip: commonLogic.appcommonhandle("Help",null),
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("Copy",null),
tip: commonLogic.appcommonhandle("Copy {0}",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("Export",null),
tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("Export Data Model",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("Filter",null),
tip: commonLogic.appcommonhandle("Filter",null),
},
tbitem18: {
caption: commonLogic.appcommonhandle("Help",null),
tip: commonLogic.appcommonhandle("Help",null),
},
},
};
return data;
}
export default getLocaleResourceBase;
\ 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
import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
fields: {
dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
status: commonLogic.appcommonhandle("状态",null),
modelfile: commonLogic.appcommonhandle("文件",null),
configname: commonLogic.appcommonhandle("名称",null),
configid: commonLogic.appcommonhandle("ID",null),
system_id: commonLogic.appcommonhandle("系统标识",null),
pdynainstid: commonLogic.appcommonhandle("ID",null),
},
views: {
editview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
},
main_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpanel1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("ID",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),
modelfile: commonLogic.appcommonhandle("文件",null),
configid: commonLogic.appcommonhandle("ID",null),
},
uiactions: {
},
},
main_grid: {
columns: {
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("删除并关闭",null),
tip: commonLogic.appcommonhandle("删除并关闭",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem12: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem14: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem18: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem5: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("保存并新建",null),
tip: commonLogic.appcommonhandle("保存并新建",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("第一个记录",null),
tip: commonLogic.appcommonhandle("第一个记录",null),
},
tbitem24: {
caption: commonLogic.appcommonhandle("上一个记录",null),
tip: commonLogic.appcommonhandle("上一个记录",null),
},
tbitem25: {
caption: commonLogic.appcommonhandle("下一个记录",null),
tip: commonLogic.appcommonhandle("下一个记录",null),
},
tbitem26: {
caption: commonLogic.appcommonhandle("最后一个记录",null),
tip: commonLogic.appcommonhandle("最后一个记录",null),
},
tbitem22: {
caption: commonLogic.appcommonhandle("帮助",null),
tip: commonLogic.appcommonhandle("帮助",null),
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("导出",null),
tip: commonLogic.appcommonhandle("导出",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("导出数据模型",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
tbitem18: {
caption: commonLogic.appcommonhandle("帮助",null),
tip: commonLogic.appcommonhandle("帮助",null),
},
},
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
...@@ -84,37 +84,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -84,37 +84,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"appdedataset":"FetchDefault", "appdedataset":"FetchDefault",
"items": [] "items": []
}, },
{
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: "AppType", srfkey: "AppType",
emptytext: "未定义", emptytext: "未定义",
......
...@@ -16,11 +16,11 @@ import './entity/dst-views/dst-views'; ...@@ -16,11 +16,11 @@ import './entity/dst-views/dst-views';
import './entity/dst-apis/dst-apis'; import './entity/dst-apis/dst-apis';
import './entity/dst-routers/dst-routers'; import './entity/dst-routers/dst-routers';
import './entity/dst-configs/dst-configs'; import './entity/dst-configs/dst-configs';
import './entity/dynamic-model-configs/dynamic-model-configs';
import './entity/meta-models/meta-models'; import './entity/meta-models/meta-models';
import './entity/meta-modules/meta-modules'; import './entity/meta-modules/meta-modules';
import './entity/dst-data-sources/dst-data-sources'; import './entity/dst-data-sources/dst-data-sources';
import './entity/dst-systems/dst-systems'; import './entity/dst-systems/dst-systems';
import './entity/meta-relationships/meta-relationships'; import './entity/meta-relationships/meta-relationships';
import './entity/meta-dynamic-models/meta-dynamic-models';
import './entity/blade-visuals/blade-visuals'; import './entity/blade-visuals/blade-visuals';
import './entity/meta-entitys/meta-entitys'; import './entity/meta-entitys/meta-entitys';
...@@ -39,6 +39,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -39,6 +39,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "DstAPIGridView", "viewname": "DstAPIGridView",
"viewtag": "16af256f35cdf891e8e04f8fe652e91b" "viewtag": "16af256f35cdf891e8e04f8fe652e91b"
}, },
"metadynamicmodeleditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelEditView",
"viewtag": "1777e5578e41e94cdf738b950a961ab1"
},
"metamodelgridview": { "metamodelgridview": {
"title": "模型表格视图", "title": "模型表格视图",
"caption": "模型", "caption": "模型",
...@@ -159,6 +167,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -159,6 +167,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "DstMicroserviceGridView", "viewname": "DstMicroserviceGridView",
"viewtag": "4f19fa8bfbce2c71261ca7cc076f316e" "viewtag": "4f19fa8bfbce2c71261ca7cc076f316e"
}, },
"metadynamicmodelgridview": {
"title": "动态模型表格视图",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "MetaDynamicModelGridView",
"viewtag": "4f66aaf7857f97a00ab6cf6c1c054262"
},
"dstapieditview": { "dstapieditview": {
"title": "接口编辑视图", "title": "接口编辑视图",
"caption": "接口", "caption": "接口",
...@@ -183,14 +199,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -183,14 +199,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "MetaEntityPickupGridView", "viewname": "MetaEntityPickupGridView",
"viewtag": "5c14ceb58f4392849324f2a6dc13eac2" "viewtag": "5c14ceb58f4392849324f2a6dc13eac2"
}, },
"dynamicmodelconfiggridview": {
"title": "动态模型配置表格视图",
"caption": "动态模型配置",
"viewtype": "DEGRIDVIEW",
"viewmodule": "lite",
"viewname": "DynamicModelConfigGridView",
"viewtag": "60de3991ba0f10d3baf57a55c43b69ee"
},
"dstsystempickupgridview": { "dstsystempickupgridview": {
"title": "系统选择表格视图", "title": "系统选择表格视图",
"caption": "系统", "caption": "系统",
...@@ -263,14 +271,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -263,14 +271,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "MetaEntityGridView", "viewname": "MetaEntityGridView",
"viewtag": "88894333da0e2e0f7a556ecabf7b48ab" "viewtag": "88894333da0e2e0f7a556ecabf7b48ab"
}, },
"dynamicmodelconfigeditview": {
"title": "动态模型配置编辑视图",
"caption": "动态模型配置",
"viewtype": "DEEDITVIEW",
"viewmodule": "lite",
"viewname": "DynamicModelConfigEditView",
"viewtag": "8ea3fd15b81f812ae55aa5cc6be9975a"
},
"dstconfigeditview": { "dstconfigeditview": {
"title": "配置编辑视图", "title": "配置编辑视图",
"caption": "配置", "caption": "配置",
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class='content-container'> <div class='content-container'>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;padding-left: 24px' placeholder="名称" /> <i-input v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;padding-left: 24px' placeholder="名称" />
<div class='pull-right'> <div class='pull-right'>
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
...@@ -82,13 +82,6 @@ ...@@ -82,13 +82,6 @@
</dropdown-menu> </dropdown-menu>
</dropdown> </dropdown>
<span class='seperator'>|</span> <span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem19.visabled" :disabled="toolBarModels.tbitem19.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem19' }, $event)">
<i class='fa fa-filter'></i>
<span class='caption'>{{$t('entities.dstapi.gridviewtoolbar_toolbar.tbitem19.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.dstapi.gridviewtoolbar_toolbar.tbitem19.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem18.visabled" :disabled="toolBarModels.tbitem18.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem18' }, $event)"> <i-button v-show="toolBarModels.tbitem18.visabled" :disabled="toolBarModels.tbitem18.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem18' }, $event)">
<i class='fa fa-question'></i> <i class='fa fa-question'></i>
...@@ -99,22 +92,6 @@ ...@@ -99,22 +92,6 @@
</div> </div>
</div> </div>
</div> </div>
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
<div class='view-body-messages'> <div class='view-body-messages'>
</div> </div>
<view_grid <view_grid
...@@ -323,7 +300,6 @@ export default class DstAPIGridViewBase extends Vue { ...@@ -323,7 +300,6 @@ export default class DstAPIGridViewBase extends Vue {
public containerModel: any = { public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' }, view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_grid: { name: 'grid', type: 'GRID' }, view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
}; };
/** /**
...@@ -389,8 +365,6 @@ export default class DstAPIGridViewBase extends Vue { ...@@ -389,8 +365,6 @@ export default class DstAPIGridViewBase extends Vue {
tbitem17: { name: 'tbitem17', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem17: { name: 'tbitem17', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem19: { name: 'tbitem19', actiontarget: 'NONE', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } },
tbitem18: { name: 'tbitem18', actiontarget: 'NONE', caption: '帮助', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Help', target: '' } }, tbitem18: { name: 'tbitem18', actiontarget: 'NONE', caption: '帮助', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Help', target: '' } },
}; };
...@@ -424,7 +398,6 @@ export default class DstAPIGridViewBase extends Vue { ...@@ -424,7 +398,6 @@ export default class DstAPIGridViewBase extends Vue {
this.newdata(args,fullargs, params, $event, xData); this.newdata(args,fullargs, params, $event, xData);
}, },
grid: this.$refs.grid, grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'dstapi', keyPSDEField: 'dstapi',
majorPSDEField: 'name', majorPSDEField: 'name',
isLoadDefault: true, isLoadDefault: true,
...@@ -849,42 +822,6 @@ export default class DstAPIGridViewBase extends Vue { ...@@ -849,42 +822,6 @@ export default class DstAPIGridViewBase extends Vue {
} }
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof DstAPIGridViewBase
*/
public searchform_save($event: any, $event2?: any) {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof DstAPIGridViewBase
*/
public searchform_search($event: any, $event2?: any) {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof DstAPIGridViewBase
*/
public searchform_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/** /**
* 逻辑事件 * 逻辑事件
......
...@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator'; ...@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import DstAPIGridViewBase from './dst-apigrid-view-base.vue'; import DstAPIGridViewBase from './dst-apigrid-view-base.vue';
import view_grid from '@widgets/dst-api/main-grid/main-grid.vue'; import view_grid from '@widgets/dst-api/main-grid/main-grid.vue';
import view_searchform from '@widgets/dst-api/default-searchform/default-searchform.vue';
@Component({ @Component({
components: { components: {
view_grid, view_grid,
view_searchform,
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
......
...@@ -3,6 +3,7 @@ export const PageComponents = { ...@@ -3,6 +3,7 @@ export const PageComponents = {
Vue.component('dst-microservice-edit-view', () => import('@pages/lite/dst-microservice-edit-view/dst-microservice-edit-view.vue')); Vue.component('dst-microservice-edit-view', () => import('@pages/lite/dst-microservice-edit-view/dst-microservice-edit-view.vue'));
Vue.component('dst-system-grid-view', () => import('@pages/lite/dst-system-grid-view/dst-system-grid-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-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-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-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')); Vue.component('dst-data-source-pickup-grid-view', () => import('@pages/lite/dst-data-source-pickup-grid-view/dst-data-source-pickup-grid-view.vue'));
...@@ -23,7 +24,6 @@ export const PageComponents = { ...@@ -23,7 +24,6 @@ export const PageComponents = {
Vue.component('meta-module-grid-view', () => import('@pages/lite/meta-module-grid-view/meta-module-grid-view.vue')); Vue.component('meta-module-grid-view', () => import('@pages/lite/meta-module-grid-view/meta-module-grid-view.vue'));
Vue.component('blade-visual-grid-view', () => import('@pages/avuedata/blade-visual-grid-view/blade-visual-grid-view.vue')); Vue.component('blade-visual-grid-view', () => import('@pages/avuedata/blade-visual-grid-view/blade-visual-grid-view.vue'));
Vue.component('meta-field-pickup-view', () => import('@pages/lite/meta-field-pickup-view/meta-field-pickup-view.vue')); Vue.component('meta-field-pickup-view', () => import('@pages/lite/meta-field-pickup-view/meta-field-pickup-view.vue'));
Vue.component('dynamic-model-config-edit-view', () => import('@pages/lite/dynamic-model-config-edit-view/dynamic-model-config-edit-view.vue'));
Vue.component('meta-relationship-edit-view', () => import('@pages/lite/meta-relationship-edit-view/meta-relationship-edit-view.vue')); Vue.component('meta-relationship-edit-view', () => import('@pages/lite/meta-relationship-edit-view/meta-relationship-edit-view.vue'));
Vue.component('dst-data-source-pickup-view', () => import('@pages/lite/dst-data-source-pickup-view/dst-data-source-pickup-view.vue')); Vue.component('dst-data-source-pickup-view', () => import('@pages/lite/dst-data-source-pickup-view/dst-data-source-pickup-view.vue'));
Vue.component('meta-field-edit-grid-view', () => import('@pages/lite/meta-field-edit-grid-view/meta-field-edit-grid-view.vue')); Vue.component('meta-field-edit-grid-view', () => import('@pages/lite/meta-field-edit-grid-view/meta-field-edit-grid-view.vue'));
...@@ -34,11 +34,11 @@ export const PageComponents = { ...@@ -34,11 +34,11 @@ export const PageComponents = {
Vue.component('meta-entity-edit-view', () => import('@pages/lite/meta-entity-edit-view/meta-entity-edit-view.vue')); 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('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-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('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('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')); Vue.component('meta-module-pickup-grid-view', () => import('@pages/lite/meta-module-pickup-grid-view/meta-module-pickup-grid-view.vue'));
Vue.component('dst-router-edit-view', () => import('@pages/lite/dst-router-edit-view/dst-router-edit-view.vue')); Vue.component('dst-router-edit-view', () => import('@pages/lite/dst-router-edit-view/dst-router-edit-view.vue'));
Vue.component('dynamic-model-config-grid-view', () => import('@pages/lite/dynamic-model-config-grid-view/dynamic-model-config-grid-view.vue'));
Vue.component('dst-app-grid-view', () => import('@pages/lite/dst-app-grid-view/dst-app-grid-view.vue')); Vue.component('dst-app-grid-view', () => import('@pages/lite/dst-app-grid-view/dst-app-grid-view.vue'));
Vue.component('dst-view-grid-view', () => import('@pages/lite/dst-view-grid-view/dst-view-grid-view.vue')); Vue.component('dst-view-grid-view', () => import('@pages/lite/dst-view-grid-view/dst-view-grid-view.vue'));
Vue.component('meta-entity-grid-view', () => import('@pages/lite/meta-entity-grid-view/meta-entity-grid-view.vue')); Vue.component('meta-entity-grid-view', () => import('@pages/lite/meta-entity-grid-view/meta-entity-grid-view.vue'));
......
...@@ -92,6 +92,20 @@ const router = new Router({ ...@@ -92,6 +92,20 @@ const router = new Router({
}, },
component: () => import('@pages/lite/meta-model-edit-view/meta-model-edit-view.vue'), 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?', path: 'dstdatasources/:dstdatasource?/gridview/:gridview?',
meta: { meta: {
...@@ -665,20 +679,6 @@ const router = new Router({ ...@@ -665,20 +679,6 @@ const router = new Router({
}, },
component: () => import('@pages/lite/meta-field-pickup-view/meta-field-pickup-view.vue'), component: () => import('@pages/lite/meta-field-pickup-view/meta-field-pickup-view.vue'),
}, },
{
path: 'dynamicmodelconfigs/:dynamicmodelconfig?/editview/:editview?',
meta: {
caption: 'entities.dynamicmodelconfig.views.editview.caption',
info:'',
parameters: [
{ pathName: 'liteindex', parameterName: 'liteindex' },
{ pathName: 'dynamicmodelconfigs', parameterName: 'dynamicmodelconfig' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/dynamic-model-config-edit-view/dynamic-model-config-edit-view.vue'),
},
{ {
path: 'dstsystems/:dstsystem?/metaentities/:metaentity?/metarelationships/:metarelationship?/editview/:editview?', path: 'dstsystems/:dstsystem?/metaentities/:metaentity?/metarelationships/:metarelationship?/editview/:editview?',
meta: { meta: {
...@@ -1019,6 +1019,20 @@ const router = new Router({ ...@@ -1019,6 +1019,20 @@ const router = new Router({
}, },
component: () => import('@pages/lite/meta-field-pickup-grid-view/meta-field-pickup-grid-view.vue'), 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?', path: 'bladevisuals/:bladevisual?/editview/:editview?',
meta: { meta: {
...@@ -1137,20 +1151,6 @@ const router = new Router({ ...@@ -1137,20 +1151,6 @@ const router = new Router({
}, },
component: () => import('@pages/lite/dst-router-edit-view/dst-router-edit-view.vue'), component: () => import('@pages/lite/dst-router-edit-view/dst-router-edit-view.vue'),
}, },
{
path: 'dynamicmodelconfigs/:dynamicmodelconfig?/gridview/:gridview?',
meta: {
caption: 'entities.dynamicmodelconfig.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'liteindex', parameterName: 'liteindex' },
{ pathName: 'dynamicmodelconfigs', parameterName: 'dynamicmodelconfig' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/dynamic-model-config-grid-view/dynamic-model-config-grid-view.vue'),
},
{ {
path: 'dstsystems/:dstsystem?/dstapps/:dstapp?/gridview/:gridview?', path: 'dstsystems/:dstsystem?/dstapps/:dstapp?/gridview/:gridview?',
meta: { meta: {
...@@ -1487,6 +1487,19 @@ const router = new Router({ ...@@ -1487,6 +1487,19 @@ const router = new Router({
}, },
component: () => import('@pages/lite/dst-apigrid-view/dst-apigrid-view.vue'), 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?', path: '/metamodels/:metamodel?/gridview/:gridview?',
meta: { meta: {
...@@ -1913,6 +1926,19 @@ const router = new Router({ ...@@ -1913,6 +1926,19 @@ const router = new Router({
}, },
component: () => import('@pages/lite/dst-microservice-grid-view/dst-microservice-grid-view.vue'), 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?', path: '/dstsystems/:dstsystem?/dstmicroservices/:dstmicroservice?/dstapis/:dstapi?/editview/:editview?',
meta: { meta: {
...@@ -1995,19 +2021,6 @@ const router = new Router({ ...@@ -1995,19 +2021,6 @@ const router = new Router({
}, },
component: () => import('@pages/lite/meta-entity-pickup-grid-view/meta-entity-pickup-grid-view.vue'), component: () => import('@pages/lite/meta-entity-pickup-grid-view/meta-entity-pickup-grid-view.vue'),
}, },
{
path: '/dynamicmodelconfigs/:dynamicmodelconfig?/gridview/:gridview?',
meta: {
caption: 'entities.dynamicmodelconfig.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'dynamicmodelconfigs', parameterName: 'dynamicmodelconfig' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/dynamic-model-config-grid-view/dynamic-model-config-grid-view.vue'),
},
{ {
path: '/dstdatasources/:dstdatasource?/pickupview/:pickupview?', path: '/dstdatasources/:dstdatasource?/pickupview/:pickupview?',
meta: { meta: {
...@@ -2201,19 +2214,6 @@ const router = new Router({ ...@@ -2201,19 +2214,6 @@ const router = new Router({
}, },
component: () => import('@pages/lite/meta-entity-grid-view/meta-entity-grid-view.vue'), component: () => import('@pages/lite/meta-entity-grid-view/meta-entity-grid-view.vue'),
}, },
{
path: '/dynamicmodelconfigs/:dynamicmodelconfig?/editview/:editview?',
meta: {
caption: 'entities.dynamicmodelconfig.views.editview.caption',
info:'',
parameters: [
{ pathName: 'dynamicmodelconfigs', parameterName: 'dynamicmodelconfig' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/lite/dynamic-model-config-edit-view/dynamic-model-config-edit-view.vue'),
},
{ {
path: '/dstconfigs/:dstconfig?/editview/:editview?', path: '/dstconfigs/:dstconfig?/editview/:editview?',
meta: { meta: {
......
.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
...@@ -48,12 +48,12 @@ export class EntityServiceRegister { ...@@ -48,12 +48,12 @@ export class EntityServiceRegister {
this.allEntityService.set('dstapi', () => import('@/service/dst-api/dst-api-service')); this.allEntityService.set('dstapi', () => import('@/service/dst-api/dst-api-service'));
this.allEntityService.set('dstrouter', () => import('@/service/dst-router/dst-router-service')); this.allEntityService.set('dstrouter', () => import('@/service/dst-router/dst-router-service'));
this.allEntityService.set('dstconfig', () => import('@/service/dst-config/dst-config-service')); this.allEntityService.set('dstconfig', () => import('@/service/dst-config/dst-config-service'));
this.allEntityService.set('dynamicmodelconfig', () => import('@/service/dynamic-model-config/dynamic-model-config-service'));
this.allEntityService.set('metamodel', () => import('@/service/meta-model/meta-model-service')); this.allEntityService.set('metamodel', () => import('@/service/meta-model/meta-model-service'));
this.allEntityService.set('metamodule', () => import('@/service/meta-module/meta-module-service')); this.allEntityService.set('metamodule', () => import('@/service/meta-module/meta-module-service'));
this.allEntityService.set('dstdatasource', () => import('@/service/dst-data-source/dst-data-source-service')); this.allEntityService.set('dstdatasource', () => import('@/service/dst-data-source/dst-data-source-service'));
this.allEntityService.set('dstsystem', () => import('@/service/dst-system/dst-system-service')); this.allEntityService.set('dstsystem', () => import('@/service/dst-system/dst-system-service'));
this.allEntityService.set('metarelationship', () => import('@/service/meta-relationship/meta-relationship-service')); this.allEntityService.set('metarelationship', () => import('@/service/meta-relationship/meta-relationship-service'));
this.allEntityService.set('metadynamicmodel', () => import('@/service/meta-dynamic-model/meta-dynamic-model-service'));
this.allEntityService.set('bladevisual', () => import('@/service/blade-visual/blade-visual-service')); this.allEntityService.set('bladevisual', () => import('@/service/blade-visual/blade-visual-service'));
this.allEntityService.set('metaentity', () => import('@/service/meta-entity/meta-entity-service')); this.allEntityService.set('metaentity', () => import('@/service/meta-entity/meta-entity-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 = 'ibzlite';
}
// 实体接口
/**
* 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;
}
/**
* 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);
}
}
\ 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
...@@ -32,6 +32,16 @@ export const viewstate: any = { ...@@ -32,6 +32,16 @@ export const viewstate: any = {
'566e7ad7de2c879a911727539980e0d9', '566e7ad7de2c879a911727539980e0d9',
], ],
}, },
{
viewtag: '1777e5578e41e94cdf738b950a961ab1',
viewmodule: 'lite',
viewname: 'MetaDynamicModelEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'4f66aaf7857f97a00ab6cf6c1c054262',
],
},
{ {
viewtag: '18d59a3ac7947d7123e0be76e7cb71c0', viewtag: '18d59a3ac7947d7123e0be76e7cb71c0',
viewmodule: 'lite', viewmodule: 'lite',
...@@ -175,41 +185,41 @@ export const viewstate: any = { ...@@ -175,41 +185,41 @@ export const viewstate: any = {
], ],
}, },
{ {
viewtag: '566e7ad7de2c879a911727539980e0d9', viewtag: '4f66aaf7857f97a00ab6cf6c1c054262',
viewmodule: 'lite', viewmodule: 'lite',
viewname: 'DstAPIEditView', viewname: 'MetaDynamicModelGridView',
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'cf3c723968e116fa32e08679011b9552', '1777e5578e41e94cdf738b950a961ab1',
], ],
}, },
{ {
viewtag: '5c077bbd9af52fa95c68a782f96e74d7', viewtag: '566e7ad7de2c879a911727539980e0d9',
viewmodule: 'lite', viewmodule: 'lite',
viewname: 'MetaModulePickupGridView', viewname: 'DstAPIEditView',
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'cf3c723968e116fa32e08679011b9552',
], ],
}, },
{ {
viewtag: '5c14ceb58f4392849324f2a6dc13eac2', viewtag: '5c077bbd9af52fa95c68a782f96e74d7',
viewmodule: 'lite', viewmodule: 'lite',
viewname: 'MetaEntityPickupGridView', viewname: 'MetaModulePickupGridView',
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
], ],
}, },
{ {
viewtag: '60de3991ba0f10d3baf57a55c43b69ee', viewtag: '5c14ceb58f4392849324f2a6dc13eac2',
viewmodule: 'lite', viewmodule: 'lite',
viewname: 'DynamicModelConfigGridView', viewname: 'MetaEntityPickupGridView',
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'8ea3fd15b81f812ae55aa5cc6be9975a',
], ],
}, },
{ {
...@@ -275,10 +285,10 @@ export const viewstate: any = { ...@@ -275,10 +285,10 @@ export const viewstate: any = {
'ec89001b31b540bbfbc5df332d300b29', 'ec89001b31b540bbfbc5df332d300b29',
'e5a20b8d7ce2cf41e100a3738fcff3a3', 'e5a20b8d7ce2cf41e100a3738fcff3a3',
'10aa45718d82d8f115c75ba01abb2de1', '10aa45718d82d8f115c75ba01abb2de1',
'4f66aaf7857f97a00ab6cf6c1c054262',
'd613248735503950b91cb7094b036cdc', 'd613248735503950b91cb7094b036cdc',
'f20b2b6dc4d1c75c48f5da3eca3a3274', 'f20b2b6dc4d1c75c48f5da3eca3a3274',
'16af256f35cdf891e8e04f8fe652e91b', '16af256f35cdf891e8e04f8fe652e91b',
'60de3991ba0f10d3baf57a55c43b69ee',
'1ade7920c947bf50c32012de9962a92d', '1ade7920c947bf50c32012de9962a92d',
'33ec4b7d5a31addaec9b033067520820', '33ec4b7d5a31addaec9b033067520820',
'88894333da0e2e0f7a556ecabf7b48ab', '88894333da0e2e0f7a556ecabf7b48ab',
...@@ -297,15 +307,6 @@ export const viewstate: any = { ...@@ -297,15 +307,6 @@ export const viewstate: any = {
'2feae2829a80f67eb57a3335aad45d42', '2feae2829a80f67eb57a3335aad45d42',
], ],
}, },
{
viewtag: '8ea3fd15b81f812ae55aa5cc6be9975a',
viewmodule: 'lite',
viewname: 'DynamicModelConfigEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: '8ee101d8fe3517d595bd6518026d1ab8', viewtag: '8ee101d8fe3517d595bd6518026d1ab8',
viewmodule: 'lite', viewmodule: 'lite',
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import MetaDynamicModelService from '@/service/meta-dynamic-model/meta-dynamic-model-service';
import MetaDynamicModelAuthService from '@/authservice/meta-dynamic-model/meta-dynamic-model-auth-service';
/**
* 动态模型UI服务对象基类
*
* @export
* @class MetaDynamicModelUIServiceBase
*/
export default class MetaDynamicModelUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof MetaDynamicModelUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof MetaDynamicModelUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof MetaDynamicModelUIServiceBase
*/
public dataService:MetaDynamicModelService = new MetaDynamicModelService();
/**
* 所有关联视图
*
* @memberof MetaDynamicModelUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof MetaDynamicModelUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof MetaDynamicModelUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof MetaDynamicModelUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof MetaDynamicModelUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof MetaDynamicModelUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of MetaDynamicModelUIServiceBase.
*
* @param {*} [opts={}]
* @memberof MetaDynamicModelUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new MetaDynamicModelAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof MetaDynamicModelUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'metadynamicmodels',component:'meta-dynamic-model-grid-view'});
}
/**
* 初始化主状态集合
*
* @memberof MetaDynamicModelUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof MetaDynamicModelUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof MetaDynamicModelUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({metadynamicmodel:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof MetaDynamicModelUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof MetaDynamicModelUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const multiFormDEField:string|null =null;
if (multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW:'+objFormValue;
}
return 'EDITVIEW:'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof MetaDynamicModelUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性「${singleMainField}」,根据「${singleMainField}」属性进行的主状态计算默认为空值`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]] != null && curData[this.mainStateFields[0]] !== "")?(i == 0) ? `${curData[this.mainStateFields[0]]}` : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]] != null && curData[this.mainStateFields[1]] !== "")?`${strTag}__${(j == 0) ? `${curData[this.mainStateFields[1]]}` : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]] != null && curData[this.mainStateFields[2]] !== "")?`${strTag2}__${(k == 0) ? `${curData[this.mainStateFields[2]]}` : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof MetaDynamicModelUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof MetaDynamicModelUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ 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
...@@ -48,12 +48,12 @@ export class UIServiceRegister { ...@@ -48,12 +48,12 @@ export class UIServiceRegister {
this.allUIService.set('dstapi', () => import('@/uiservice/dst-api/dst-api-ui-service')); this.allUIService.set('dstapi', () => import('@/uiservice/dst-api/dst-api-ui-service'));
this.allUIService.set('dstrouter', () => import('@/uiservice/dst-router/dst-router-ui-service')); this.allUIService.set('dstrouter', () => import('@/uiservice/dst-router/dst-router-ui-service'));
this.allUIService.set('dstconfig', () => import('@/uiservice/dst-config/dst-config-ui-service')); this.allUIService.set('dstconfig', () => import('@/uiservice/dst-config/dst-config-ui-service'));
this.allUIService.set('dynamicmodelconfig', () => import('@/uiservice/dynamic-model-config/dynamic-model-config-ui-service'));
this.allUIService.set('metamodel', () => import('@/uiservice/meta-model/meta-model-ui-service')); this.allUIService.set('metamodel', () => import('@/uiservice/meta-model/meta-model-ui-service'));
this.allUIService.set('metamodule', () => import('@/uiservice/meta-module/meta-module-ui-service')); this.allUIService.set('metamodule', () => import('@/uiservice/meta-module/meta-module-ui-service'));
this.allUIService.set('dstdatasource', () => import('@/uiservice/dst-data-source/dst-data-source-ui-service')); this.allUIService.set('dstdatasource', () => import('@/uiservice/dst-data-source/dst-data-source-ui-service'));
this.allUIService.set('dstsystem', () => import('@/uiservice/dst-system/dst-system-ui-service')); this.allUIService.set('dstsystem', () => import('@/uiservice/dst-system/dst-system-ui-service'));
this.allUIService.set('metarelationship', () => import('@/uiservice/meta-relationship/meta-relationship-ui-service')); this.allUIService.set('metarelationship', () => import('@/uiservice/meta-relationship/meta-relationship-ui-service'));
this.allUIService.set('metadynamicmodel', () => import('@/uiservice/meta-dynamic-model/meta-dynamic-model-ui-service'));
this.allUIService.set('bladevisual', () => import('@/uiservice/blade-visual/blade-visual-ui-service')); this.allUIService.set('bladevisual', () => import('@/uiservice/blade-visual/blade-visual-ui-service'));
this.allUIService.set('metaentity', () => import('@/uiservice/meta-entity/meta-entity-ui-service')); this.allUIService.set('metaentity', () => import('@/uiservice/meta-entity/meta-entity-ui-service'));
} }
......
...@@ -793,7 +793,7 @@ export default class LiteIndexBase extends Vue implements ControlInterface { ...@@ -793,7 +793,7 @@ export default class LiteIndexBase extends Vue implements ControlInterface {
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'dynamicmodelconfigs', parameterName: 'dynamicmodelconfig' }, { pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'gridview', parameterName: 'gridview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......
...@@ -366,11 +366,11 @@ export default class LiteIndexModel { ...@@ -366,11 +366,11 @@ export default class LiteIndexModel {
appfunctag: 'AppFunc14', appfunctag: 'AppFunc14',
appfuncyype: 'APPVIEW', appfuncyype: 'APPVIEW',
openmode: '', openmode: '',
codename: 'dynamicmodelconfiggridview', codename: 'metadynamicmodelgridview',
deResParameters: [], deResParameters: [],
routepath: '/liteindex/:liteindex?/dynamicmodelconfigs/:dynamicmodelconfig?/gridview/:gridview?', routepath: '/liteindex/:liteindex?/metadynamicmodels/:metadynamicmodel?/gridview/:gridview?',
parameters: [ parameters: [
{ pathName: 'dynamicmodelconfigs', parameterName: 'dynamicmodelconfig' }, { pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'gridview', parameterName: 'gridview' },
], ],
}, },
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<i-col v-show="detailsModel.servicename.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.servicename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='servicename' :itemRules="this.rules().servicename" class='' :caption="$t('entities.dstapi.main_form.details.servicename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.servicename.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='servicename' :itemRules="this.rules().servicename" class='' :caption="$t('entities.dstapi.main_form.details.servicename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.servicename.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='servicename' :value="data.servicename" dataType="PICKUPDATA" :precision="0" <app-span name='servicename' :value="data.servicename" dataType="PICKUPDATA" unitName="" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span> </app-span>
......
...@@ -81,32 +81,6 @@ export default class MainModel { ...@@ -81,32 +81,6 @@ export default class MainModel {
name: 'dstapi', name: 'dstapi',
prop: 'id', prop: 'id',
}, },
{
name: 'n_apiname_like',
prop: 'n_apiname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_msname_like',
prop: 'n_msname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_servicename_like',
prop: 'n_servicename_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_apipath_like',
prop: 'n_apipath_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_systemid_eq',
prop: 'n_systemid_eq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
prop:'size', prop:'size',
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<i-col v-show="detailsModel.updatedate.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.updatedate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updatedate' :itemRules="this.rules().updatedate" class='' :caption="$t('entities.dstconfig.main_form.details.updatedate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updatedate.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='updatedate' :itemRules="this.rules().updatedate" class='' :caption="$t('entities.dstconfig.main_form.details.updatedate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updatedate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updatedate' :value="data.updatedate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0" <app-span name='updatedate' :value="data.updatedate" dataType="DATETIME" unitName="" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span> </app-span>
......
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .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%;
}
}
}
// this is less
<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
/**
* 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: 'modelfile',
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 MainBase from './main-form-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export default class MainModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'systemid',
prop: 'system_id',
dataType: 'PICKUP',
},
{
name: 'pdynainstid',
prop: 'pdynainstid',
dataType: 'PICKUP',
},
{
name: 'srfmajortext',
prop: 'configname',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'configid',
dataType: 'TEXT',
},
{
name: 'srfkey',
prop: 'configid',
dataType: 'TEXT',
isEditable:true
},
{
name: 'metadynamicmodel',
prop: 'configid',
},
{
name:'size',
prop:'size',
dataType: 'QUERYPARAM'
},
{
name:'query',
prop:'query',
dataType: 'QUERYPARAM'
},
{
name:'filter',
prop:'filter',
dataType: 'QUERYPARAM'
},
{
name:'page',
prop:'page',
dataType: 'QUERYPARAM'
},
{
name:'sort',
prop:'sort',
dataType: 'QUERYPARAM'
},
{
name:'srfparentdata',
prop:'srfparentdata',
dataType: 'QUERYPARAM'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MainBase from './main-grid-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<i-col v-show="detailsModel.relationcodename.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }"> <i-col v-show="detailsModel.relationcodename.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='relationcodename' :itemRules="this.rules().relationcodename" class='' :caption="$t('entities.metafield.main_form.details.relationcodename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.relationcodename.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='relationcodename' :itemRules="this.rules().relationcodename" class='' :caption="$t('entities.metafield.main_form.details.relationcodename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.relationcodename.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='relationcodename' :value="data.relationcodename" dataType="PICKUPDATA" :precision="0" <app-span name='relationcodename' :value="data.relationcodename" dataType="PICKUPDATA" unitName="" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span> </app-span>
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
<i-col v-show="detailsModel.refentityname.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }"> <i-col v-show="detailsModel.refentityname.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='refentityname' :itemRules="this.rules().refentityname" class='' :caption="$t('entities.metafield.main_form.details.refentityname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.refentityname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='refentityname' :itemRules="this.rules().refentityname" class='' :caption="$t('entities.metafield.main_form.details.refentityname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.refentityname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='refentityname' :value="data.refentityname" dataType="PICKUPDATA" :precision="0" <app-span name='refentityname' :value="data.refentityname" dataType="PICKUPDATA" unitName="" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""> :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span> </app-span>
......
...@@ -43,10 +43,6 @@ zuul: ...@@ -43,10 +43,6 @@ zuul:
path: /dstconfigs/** path: /dstconfigs/**
serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api} serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api}
stripPrefix: false stripPrefix: false
dynamic_model_config:
path: /dynamicmodelconfigs/**
serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api}
stripPrefix: false
meta_model: meta_model:
path: /metamodels/** path: /metamodels/**
serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api} serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api}
...@@ -67,6 +63,10 @@ zuul: ...@@ -67,6 +63,10 @@ zuul:
path: /metarelationships/** path: /metarelationships/**
serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api} serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api}
stripPrefix: false stripPrefix: false
meta_dynamicmodel:
path: /metadynamicmodels/**
serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api}
stripPrefix: false
blade_visual: blade_visual:
path: /bladevisuals/** path: /bladevisuals/**
serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api} serviceId: ${ibiz.ref.service.ibzlite-api:ibzlite-api}
...@@ -127,5 +127,9 @@ zuul: ...@@ -127,5 +127,9 @@ zuul:
path: /lite/** path: /lite/**
serviceId: ${ibiz.ref.service.lite:ibzlite-api} serviceId: ${ibiz.ref.service.lite:ibzlite-api}
stripPrefix: false stripPrefix: false
sysauthlog:
path: /sysauthlogs
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
sensitive-headers: sensitive-headers:
- Cookie,Set-Cookie,Authorization - Cookie,Set-Cookie,Authorization
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册