king
2024-08-03 c18f79e01a2705d34d5ac2923a26913dba07ea14
src/menu/datasource/verifycard/index.jsx
@@ -4,7 +4,6 @@
import { Form, Tabs, Popconfirm, notification, Modal, Typography, Spin, message, Button, Input } from 'antd'
import { StopOutlined, CheckCircleOutlined, TableOutlined, EditOutlined, SwapOutlined, DeleteOutlined, CopyOutlined, BorderOutlined, SnippetsOutlined } from '@ant-design/icons'
import moment from 'moment'
import md5 from 'md5'
import Api from '@/api'
import Utils from '@/utils/utils.js'
@@ -683,8 +682,6 @@
      let r = SettingUtils.getDebugSql(setting, _scripts, _columns, searches, config.subtype, config.hasExtend)
      let _debugId = md5(r.sql)
      if (r.custompage && setting.laypage === 'true' && _columns.findIndex(col => col.field === 'mk_total') === -1) {
        if (config.subtype !== 'basetable') {
          Modal.warning({
@@ -704,7 +701,7 @@
        }
      }
      if (debugId === _debugId) {
      if (debugId === r.debugId) {
        resolve()
        return
      }
@@ -719,7 +716,7 @@
      Api.sDebug(r.sql).then(result => {
        if (result.status || result.ErrCode === '-2') {
          this.setState({debugId: _debugId}, () => {
          this.setState({debugId: r.debugId}, () => {
            resolve()
          })
        } else {
@@ -962,13 +959,18 @@
  copyColumns = () => {
    const { config } = this.props
    const { columns, setting } = this.state
    const { columns, subColumns, setting } = this.state
    let _columns = columns
    let m = []
    let n = []
    let s = []
    columns.forEach(col => {
    if (subColumns && subColumns.length) {
      _columns = [...columns, ...subColumns]
    }
    _columns.forEach(col => {
      m.unshift(`${col.field} ${col.datatype}`)
      n.unshift(col.field)
      if (/decimal|int/ig.test(col.datatype)) {
@@ -983,7 +985,7 @@
    })
    if (window.debugger) {
      console.info('select ' + s.join(', '))
      window.mkInfo('select ' + s.join(', '))
    }
    let extend = ''
@@ -993,7 +995,7 @@
        cols.forEach(col => {
          if (col.type === 'extend') {
            let datatype = 'Nvarchar(50)'
            columns.forEach(c => {
            _columns.forEach(c => {
              if (c.field === col.field) {
                datatype = c.datatype
              }
@@ -1069,8 +1071,6 @@
  addProcess = () => {
    const { config } = this.props
    const { columns } = this.state
    if (config.subtype === 'dualdatacard') return
    let fields = []
    let cols = []