Explorar el Código

feat: 责任人相关内容

outaozhen hace 5 años
padre
commit
1d945cb3f9

+ 9 - 1
src/pages/Product/Lock/Lockstore/components/SoftwareDetail/LowerList.jsx

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

+ 28 - 2
src/pages/Product/Lock/Lockstore/components/SoftwareDetail/TabList.jsx

@@ -1,9 +1,35 @@
 import React from 'react'
+import { Tabs, List } from 'antd'
+import { dayjsFormat } from '@/utils/utils'
 
-const TabList = () => {
+const TabList = props => {
+  const { log = [] } = props
+  const { TabPane } = Tabs
   return (
     <div>
-      <b>fsfsef</b>
+      <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>
   )
 }

+ 2 - 1
src/pages/Product/Lock/Lockstore/components/SoftwareDetail/index.jsx

@@ -14,6 +14,7 @@ const SoftwareDetail = props => {
     staff: {},
     log: []
   })
+  console.log(dataId)
   const initData = async id => {
     setState({ ...state, loading: true })
     const {
@@ -45,8 +46,8 @@ const SoftwareDetail = props => {
           </div>
         </Col>
         <Col span={12} className="sheet-box-right">
-          <TabList />
           <LowerList />
+          <TabList />
         </Col>
       </Row>
     </div>

+ 1 - 1
src/pages/Product/Lock/Lockstore/index.jsx

@@ -190,7 +190,7 @@ const LockStore = ({ prodList = [], dispatch }) => {
       width: 150,
       render: (text, record) => (
         <span
-          onClick={() => showDrawerResponsible(record.clientId)}
+          onClick={() => showDrawerResponsible(record.responsibleId)}
           className="text-primary cursor-pointer hover:text-[#967bbd]">
           {text}
         </span>