From b8e1395f02c929eaa96b949cf6027ee2a43856a6 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 06 九月 2022 19:03:37 +0800 Subject: [PATCH] 2022-09-06 --- src/templates/sharecomponent/columncomponent/index.jsx | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/index.jsx b/src/templates/sharecomponent/columncomponent/index.jsx index d9ced0d..52a345f 100644 --- a/src/templates/sharecomponent/columncomponent/index.jsx +++ b/src/templates/sharecomponent/columncomponent/index.jsx @@ -1,8 +1,8 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' -import { Tooltip, Modal, notification, Switch, message } from 'antd' -import { QuestionCircleOutlined, CopyOutlined } from '@ant-design/icons' +import { Modal, notification, Switch, message } from 'antd' +import { CopyOutlined } from '@ant-design/icons' import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' @@ -377,6 +377,11 @@ columns: columnlist } + let srcid = localStorage.getItem(window.location.href.split('#')[0] + 'srcId') + if (srcid) { + val.$srcId = srcid + } + oInput.value = window.btoa(window.encodeURIComponent(JSON.stringify(val))) document.body.appendChild(oInput) oInput.select() @@ -501,12 +506,7 @@ return ( <div className="model-table-column-list"> - <Tooltip placement="bottomLeft" overlayClassName="middle" title="鍦ㄥ乏渚у伐鍏锋爮銆婃樉绀哄垪銆嬩腑锛岄�夋嫨瀵瑰簲绫诲瀷鐨勬樉绀哄垪鎷栬嚦姝ゅ娣诲姞锛涙垨鐐瑰嚮銆婃坊鍔犳樉绀哄垪銆嬫寜閽壒閲忔坊鍔狅紝閫夋嫨鎵归噺娣诲姞鏃讹紝闇�鎻愬墠閫夋嫨浣跨敤琛ㄣ�傛敞锛氭坊鍔犲悎骞跺垪鏃讹紝闇�璁剧疆鍙�夊垪銆�"> - <QuestionCircleOutlined style={{color: '#c49f47', position: 'relative', left: '-15px', top: '5px'}} /> - </Tooltip> - {columnlist && columnlist.length > 0 ? - <CopyOutlined className="column-copy" title="copy" onClick={this.copycolumn} /> : null - } + {columnlist && columnlist.length > 0 ? <CopyOutlined className="column-copy" title="copy" onClick={this.copycolumn} /> : null} <Switch checkedChildren={dict['model.switch.open']} unCheckedChildren={dict['model.switch.close']} defaultChecked={this.state.showField} onChange={this.onFieldChange} /> <DragElement list={columnlist} @@ -518,13 +518,12 @@ markMenu={this.markElement} handleGridBtn={this.handleGridBtn} showfield={this.state.showField} - placeholder={this.state.dict['header.form.column.placeholder']} /> {/* 鏄剧ず鍒楃紪杈� */} <Modal title="鏄剧ず鍒�-缂栬緫" visible={modaltype === 'columns'} - width={800} + width={850} maskClosable={false} onOk={this.handleSubmit} onCancel={this.editModalCancel} @@ -543,7 +542,7 @@ <Modal title={dict['model.form.colspan'] + '-' + dict['model.edit']} visible={modaltype === 'colspan'} - width={800} + width={850} maskClosable={false} onOk={this.handleSubmit} onCancel={this.editModalCancel} @@ -561,7 +560,7 @@ <Modal title="鎿嶄綔鍒�-缂栬緫" visible={modaltype === 'gridbtn'} - width={800} + width={850} maskClosable={false} onOk={this.handleSubmit} onCancel={this.editModalCancel} -- Gitblit v1.8.0