提交 7ec5cea7 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码

上级 d048dc0d
...@@ -69,7 +69,6 @@ import AppColumnFormat from './components/app-column-format/app-column-format.vu ...@@ -69,7 +69,6 @@ import AppColumnFormat from './components/app-column-format/app-column-format.vu
import AppQuickGroup from './components/app-quick-group/app-quick-group.vue' import AppQuickGroup from './components/app-quick-group/app-quick-group.vue'
import AppGroupPicker from './components/app-group-picker/app-group-picker.vue' import AppGroupPicker from './components/app-group-picker/app-group-picker.vue'
import AppWFApproval from './components/app-wf-approval/app-wf-approval.vue' import AppWFApproval from './components/app-wf-approval/app-wf-approval.vue'
import Breadcrumb from './components/app-breadcrumb/app-breadcrumb.vue'
import AppTransfer from './components/app-transfer/app-transfer.vue' import AppTransfer from './components/app-transfer/app-transfer.vue'
import ContextMenuDrag from './components/context-menu-drag/context-menu-drag.vue' import ContextMenuDrag from './components/context-menu-drag/context-menu-drag.vue'
import AppOrgSelect from './components/app-org-select/app-org-select.vue' import AppOrgSelect from './components/app-org-select/app-org-select.vue'
...@@ -158,7 +157,6 @@ export const AppComponents = { ...@@ -158,7 +157,6 @@ export const AppComponents = {
v.component('app-group-select',AppGroupSelect); v.component('app-group-select',AppGroupSelect);
v.component('app-group-picker',AppGroupPicker); v.component('app-group-picker',AppGroupPicker);
v.component('app-wf-approval',AppWFApproval); v.component('app-wf-approval',AppWFApproval);
v.component('app-breadcrumb',Breadcrumb);
v.component('app-transfer',AppTransfer); v.component('app-transfer',AppTransfer);
v.component('context-menu-drag',ContextMenuDrag); v.component('context-menu-drag',ContextMenuDrag);
}, },
......
...@@ -79,6 +79,14 @@ export class AppNavHistoryBase { ...@@ -79,6 +79,14 @@ export class AppNavHistoryBase {
*/ */
public readonly navIgnoreParameters: RegExp = new RegExp(/(srftabactivate|srftreeexpactivate)/); public readonly navIgnoreParameters: RegExp = new RegExp(/(srftabactivate|srftreeexpactivate)/);
/**
* 首页mate信息
*
* @type {*}
* @memberof AppNavHistoryBase
*/
public indexMeta: any = null;
/** /**
* 查找路由缓存 * 查找路由缓存
* *
......
...@@ -169,6 +169,8 @@ export class EditFormControlBase extends FormControlBase { ...@@ -169,6 +169,8 @@ export class EditFormControlBase extends FormControlBase {
if (data[this.appDeName]) { if (data[this.appDeName]) {
Object.assign(this.context, { [this.appDeName]: data[this.appDeName] }) Object.assign(this.context, { [this.appDeName]: data[this.appDeName] })
} }
// 更新上下文,当前数据视图数据
Object.assign(this.context, { [`src${this.appDeName}`]: { data } });
this.setFormEnableCond(data); this.setFormEnableCond(data);
this.fillForm(data, action); this.fillForm(data, action);
this.oldData = {}; this.oldData = {};
......
...@@ -438,6 +438,8 @@ export class GridControllerBase extends MDControlBase { ...@@ -438,6 +438,8 @@ export class GridControllerBase extends MDControlBase {
this.gridItemsModel = []; this.gridItemsModel = [];
this.items.forEach(() => { this.gridItemsModel.push(this.getGridRowModel()) }); this.items.forEach(() => { this.gridItemsModel.push(this.getGridRowModel()) });
this.$emit('load', this.items); this.$emit('load', this.items);
// 向上下文中填充当前数据
Object.assign(this.context, { [`srf${this.appDeName}`]: { items: this.items } });
// 设置默认选中 // 设置默认选中
setTimeout(() => { setTimeout(() => {
if (this.isSelectFirstDefault) { if (this.isSelectFirstDefault) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册