king
2023-08-27 da64ab0923bf8817fc8599a6e37b953ce38f64c8
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: '否'
        }]
      }]
    })
@@ -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 => {
@@ -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}
          />