king
2024-01-22 b4022f22fff06e306196fa1348e2ebe63def9d09
2024-01-22
2个文件已修改
21 ■■■■ 已修改文件
src/menu/debug/index.jsx 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/option.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/debug/index.jsx
@@ -1776,10 +1776,14 @@
    item.setting.interType = 'system'
    item.setting.execute = btn.verify.defaultSql || 'true'
    item.setting.dataresource = btn.verify.dataresource || ''
    item.setting.primaryKey = btn.verify.primaryKey || component.setting.primaryKey || 'ID'
    item.setting.primaryKey = btn.verify.primaryKey || ''
    item.setting.queryType = btn.verify.queryType
    item.setting.laypage = btn.pagination
    item.setting.order = btn.verify.order || ''
    if (btn.Ot === 'requiredOnce') {
      item.setting.primaryKey = btn.verify.primaryKey || component.setting.primaryKey || 'ID'
    }
    item.scripts = btn.verify.scripts || []
@@ -1811,9 +1815,20 @@
    item.$searches = fromJS(searches).toJS()
    searches = formatSearch(searches)
    let _columns = item.columns || []
    let _columns = []
    if (item.subtype === 'dualdatacard') {
      _columns = [...item.columns, ...item.subColumns]
    } else if (item.columns) {
      _columns = [...item.columns]
    }
    if (item.setting.primaryKey) {
      let key = item.setting.primaryKey.toLowerCase()
      if (_columns.findIndex(cell => cell.field.toLowerCase() === key) === -1) {
        _columns.push({
          field: item.setting.primaryKey
        })
      }
    }
    let arr_field = _columns.map(col => col.field).join(',')
src/utils/option.js
@@ -1,6 +1,4 @@
import nortable from '@/assets/img/normaltable.jpg'
// import mainsubtable from '@/assets/img/mainsubtable.jpg'
// import treepage from '@/assets/img/treepage.jpg'
import customImg from '@/assets/img/custom.jpg'
import newpage from '@/assets/img/newpage.jpg'
import rolemanage from '@/assets/img/rolemanage.jpg'