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

xignzi006 发布系统代码

上级 960bef75
...@@ -5876,6 +5876,7 @@ ...@@ -5876,6 +5876,7 @@
"text": "停用", "text": "停用",
"data":"", "data":"",
"codename":"Item_2", "codename":"Item_2",
"color": "rgba(255, 42, 0, 1)",
"value": "2", "value": "2",
"disabled": false "disabled": false
...@@ -5886,6 +5887,7 @@ ...@@ -5886,6 +5887,7 @@
"text": "可用", "text": "可用",
"data":"", "data":"",
"codename":"Item_1", "codename":"Item_1",
"color": "rgba(0, 255, 64, 1)",
"value": "1", "value": "1",
"disabled": false "disabled": false
......
...@@ -5884,6 +5884,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -5884,6 +5884,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
text: "停用", text: "停用",
"data":"", "data":"",
"codename":"Item_2", "codename":"Item_2",
"color": "rgba(255, 42, 0, 1)",
value: "2", value: "2",
disabled: false, disabled: false,
...@@ -5894,6 +5895,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -5894,6 +5895,7 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
text: "可用", text: "可用",
"data":"", "data":"",
"codename":"Item_1", "codename":"Item_1",
"color": "rgba(0, 255, 64, 1)",
value: "1", value: "1",
disabled: false, disabled: false,
......
...@@ -556,16 +556,28 @@ export class ConnectionByParentKeyBase extends GridViewBase { ...@@ -556,16 +556,28 @@ export class ConnectionByParentKeyBase extends GridViewBase {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'connections', parameterName: 'connection' }, { pathName: 'connections', parameterName: 'connection' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openDrawer = (view: any, data: any) => {
const _data: any = { w: (new Date().getTime()) }; let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
Object.assign(_data, data); container.subscribe((result: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data); if (!result || !Object.is(result.ret, 'OK')) {
this.$router.push(routePath); return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
} }
openIndexViewTab(data); const view: any = {
viewname: 'connection-edit-view',
height: 0,
width: 0,
title: this.$t('entities.connection.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
...@@ -590,14 +602,28 @@ export class ConnectionByParentKeyBase extends GridViewBase { ...@@ -590,14 +602,28 @@ export class ConnectionByParentKeyBase extends GridViewBase {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'connections', parameterName: 'connection' }, { pathName: 'connections', parameterName: 'connection' },
{ pathName: 'editview', parameterName: 'editview' },
]; ];
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openDrawer = (view: any, data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data); let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
this.$router.push(routePath); container.subscribe((result: any) => {
} if (!result || !Object.is(result.ret, 'OK')) {
openIndexViewTab(data); return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'connection-edit-view',
height: 0,
width: 0,
title: this.$t('entities.connection.views.editview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
} }
.datapanel-style { .datapanel-style {
color:rgba(209, 196, 233, 1);font-size:16px;font-weight:bold color:rgba(209, 196, 233, 1);font-size:20px;font-weight:bold
} }
.datapanel-label-style { .datapanel-label-style {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册