|
@@ -46,6 +46,8 @@ export const permData = [
|
|
|
]
|
|
|
|
|
|
const Customer = () => {
|
|
|
+ console.log('dasdas')
|
|
|
+
|
|
|
const { TabPane } = Tabs
|
|
|
const formRef = useRef<FormInstance>(null)
|
|
|
const formRef2 = useRef<FormInstance>(null)
|
|
@@ -159,7 +161,8 @@ 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>
|
|
@@ -187,7 +190,8 @@ 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}
|
|
@@ -208,7 +212,8 @@ const Customer = () => {
|
|
|
id: state.id
|
|
|
})
|
|
|
message.success('设置成功')
|
|
|
- }}>
|
|
|
+ }}
|
|
|
+ >
|
|
|
<ProFormSwitch
|
|
|
fieldProps={{
|
|
|
onChange(checked) {
|
|
@@ -327,7 +332,8 @@ const Customer = () => {
|
|
|
}
|
|
|
message.success('设置成功')
|
|
|
return true
|
|
|
- }}>
|
|
|
+ }}
|
|
|
+ >
|
|
|
<FormItem name="access" label="客户模块可见" required>
|
|
|
<Radio.Group>
|
|
|
<Space direction="vertical">
|