Browse Source

fix: DEC-9992 编辑页面不显示返回按钮

qufenxi
alan 5 years ago
parent
commit
14a7c3bacc
  1. 3
      assets/scripts/dec.js
  2. 4
      src/modules/pages/maintain/maintain.ts

3
assets/scripts/dec.js

@ -20,4 +20,7 @@ window.Dec = {
socket: { socket: {
connected: false, connected: false,
}, },
personal: {
username: ''
}
} }

4
src/modules/pages/maintain/maintain.ts

@ -17,7 +17,7 @@ export class Maintain extends BI.Widget {
listView: any; listView: any;
render() { render() {
const { text } = this.getEditConnection(); const { text, isEdit } = this.getEditConnection();
return { return {
type: Vtape, type: Vtape,
@ -32,7 +32,7 @@ export class Maintain extends BI.Widget {
type: IconButton, type: IconButton,
hgap: 5, hgap: 5,
cls: 'dcm-back-font', cls: 'dcm-back-font',
invisible: this.model.isCopy, invisible: this.model.isCopy || isEdit,
handler: () => { handler: () => {
this.store.setPageIndex(PAGE_INDEX.DATEBASE); this.store.setPageIndex(PAGE_INDEX.DATEBASE);
}, },

Loading…
Cancel
Save