From 4d30a5f9748b4523fe2e1d582b1e34a8e433ffc2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 13 四月 2025 10:35:17 +0800 Subject: [PATCH] 2025-04-13 --- src/views/transystem/index.jsx | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/views/transystem/index.jsx b/src/views/transystem/index.jsx index 3df1bd5..1776ba9 100644 --- a/src/views/transystem/index.jsx +++ b/src/views/transystem/index.jsx @@ -1,6 +1,7 @@ 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' @@ -20,6 +21,24 @@ } 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 { -- Gitblit v1.8.0