Merge branch 'master' into positec
| | |
| | | width: 100%; |
| | | height: 48px; |
| | | display: flex; |
| | | background: var(--mk-sys-background); |
| | | color: var(--mk-sys-font-color); |
| | | background: var(--mk-sys-background)!important; |
| | | color: var(--mk-sys-font-color)!important; |
| | | |
| | | .header-logo { |
| | | width: 180px; |
| | |
| | | padding: 48px 0 40px; |
| | | transition: width 0.2s, flex 0.2s; |
| | | border-right: 1px solid #d9d9d9; |
| | | background: var(--mk-sys-background); |
| | | background: var(--mk-sys-background)!important; |
| | | .ant-menu-item { |
| | | padding-left: 0!important; |
| | | cursor: default; |
| | |
| | | }) |
| | | return component |
| | | } else if (component.type === 'group') { |
| | | component.components = this.formatSetting(component.components, params, inherit, regs, balMap) |
| | | component = {...component, ...inherit} |
| | | component.components = this.formatSetting(component.components, params, null, regs, balMap) |
| | | return component |
| | | } else if (component.wrap && component.wrap.datatype === 'public') { |
| | | component.setting.useMSearch = false |
| | |
| | | }) |
| | | return component |
| | | } else if (component.type === 'group') { |
| | | component.components = this.formatSetting(component.components, params, inherit, regs, balMap) |
| | | component = {...component, ...inherit} |
| | | component.components = this.formatSetting(component.components, params, null, regs, balMap) |
| | | return component |
| | | } else if (component.wrap && component.wrap.datatype === 'public') { |
| | | component.setting.useMSearch = false |
| | |
| | | |
| | | // 数据源查询语句 |
| | | if (item.resourceType === '1' && item.dataSource) { |
| | | if (item.multiple === 'dropdown') { |
| | | item.parentField = 'pid' |
| | | } |
| | | let _option = Utils.getSelectQueryOptions(item) |
| | | |
| | | if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) { |
| | |
| | | } |
| | | |
| | | resetCheckcard = (item) => { |
| | | let pid = item.resourceType === '0' ? 'pid' : item.parentField |
| | | let _options = [] |
| | | let _others = [] |
| | | item.oriOptions.forEach(op => { |
| | | if (op.pid === item.mark) { |
| | | if (op[pid] === item.mark) { |
| | | _options.push(op) |
| | | } else { |
| | | _others.push(op) |
| | |
| | | op.children = [] |
| | | |
| | | _others = _others.filter(cell => { |
| | | if (cell.pid === op.$value) { |
| | | if (cell[pid] === op.$value) { |
| | | op.children.push(cell) |
| | | return false |
| | | } |
| | |
| | | if (this.record.selectStyle === 'custom') { |
| | | shows.push('backgroundColor') |
| | | } |
| | | if (this.record.multiple === 'dropdown') { |
| | | shows.push('mark') |
| | | if (this.record.multiple === 'dropdown' && this.record.resourceType === '1') { |
| | | shows.push('mark', 'parentField') |
| | | } |
| | | } |
| | | shows.push('linkField') |
| | |
| | | key: 'multiple', |
| | | label: '选择形式', |
| | | initVal: card.multiple || 'false', |
| | | tooltip: appType === '' ? '使用下拉菜单时,选项会依据 pid 组织数据的上下级关系,二级选项会下拉展示。注:1、显示为文本时有效;2、使用数据源请返回 pid 字段。' : '', |
| | | // tooltip: appType === '' ? '使用下拉菜单时,选项会依据 pid 组织数据的上下级关系,二级选项会下拉展示。注:1、显示为文本时有效;2、使用数据源请返回 pid 字段。' : '', |
| | | required: true, |
| | | options: muloptions |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'parentField', |
| | | label: '上级字段', |
| | | initVal: card.parentField || '', |
| | | tooltip: '用于组织数据上下级关系,请注意填写顶级标识。', |
| | | required: true, |
| | | readonly: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | |
| | | key: 'mark', |
| | | label: '顶级标识', |
| | | initVal: card.mark || '', |
| | | tooltip: 'pid与顶级标识相同时,视为顶级节点。', |
| | | tooltip: '上级字段(pid)与顶级标识相同时,视为顶级节点。', |
| | | required: false |
| | | }, |
| | | { |