From 12e6f9526818cfb62434b37aa0a3169cfc0d3cae Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 24 二月 2021 16:46:06 +0800 Subject: [PATCH] 2021-02-24 --- src/views/appmanage/index.jsx | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 40 insertions(+), 3 deletions(-) diff --git a/src/views/appmanage/index.jsx b/src/views/appmanage/index.jsx index e714bdd..253a171 100644 --- a/src/views/appmanage/index.jsx +++ b/src/views/appmanage/index.jsx @@ -13,7 +13,7 @@ const { confirm } = Modal -const _locale = localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS +const _locale = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS const Header = asyncComponent(() => import('@/mob/header')) const MutilForm = asyncComponent(() => import('./mutilform')) const SubMutilForm = asyncComponent(() => import('./submutilform')) @@ -51,6 +51,43 @@ { title: '鐭繛鎺�', dataIndex: 'link_type', key: 'link_type', align: 'center', render: (text, record) => text === 'false' ? '涓嶅惎鐢�' : '鍚敤' + }, + { + title: '鐨偆', dataIndex: 'css', key: 'css', align: 'center', + render: (text, record) => { + const style = { + bg_black_style_blue: '钃濋粦鑹茬郴', + bg_white_style_blue: '钃濈櫧鑹茬郴', + bg_black_style_red: '绾㈤粦鑹茬郴', + bg_white_style_red: '绾㈢櫧鑹茬郴', + bg_black_style_orange_red: '姗欑孩榛戣壊绯�', + bg_white_style_orange_red: '姗欑孩鐧借壊绯�', + bg_black_style_orange: '姗欓粦鑹茬郴', + bg_white_style_orange: '姗欑櫧鑹茬郴', + bg_black_style_orange_yellow: '姗欓粍榛戣壊绯�', + bg_white_style_orange_yellow: '姗欓粍鐧借壊绯�', + bg_black_style_yellow: '榛勯粦鑹茬郴', + bg_white_style_yellow: '榛勭櫧鑹茬郴', + bg_black_style_yellow_green: '榛勭豢榛戣壊绯�', + bg_white_style_yellow_green: '榛勭豢鐧借壊绯�', + bg_black_style_green: '缁块粦鑹茬郴', + bg_white_style_green: '缁跨櫧鑹茬郴', + bg_black_style_cyan: '闈掗粦鑹茬郴', + bg_white_style_cyan: '闈掔櫧鑹茬郴', + bg_black_style_blue_purple: '钃濈传榛戣壊绯�', + bg_white_style_blue_purple: '钃濈传鐧借壊绯�', + bg_black_style_purple: '绱粦鑹茬郴', + bg_white_style_purple: '绱櫧鑹茬郴', + bg_black_style_magenta: '娲嬬孩榛戣壊绯�', + bg_white_style_magenta: '娲嬬孩鐧借壊绯�', + bg_black_style_grass_green: '鑽夌豢榛戣壊绯�', + bg_white_style_grass_green: '鑽夌豢鐧借壊绯�', + bg_black_style_deep_red: '娣辩孩榛戣壊绯�', + bg_white_style_deep_red: '娣辩孩鐧借壊绯�' + } + + return style[text] || '钃濋粦鑹茬郴' + } }, { title: 'Action', @@ -339,7 +376,7 @@ param.secretkey = Utils.encrypt('', param.timestamp) if (visible === 'edit') { - param.LText = selectApp.sublist.map(item => `select '${item.ID}','${item.typename}','${selectApp.ID}','${sessionStorage.getItem('CloudUserID') || ''}','${window.GLOB.appkey || ''}','${item.login_types || 'true'}','${item.link_type || 'true'}','${item.role_type || 'true'}','${item.lang || 'zh-CN'}'`) + param.LText = selectApp.sublist.map(item => `select '${item.ID}','${item.typename}','${selectApp.ID}','${sessionStorage.getItem('CloudUserID') || ''}','${window.GLOB.appkey || ''}','${item.login_types || 'true'}','${item.link_type || 'true'}','${item.role_type || 'true'}','${item.lang || 'zh-CN'}','${item.css}'`) param.LText = param.LText.join(' union all ') param.LText = Utils.formatOptions(param.LText) } @@ -425,7 +462,7 @@ }) } - param.LText = sublist.map(item => `select '${item.ID}','${item.typename}','${selectApp.ID}','${sessionStorage.getItem('CloudUserID') || ''}','${window.GLOB.appkey || ''}','${item.login_types || 'true'}','${item.link_type || 'true'}','${item.role_type || 'true'}','${item.lang || 'zh-CN'}'`) + param.LText = sublist.map(item => `select '${item.ID}','${item.typename}','${selectApp.ID}','${sessionStorage.getItem('CloudUserID') || ''}','${window.GLOB.appkey || ''}','${item.login_types || 'true'}','${item.link_type || 'true'}','${item.role_type || 'true'}','${item.lang || 'zh-CN'}','${item.css}'`) param.LText = param.LText.join(' union all ') param.LText = Utils.formatOptions(param.LText) -- Gitblit v1.8.0