Parcourir la source

fix: 优化软件锁功能的相关的逻辑

outaozhen il y a 4 ans
Parent
commit
579110b193

+ 2 - 5
src/pages/Product/Lock/LockStore/components/LockDetail/OpreateLock.jsx

@@ -253,10 +253,7 @@ const OpreateLock = props => {
       width={type === lockTypeEnum.SALE || type === lockTypeEnum.CHANGE ? '60vw' : '520px'}
       width={type === lockTypeEnum.SALE || type === lockTypeEnum.CHANGE ? '60vw' : '520px'}
       getContainer={() => document.getElementById('root')}
       getContainer={() => document.getElementById('root')}
       footer={
       footer={
-        type !== lockTypeEnum.UPDATE &&
-        type !== lockTypeEnum.RECOVER &&
-        type !== lockTypeEnum.RECEIVE &&
-        type !== lockTypeEnum.REMARK ? null : (
+        type !== lockTypeEnum.SALE && type !== lockTypeEnum.CHANGE ? (
           <div>
           <div>
             <Button className="mr-3" onClick={onCancel}>
             <Button className="mr-3" onClick={onCancel}>
               取消
               取消
@@ -265,7 +262,7 @@ const OpreateLock = props => {
               确定
               确定
             </Button>
             </Button>
           </div>
           </div>
-        )
+        ) : null
       }>
       }>
       {type === lockTypeEnum.SALE ? (
       {type === lockTypeEnum.SALE ? (
         <div className="text-center mb-6">
         <div className="text-center mb-6">

+ 0 - 4
src/pages/Product/Lock/LockStore/components/LockDetail/TabList.jsx

@@ -21,10 +21,6 @@ const LockTabList = props => {
   const dispatch = useDispatch()
   const dispatch = useDispatch()
   const { TabPane } = Tabs
   const { TabPane } = Tabs
 
 
-  const [addLonglelog, setAddLonglelog] = useState({
-    type: ''
-  })
-
   const handleAddLonglelog = async values => {
   const handleAddLonglelog = async values => {
     const { code = -1 } = await apiSoftwareAddLonglelog({
     const { code = -1 } = await apiSoftwareAddLonglelog({
       ...values,
       ...values,