给超管从后台创建租户换接口地址
This commit is contained in:
parent
aa58b36145
commit
3533736aa8
@ -5,6 +5,7 @@ const getBuyAndSaleStatistics = (params)=>getAction("/depotHead/getBuyAndSaleSta
|
||||
const buyOrSalePrice = (params)=>getAction("/depotItem/buyOrSalePrice",params);
|
||||
//租户管理
|
||||
const checkTenant = (params)=>getAction("/tenant/checkIsNameExist",params);
|
||||
const addTenant = (params)=>postAction("/tenant/add",params);
|
||||
const editTenant = (params)=>putAction("/tenant/update",params);
|
||||
//角色管理
|
||||
const addRole = (params)=>postAction("/role/add",params);
|
||||
@ -116,6 +117,7 @@ export {
|
||||
getBuyAndSaleStatistics,
|
||||
buyOrSalePrice,
|
||||
checkTenant,
|
||||
addTenant,
|
||||
editTenant,
|
||||
addRole,
|
||||
editRole,
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
<script>
|
||||
import pick from 'lodash.pick'
|
||||
import {mixinDevice} from '@/utils/mixin'
|
||||
import {registerUser,editTenant,checkTenant } from '@/api/api'
|
||||
import {addTenant,editTenant,checkTenant } from '@/api/api'
|
||||
import JDate from '@/components/jeecg/JDate'
|
||||
import md5 from 'md5'
|
||||
export default {
|
||||
@ -108,7 +108,7 @@
|
||||
let obj;
|
||||
if(!this.model.id){
|
||||
formData.password = md5('123456')
|
||||
obj=registerUser(formData);
|
||||
obj=addTenant(formData);
|
||||
}else{
|
||||
obj=editTenant(formData);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user