| | |
| | | { |
| | | "appId": "201912040924165801464FF1788654BC5AC73", |
| | | "appkey": "20191106103859640976D6E924E464D029CF0", |
| | | "appId": "202108312122504607B107A83F55B40C98CCF", |
| | | "appkey": "20210831212235413F287EC3BF489424496C8", |
| | | "mainSystemApi": "http://sso.mk9h.cn/cloud/webapi/dostars", |
| | | "systemType": "", |
| | | "externalDatabase": "false", |
| | | "lineColor": "", |
| | | "filter": "false", |
| | | "defaultApp": "mk", |
| | | "defaultApp": "mkindustry", |
| | | "defaultLang": "zh-CN", |
| | | "WXAppID": "wx4d8a34c8d4494872", |
| | | "WXminiAppID": "wx9b9af4dbe2698680", |
| | | "WXAppID": "", |
| | | "WXminiAppID": "", |
| | | "debugger": false, |
| | | "licenseKey": "", |
| | | "probation": "", |
| | | "keepPassword": "true", |
| | | "platforms": ["H5", "wechat", "android", "ios", "wxMiniProgram"], |
| | | "host": "http://qingqiumarket.cn", |
| | | "service": "MKWMS/" |
| | | "host": "http://demo.mk9h.cn", |
| | | "service": "erp_new/" |
| | | } |
| | |
| | | .ant-form-item-label { |
| | | width: 100%!important; |
| | | text-align: left; |
| | | height: 24px; |
| | | line-height: 24px; |
| | | } |
| | | .ant-form-item-control-wrapper { |
| | | width: 100%!important; |
| | |
| | | className = 'mk-btn mk-' + btn.class |
| | | } |
| | | |
| | | return <div style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()}> |
| | | return <> |
| | | <Button |
| | | type={type} |
| | | title={disabled ? (btn.reason || '') : (btn.show === 'icon' ? btn.label : '')} |
| | |
| | | style={btn.style} |
| | | icon={icon} |
| | | className={className} |
| | | onClick={() => {this.actionTrigger()}} |
| | | onClick={(e) => {e.stopPropagation(); this.actionTrigger()}} |
| | | >{label}</Button> |
| | | <ExcelIn btn={btn} triggerExcelIn={() => this.setState({ loading: true })} returndata={this.getexceldata} ref="excelIn" /> |
| | | </div> |
| | | </> |
| | | } |
| | | } |
| | | |
| | |
| | | } else if (!btn.$toolbtn) { |
| | | icon = btn.icon || '' |
| | | label = btn.label |
| | | className = 'mk-btn mk-' + btn.class |
| | | className = 'mk-btn mk-' + (btn.class || 'unset') |
| | | } else { |
| | | type = '' |
| | | icon = btn.icon || '' |
| | | label = btn.label |
| | | className = 'mk-btn mk-' + btn.class |
| | | className = 'mk-btn mk-' + (btn.class || 'unset') |
| | | } |
| | | |
| | | if (loadingNumber && !loadingTotal && btn.$toolbtn && (!btn.show || btn.show === 'button')) { |
| | | label = (loadingNumber && !loadingTotal ? `(${loadingNumber})` : '') + btn.label |
| | | } |
| | | |
| | | return <div style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()}> |
| | | return <> |
| | | <Button |
| | | type={type} |
| | | icon={icon} |
| | | title={disabled ? (btn.reason || '') : (btn.show === 'icon' ? btn.label : '')} |
| | | loading={loading} |
| | | disabled={disabled} |
| | | style={btn.style || null} |
| | | style={btn.style} |
| | | className={className} |
| | | onClick={() => {this.actionTrigger()}} |
| | | onClick={(e) => {e.stopPropagation(); this.actionTrigger()}} |
| | | >{label}</Button> |
| | | {this.getModels()} |
| | | {loadingTotal ? <Progress className="mk-button-progress" percent={(loadingTotal - loadingNumber) / loadingTotal * 100} size="small" showInfo={false} /> : null} |
| | | </div> |
| | | </> |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | return ( |
| | | <div style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()}> |
| | | <> |
| | | <Button |
| | | type={type} |
| | | title={disabled ? (btn.reason || '') : (btn.show === 'icon' ? btn.label : '')} |
| | |
| | | style={btn.style} |
| | | icon={icon} |
| | | className={className} |
| | | onClick={() => {this.actionTrigger()}} |
| | | onClick={(e) => {e.stopPropagation(); this.actionTrigger()}} |
| | | >{label}</Button> |
| | | {this.getPop()} |
| | | </div> |
| | | </> |
| | | ) |
| | | } |
| | | } |
| | |
| | | className = 'mk-btn mk-' + btn.class |
| | | } |
| | | |
| | | return <div style={{display: 'inline-block'}} onClick={(e) => e.stopPropagation()}> |
| | | return <> |
| | | <Button |
| | | type={type} |
| | | title={disabled ? (btn.reason || '') : (btn.show === 'icon' ? btn.label : '')} |
| | |
| | | style={btn.style || null} |
| | | icon={icon} |
| | | className={className} |
| | | onClick={() => {this.actionTrigger()}} |
| | | onClick={(e) => {e.stopPropagation(); this.actionTrigger()}} |
| | | >{label}</Button> |
| | | {this.getModels()} |
| | | </div> |
| | | </> |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | card.switch = plot.switch !== 'false' |
| | | |
| | | if (!insertAction.icon) { |
| | | insertAction.icon = 'plus' |
| | | } |
| | | |
| | | card.insertAction = insertAction // 添加卡片 |
| | | |
| | | this.setState({card: card, colMap: colMap, actionList: actionList}) |
| | |
| | | right: 0; |
| | | bottom: 0; |
| | | |
| | | div { |
| | | width: 100%; |
| | | height: 100%; |
| | | .ant-btn { |
| | | border: 0; |
| | | width: 100%; |
| | |
| | | transition: color 0.3s linear; |
| | | } |
| | | } |
| | | } |
| | | .mk-card-insert:hover { |
| | | .ant-btn { |
| | | color: #1890ff; |
| | | color: var(--mk-sys-color); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | if (!item.field || !['text', 'number', 'switch', 'rate', 'select', 'link', 'linkMain', 'funcvar', 'date', 'datemonth', 'radio', 'checkbox', 'checkcard', 'fileupload', 'textarea', 'multiselect', 'brafteditor', 'color'].includes(item.type)) return false |
| | | |
| | | if (/^\s+$/.test(item.label)) { |
| | | item.style = item.style || {} |
| | | item.style.color = 'transparent' |
| | | } |
| | | |
| | | // 数据自动填充 |
| | | let readin = item.readin !== 'false' |
| | | item.readin = item.readin !== 'false' && item.readin !== 'top' |
| | |
| | | .ant-form-item-label { |
| | | width: 100%!important; |
| | | text-align: left; |
| | | height: 24px; |
| | | line-height: 24px; |
| | | } |
| | | .ant-form-item-control-wrapper { |
| | | width: 100%!important; |
| | |
| | | .ant-form-item-label { |
| | | width: 100%!important; |
| | | text-align: left; |
| | | height: 24px; |
| | | line-height: 24px; |
| | | } |
| | | .ant-form-item-control-wrapper { |
| | | width: 100%!important; |