| | |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | | |
| | | const CommonDict = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS |
| | | const CommonDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS |
| | | |
| | | class CommonTableBaseData { |
| | | baseConfig = { |
| | |
| | | type: 'system', |
| | | Template: 'CommonTable', |
| | | enabled: false, |
| | | easyCode: '', |
| | | setting: { |
| | | actionfixed: false, |
| | | columnfixed: false, |
| | |
| | | primaryKey: '', |
| | | order: '', |
| | | dataresource: '', |
| | | interType: 'inner', |
| | | interType: 'system', |
| | | sysInterface: 'false', |
| | | innerFunc: '', |
| | | interface: '', |
| | |
| | | origin: true, |
| | | uuid: Utils.getuuid(), |
| | | label: 'add', |
| | | intertype: 'inner', |
| | | method: 'POST', |
| | | intertype: 'system', |
| | | Ot: 'notRequired', |
| | | position: 'toolbar', |
| | | execSuccess: 'grid', |
| | |
| | | origin: true, |
| | | uuid: Utils.getuuid(), |
| | | label: 'update', |
| | | intertype: 'inner', |
| | | method: 'POST', |
| | | intertype: 'system', |
| | | Ot: 'requiredSgl', |
| | | position: 'grid', |
| | | position: 'toolbar', |
| | | execSuccess: 'grid', |
| | | execError: 'never', |
| | | errorTime: 15, |
| | |
| | | origin: true, |
| | | uuid: Utils.getuuid(), |
| | | label: 'delete', |
| | | intertype: 'inner', |
| | | method: 'POST', |
| | | intertype: 'system', |
| | | Ot: 'required', |
| | | position: 'toolbar', |
| | | execSuccess: 'grid', |
| | |
| | | Align: 'center', |
| | | IsSort: 'false', |
| | | uuid: Utils.getuuid(), |
| | | label: CommonDict['model.form.column.action'], |
| | | label: CommonDict['model.operation'], |
| | | type: 'action', |
| | | style: 'button', |
| | | show: 'horizontal', |
| | |
| | | }, |
| | | { |
| | | type: 'columns', |
| | | label: CommonDict['model.form.textarea'], |
| | | subType: 'textarea', |
| | | url: '' |
| | | }, |
| | | { |
| | | type: 'columns', |
| | | label: CommonDict['model.form.href'], |
| | | subType: 'link', |
| | | url: '' |
| | | }, |
| | | { |
| | | type: 'columns', |
| | | label: CommonDict['model.form.textarea'], |
| | | subType: 'textarea', |
| | | url: '' |
| | | }, |
| | | { |
| | | type: 'columns', |
| | | label: CommonDict['model.form.colspan'], |
| | | subType: 'colspan', |
| | | url: '' |
| | | }, |
| | | { |
| | | type: 'columns', |
| | | label: '序号', |
| | | subType: 'index', |
| | | url: '' |
| | | } |
| | | ] |
| | | |