From c7aece35a62b6e91fd98a625bf0e53f64bfbd18d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 17 八月 2023 16:22:15 +0800 Subject: [PATCH] 2023-08-17 --- src/templates/zshare/createinterface/index.jsx | 21 +++++++++------------ 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/templates/zshare/createinterface/index.jsx b/src/templates/zshare/createinterface/index.jsx index 4156e22..b5d117a 100644 --- a/src/templates/zshare/createinterface/index.jsx +++ b/src/templates/zshare/createinterface/index.jsx @@ -6,14 +6,12 @@ import MutilForm from './mutilform' import Utils from '@/utils/utils.js' -import options from '@/store/options.js' import { updateForm } from '@/utils/utils-update.js' import Api from '@/api' import './index.scss' class CreateInterface extends Component { static propTypes = { - dict: PropTypes.object, // 瀛楀吀椤� trigger: PropTypes.func } @@ -171,10 +169,10 @@ required: true, options: [{ value: 'Y', - text: this.props.dict['model.true'] + text: '鏄�' }, { value: 'N', - text: this.props.dict['model.false'] + text: '鍚�' }] }, { type: 'radio', @@ -184,10 +182,10 @@ required: true, options: [{ value: 'Y', - text: this.props.dict['model.true'] + text: '鏄�' }, { value: 'N', - text: this.props.dict['model.false'] + text: '鍚�' }] }] }) @@ -262,7 +260,7 @@ new Promise(resolve => { // 鑾峰彇浜戠瀛樺偍杩囩▼淇℃伅 - Api.getLocalConfig(param).then(result => { + Api.genericInterface(param).then(result => { if (!result.status) { notification.warning({ top: 92, @@ -336,7 +334,7 @@ Ltexttableparam: '', Ltext: '', menuType: menu.type, - systemType: options.sysType + systemType: window.GLOB.sysType } this.setState({ @@ -407,7 +405,7 @@ new Promise(resolve => { if (btn.OpenType === 'pop') { - Api.getSystemConfig({ + Api.getCloudConfig({ func: 'sPC_Get_LongParam', MenuID: btn.uuid }).then(result => { @@ -558,7 +556,7 @@ _mainParam = fromJS(param).toJS() - return Api.getLocalConfig(param) + return Api.genericInterface(param) }).then(res => { if (res === false) return res @@ -1065,7 +1063,7 @@ } else if (_actionType === 'LogicDelete') { // 閫昏緫鍒犻櫎 _sql += ` /* 榛樿sql */ - update ${btn.sql} set deleted=1,modifydate=getdate(),modifyuser=@username,modifyuserid=@userid@ where ${primaryKey}=@${primaryKey}@;` + update ${btn.sql} set deleted=1,modifydate=getdate(),modifyuser=@username,modifystaff=@fullname,modifyuserid=@userid@ where ${primaryKey}=@${primaryKey}@;` } else if (_actionType === 'delete') { // 鐗╃悊鍒犻櫎 let _msg = '' @@ -1125,7 +1123,6 @@ destroyOnClose > <MutilForm - dict={this.props.dict} formlist={this.state.formlist} wrappedComponentRef={(inst) => this.FormRef = inst} /> -- Gitblit v1.8.0