Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
0c2e3a87
Commit
0c2e3a87
authored
Sep 03, 2020
by
MrShi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev_ssz分支,账号模块
parent
9a75f2ba
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
150 additions
and
9 deletions
+150
-9
config.ts
config/config.ts
+11
-1
account.ts
src/models/account.ts
+90
-0
Account.tsx
src/pages/AccountManagement/account/Account.tsx
+0
-0
AccountEdit.tsx
src/pages/AccountManagement/account/AccountEdit.tsx
+0
-0
AccountReset.tsx
src/pages/AccountManagement/account/AccountReset.tsx
+0
-0
style.less
src/pages/AccountManagement/account/style.less
+1
-1
xlsx.core.min.js
src/pages/AccountManagement/account/xlsx.core.min.js
+0
-0
TosUser.tsx
src/pages/UserManagement/tosUser/TosUser.tsx
+1
-1
commonUser.tsx
src/pages/UserManagement/tosUser/commonUser.tsx
+4
-6
account.tsx
src/services/account.tsx
+43
-0
No files found.
config/config.ts
View file @
0c2e3a87
...
...
@@ -245,14 +245,24 @@ export default defineConfig({
name
:
'accountmanagement'
,
icon
:
'UserSwitchOutlined'
,
routes
:
[
{
/*
{
path: './AccountManagement',
name: 'accountmanagement1',
routes: [
{path:'./',component: './AccountManagement/AccountManagement/Account'},
{path: './AccountManagementEdit',component:'./AccountManagement/AccountManagement/AccountManagement'},
]
},*/
{
path
:
'./AccountManagement'
,
name
:
'accountmanagement1'
,
routes
:
[
{
path
:
'./'
,
component
:
'./AccountManagement/account/Account'
},
{
path
:
'./AccountManagementEdit'
,
component
:
'./AccountManagement/AccountManagement/AccountManagement'
},
]
},
{
path
:
'./CompanyInformation'
,
name
:
'companyinformation'
,
...
...
src/models/account.ts
0 → 100644
View file @
0c2e3a87
import
{
getAccount
,
delAccount
,
saveAccount
,
getAllLeader
,
checkAccountByName
,
quitAndUser
}
from
'@/services/account'
;
export
default
{
namespace
:
'accountModel'
,
state
:
{
data
:
[],
},
effects
:
{
*
getAccount
({
callback
,
payload
},{
call
,
put
})
{
const
response
=
yield
call
(
getAccount
,
payload
);
yield
put
({
type
:
"getUsers"
,
});
if
(
callback
)
callback
(
response
);
},
*
saveAccount
({
callback
,
payload
},{
call
,
put
})
{
const
response
=
yield
call
(
saveAccount
,
payload
);
yield
put
({
type
:
"save"
,
});
if
(
callback
)
callback
(
response
);
},
*
delAdccount
({
callback
,
payload
},{
call
,
put
})
{
const
response
=
yield
call
(
delAccount
,
payload
);
yield
put
({
type
:
"del"
,
});
if
(
callback
)
callback
(
response
);
},
*
getAllLeader
({
callback
,
payload
},{
call
,
put
})
{
const
response
=
yield
call
(
getAllLeader
,
payload
);
yield
put
({
type
:
"allLeader"
,
});
if
(
callback
)
callback
(
response
);
},
*
checkAccountByName
({
callback
,
payload
},{
call
,
put
})
{
const
response
=
yield
call
(
checkAccountByName
,
payload
);
yield
put
({
type
:
"checkUser"
,
});
if
(
callback
)
callback
(
response
);
},
*
quitAndUser
({
callback
,
payload
},{
call
,
put
})
{
const
response
=
yield
call
(
quitAndUser
,
payload
);
yield
put
({
type
:
"quitUser"
,
});
if
(
callback
)
callback
(
response
);
},
},
reducers
:
{
allLeader
(
state
,
action
)
{
return
{
...
state
,
data
:
action
.
payload
||
{},
};
},
getUsers
(
state
,
action
)
{
return
{
...
state
,
data
:
action
.
payload
||
{},
};
},
save
(
state
,
action
)
{
return
{
...
state
,
data
:
action
.
payload
||
{},
};
},
del
(
state
,
action
)
{
return
{
...
state
,
data
:
action
.
payload
||
{},
};
},
checkUser
(
state
,
action
)
{
return
{
...
state
,
data
:
action
.
payload
||
{},
};
},
quitUser
(
state
,
action
)
{
return
{
...
state
,
data
:
action
.
payload
||
{},
};
},
},
};
src/pages/account/Account.tsx
→
src/pages/
AccountManagement/
account/Account.tsx
View file @
0c2e3a87
File moved
src/pages/account/AccountEdit.tsx
→
src/pages/
AccountManagement/
account/AccountEdit.tsx
View file @
0c2e3a87
File moved
src/pages/account/AccountReset.tsx
→
src/pages/
AccountManagement/
account/AccountReset.tsx
View file @
0c2e3a87
File moved
src/pages/account/style.less
→
src/pages/
AccountManagement/
account/style.less
View file @
0c2e3a87
@import '
~
antd/lib/style/themes/default.less';
@import '
../../../../node_modules/
antd/lib/style/themes/default.less';
.pre {
margin: 12px 0;
...
...
src/pages/account/xlsx.core.min.js
→
src/pages/
AccountManagement/
account/xlsx.core.min.js
View file @
0c2e3a87
File moved
src/pages/UserManagement/tosUser/TosUser.tsx
View file @
0c2e3a87
...
...
@@ -4,7 +4,7 @@ import {Table, Button, Input, Select, Modal, Tooltip, Upload, Icon, Checkbox, Ro
from
"antd"
;
import
styles
from
'./style.less'
;
import
{
ConnectState
}
from
"@/models/connect"
;
import
XLSX
from
"@/pages/account/xlsx.core.min"
;
import
XLSX
from
"@/pages/
AccountManagement/
account/xlsx.core.min"
;
import
'moment/locale/zh-cn'
;
import
SelectOptions
from
'../../../components/SelectOptions/index'
;
import
TitleSearch
from
"@/components/TitleSearch/TitleSearch"
;
...
...
src/pages/UserManagement/tosUser/commonUser.tsx
View file @
0c2e3a87
...
...
@@ -314,13 +314,13 @@ class TosUserCreate extends React.Component {
<
div
>
<
span
className=
{
styles
.
detailsContent
}
>
User Type
</
span
>
{
/*<Input className={styles.input} value={sn} onChange={(e) => this.snChange(e)}/>*/
}
<
span
className=
{
styles
.
detailsContent
}
>
Family Member
</
span
>
<
span
className=
{
styles
.
detailsContent
}
>
{
this
.
props
.
location
.
query
.
owner_relationship
==
1
?
"家属"
:
"租户"
}
</
span
>
</
div
>
<
div
>
<
span
className=
{
styles
.
detailsContent
}
>
Full Name
</
span
>
<
Button
className=
{
styles
.
button1
}
onClick=
{
()
=>
this
.
onSubmit
()
}
>
Cancel Account
</
Button
>
{
/*<Input className={styles.input} value={model} placeholder="小区名称" onChange={(e) => this.modelChange(e)} />*/
}
<
span
className=
{
styles
.
detailsContent
}
>
kamon.chen
</
span
>
<
span
className=
{
styles
.
detailsContent
}
>
{
this
.
props
.
location
.
query
.
ower_name
}
</
span
>
{
/* <Input className={styles.input} value={name} placeholder="楼号" onChange={(e) => this.nameChange(e)} />
...
...
@@ -332,14 +332,12 @@ class TosUserCreate extends React.Component {
</
div
>
<
div
>
<
span
className=
{
styles
.
detailsContent
}
>
Contact Details
</
span
>
<
span
className=
{
styles
.
detailsContent
}
>
132222222
</
span
>
<
span
className=
{
styles
.
detailsContent
}
>
sales@huahuico.com
</
span
>
<
span
className=
{
styles
.
detailsContent
}
>
{
this
.
props
.
location
.
query
.
owner_family_phone
==
null
?
this
.
props
.
location
.
query
.
ower_phone
:
this
.
props
.
location
.
query
.
owner_family_phone
}
</
span
>
<
span
className=
{
styles
.
detailsContent
}
>
{
this
.
props
.
location
.
query
.
owner_family_email
==
null
?
this
.
props
.
location
.
query
.
owner_email
:
this
.
props
.
location
.
query
.
owner_family_email
}
</
span
>
</
div
>
<
div
style=
{
{
marginTop
:
120
}
}
>
</
div
>
</
div
>
</
div
>
...
...
src/services/account.tsx
0 → 100644
View file @
0c2e3a87
import
request
from
'@/utils/request'
;
export
async
function
getAccount
(
params
)
{
return
request
(
'/api/tos/user/getAllInfrom'
,
{
method
:
'POST'
,
data
:
params
,
});
}
export
async
function
delAccount
(
params
)
{
return
request
(
'/api/tos/users/del'
,
{
method
:
'POST'
,
data
:
params
,
});
}
export
async
function
saveAccount
(
params
)
{
return
request
(
'/api/tos/users/save'
,
{
method
:
'POST'
,
data
:
params
,
});
}
export
async
function
getAllLeader
(
params
)
{
return
request
(
'/api/users/getAllLeader'
,
{
method
:
'POST'
,
data
:
params
,
});
}
export
async
function
checkAccountByName
(
params
)
{
return
request
(
'/api/tos/checkAccount/username'
,
{
method
:
'POST'
,
data
:
params
,
});
}
export
async
function
quitAndUser
(
params
)
{
return
request
(
'/api/tos/users/quitAndUser'
,
{
method
:
'POST'
,
data
:
params
,
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment