Преглед изворни кода

style: 仪表盘新增客户记录等窗体的样式调整

lanjianrong пре 4 година
родитељ
комит
43fef1fae0

+ 2 - 0
src/pages/Workbench/Dashboard/components/RatioPanels.jsx

@@ -105,6 +105,7 @@ const ServiceRatioPanels = ({ dispatchModal, staffIds, cyclical, dataPermission
       rowKey={record => record.id}
       scroll={{ y: 400 }}
       bordered={true}
+      cardProps={{ bodyStyle: { padding: 0 } }}
       columns={columns}
       search={false}
       toolbar={{
@@ -334,6 +335,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission, ...res
           <ProTable
             size="small"
             bordered={true}
+            cardProps={{ bodyStyle: { padding: 0 } }}
             pagination={{ defaultPageSize: 10 }}
             rowKey={record => record.id}
             scroll={{ y: 400 }}

+ 0 - 1
src/pages/Workbench/Dashboard/components/ReminderList.jsx

@@ -210,7 +210,6 @@ const ReminderList = props => {
           rowKey={record => record.id}
           columns={dataMap[dataType].columns}
           params={{ dataType, reminderCyclical }}
-          scroll={{ y: 400 }}
           request={async params => {
             const { code = -1, data } = await queryReminderList({ ...params })
             return {

+ 1 - 1
src/pages/Workbench/Dashboard/index.jsx

@@ -317,7 +317,7 @@ const Dashboard = ({ dispatch, departments = [] }) => {
               dataType="workbench"
             />
           </span>
-          {!isMobile() && state.params.dataPermission === 'all' ? (
+          {state.params.dataPermission === 'all' ? (
             <TreeSelect
               size="middle"
               style={{ width: 150 }}