| | |
| | | let isprint = sessionStorage.getItem('MenuType') === 'billPrint' |
| | | let ispop = sessionStorage.getItem('editMenuType') === 'popview' |
| | | let menu = window.GLOB.customMenu |
| | | |
| | | let interfaces = [] |
| | | |
| | | if (menu.interfaces) { |
| | | menu.interfaces.forEach(item => { |
| | | if (item.status === 'true') { |
| | | interfaces.push({ |
| | | value: item.uuid, |
| | | label: item.name |
| | | label: item.name, |
| | | columns: JSON.parse(JSON.stringify(item.columns)) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | required: true, |
| | | options: interfaces, |
| | | reset_source: true, |
| | | callback: (map, record) => { |
| | | callback: (record) => { |
| | | if (!record.publicId) return |
| | | |
| | | let interfaces = window.GLOB.customMenu.interfaces || [] |
| | | |
| | | let d = interfaces.filter(m => m.uuid === record.publicId && m.status === 'true')[0] |
| | | let d = interfaces.filter(m => m.value === record.publicId)[0] |
| | | |
| | | if (!d || !d.columns) return |
| | | |
| | | let columns = JSON.parse(JSON.stringify(d.columns)) |
| | | |
| | | let _field = map.get('field') |
| | | |
| | | if (_field) { |
| | | _field.options = columns |
| | | _field.oriOptions = columns |
| | | map.set('field', _field) |
| | | return { |
| | | field: d.columns |
| | | } |
| | | } |
| | | }, |
| | |
| | | field: 'field', |
| | | label: '文本字段', |
| | | initval: wrap.field || '', |
| | | timestamp: new Date().getTime(), |
| | | required: false, |
| | | options: columns |
| | | }, |
| | |
| | | initval: wrap.empty || 'show', |
| | | tooltip: '当查询数据为空时,隐藏该组件。', |
| | | required: false, |
| | | skip: true, |
| | | options: [ |
| | | {value: 'show', label: '否'}, |
| | | {value: 'hidden', label: '是'}, |
| | | ], |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'firstTr', |
| | | label: '表格首行', |
| | | initval: wrap.firstTr || 'deep', |
| | | tooltip: '富文本中table的首行背景颜色。', |
| | | type: 'checkbox', |
| | | field: 'tbStyle', |
| | | label: '表格样式', |
| | | initval: wrap.tbStyle ? wrap.tbStyle.split(' ') : [], |
| | | tooltip: '富文本中表格的样式,注:选择“边框加粗”或“边框颜色加深”时“无边框”无效。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'deep', label: '深色'}, |
| | | {value: 'light', label: '浅色'}, |
| | | ] |
| | | {value: 'th-light', label: '表头透明'}, |
| | | {value: 'tb-flex', label: '列等宽'}, |
| | | {value: 'no-border', label: '无边框'}, |
| | | {value: 'bold-border', label: '边框加粗'}, |
| | | {value: 'deep-border', label: '边框颜色加深'}, |
| | | ], |
| | | span: 24 |
| | | }, |
| | | // { |
| | | // type: 'radio', |
| | | // field: 'firstTr', |
| | | // label: '表格首行', |
| | | // initval: wrap.firstTr || 'deep', |
| | | // tooltip: '富文本中table的首行背景颜色。', |
| | | // required: false, |
| | | // options: [ |
| | | // {value: 'deep', label: '深色'}, |
| | | // {value: 'light', label: '浅色'}, |
| | | // ] |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | field: 'permission', |