king
2020-05-08 2031a460f6c0827fe80f8c625dd98333d1631d2f
src/templates/sharecomponent/settingcomponent/settingform/index.jsx
@@ -26,7 +26,10 @@
    formlist: [],
    setting: null,
    view: 'normal',
    systemScripts: [],
    systemScripts: [{
      name: '默认sql',
      value: ''
    }],
    scriptsColumns: [
      {
        title: 'SQL',
@@ -138,23 +141,17 @@
    
    Api.getSystemConfig(_sParam).then(res => {
      if (res.status) {
        let _scripts = []
        _scripts.push({
          name: '默认sql',
          value: ''
        })
        res.data.forEach(item => {
        let _scripts = res.data.map(item => {
          let _item = {
            name: item.funcname,
            value: Utils.formatOptions(item.longparam, true)
          }
          _scripts.push(_item)
          return _item
        })
        this.setState({
          systemScripts: _scripts
          systemScripts: [...this.state.systemScripts, ..._scripts]
        })
      } else {
        notification.warning({