| | |
| | | |
| | | if (item.key === 'field' || item.key === 'linkurl' || item.key === 'bgImage' || item.key === 'posterField') { |
| | | item.options = [] |
| | | |
| | | |
| | | if (side === 'sub') { |
| | | config.subColumns.forEach(col => { |
| | | let label = `${col.field}(${col.label})` |
| | |
| | | |
| | | if (item.key === 'field') { |
| | | item.options = [] |
| | | |
| | | if (side === 'sub') { |
| | | config.subColumns.forEach(col => { |
| | | let label = `${col.field}(${col.label})` |
| | | if (/^(Int|Decimal)/ig.test(col.datatype) && (card.eleType === 'number' || card.eleType === 'slider')) { |
| | | if (/^(Int|Decimal)/ig.test(col.datatype) && (value === 'number' || value === 'slider')) { |
| | | item.options.push({ |
| | | value: col.field, |
| | | text: label |
| | | }) |
| | | } else if (/^(Nvarchar|date)/ig.test(col.datatype) && card.eleType !== 'number' && card.eleType !== 'slider') { |
| | | } else if (/^(Nvarchar|date)/ig.test(col.datatype) && value !== 'number' && value !== 'slider') { |
| | | item.options.push({ |
| | | value: col.field, |
| | | text: label |
| | |
| | | config.action.forEach(item => { |
| | | item.logLabel = MenuName + '-' + item.label // 用于sPC_TableData_InUpDe记录操作按钮 |
| | | item.$menuId = this.props.MenuID |
| | | item.$old = true |
| | | item.ContainerId = this.state.ContainerId |
| | | |
| | | if (item.OpenType === 'funcbutton' && item.funcType === 'print' && item.verify) { // 打印机设置 |
| | |
| | | overflow: hidden; |
| | | transition: height 0.3s; |
| | | } |
| | | .sub-card-wrap { |
| | | .card-item-box:hover { |
| | | background-color: var(--mk-sys-color2); |
| | | } |
| | | } |
| | | } |
| | | .card-item-wrap.flex-card { |
| | | >.card-item-box:first-child { |
| | |
| | | |
| | | .sub-card-wrap.mk-parity-bg { |
| | | .ant-col:nth-child(even){ |
| | | .card-item-box { |
| | | .card-item-box:not(:hover) { |
| | | background-color: var(--mk-sys-color1); |
| | | } |
| | | } |
| | |
| | | config.action.forEach(item => { |
| | | item.logLabel = Tab.label + '-' + item.label // 用于sPC_TableData_InUpDe记录操作按钮 |
| | | item.$menuId = this.props.MenuID |
| | | item.$old = true |
| | | |
| | | if (item.OpenType === 'funcbutton' && item.funcType === 'print' && item.verify) { // 打印机设置 |
| | | let _item = window.GLOB.UserCacheMap.get(Tab.uuid + item.uuid) |
| | |
| | | config.action.forEach(item => { |
| | | item.logLabel = Tab.label + '-' + item.label // 用于sPC_TableData_InUpDe记录操作按钮 |
| | | item.$menuId = this.props.MenuID |
| | | item.$old = true |
| | | |
| | | if (item.position === 'toolbar') { |
| | | item.$toolbtn = true |
| | |
| | | }, 100) |
| | | } |
| | | } |
| | | } else if (!btn.$old) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '未获取到按钮配置信息!', |
| | | duration: 5 |
| | | }) |
| | | this.setState({ loading: false }) |
| | | } else { |
| | | Api.getCacheConfig({ |
| | | func: 'sPC_Get_LongParam', |
| | |
| | | }, 100) |
| | | } |
| | | } |
| | | } else if (!btn.$old) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '未获取到按钮配置信息!', |
| | | duration: 5 |
| | | }) |
| | | this.setState({ loading: false }) |
| | | } else { |
| | | Api.getCacheConfig({ |
| | | func: 'sPC_Get_LongParam', |