From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/templates/sharecomponent/fieldscomponent/index.jsx | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/templates/sharecomponent/fieldscomponent/index.jsx b/src/templates/sharecomponent/fieldscomponent/index.jsx index 26c4cf0..41a9a0a 100644 --- a/src/templates/sharecomponent/fieldscomponent/index.jsx +++ b/src/templates/sharecomponent/fieldscomponent/index.jsx @@ -4,8 +4,6 @@ import { Button, Modal, Empty, notification } from 'antd' import Utils from '@/utils/utils.js' -import zhCN from '@/locales/zh-CN/model.js' -import enUS from '@/locales/en-US/model.js' import EditCard from './editcard' import MKEmitter from '@/utils/events.js' @@ -19,7 +17,6 @@ } state = { - dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, appType: sessionStorage.getItem('appType'), fields: [], // 瀛楁闆� visible: false, // 妯℃�佹鎺у埗 @@ -111,9 +108,6 @@ let initval = '' if (item.type === 'select') { _match = '=' - } else if (item.type === 'daterange') { - initval = '[30, 0]' - _match = 'between' } else { item.type = 'text' _match = 'like' @@ -143,7 +137,7 @@ label: item.label, field: item.field, Hide: 'false', - IsSort: item.type === 'picture' ? 'false' : 'true', + IsSort: 'true', type: item.type, Width: item.type === 'number' ? 80 : 120 } @@ -262,19 +256,19 @@ render() { const { type } = this.props - const { dict, fields } = this.state + const { fields } = this.state return ( <div className="quickly-add"> - <Button type="primary" block onClick={this.queryField}>{dict['model.batchAdd']}</Button> + <Button type="primary" block onClick={this.queryField}>鎵归噺娣诲姞</Button> {/* 鏍规嵁瀛楁鍚嶆坊鍔犳樉绀哄垪鍙婃悳绱㈡潯浠� */} <Modal wrapClassName="model-table-fieldmanage-modal" - title={dict['model.edit']} + title="缂栬緫" visible={this.state.visible} width={'65vw'} maskClosable={false} - cancelText={dict['model.close']} + cancelText="鍏抽棴" onOk={this.addFieldSubmit} onCancel={() => this.setState({ visible: false })} destroyOnClose -- Gitblit v1.8.0