king
2022-12-22 ec99ece21f40365c6041f089a8672e1d684e1c3d
src/templates/comtableconfig/source.jsx
@@ -1,8 +1,4 @@
import Utils from '@/utils/utils.js'
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
const CommonDict = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
class CommonTableBaseData {
  baseConfig = {
@@ -10,6 +6,7 @@
    type: 'system',
    Template: 'CommonTable',
    enabled: false,
    easyCode: '',
    setting: {
      actionfixed: false,
      columnfixed: false,
@@ -18,7 +15,7 @@
      primaryKey: '',
      order: '',
      dataresource: '',
      interType: 'inner',
      interType: 'system',
      sysInterface: 'false',
      innerFunc: '',
      interface: '',
@@ -35,11 +32,9 @@
        initval: '',
        type: 'text',
        resourceType: '0',
        setAll: 'false',
        options: [],
        orderType: 'asc',
        match: 'like',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -48,11 +43,9 @@
        initval: '',
        type: 'select',
        resourceType: '0',
        setAll: 'false',
        options: [],
        orderType: 'asc',
        match: 'equal',
        display: 'dropdown'
        match: '=',
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -61,11 +54,9 @@
        initval: '',
        type: 'date',
        resourceType: '0',
        setAll: 'false',
        options: [],
        orderType: 'asc',
        match: 'greater',
        display: 'dropdown'
      }
    ],
    action: [
@@ -73,13 +64,11 @@
        origin: true,
        uuid: Utils.getuuid(),
        label: 'add',
        intertype: 'inner',
        method: 'POST',
        intertype: 'system',
        Ot: 'notRequired',
        position: 'toolbar',
        execSuccess: 'grid',
        execError: 'never',
        errorTime: 15,
        OpenType: 'pop',
        icon: 'plus',
        class: 'green',
@@ -88,13 +77,11 @@
        origin: true,
        uuid: Utils.getuuid(),
        label: 'update',
        intertype: 'inner',
        method: 'POST',
        intertype: 'system',
        Ot: 'requiredSgl',
        position: 'grid',
        position: 'toolbar',
        execSuccess: 'grid',
        execError: 'never',
        errorTime: 15,
        OpenType: 'pop',
        icon: 'form',
        class: 'purple',
@@ -103,13 +90,11 @@
        origin: true,
        uuid: Utils.getuuid(),
        label: 'delete',
        intertype: 'inner',
        method: 'POST',
        intertype: 'system',
        Ot: 'required',
        position: 'toolbar',
        execSuccess: 'grid',
        execError: 'never',
        errorTime: 15,
        OpenType: 'prompt',
        icon: 'delete',
        class: 'red',
@@ -164,7 +149,7 @@
      Align: 'center',
      IsSort: 'false',
      uuid: Utils.getuuid(),
      label: CommonDict['model.form.column.action'],
      label: '操作',
      type: 'action',
      style: 'button',
      show: 'horizontal',
@@ -206,55 +191,61 @@
  searchItems = [
    {
      type: 'search',
      label: CommonDict['model.form.text'],
      label: '文本',
      subType: 'text',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.select'],
      label: '下拉选择',
      subType: 'select',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.multiselect'],
      label: '下拉多选',
      subType: 'multiselect',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.link'],
      label: '联动菜单',
      subType: 'link',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.dateday'],
      label: '选项卡',
      subType: 'checkcard',
      url: ''
    },
    {
      type: 'search',
      label: '日期(天)',
      subType: 'date',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.dateweek'],
      label: '日期(周)',
      subType: 'dateweek',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.datemonth'],
      label: '日期(月)',
      subType: 'datemonth',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.daterange'],
      label: '日期(区间)',
      subType: 'daterange',
      url: ''
    },
    {
      type: 'search',
      label: CommonDict['model.form.dategroup'],
      label: '日期(组合)',
      subType: 'group',
      url: ''
    }
@@ -263,55 +254,55 @@
  actionItems = [
    {
      type: 'action',
      label: CommonDict['model.form.popform'],
      label: '弹窗(表单)',
      subType: 'pop',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.prompt'],
      label: '提示框',
      subType: 'prompt',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.exec'],
      label: '直接执行',
      subType: 'exec',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.excelIn'],
      label: '导入Excel',
      subType: 'excelIn',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.excelOut'],
      label: '导出Excel',
      subType: 'excelOut',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.popview'],
      label: '弹窗(标签)',
      subType: 'popview',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.tab'],
      label: '标签页',
      subType: 'tab',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.newpage'],
      label: '新页面',
      subType: 'innerpage',
      url: ''
    },
    {
      type: 'action',
      label: CommonDict['model.form.funcbutton'],
      label: '功能按钮',
      subType: 'funcbutton',
      url: ''
    }
@@ -320,38 +311,44 @@
  columnItems = [
    {
      type: 'columns',
      label: CommonDict['model.form.text'],
      label: '文本',
      subType: 'text',
      url: ''
    },
    {
      type: 'columns',
      label: CommonDict['model.form.number'],
      label: '数字',
      subType: 'number',
      url: ''
    },
    {
      type: 'columns',
      label: CommonDict['model.form.picture'],
      label: '图片',
      subType: 'picture',
      url: ''
    },
    {
      type: 'columns',
      label: CommonDict['model.form.textarea'],
      subType: 'textarea',
      url: ''
    },
    {
      type: 'columns',
      label: CommonDict['model.form.href'],
      label: '链接',
      subType: 'link',
      url: ''
    },
    {
      type: 'columns',
      label: CommonDict['model.form.colspan'],
      label: '多行文本',
      subType: 'textarea',
      url: ''
    },
    {
      type: 'columns',
      label: '合并列',
      subType: 'colspan',
      url: ''
    },
    {
      type: 'columns',
      label: '序号',
      subType: 'index',
      url: ''
    }
  ]
@@ -359,7 +356,7 @@
  tabItems = [
    {
      type: 'tabs',
      label: CommonDict['model.menu.tab.subtable'],
      label: '子表',
      subType: 'SubTable',
    }
  ]