Parcourir la source

fix: 删除多余的SoftwareDetail文件夹

outaozhen il y a 4 ans
Parent
commit
1db316adfc

+ 2 - 2
src/components/ModalStore/index.tsx

@@ -11,7 +11,7 @@ import AddBusiness from '@/pages/Customer/Business/components/AddBusiness'
 import BusinessDetail from '@/pages/Customer/Business/components/BusinessDetail'
 import ReminderList from '@/pages/Workbench/Dashboard/components/ReminderList'
 import RatioPanels from '@/pages/Workbench/Dashboard/components/RatioPanels'
-import SoftwareDetail from '@/pages/Product/Lock/LockStore/components/SoftwareDetail'
+// import SoftwareDetail from '@/pages/Product/Lock/LockStore/components/SoftwareDetail'
 import AddRecord from '@/pages/Customer/Client/components/ClientDetail/AddRecord'
 import OpreateLock from '@/pages/Product/Lock/LockStore/components/LockDetail/OpreateLock'
 import LockDetail from '@/pages/Product/Lock/LockStore/components/LockDetail'
@@ -38,7 +38,7 @@ const modalMap = {
   M_REMINDER_LIST: ReminderList, // 仪表盘提醒列表弹窗
   M_RATIO_PANELS: RatioPanels, // 仪表盘环比数据弹窗
   D_LOCK_DETAIL: LockDetail, // 锁库详情抽屉
-  D_SOFTWARE_DETAIL: SoftwareDetail, // 软件锁详情抽屉
+  // D_SOFTWARE_DETAIL: SoftwareDetail, // 软件锁详情抽屉
   M_RECORD_ADD: AddRecord, // 添加服务记录
   M_OPREATE_LOCK: OpreateLock, // 操作锁库弹窗
   M_RECEIVE_LOCK: ReceiveLock, // 接受锁库弹窗

+ 0 - 19
src/pages/Product/Lock/LockStore/components/SoftwareDetail/LowerList.jsx

@@ -1,19 +0,0 @@
-import React from 'react'
-import { Tabs } from 'antd'
-
-const LowerList = () => {
-  const { TabPane } = Tabs
-  return (
-    <div>
-      <div className="pl-4">
-        <Tabs>
-          <TabPane tab="软件锁" key="软件锁">
-            <div className="sheet-right-panel">目前功能暂时不开放</div>
-          </TabPane>
-        </Tabs>
-      </div>
-    </div>
-  )
-}
-
-export default LowerList

+ 0 - 45
src/pages/Product/Lock/LockStore/components/SoftwareDetail/StaffDetail.jsx

@@ -1,45 +0,0 @@
-import React from 'react'
-import { Row, Col, Divider } from 'antd'
-
-const StaffDetail = props => {
-  const { staff } = props
-  return (
-    <div>
-      <Row>
-        <Col span={8}>
-          <h2 className="text-gray-500">责任人</h2>
-        </Col>
-        {/* className={[ 'text-right', styles.textMuted ]} */}
-        <Col span={16} className="text-right text-gray-500">
-          注册于 {staff.hiredate}
-        </Col>
-        <Col span={22}>
-          <h2 className="text-2xl pb-4">{staff.username}</h2>
-        </Col>
-        <Col span={2} />
-      </Row>
-      <Row>
-        <Divider />
-        <Col span={6}>性别</Col>
-        <Col span={18}>{staff.gender}</Col>
-        <Divider />
-        <Col span={6}>部门</Col>
-        <Col span={18}>{staff.departmentName}</Col>
-        <Divider />
-        <Col span={6}>手机</Col>
-        <Col span={18}>{staff.avtelephoneatar}</Col>
-        <Divider />
-        <Col span={6}>电话</Col>
-        <Col span={18}>{staff.phone}</Col>
-        <Divider />
-        <Col span={6}>QQ</Col>
-        <Col span={18}>{staff.qq}</Col>
-        <Divider />
-        <Col span={6}>邮箱</Col>
-        <Col span={18}>{staff.email}</Col>
-      </Row>
-    </div>
-  )
-}
-
-export default StaffDetail

+ 0 - 37
src/pages/Product/Lock/LockStore/components/SoftwareDetail/TabList.jsx

@@ -1,37 +0,0 @@
-import React from 'react'
-import { Tabs, List } from 'antd'
-import { dayjsFormat } from '@/utils/utils'
-
-const TabList = props => {
-  const { log = [] } = props
-  const { TabPane } = Tabs
-  return (
-    <div>
-      <div className="pl-4">
-        <Tabs>
-          <TabPane tab="日志" key="日志">
-            <div className="sheet-panel-record">
-              <List
-                dataSource={log}
-                split={false}
-                renderItem={item => (
-                  <List.Item>
-                    <a>@{item.operatorName}</a> {item.content}
-                    <List.Item.Meta
-                      // avatar=
-                      // title=
-                      // description={ dayjsFormat(item.createTime, 'YYYY-MM-DD')}
-                      description={dayjsFormat(item.createTime)}
-                    />
-                  </List.Item>
-                )}
-              />
-            </div>
-          </TabPane>
-        </Tabs>
-      </div>
-    </div>
-  )
-}
-
-export default TabList

+ 0 - 54
src/pages/Product/Lock/LockStore/components/SoftwareDetail/index.jsx

@@ -1,54 +0,0 @@
-import React, { useState, useEffect } from 'react'
-import { Row, Col, Drawer, Spin } from 'antd'
-import consts from '@/consts'
-import { apiStaffDetail } from '@/services/staff'
-import StaffDetail from './StaffDetail'
-import TabList from './TabList'
-import LowerList from './LowerList'
-
-const SoftwareDetail = props => {
-  const { visible, dataId = '', ...resetDrawerProps } = props
-  const [state, setState] = useState({
-    loading: false,
-    staff: {},
-    log: []
-  })
-  const initData = async id => {
-    setState({ ...state, loading: true })
-    const {
-      data: { staff = {}, log = [] },
-      code = -1
-    } = await apiStaffDetail(id)
-    if (code === consts.RET_CODE.SUCCESS) {
-      setState({ ...state, staff, log, loading: false })
-    }
-  }
-  useEffect(() => {
-    visible && initData(dataId)
-  }, [visible])
-  return (
-    <Drawer
-      {...resetDrawerProps}
-      visible={visible}
-      className="zh-drawer"
-      getContainer={() => document.getElementById('root')}>
-      <Spin spinning={state.loading}>
-        <div className="sheet-box">
-          <Row>
-            <Col span={12} className="sheet-box-left">
-              <div className="sheet-left-panel pr-4">
-                <StaffDetail staff={state.staff} />
-              </div>
-            </Col>
-            <Col span={12} className="sheet-box-right">
-              <LowerList />
-              <TabList />
-            </Col>
-          </Row>
-        </div>
-      </Spin>
-    </Drawer>
-  )
-}
-
-export default SoftwareDetail