From e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 17 十月 2022 17:57:34 +0800
Subject: [PATCH] 2022-10-17

---
 src/utils/option.js |  264 +++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 198 insertions(+), 66 deletions(-)

diff --git a/src/utils/option.js b/src/utils/option.js
index dad2c8d..fac69e0 100644
--- a/src/utils/option.js
+++ b/src/utils/option.js
@@ -1,13 +1,10 @@
-import zhCN from '@/locales/zh-CN/model.js'
-import enUS from '@/locales/en-US/model.js'
 import nortable from '@/assets/img/normaltable.jpg'
-import mainsubtable from '@/assets/img/mainsubtable.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'
-
-const _dict =  sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
 
 // 琛ㄥ崟鏍¢獙瑙勫垯
 export const formRule = {
@@ -17,8 +14,6 @@
     formMessage: '鏈�澶欯max涓瓧绗︺��', // 鏂囨湰琛ㄥ崟鏈�澶ф彁绀�
     numbermsg: '璇疯緭鍏ユ暟瀛楋紒',
     lettermsg: '璇疯緭鍏ュ瓧姣嶏紒',
-    letternummsg: '璇疯緭鍏ユ暟瀛楁垨瀛楁瘝锛�',
-    quotemsg: '涓嶅彲浣跨敤鑻辨枃鐘舵�佺殑鍗曞紩鍙凤紒',
     funcname: '璇疯緭鍏ユ暟瀛椼�佸瓧姣嶃�佹眽瀛椾互鍙奯'
   },
   field: { // 瀛楁鍚�
@@ -57,13 +52,27 @@
     baseconfig: '',
     isSystem: true
   },
+  // {
+  //   title: '鍩虹琛ㄦ牸锛堟柊锛�',
+  //   type: 'BaseTable',
+  //   url: nortable,
+  //   baseconfig: '',
+  //   isSystem: true
+  // },
+  // {
+  //   title: '涓诲瓙琛ㄨ〃鏍�',
+  //   type: 'CommonTable',
+  //   url: mainsubtable,
+  //   baseconfig: '',
+  //   isSystem: true,
+  //   isSubtable: true
+  // },
   {
-    title: '涓诲瓙琛ㄨ〃鏍�',
-    type: 'CommonTable',
-    url: mainsubtable,
+    title: '鑷畾涔�',
+    type: 'CustomPage',
+    url: customImg,
     baseconfig: '',
-    isSystem: true,
-    isSubtable: true
+    isSystem: true
   },
   {
     title: '鏍戝舰椤甸潰',
@@ -80,9 +89,9 @@
     isSystem: true
   },
   {
-    title: '鑷畾涔�',
-    type: 'CustomPage',
-    url: customImg,
+    title: '澶栭儴椤甸潰',
+    type: 'NewPage',
+    url: newpage,
     baseconfig: '',
     isSystem: true
   },
@@ -90,36 +99,40 @@
     title: '瑙掕壊鏉冮檺鍒嗛厤',
     type: 'RolePermission',
     url: rolemanage,
-    isSystem: true,
-    hidden: true
-  },
-  {
-    title: '澶栭儴椤甸潰',
-    type: 'NewPage',
-    url: customImg,
-    baseconfig: '',
     isSystem: true
   }
 ]
 
 // 鍥捐〃鑹茬郴
