From 57da72c823fab94a3ec6fadab2bc75173c8a03b1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 01 十二月 2020 13:45:25 +0800
Subject: [PATCH] 2020-12-01

---
 src/tabviews/zshare/verifycard/tabcard/index.jsx |   96 ++---------------------------------------------
 1 files changed, 5 insertions(+), 91 deletions(-)

diff --git a/src/tabviews/zshare/verifycard/tabcard/index.jsx b/src/tabviews/zshare/verifycard/tabcard/index.jsx
index e560fe3..9893c14 100644
--- a/src/tabviews/zshare/verifycard/tabcard/index.jsx
+++ b/src/tabviews/zshare/verifycard/tabcard/index.jsx
@@ -1,6 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Tabs, Row, Col, Radio, Table, Icon, Select, notification, Input } from 'antd'
+import { Form, Tabs, Row, Col, Table, Icon, notification, Input } from 'antd'
 
 import ActionForm from './actionform'
 import ColumnForm from './columnform'
@@ -174,7 +174,6 @@
     
     let _subconfig = {
       label: config.label,
-      setting: config.setting,
       action: {},
       columns: {}
     }
@@ -456,66 +455,6 @@
     this.props.handleconfig(_config.uuid, _subconfig)
   }
 
-  handleConfirm = () => {
-    const { config } = this.state
-    // 琛ㄥ崟鎻愪氦鏃舵鏌ヨ緭鍏ュ�兼槸鍚︽纭�
-    return new Promise((resolve, reject) => {
-      this.props.form.validateFieldsAndScroll((err, values) => {
-        if (!err) {
-          let _config = {}
-          _config.setting = values
-          _config.action = config.action.map(item => {
-            return {
-              uuid: item.uuid,
-              shortcut: item.shortcut || '',
-              printer: item.printer || ''
-            }
-          })
-          
-          resolve(_config)
-        }
-      })
-    })
-  }
-
-  changebtnfix = (e) => {
-    let val = e.target.value
-    const { config } = this.props
-    let subconfig = JSON.parse(JSON.stringify(this.state.subconfig))
-
-    subconfig.setting.actionfixed = val === 'true'
-
-    this.setState({
-      subconfig: subconfig
-    })
-    this.props.handleconfig(config.uuid, subconfig)
-  }
-
-  changecolfix = (e) => {
-    let val = e.target.value
-    const { config } = this.props
-    let subconfig = JSON.parse(JSON.stringify(this.state.subconfig))
-
-    subconfig.setting.columnfixed = val === 'true'
-
-    this.setState({
-      subconfig: subconfig
-    })
-    this.props.handleconfig(config.uuid, subconfig)
-  }
-
-  changecheckbox = (val) => {
-    const { config } = this.props
-    let subconfig = JSON.parse(JSON.stringify(this.state.subconfig))
-
-    subconfig.setting.tableType = val
-
-    this.setState({
-      subconfig: subconfig
-    })
-    this.props.handleconfig(config.uuid, subconfig)
-  }
-
   changeEasyCode = ({ target: { value } }) => {
     const { config } = this.props
     let subconfig = JSON.parse(JSON.stringify(this.state.subconfig))
@@ -543,43 +482,18 @@
     }
 
     return (
-      <Tabs defaultActiveKey="1" tabPosition="left" className="verify-card-box-vertical-tab">
-        <TabPane tab="鍩虹璁剧疆" key="1">
+      <Tabs defaultActiveKey="action" tabPosition="left" className="verify-card-box-vertical-tab">
+        {config.type === 'main' ? <TabPane tab="鍩虹璁剧疆" key="1">
           <Form {...formItemLayout}>
             <Row gutter={24}>
-              {config.type === 'main' ? <Col span={9}>
+              <Col span={9}>
                 <Form.Item label="鍔╄鐮�">
                   <Input defaultValue={config.easyCode} placeholder="" autoComplete="off" onChange={this.changeEasyCode}/>
                 </Form.Item>
-              </Col> : null}
-              <Col span={9}>
-                <Form.Item label="琛ㄦ牸灞炴��">
-                  <Select defaultValue={config.setting.tableType} onChange={this.changecheckbox}>
-                    <Select.Option value="">涓嶅彲閫�</Select.Option>
-                    <Select.Option value="radio">鍗曢��</Select.Option>
-                    <Select.Option value="checkbox">澶氶��</Select.Option>
-                  </Select>
-                </Form.Item>
               </Col>
-              {config.type === 'main' ? <Col span={9}>
-                <Form.Item label="鍥哄畾鎸夐挳">
-                  <Radio.Group defaultValue={config.setting.actionfixed ? 'true' : 'false'} onChange={this.changebtnfix}>
-                    <Radio value="true">鏄�</Radio>
-                    <Radio value="false">鍚�</Radio>
-                  </Radio.Group>
-                </Form.Item>
-              </Col> : null}
-              {config.type === 'main' ? <Col span={9}>
-                <Form.Item label="鍥哄畾琛ㄥご">
-                  <Radio.Group defaultValue={config.setting.columnfixed ? 'true' : 'false'} onChange={this.changecolfix}>
-                    <Radio value="true">鏄�</Radio>
-                    <Radio value="false">鍚�</Radio>
-                  </Radio.Group>
-                </Form.Item>
-              </Col> : null}
             </Row>
           </Form>
-        </TabPane>
+        </TabPane> : null}
         <TabPane tab="鎸夐挳璁剧疆" key="action">
           <ActionForm
             dict={this.props.dict}

--
Gitblit v1.8.0