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

Mosher 发布系统代码 [后台服务,演示应用]

上级 6edc4a50
......@@ -8,7 +8,6 @@ import ViewEngine from "./view-engine";
* @extends {ViewEngine}
*/
export class ExpViewEngine extends ViewEngine {
/**
* 导航栏部件
*
......@@ -39,13 +38,13 @@ export class ExpViewEngine extends ViewEngine {
/**
* 引擎加载
*
* @memberof ExpViewEngine
* @memberof ExpViewEngine
*/
public load() {
super.load();
if (this.getExpBar() && this.isLoadDefault) {
const tag = this.getExpBar().name;
this.setViewState2({ tag: tag, action: 'load', viewdata: this.view.viewparams });
this.setViewState2({ tag: tag, action: "load", viewdata: this.view.viewparams });
} else {
this.isLoadDefault = true;
}
......@@ -60,7 +59,7 @@ export class ExpViewEngine extends ViewEngine {
public search(data: any) {
const expBar = this.getExpBar();
if (expBar) {
this.setViewState2({ tag: expBar.name, action: 'load', viewdata: null });
this.setViewState2({ tag: expBar.name, action: "load", viewdata: null });
}
}
......@@ -78,12 +77,12 @@ export class ExpViewEngine extends ViewEngine {
/**
* 处理导航视图重绘(有选中项,且导航视图需要刷新则通知嵌入导航视图执行刷新逻辑)
*
*
* @memberof ExpViewEngine
*/
public handleNavViewRefresh(tag: string) {
if (this.view && this.view.viewState && this.isRealSelected) {
this.setViewState2({ tag, action: 'load', viewdata: this.view.viewparams });
this.setViewState2({ tag, action: "load", viewdata: this.view.viewparams });
}
}
......@@ -91,16 +90,16 @@ export class ExpViewEngine extends ViewEngine {
* 事件处理
*
* @param {string} ctrlName 事件标识
* @param {string} eventName
* @param {string} eventName
* @param {*} args
* @memberof ExpViewEngine
*/
public onCtrlEvent(ctrlName: string, eventName: string, args: any) {
const expBar = this.getExpBar();
if (ctrlName === expBar?.name) {
if (expBar && ctrlName === expBar.name) {
this.handleExpBarEvents(eventName, args);
}
if (ctrlName === expBar?.xDataControlName) {
if (expBar && ctrlName === expBar.xDataControlName) {
this.handleXDataControlEvents(eventName, args);
}
}
......@@ -114,15 +113,15 @@ export class ExpViewEngine extends ViewEngine {
* @memberof ExpViewEngine
*/
protected handleExpBarEvents(eventName: string, args: any) {
if (Object.is(eventName, 'load')) {
this.view.$emit('viewload', args);
if (Object.is(eventName, "load")) {
this.view.$emit("viewload", args);
}
if (Object.is(eventName, 'selectionchange')) {
if (Object.is(eventName, "selectionchange")) {
if (this.isCloseNavView) {
this.isCloseNavView = false;
return;
}
if (this.view && args && args.srfnavdata && args.srfnavdata.context && args.srfnavdata.context.viewpath) {
if (this.view && args && args.srfnavdata && args.srfnavdata.context) {
this.view.navItem = args;
if (this.view.backSplit !== 0) {
this.view.split = this.view.backSplit;
......@@ -131,20 +130,20 @@ export class ExpViewEngine extends ViewEngine {
if (args && args.data && args.data[0]) {
const selectedData = args.data[0];
const result = Object.keys(selectedData).find((key: string) => {
return selectedData[key] !== null && key !== 'srfchecked';
})
if(result){
return selectedData[key] !== null && key !== "srfchecked";
});
if (result) {
this.isRealSelected = true;
}else{
} else {
this.isRealSelected = false;
}
}
this.view.$forceUpdate();
// this.view.$forceUpdate();
}
this.view.$emit('viewdataschange', args?.data);
this.view.$emit("viewdataschange", args && args.data ? args.data : []);
}
if (Object.is(eventName, 'activated')) {
this.view.$emit('viewdatasactivated', args);
if (Object.is(eventName, "activated")) {
this.view.$emit("viewdatasactivated", args);
}
}
......@@ -157,7 +156,7 @@ export class ExpViewEngine extends ViewEngine {
* @memberof ExpViewEngine
*/
protected handleXDataControlEvents(eventName: string, args: any) {
if (Object.is(eventName, 'beforeload')) {
if (Object.is(eventName, "beforeload")) {
this.handleBeforeLoad(args);
}
}
......@@ -178,7 +177,7 @@ export class ExpViewEngine extends ViewEngine {
/**
* 获取导航栏
*
* @return {*}
* @return {*}
* @memberof ExpViewEngine
*/
public getExpBar() {
......@@ -192,4 +191,4 @@ export class ExpViewEngine extends ViewEngine {
public destroyed() {
this.expBar = null;
}
}
\ No newline at end of file
}
......@@ -237,7 +237,6 @@ export default class IBIZOrderGridExpViewBase extends Vue {
* @memberof IBIZOrderGridExpViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 视图引擎
......@@ -575,7 +574,7 @@ export default class IBIZOrderGridExpViewBase extends Vue {
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
this.initSplit();
}
......@@ -803,7 +802,24 @@ export default class IBIZOrderGridExpViewBase extends Vue {
* @memberof IBIZOrderGridExpViewBase
*/
public onSplitChange() {
console.log(111, '分隔值变化', this.split);
if (this.split) {
this.$store.commit("setViewSplit", { viewUID: this.viewUID, viewSplit: this.split });
}
}
/**
* 初始化分隔值
*
* @memberof IBIZOrderGridExpViewBase
*/
public initSplit() {
if (this.$store.getters.getViewSplit(this.viewUID)) {
this.split = this.$store.getters.getViewSplit(this.viewUID);
} else {
const containerWidth = (this.$el as any).offsetWidth;
this.split = 500 / containerWidth;
this.$store.commit("setViewSplit", { viewUID: this.viewUID, viewSplit: this.split });
}
}
}
......
......@@ -209,19 +209,248 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public layoutModelDetails:any = {
nav_tabs1:new PanelCtrlPosModel({ caption: '标签页导航栏', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'nav_tabs1', panel: this }),
nav_pos1:new PanelCtrlPosModel({ caption: '导航区占位', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'nav_pos1', panel: this }),
container_scroll_main1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_main1', panel: this, details:['nav_tabs1','nav_pos1']}),
appmenu1:new PanelCtrlPosModel({ caption: '首页菜单', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'appmenu1', panel: this }),
container_scroll_left1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_left1', panel: this, details:['appmenu1']}),
app_apptitle:new PanelFieldModel({ caption: '应用标题', itemType: 'FIELD',visible: true, disabled: false, name: 'app_apptitle', panel: this }),
container1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container1', panel: this, details:['app_apptitle']}),
container2:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container2', panel: this, details:[]}),
auth_userinfo1:new PanelCtrlPosModel({ caption: '用户信息', itemType: 'CTRLPOS',visible: true, disabled: false, name: 'auth_userinfo1', panel: this }),
container3:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container3', panel: this, details:['auth_userinfo1']}),
container_grid1:new PanelContainerModel({ caption: '栅格容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_grid1', panel: this, details:['container1','container2','container3']}),
container_scroll_header1:new PanelContainerModel({ caption: '面板容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll_header1', panel: this, details:['container_grid1']}),
container_scroll1:new PanelContainerModel({ caption: '滚动条容器', itemType: 'CONTAINER',visible: true, disabled: false, name: 'container_scroll1', panel: this, details:['container_scroll_main1','container_scroll_left1','container_scroll_header1']})
nav_tabs1:new PanelCtrlPosModel({ name: 'nav_tabs1',
caption: '标签页导航栏',
itemType: 'CTRLPOS',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'CENTER',
layoutHeight:'70',
heightMode:'PX',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this }),
nav_pos1:new PanelCtrlPosModel({ name: 'nav_pos1',
caption: '导航区占位',
itemType: 'CTRLPOS',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'CENTER',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this }),
container_scroll_main1:new PanelContainerModel({ name: 'container_scroll_main1',
caption: '面板容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'CENTER',
layoutHeight:'',
heightMode:'',
layoutWidth:'80',
widthMode:'PERCENTAGE',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['nav_tabs1','nav_pos1']}),
appmenu1:new PanelCtrlPosModel({ name: 'appmenu1',
caption: '首页菜单',
itemType: 'CTRLPOS',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'CENTER',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this }),
container_scroll_left1:new PanelContainerModel({ name: 'container_scroll_left1',
caption: '面板容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'WEST',
layoutHeight:'',
heightMode:'',
layoutWidth:'20',
widthMode:'PERCENTAGE',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['appmenu1']}),
app_apptitle:new PanelFieldModel({ name: 'app_apptitle',
caption: '应用标题',
itemType: 'FIELD',
visible: true,
disabled: false,
layout:'SIMPLEFLEX',
layoutPos'',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this }),
container1:new PanelContainerModel({ name: 'container1',
caption: '面板容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'SIMPLEFLEX',
layoutPos'',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['app_apptitle']}),
container2:new PanelContainerModel({ name: 'container2',
caption: '面板容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'SIMPLEFLEX',
layoutPos'',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:[]}),
auth_userinfo1:new PanelCtrlPosModel({ name: 'auth_userinfo1',
caption: '用户信息',
itemType: 'CTRLPOS',
visible: true,
disabled: false,
layout:'SIMPLEFLEX',
layoutPos'',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this }),
container3:new PanelContainerModel({ name: 'container3',
caption: '面板容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'SIMPLEFLEX',
layoutPos'',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['auth_userinfo1']}),
container_grid1:new PanelContainerModel({ name: 'container_grid1',
caption: '栅格容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'CENTER',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['container1','container2','container3']}),
container_scroll_header1:new PanelContainerModel({ name: 'container_scroll_header1',
caption: '面板容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'BORDER',
layoutPos'NORTH',
layoutHeight:'80',
heightMode:'PX',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['container_grid1']}),
container_scroll1:new PanelContainerModel({ name: 'container_scroll1',
caption: '滚动条容器',
itemType: 'CONTAINER',
visible: true,
disabled: false,
layout:'FLEX',
layoutPos'',
layoutHeight:'',
heightMode:'',
layoutWidth:'',
widthMode:'',
spacingBottom:'',
spacingLeft:'',
spacingRight:'',
spacingTop:'',
hAlignSelf:'',
vAlignSelf:'',
panel: this,
details:['container_scroll_main1','container_scroll_left1','container_scroll_header1']})
};
......
......@@ -93,11 +93,11 @@ export default class BookCalendarMajorStateService extends ControlService {
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class CustomCalendarService extends ControlService {
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr8GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr8GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -844,10 +844,10 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
* @memberof GroupByCodelistKanBanBase
*/
public uiAction(tag: any, $event: any, group: any) {
// let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
// if(!row.hasOwnProperty('srfgroup')){
// Object.assign(row,{srfgroup: group? group.value:null});
// }
let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group? group.value:null});
}
}
/**
......
......@@ -844,10 +844,10 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof HasPanelKanBanBase
*/
public uiAction(tag: any, $event: any, group: any) {
// let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
// if(!row.hasOwnProperty('srfgroup')){
// Object.assign(row,{srfgroup: group? group.value:null});
// }
let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group? group.value:null});
}
}
/**
......
......@@ -93,11 +93,11 @@ export default class IBIZBOOKMONTHService extends ControlService {
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class IBIZBOOKPANELService extends ControlService {
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class IBIZBOOKTIMELINEService extends ControlService {
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -882,13 +882,13 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
* @memberof InterFuncKanbanBase
*/
public uiAction(tag: any, $event: any, group: any) {
// let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
// if(!row.hasOwnProperty('srfgroup')){
// Object.assign(row,{srfgroup: group? group.value:null});
// }
// if(Object.is('openKanbanDocument', tag)) {
// this.kanban_group_u7f86898_click(row, tag, $event);
// }
let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group? group.value:null});
}
if(Object.is('openKanbanDocument', tag)) {
this.kanban_group_u7f86898_click(row, tag, $event);
}
}
/**
......
......@@ -621,7 +621,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -657,7 +657,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -5,7 +5,7 @@
<icon type='ios-home-outline'/>{{ $t('app.gridBar.title') }}
</div>
</div>
<div class="container-header">
<div class="exp-bar-action-container">
<div class='search-container'>
<i-input
v-model="searchText"
......@@ -316,23 +316,6 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
public isSingleSelect:boolean = true;
/**
* 呈现模式,可选值:horizontal或者vertical
*
* @public
* @type {(string)}
* @memberof GridExpViewgridexpbarBase
*/
public showMode:string ="horizontal";
/**
* 选中数据
*
* @type {*}
* @memberof GridExpViewgridexpbarBase
*/
public selection: any = {};
/**
* 可搜索字段名称
*
......@@ -340,7 +323,7 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
* @type {(string)}
* @memberof GridExpViewgridexpbarBase
*/
public placeholder="订单名称";
public placeholder = "订单名称";
/**
* 搜素值
......
.app-grid-exp-bar {
> .ivu-split-horizontal {
> .ivu-split-trigger-con {
height: 100%;
width: 1px;
}
> .ivu-split-pane {
> div {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
.grid-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
.grid-exp-bar-title {
font-size: 18px;
padding-left: 8px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
.quick-group-container {
padding-top: 8px;
padding-right: 20px;
}
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
}
.grid-exp-bar-content {
height: calc(100% - 88px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
}
.grid-exp-bar-content2 {
height: calc(100% - 88px);
overflow: auto;
flex-grow: 1;
}
}
}
> .right-pane.ivu-split-pane {
> div {
padding-left: 10px;
}
}
> .left-pane.ivu-split-pane {
padding-right: 10px;
}
}
> .ivu-split-vertical{
> .ivu-split-pane {
> div {
height: 100%;
.grid-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
>div {
font-size: 18px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
}
.quick-group-container {
padding-top: 8px;
padding-right: 20px;
}
}
.grid-exp-bar-content {
height: calc(100% - 88px);
overflow: auto;
margin-bottom: 10px;
}
.grid-exp-bar-content2 {
height: calc(100% - 88px);
overflow: auto;
flex-grow: 1;
}
}
}
> .top-pane.ivu-split-pane {
> div {
padding-bottom: 10px;
}
}
> .bottom-pane.ivu-split-pane {
padding-top: 10px;
}
}
}
.app-grid-exp-bar {
height: 100%;
display: flex;
flex-direction: column;
.grid-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
.grid-exp-bar-title {
font-size: 18px;
padding-left: 8px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.exp-bar-action-container {
display: flex;
align-items: center;
}
.container-header{
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
}
.quick-group-container {
padding-top: 8px;
padding-right: 20px;
}
}
.grid-exp-bar-content {
flex-grow: 1;
overflow: auto;
}
}
// this is less
......@@ -93,11 +93,11 @@ export default class OrderCalendarNavigationService extends ControlService {
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class OrderCalendarTimelineNavigationService extends ControlServi
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册