| | |
| | | import Utils from '@/utils/utils.js' |
| | | import zhCN from '@/locales/zh-CN/comtable.js' |
| | | import enUS from '@/locales/en-US/comtable.js' |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | | |
| | | const CommonDict = (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS |
| | | const CommonDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS |
| | | |
| | | class CommonTableBaseData { |
| | | baseConfig = { |
| | | type: 'FormTab', |
| | | Template: 'FormTab', |
| | | enabled: false, |
| | | setting: { |
| | | datatype: 'query', |
| | | cols: '2', |
| | | width: 100 |
| | | width: 90 |
| | | }, |
| | | tables: [], |
| | | groups: [ |
| | |
| | | initval: '', |
| | | type: 'text', |
| | | resourceType: '0', |
| | | setAll: 'false', |
| | | options: [], |
| | | orderType: 'asc' |
| | | }, { |
| | |
| | | initval: '', |
| | | type: 'select', |
| | | resourceType: '0', |
| | | setAll: 'false', |
| | | options: [], |
| | | orderType: 'asc' |
| | | }, { |
| | |
| | | initval: '', |
| | | type: 'date', |
| | | resourceType: '0', |
| | | setAll: 'false', |
| | | options: [], |
| | | orderType: 'asc' |
| | | } |
| | |
| | | btnType: 'confirm', |
| | | uuid: Utils.getuuid(), |
| | | label: '确定', |
| | | intertype: 'inner', |
| | | intertype: 'system', |
| | | innerFunc: '', |
| | | interface: '', |
| | | outerFunc: '', |
| | |
| | | Ot: 'notRequired', |
| | | execSuccess: 'grid', |
| | | execError: 'never', |
| | | errorTime: 15, |
| | | OpenType: 'exec', |
| | | icon: '', |
| | | class: 'border-primary', |
| | |
| | | label: '关闭', |
| | | execSuccess: 'grid', |
| | | execError: 'never', |
| | | errorTime: 15, |
| | | OpenType: 'exec', |
| | | pageTemplate: '', |
| | | url: '', |
| | |
| | | class: 'border-danger' |
| | | } |
| | | ], |
| | | tabs: [ |
| | | { |
| | | origin: true, // 是否为示例 |
| | | groupId: 'tabs', |
| | | uuid: Utils.getuuid(), |
| | | label: 'tab1', |
| | | icon: '', |
| | | type: 'SubTable', |
| | | linkTab: '', |
| | | subtabs: [], |
| | | supMenu: '' |
| | | }, |
| | | { |
| | | origin: true, |
| | | groupId: 'tabs', |
| | | uuid: Utils.getuuid(), |
| | | label: 'tab2', |
| | | icon: '', |
| | | type: 'SubTable', |
| | | linkTab: '', |
| | | subtabs: [], |
| | | supMenu: '' |
| | | } |
| | | ], |
| | | tabgroups: ['tabs'] |
| | | tabgroups: [{ |
| | | uuid: 'tabs', |
| | | sublist: [ |
| | | { |
| | | origin: true, // 是否为示例 |
| | | uuid: Utils.getuuid(), |
| | | label: 'tab1', |
| | | type: 'SubTable', |
| | | linkTab: '', |
| | | supMenu: '' |
| | | }, |
| | | { |
| | | origin: true, |
| | | uuid: Utils.getuuid(), |
| | | label: 'tab2', |
| | | type: 'SubTable', |
| | | linkTab: '', |
| | | supMenu: '' |
| | | } |
| | | ] |
| | | }] |
| | | } |
| | | |
| | | searchItems = [ |
| | |
| | | actionItems = [ |
| | | { |
| | | type: 'action', |
| | | label: CommonDict['header.form.prompt'], |
| | | label: CommonDict['model.form.prompt'], |
| | | subType: 'prompt', |
| | | url: '' |
| | | }, |
| | | { |
| | | type: 'action', |
| | | label: CommonDict['header.form.exec'], |
| | | label: CommonDict['model.form.exec'], |
| | | subType: 'exec', |
| | | url: '' |
| | | } |
| | |
| | | tabItems = [ |
| | | { |
| | | type: 'tabs', |
| | | label: CommonDict['header.menu.tab.subtable'], |
| | | label: CommonDict['model.menu.tab.subtable'], |
| | | subType: 'SubTable', |
| | | } |
| | | ] |