| | |
| | | // secure: false, |
| | | // changeOrigin: true |
| | | // })) |
| | | |
| | | app.use(proxy('/star', { |
| | | target: `http://dms.worx.cn/webapi`, |
| | | secure: false, |
| | | changeOrigin: true |
| | | })) |
| | | } |
| | |
| | | import React, { Component } from 'react' |
| | | import { Input, Button, message } from 'antd' |
| | | |
| | | import Api from '@/api' |
| | | import sqlFormatter from '@/utils/sqlFormatter.js' |
| | | import Utils from '@/utils/utils.js' |
| | | |
| | |
| | | } |
| | | |
| | | changeType = (type) => { |
| | | if (type === 'mk_func' && this.state.textInput) { |
| | | if (this.state.textInput) { |
| | | let params = { |
| | | url: window.location.origin + '/star', |
| | | method: 'post', |
| | | data: JSON.stringify({ |
| | | FUNC: 's_get_userproc', |
| | | LText: this.state.textInput.replace(/(\s|\t|\v)*/ig, ''), |
| | | UserID: '', |
| | | USERNAME: '' |
| | | }) |
| | | } |
| | | |
| | | Api.directRequest(params).then(result => { |
| | | this.setState({textInput: JSON.stringify(result)}) |
| | | }) |
| | | } |
| | | } |
| | | if (!this.state.type) { |
| | | this.setState({type: type, value: null}) |
| | | } else { |