Explorar o código

refactor: custom由后端配置返回

lanjianrong %!s(int64=5) %!d(string=hai) anos
pai
achega
90ed2fe870

+ 3 - 1
src/pages/Customer/Company/components/CustomPerm.jsx

@@ -300,7 +300,9 @@ const CustomPerm = ({ onConfirm }) => {
 
             if (direction === 'right') {
               return (
-                <ul className="ant-transfer-list-content ant-transfer-list-content-show-remove">
+                <ul
+                  className="ant-transfer-list-content ant-transfer-list-content-show-remove overflow-y-auto"
+                  style={{ height: state.height }}>
                   {(state.rightTargetId
                     ? state.targetKeys.filter(item => item === state.rightTargetId)
                     : state.targetKeys

+ 1 - 3
src/pages/Customer/Company/components/PermSelect.jsx

@@ -14,9 +14,7 @@ const PermSelect = ({ dataType, onConfirm, ...resetProps }) => {
   const { initialState: { permData } = { permData: {} } } = useModel('@@initialState')
   const { toggleModal, setModalProps } = useModal()
   const options = [...(permData[dataType] || [])]
-  if (permData[dataType]?.findIndex(item => item.value === 'all') !== -1) {
-    options.push({ value: 'custom', label: '自定义' })
-  }
+
   return (
     <Select
       {...resetProps}