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