From 665b7b5866f726030ec0335834c2ba80060c86e8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 26 八月 2022 11:08:40 +0800
Subject: [PATCH] 2022-08-26

---
 src/templates/sharecomponent/tablecomponent/index.jsx |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/src/templates/sharecomponent/tablecomponent/index.jsx b/src/templates/sharecomponent/tablecomponent/index.jsx
index abb58fe..5a084df 100644
--- a/src/templates/sharecomponent/tablecomponent/index.jsx
+++ b/src/templates/sharecomponent/tablecomponent/index.jsx
@@ -8,8 +8,6 @@
 import Api from '@/api'
 import options from '@/store/options.js'
 import Utils from '@/utils/utils.js'
-import zhCN from '@/locales/zh-CN/model.js'
-import enUS from '@/locales/en-US/model.js'
 import { queryTableSql } from '@/utils/option.js'
 
 import './index.scss'
@@ -24,7 +22,6 @@
   }
 
   state = {
-    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
     tables: [],          // 绯荤粺琛�
     tableFields: [],     // 宸查�夎〃瀛楁闆�
     selectedTables: [],  // 宸查�夎〃
@@ -268,16 +265,16 @@
 
   render() {
     const { containerId } = this.props
-    const { dict, tables, selectedTables } = this.state
+    const { tables, selectedTables } = this.state
 
     return (
-      <div className="model-table-tablemanage-view">
+      <div className="model-tablename-manage-view">
         {/* 琛ㄥ悕娣诲姞 */}
         <div className="ant-col ant-form-item-label">
           <label>
-            <Tooltip placement="topLeft" title={dict['model.tooltip.table.guide']}>
+            <Tooltip placement="topLeft" title="姝ゅ鍙互娣诲姞椤甸潰閰嶇疆鐩稿叧鐨勫父鐢ㄨ〃锛屽彲閫氳繃宸ュ叿鏍忎腑鐨勬坊鍔犳寜閽紝鍙壒閲忔坊鍔犺〃鏍肩浉鍏冲瓧娈点��">
               <QuestionCircleOutlined className="mk-form-tip" />
-              {dict['header.menu.table.add']}
+              琛ㄥ悕
             </Tooltip>
           </label>
         </div>
@@ -286,17 +283,18 @@
           className="tables"
           style={{ width: '100%' }}
           optionFilterProp="children"
-          value={dict['header.menu.table.placeholder']}
-          onChange={this.onTableChange}
+          value="璇烽�夋嫨琛ㄥ悕"
+          onSelect={this.onTableChange}
+          dropdownClassName="mk-tables"
           showArrow={false}
           getPopupContainer={() => containerId ? document.getElementById(containerId) : document.body}
           filterOption={(input, option) => {
-            return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
-              option.props.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
+            return option.props.children[0].toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
+              option.props.children[2].toLowerCase().indexOf(input.toLowerCase()) >= 0
           }}
         > 
           {tables.map((table, index) => (
-            <Option key={index} title={table.TbName} value={table.TbName}>{table.Remark}</Option>
+            <Option key={index} title={table.TbName} value={table.TbName}>{table.Remark}<br/>{table.TbName}</Option>
           ))}
         </Select>
         {selectedTables.length > 0 && <List
@@ -306,7 +304,6 @@
           renderItem={(item, index) => <List.Item key={index} title={item.Remark + ' (' + item.TbName + ')'}>
             {item.Remark + ' (' + item.TbName + ')'}
             <CloseOutlined onClick={() => this.deleteTable(item)}/>
-            <div className="bottom-mask"></div>
           </List.Item>}
         />}
       </div>

--
Gitblit v1.8.0