-export const chartColors = ['rgb(91, 143, 249)', 'rgb(90, 216, 166)', 'rgb(93, 112, 146)', 'rgb(246, 189, 22)', 'rgb(232, 100, 82)', 'rgb(109, 200, 236)', 'rgb(148, 95, 185)', 'rgb(246, 189, 22)', 'rgb(205, 221, 253)', 'rgb(248, 208, 203)']
+export const chartColors = ['rgb(91, 143, 249)', 'rgb(90, 216, 166)', 'rgb(93, 112, 146)', 'rgb(246, 189, 22)', 'rgb(232, 100, 82)', 'rgb(109, 200, 236)', 'rgb(148, 95, 185)', 'rgb(205, 221, 253)', 'rgb(248, 208, 203)', 'rgb(145, 213, 255)', 'rgb(211, 173, 247)']
 
 // 鏃ユ湡榛樿鍊奸�夋嫨鑼冨洿
 export const dateOptions = {
   date: [
-    {value: '', text: _dict['model.empty']},
+    {value: '', text: '绌�'},
     {value: '0', text: '浠婂ぉ'},
     {value: 1, text: '鏄ㄥぉ'},
     {value: 2, text: '鍓嶅ぉ'},
     {value: 3, text: '鍓嶄笁澶�'},
     {value: 7, text: '鍓嶄竷澶�'},
     {value: 30, text: '鍓�30澶�'},
+    {value: 90, text: '鍓�90澶�'},
+    {value: 7300, text: '鍓�20骞�'},
     {value: -1, text: '鏄庡ぉ'},
-    {value: -2, text: '鍚庡ぉ'}
+    {value: -2, text: '鍚庡ぉ'},
+    {value: -3, text: '鍚庝笁澶�'},
+    {value: -7, text: '鍚庝竷澶�'},
+    {value: -30, text: '鍚�30澶�'},
+    {value: -90, text: '鍚�90澶�'},
+    {value: -180, text: '鍚庡崐骞�'},
+    {value: -365, text: '鍚�1骞�'},
+    {value: -1095, text: '鍚�3骞�'},
+    {value: -1825, text: '鍚�5骞�'},
+    {value: -3650, text: '鍚�10骞�'},
+    {value: -7300, text: '鍚�20骞�'},
   ],
   dateweek: [
-    {value: '', text: _dict['model.empty']},
+    {value: '', text: '绌�'},
     {value: '0', text: '鏈懆'},
     {value: 1, text: '涓婂懆'},
     {value: 3, text: '鍓嶄笁鍛�'},
@@ -127,7 +140,7 @@
     {value: -1, text: '涓嬪懆'}
   ],
   datemonth: [
-    {value: '', text: _dict['model.empty']},
+    {value: '', text: '绌�'},
     {value: '0', text: '鏈湀'},
     {value: 1, text: '涓婃湀'},
     {value: 3, text: '鍓嶄笁鏈�'},
@@ -135,7 +148,7 @@
     {value: -1, text: '涓嬫湀'}
   ],
   daterange: [
-    {value: '', text: _dict['model.empty']},
+    {value: '', text: '绌�'},
     {value: '[0, 0]', text: '浠婂ぉ'},
     {value: '[1, 1]', text: '鏄ㄥぉ'},
     {value: '[3, 0]', text: '杩戜笁澶�'},
@@ -145,17 +158,31 @@
     {value: '[30, -30]', text: '鍓嶅悗30澶�'},
     {value: '[90, -90]', text: '鍓嶅悗90澶�'},
     {value: '[-1, -1]', text: '鏄庡ぉ'},
-    {value: '[-2, -2]', text: '鍚庡ぉ'}
+    {value: '[-2, -2]', text: '鍚庡ぉ'},
+    {value: 'week', text: '鏈懆'},
+    {value: 'month', text: '鏈湀'},
   ],
   datetime: [
-    {value: '', text: _dict['model.empty']},
-    {value: '0', text: '浠婂ぉ'},
+    {value: '', text: '绌�'},
+    {value: '0', text: '褰撳墠'},
     {value: 1, text: '鏄ㄥぉ'},
     {value: 3, text: '鍓嶄笁澶�'},
     {value: 7, text: '鍓嶄竷澶�'},
     {value: 30, text: '鍓�30澶�'},
+    {value: 90, text: '鍓�90澶�'},
+    {value: 7300, text: '鍓�20骞�'},
     {value: -1, text: '鏄庡ぉ'},
-    {value: -2, text: '鍚庡ぉ'}
+    {value: -2, text: '鍚庡ぉ'},
+    {value: -3, text: '鍚庝笁澶�'},
+    {value: -7, text: '鍚庝竷澶�'},
+    {value: -30, text: '鍚�30澶�'},
+    {value: -90, text: '鍚�90澶�'},
+    {value: -180, text: '鍚庡崐骞�'},
+    {value: -365, text: '鍚�1骞�'},
+    {value: -1095, text: '鍚�3骞�'},
+    {value: -1825, text: '鍚�5骞�'},
+    {value: -3650, text: '鍚�10骞�'},
+    {value: -7300, text: '鍚�20骞�'},
   ]
 }
 
