From 48a18736c461ad730bd264b0ac7b40b68a0e33a1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 28 六月 2020 20:30:20 +0800 Subject: [PATCH] 2020-06-28 --- src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx | 48 +++++++++++++++++++++++++++++++++--------------- 1 files changed, 33 insertions(+), 15 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx index 6ff9b95..d963be1 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx @@ -27,40 +27,47 @@ systemScripts: [], excelColumns: [ { - title: 'Column', + title: this.props.dict['model.form.field'], dataIndex: 'Column', width: '16%', editable: true }, { - title: 'Text', + title: this.props.dict['model.name'], dataIndex: 'Text', - width: '19%', + width: '15%', editable: true }, { - title: '绫诲瀷', + title: this.props.dict['model.form.type'], dataIndex: 'type', width: '12%', editable: true }, { - title: '鏄惁蹇呭~', + title: this.props.dict['model.required'], dataIndex: 'required', - width: '12%', + width: '10%', editable: true, - render: (text, record) => record.required === 'true' ? '鏄�' : '鍚�' + render: (text, record) => record.required === 'true' ? this.props.dict['model.true'] : this.props.dict['model.false'] + }, + { + title: this.props.dict['model.import'], + dataIndex: 'import', + width: '10%', + editable: true, + render: (text, record) => record.import !== 'false' ? this.props.dict['model.true'] : this.props.dict['model.false'] }, { title: '鏈�灏忓��', dataIndex: 'min', - width: '12%', + width: '10%', editable: true }, { title: '鏈�澶у��', dataIndex: 'max', - width: '12%', + width: '10%', editable: true }, { @@ -76,7 +83,7 @@ <Popconfirm title={this.props.dict['header.form.query.delete']} okText={this.props.dict['model.confirm']} - cancelText={this.props.dict['header.cancel']} + cancelText={this.props.dict['model.cancel']} onConfirm={() => this.handleDelete(record, 'columns') }> <span className="operation-btn" style={{color: '#ff4d4f'}}><Icon type="delete" /></span> @@ -134,7 +141,7 @@ <Popconfirm title={this.props.dict['header.form.query.delete']} okText={this.props.dict['model.confirm']} - cancelText={this.props.dict['header.cancel']} + cancelText={this.props.dict['model.cancel']} onConfirm={() => this.handleDelete(record, 'unique') }> <span className="operation-btn" style={{color: '#ff4d4f'}}><Icon type="delete" /></span> @@ -155,7 +162,17 @@ title: '鎵ц浣嶇疆', dataIndex: 'position', width: '10%', - render: (text, record) => record.position !== 'front' ? 'sql鍚�' : 'sql鍓�' + render: (text, record) => { + let _text = '' + if (record.position === 'front') { + _text = 'sql鍓�' + } else if (record.position === 'init') { + _text = '鍒濆鍖�' + } else { + _text = 'sql鍚�' + } + return _text + } }, { title: '鐘舵��', @@ -189,7 +206,7 @@ <Popconfirm title={this.props.dict['header.form.query.delete']} okText={this.props.dict['model.confirm']} - cancelText={this.props.dict['header.cancel']} + cancelText={this.props.dict['model.cancel']} onConfirm={() => this.handleDelete(record, 'scripts') }> <span className="operation-btn" style={{color: '#ff4d4f'}}><Icon type="delete" /></span> @@ -295,6 +312,7 @@ Text: col.label, type: _type, limit: _limit, + import: 'true', required: 'true' } @@ -560,7 +578,7 @@ confirm({ content: `瀛樺湪鏈繚瀛橀」锛岀‘瀹氭彁浜ゅ悧锛焋, okText: this.props.dict['model.confirm'], - cancelText: this.props.dict['header.cancel'], + cancelText: this.props.dict['model.cancel'], onOk() { resolve(_verify) }, @@ -695,7 +713,7 @@ <Table bordered rowKey="uuid" - className="custom-table" + className="custom-table excel-custom-table" dataSource={verify.columns} columns={excelColumns} pagination={false} -- Gitblit v1.8.0