| | |
| | | card: element |
| | | }) |
| | | |
| | | MKEmitter.emit('changeStyle', options, _style, this.getStyle) |
| | | MKEmitter.emit('changeStyle', options, _style, this.getStyle, 'toolBtn') |
| | | } |
| | | |
| | | addButton = (cardId, element) => { |
| | |
| | | } |
| | | |
| | | btn.updateTime = moment().format('YYYY-MM-DD HH:mm') |
| | | |
| | | if (btn.style) { |
| | | delete btn.style.display |
| | | } |
| | | |
| | | return btn |
| | | } else { |
| | | return item |
| | |
| | | let _actionlist = fromJS(this.state.actionlist).toJS() |
| | | _actionlist = _actionlist.filter(item => !item.origin || item.uuid === card.uuid) |
| | | |
| | | res.customverifys && res.customverifys.forEach(item => { |
| | | item.sql = item.sql.replace(/\t+|\v+/g, ' ') |
| | | }) |
| | | res.scripts && res.scripts.forEach(item => { |
| | | item.sql = item.sql.replace(/\t+|\v+/g, ' ') |
| | | }) |
| | | res.cbScripts && res.cbScripts.forEach(item => { |
| | | item.sql = item.sql.replace(/\t+|\v+/g, ' ') |
| | | }) |
| | | |
| | | _actionlist = _actionlist.map(item => { |
| | | if (item.uuid === card.uuid) { |
| | | item.verify = res |