Merge branch 'master' into positec
| | |
| | | }) |
| | | } else { |
| | | let url = '/webapi/dostars' |
| | | if (param.rduri && !window.GLOB.transfer && /\/dostars/.test(param.rduri) && param.func !== 'webapi_ChangeUser') { |
| | | if (param.rduri && (!window.GLOB.transfer || /https:\/\/sso.mk9h.cn/.test(param.rduri)) && /\/dostars/.test(param.rduri) && param.func !== 'webapi_ChangeUser') { |
| | | url = param.rduri |
| | | delete param.rduri |
| | | } |
| | |
| | | } |
| | | |
| | | let width = card.width || (card.width === 0 ? 0 : 12) |
| | | if (/x/.test(card.width)) { |
| | | if (card.width && /x/.test(card.width)) { |
| | | width = +width.replace(/x/, '.5') |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | let width = card.width || (card.width === 0 ? 0 : 12) |
| | | if (card.width && /x/.test(card.width)) { |
| | | width = +width.replace(/x/, '.5') |
| | | } |
| | | |
| | | let forms = [ |
| | | { |
| | | type: 'select', |
| | |
| | | tooltip: '分享时对用户的提示信息。', |
| | | required: false |
| | | }, |
| | | // { |
| | | // type: 'number', |
| | | // key: 'width', |
| | | // min: 1, |
| | | // max: 24, |
| | | // precision: 0, |
| | | // label: '宽度', |
| | | // initVal: card.width || 12, |
| | | // tooltip: '栅格布局,每行等分为24列。', |
| | | // forbid: card.eleType !== 'button', |
| | | // required: true |
| | | // }, |
| | | { |
| | | type: 'number', |
| | | key: 'width', |
| | | min: 0, |
| | | max: 24, |
| | | precision: 1, |
| | | label: '宽度', |
| | | initVal: width, |
| | | tooltip: '栅格布局,每行等分为24列。为 0 时宽度自适应。可设置半列即.5。', |
| | | forbid: position !== 'line', |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'show', |
| | |
| | | |
| | | if (_LongParam) { |
| | | _LongParam.uuid = item.uuid |
| | | |
| | | if (_LongParam.fields && _LongParam.fields.length === 0 && _LongParam.groups && _LongParam.groups.length > 0) { |
| | | _LongParam.groups.forEach(group => { |
| | | if (group.sublist && group.sublist.length > 0) { |
| | | _LongParam.fields.push({ |
| | | uuid: Utils.getuuid(), |
| | | label: group.label, |
| | | field: '', |
| | | type: 'split' |
| | | }) |
| | | _LongParam.fields.push(...group.sublist) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | let span = _LongParam.setting && _LongParam.setting.cols ? (24 / _LongParam.setting.cols) : 12 |
| | | if (![24, 12, 8].includes(span)) { |
| | | span = 12 |
| | | } |
| | | |
| | | if (_LongParam.fields) { |
| | | _LongParam.fields = _LongParam.fields.map(n => { |
| | | if (!n.span && n.type !== 'split') { |
| | | if (['textarea', 'hint', 'checkcard', 'brafteditor'].includes(n.type)) { |
| | | n.span = 24 |
| | | } else { |
| | | n.span = span |
| | | } |
| | | } |
| | | |
| | | return n |
| | | }) |
| | | } |
| | | |
| | | resolve(_LongParam) |
| | | } else { |
| | | resolve({uuid: item.uuid, $empty: true}) |