king
2024-11-07 a02fc6a77fa1b35c6516b2d37108d80e260c6c85
src/utils/option.js
@@ -1,7 +1,4 @@
import nortable from '@/assets/img/normaltable.jpg'
// import mainsubtable from '@/assets/img/mainsubtable.jpg'
import treepage from '@/assets/img/treepage.jpg'
import calendar from '@/assets/img/calendar.jpg'
import customImg from '@/assets/img/custom.jpg'
import newpage from '@/assets/img/newpage.jpg'
import rolemanage from '@/assets/img/rolemanage.jpg'
@@ -47,44 +44,15 @@
export const sysTemps = [
  {
    title: '基础表格',
    type: 'CommonTable',
    type: 'BaseTable',
    url: nortable,
    baseconfig: '',
    isSystem: true
  },
  // {
  //   title: '基础表格(新)',
  //   type: 'BaseTable',
  //   url: nortable,
  //   baseconfig: '',
  //   isSystem: true
  // },
  // {
  //   title: '主子表表格',
  //   type: 'CommonTable',
  //   url: mainsubtable,
  //   baseconfig: '',
  //   isSystem: true,
  //   isSubtable: true
  // },
  {
    title: '自定义',
    type: 'CustomPage',
    url: customImg,
    baseconfig: '',
    isSystem: true
  },
  {
    title: '树形页面',
    type: 'TreePage',
    url: treepage,
    baseconfig: '',
    isSystem: true
  },
  {
    title: '日历',
    type: 'CalendarPage',
    url: calendar,
    baseconfig: '',
    isSystem: true
  },
@@ -154,13 +122,17 @@
    {value: '[3, 0]', text: '近三天'},
    {value: '[7, 0]', text: '近七天'},
    {value: '[30, 0]', text: '近30天'},
    {value: '[90, 0]', text: '近90天'},
    {value: '[7, -7]', text: '前后七天'},
    {value: '[30, -30]', text: '前后30天'},
    {value: '[90, -90]', text: '前后90天'},
    {value: '[180, -180]', label: '前后180天'},
    {value: '[365, -365]', label: '前后365天'},
    {value: '[-1, -1]', text: '明天'},
    {value: '[-2, -2]', text: '后天'},
    {value: 'week', text: '本周'},
    {value: 'month', text: '本月'},
    {value: 'lastMonth', text: '上月'},
  ],
  datetime: [
    {value: '', text: '空'},
@@ -188,7 +160,7 @@
// 匹配规则
export const matchReg = {
  text: [{
  class1: [{
    value: 'like',
    text: 'like'
  }, {
@@ -210,20 +182,7 @@
    value: '<=',
    text: '<='
  }],
  multiselect: [{
    value: 'like',
    text: 'like'
  }, {
    value: 'not like',
    text: 'not like'
  }],
  select: [{
    value: 'like',
    text: 'like'
  }, {
    value: 'not like',
    text: 'not like'
  }, {
  class2: [{
    value: '=',
    text: '='
  }, {
@@ -239,7 +198,14 @@
    value: '<=',
    text: '<='
  }],
  date: [{
  class3: [{
    value: 'like',
    text: 'like'
  }, {
    value: 'not like',
    text: 'not like'
  }],
  class4: [{
    value: '>=',
    text: '>='
  }, {
@@ -249,13 +215,16 @@
    value: '=',
    text: '='
  }],
  datemonth: [{
  class5: [{
    value: 'between',
    text: 'between'
  }],
  daterange: [{
  class6: [{
    value: 'between',
    text: 'between'
  }, {
    value: '=',
    text: '='
  }]
}
@@ -389,36 +358,6 @@
}, {
  value: 'border-purple',
  text: '白底紫框'
}]
// 按钮颜色集
export const btnCustomClasses = [{
  value: 'primary',
  text: '蓝色'
}, {
  value: 'yellow',
  text: '黄色'
}, {
  value: 'orange',
  text: '橙色'
}, {
  value: 'danger',
  text: '红色'
}, {
  value: 'green',
  text: '绿色'
}, {
  value: 'dgreen',
  text: '深绿色'
}, {
  value: 'purple',
  text: '紫色'
}, {
  value: 'cyan',
  text: '青色'
}, {
  value: 'gray',
  text: '灰色'
}]
export const calendarColors = [
@@ -949,3 +888,12 @@
}
export const queryTableSql = 'select top 999999 TbName,Remark from (select TbName,Remark from sDataDictb where appkey= @appkey@ and Deleted=0 union select a.TbName,Remark from (select TbName,Remark from sDataDictb where appkey= \'\' and Deleted=0 ) a left join (select TbName from sDataDictb where appkey= @appkey@ and Deleted=0 ) b on a.TbName=b.TbName where b.TbName is null ) t order by TbName'
export const queryPrintSql = `select ID,Images,PrintTempNO+PrintTempName as PN from sPrintTemplate
  where appkey= @appkey@ and Deleted=0 and typechartwo='web_print'
  union select ID,Images,a.PrintTempNO+PrintTempName as PN
  from (select * from sPrintTemplate where appkey= '' and Deleted=0 and typechartwo='web_print') a
  left join (select PrintTempNO from sPrintTemplate where appkey= @appkey@ and Deleted=0 ) b
  on a.PrintTempNO=b.PrintTempNO
  left join (select Srcid from sPrintTemplate_Log where appkey='' and apicode= @appkey@ and Deleted=0 ) c
  on a.ID=c.Srcid where b.PrintTempNO is null and c.Srcid is null`