outaozhen vor 5 Jahren
Ursprung
Commit
3b4b46f161

+ 8 - 9
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx

@@ -50,12 +50,15 @@ const LockModal = props => {
     pageSize: 10,
     total: 0
   })
+
   // 获取软件锁产品列表
   function fetchSoftProducts() {
     dispatch({
-      type: 'lock/fetchProdList'
+      type: 'lock/fetchProdList',
+      payload: 'longleId'
     })
   }
+
   const initData = async params => {
     setState({ ...state, loading: true })
     if (type === lockTypeEnum.CHANGE) {
@@ -245,8 +248,7 @@ const LockModal = props => {
             </Button>
           </div>
         )
-      }
-    >
+      }>
       {type === lockTypeEnum.SALE ? (
         <div className="text-center mb-6">
           <Radio.Group value={state.sellStatus} buttonStyle="solid" onChange={checkGroupOnChange}>
@@ -261,8 +263,7 @@ const LockModal = props => {
           className={styles.modalContainer}
           ref={scrollRef}
           onScroll={handleListScroll}
-          style={{ paddingBottom: 0 }}
-        >
+          style={{ paddingBottom: 0 }}>
           <div className={styles.modalContent}>
             <Spin spinning={state.loading}>
               {type === lockTypeEnum.SALE &&
@@ -277,8 +278,7 @@ const LockModal = props => {
                         title="确认选择ta"
                         onConfirm={() => connectClient(item.id)}
                         okText="确认"
-                        cancelText="取消"
-                      >
+                        cancelText="取消">
                         <Button type="primary" size="small">
                           选择ta
                         </Button>
@@ -296,8 +296,7 @@ const LockModal = props => {
                         title="确认选择ta"
                         onConfirm={() => connectLongle(item.id)}
                         okText="确认"
-                        cancelText="取消"
-                      >
+                        cancelText="取消">
                         <Button type="primary" size="small">
                           更换
                         </Button>