@@ -170,6 +197,18 @@
   }, {
     value: '=',
     text: '='
+  }, {
+    value: '>',
+    text: '>'
+  }, {
+    value: '<',
+    text: '<'
+  }, {
+    value: '>=',
+    text: '>='
+  }, {
+    value: '<=',
+    text: '<='
   }],
   multiselect: [{
     value: 'like',
@@ -179,14 +218,26 @@
     text: 'not like'
   }],
   select: [{
-    value: '=',
-    text: '='
-  }, {
     value: 'like',
     text: 'like'
   }, {
     value: 'not like',
     text: 'not like'
+  }, {
+    value: '=',
+    text: '='
+  }, {
+    value: '>',
+    text: '>'
+  }, {
+    value: '<',
+    text: '<'
+  }, {
+    value: '>=',
+    text: '>='
+  }, {
+    value: '<=',
+    text: '<='
   }],
   date: [{
     value: '>=',
@@ -673,48 +724,37 @@
     'up',
     'left',
     'right',
-    'caret-up',
-    'caret-down',
-    'caret-left',
-    'caret-right',
+    'download',
+    'upload',
     'step-backward',
     'step-forward',
-    'fast-backward',
-    'fast-forward',
     'double-right',
     'double-left',
-    'forward',
-    'backward',
     'rollback',
     'enter',
     'retweet',
     'swap',
-    'swap-left',
-    'swap-right',
     'play-circle',
     'login',
     'logout',
     'search',
     'fullscreen',
     'fullscreen-exit',
-    'download',
-    'upload'
   ],
   hint: [
-    'question',
-    'question-circle',
     'plus',
     'plus-circle',
     'pause-circle',
     'minus',
     'minus-circle',
+    'question',
+    'question-circle',
     'info-circle',
     'exclamation-circle',
     'close',
     'close-circle',
     'check',
     'check-circle',
-    'check-square',
     'clock-circle',
     'warning',
     'stop'
@@ -746,20 +786,6 @@
     'rise',
     'stock',
   ],
-  trademark: [
-    'android',
-    'apple',
-    'chrome',
-    'aliwangwang',
-    'dingding',
-    'weibo',
-    'twitter',
-    'wechat',
-    'alipay-circle',
-    'taobao',
-    'qq',
-    'alipay',
-  ],
   normal: [
     'user',
     'account-book',
@@ -769,6 +795,7 @@
     'audio',
     'bank',
     'bell',
+    'scan',
     'bug',
     'calendar',
     'camera',
@@ -777,6 +804,8 @@
     'credit-card',
     'customer-service',
     'dashboard',
+    'ellipsis',
+    'more',
     'database',
     'dislike',
     'environment',
@@ -801,6 +830,8 @@
     'phone',
     'picture',
     'red-envelope',
+    'setting',
+    'tool',
     'smile',
     'star',
     'thunderbolt',
@@ -813,7 +844,108 @@
     'poweroff',
     'shopping-cart',
     'link',
+    'aim',
+    'apartment',
+    'appstore-add',
+    'audio-mute',
+    'audit',
+    'bars',
+    'block',
+    'book',
+    'bulb',
+    'border',
+    'number',
+    'branches',
+    'build',
+    'calculator',
+    'car',
+    'carry-out',
+    'ci',
+    'clear',
+    'cloud-download',
+    'cloud-server',
+    'cloud-sync',
+    'cloud-upload',
+    'cluster',
+    'code',
+    'coffee',
+    'comment',
+    'compress',
+    'control',
+    'copyright',
+    'crown',
+    'delete-column',
+    'delete-row',
+    'delivered-procedure',
+    'deployment-unit',
+    'desktop',
+    'disconnect',
+    'dollar',
+    'euro',
+    'expand',
+    'export',
+    'file-add',
+    'file-done',
+    'file-image',
+    'file-pdf',
+    'file-ppt',
+    'file-text',
+    'file-unknown',
+    'file-word',
+    'file-zip',
+    'fork',
+    'frown',
+    'funnel-plot',
+    'gateway',
+    'gif',
+    'gift',
+    'global',
+    'gold',
+    'import',
+    'laptop',
+    'loading',
+    'medicine-box',
+    'meh',
+    'menu',
+    'paper-clip',
+    'partition',
+    'pay-circle',
+    'printer',
+    'pushpin',
+    'qrcode',
+    'reload',
+    'rest',
+    'robot',
+    'rotate-left',
+    'rotate-right',
+    'safety-certificate',
+    'save',
+    'send',
+    'shake',
+    'share-alt',
+    'shop',
+    'shopping',
+    'sound',
+    'sync',
+    'tag',
+    'tags',
+    'trademark',
+    'trophy',
+    'usb',
+    'user-add',
+    'user-delete',
+    'user-switch',
+    'video-camera',
+    'wifi',
+    'table',
+    'apple',
+    'dingding',
+    'weibo',
+    'wechat',
+    'taobao',
+    'qq',
+    'alipay',
   ]
 }
 
-export const queryTableSql = 'select 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'
+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'

--
Gitblit v1.8.0