lanjianrong vor 3 Jahren
Ursprung
Commit
4cffe799fa
1 geänderte Dateien mit 4 neuen und 10 gelöschten Zeilen
  1. 4 10
      src/pages/Role/Customer/index.tsx

+ 4 - 10
src/pages/Role/Customer/index.tsx

@@ -46,8 +46,6 @@ export const permData = [
 ]
 
 const Customer = () => {
-  console.log('dasdas')
-
   const { TabPane } = Tabs
   const formRef = useRef<FormInstance>(null)
   const formRef2 = useRef<FormInstance>(null)
@@ -161,8 +159,7 @@ const Customer = () => {
           title="确认删除吗?"
           okText="确认"
           cancelText="取消"
-          onConfirm={() => tryDeleteStaff({ id: state.id, staffId: record.staffId })}
-        >
+          onConfirm={() => tryDeleteStaff({ id: state.id, staffId: record.staffId })}>
           <div className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-e7026e">
             <Delete />
           </div>
@@ -190,8 +187,7 @@ const Customer = () => {
           <Tabs
             defaultActiveKey="1"
             type="card"
-            onChange={key => setState({ ...state, activeKey: key })}
-          >
+            onChange={key => setState({ ...state, activeKey: key })}>
             <TabPane tab="员工列表" key="1">
               <Table<API.RoleStaffListItem>
                 dataSource={state.roleStaff}
@@ -212,8 +208,7 @@ const Customer = () => {
                         id: state.id
                       })
                       message.success('设置成功')
-                    }}
-                  >
+                    }}>
                     <ProFormSwitch
                       fieldProps={{
                         onChange(checked) {
@@ -332,8 +327,7 @@ const Customer = () => {
                     }
                     message.success('设置成功')
                     return true
-                  }}
-                >
+                  }}>
                   <FormItem name="access" label="客户模块可见" required>
                     <Radio.Group>
                       <Space direction="vertical">