|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
import { MinusCircleOutlined, PlusCircleOutlined, EditOutlined } from '@ant-design/icons';
|
|
import { MinusCircleOutlined, PlusCircleOutlined, EditOutlined } from '@ant-design/icons';
|
|
import { Button, Form, Input, Space, Select, Modal, Collapse, Table} from 'antd';
|
|
import { Button, Form, Input, Space, Select, Modal, Collapse, Table} from 'antd';
|
|
import type { ColumnsType } from 'antd/es/table';
|
|
import type { ColumnsType } from 'antd/es/table';
|
|
-
|
|
|
|
|
|
+import ScriptEditor from './ScriptEditor';
|
|
|
|
|
|
const { Panel } = Collapse;
|
|
const { Panel } = Collapse;
|
|
|
|
|
|
@@ -214,12 +214,15 @@ export default class ScriptNodeInfo extends React.Component<any, any> {
|
|
title="编辑脚本"
|
|
title="编辑脚本"
|
|
open={this.state.scriptModalVisible}
|
|
open={this.state.scriptModalVisible}
|
|
onOk={this.submitScriptEdit}
|
|
onOk={this.submitScriptEdit}
|
|
- okText="确认修改"
|
|
|
|
className='script-modal'
|
|
className='script-modal'
|
|
- cancelText="取消"
|
|
|
|
width={'90%'}
|
|
width={'90%'}
|
|
style={{ top: 20 }}
|
|
style={{ top: 20 }}
|
|
onCancel={() => {this.setState({scriptModalVisible: false})}}
|
|
onCancel={() => {this.setState({scriptModalVisible: false})}}
|
|
|
|
+ footer={[
|
|
|
|
+ <Button key="back" onClick={() => {this.setState({scriptModalVisible: false})}}>取消</Button>,
|
|
|
|
+ <Button key="check" type='primary' onClick={() => {console.log('代码校验');}}>代码校验</Button>,
|
|
|
|
+ <Button key="submit" type='primary' onClick={this.submitScriptEdit}>确定修改</Button>
|
|
|
|
+ ]}
|
|
>
|
|
>
|
|
<div className='modal-container'>
|
|
<div className='modal-container'>
|
|
{/* 数据表展示 */}
|
|
{/* 数据表展示 */}
|
|
@@ -237,6 +240,7 @@ export default class ScriptNodeInfo extends React.Component<any, any> {
|
|
{/* 脚本编辑 */}
|
|
{/* 脚本编辑 */}
|
|
<div className='modal-script'>
|
|
<div className='modal-script'>
|
|
<div className='script-header'></div>
|
|
<div className='script-header'></div>
|
|
|
|
+ <ScriptEditor />
|
|
{/* <CodeMirror
|
|
{/* <CodeMirror
|
|
style={{flex: 1}}
|
|
style={{flex: 1}}
|
|
height='100%'
|
|
height='100%'
|