king
2023-01-17 cc1a76df575c18f0d0ee96e8658461efdce3a918
src/templates/calendarconfig/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 = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
class CalendarBaseData {
  baseConfig = {
@@ -44,11 +40,9 @@
        initval: '',
        type: 'text',
        resourceType: '0',
        setAll: 'false',
        options: [],
        orderType: 'asc',
        match: 'like',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -57,11 +51,9 @@
        initval: '',
        type: 'select',
        resourceType: '0',
        setAll: 'false',
        options: [],
        orderType: 'asc',
        match: 'equal',
        display: 'dropdown'
        match: '=',
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -70,11 +62,9 @@
        initval: '',
        type: 'date',
        resourceType: '0',
        setAll: 'false',
        options: [],
        orderType: 'asc',
        match: 'greater',
        display: 'dropdown'
      }
    ]
  }
@@ -82,55 +72,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: ''
    }