权限控制+账户管理

master
Caps 6 years ago
parent 96ff3cf89b
commit b377571d8c

@ -0,0 +1,244 @@
<style scoped>
/deep/.title-font {
color: #4E5966;
font-size: 14px;
font-weight: 700;
margin-bottom: 20px;
}
/deep/.name-font {
font-size: 14px;
color: #4E5966;
}
</style>
<template>
<row style="margin-left: 30px;margin-top: 30px">
<!--表单-->
<div style="text-align: left">
<span class="title-font">用户信息</span>
</div>
<div style="text-align: left;margin-top: 20px">
<Form style="text-align: left" :model="modifyFrom" :rules="modifyValidate" ref="modifyFrom">
<Form-Item prop="userName">
<span class="name-font" style="width: 80px;display: inline-block">用户名</span>
<i-input placeholder="请输入用户名" style="width: 300px;" v-model="modifyFrom.userName"/>
</Form-Item>
<Form-Item prop="account">
<span class="name-font" style="width: 80px;display: inline-block">账号</span>
<i-input disabled placeholder="请输入账号" style="width: 300px;" v-model="modifyFrom.account"/>
</Form-Item>
<Form-Item prop="password">
<span class="name-font" style="width: 80px;display: inline-block">密码</span>
<i-input placeholder="请输入密码" style="width: 300px;" v-model="modifyFrom.password" type="password"/>
</Form-Item>
<Form-Item prop="confirmPassword">
<span class="name-font" style="width: 80px;display: inline-block">确认密码</span>
<i-input placeholder="请确认密码" style="width: 300px;" v-model="modifyFrom.confirmPassword" type="password"/>
</Form-Item>
</Form>
</div>
<!--角色-->
<div style="text-align: left;margin-top: 30px">
<span class="title-font">角色信息</span>
</div>
<div style="text-align: left;margin: 30px 0 0 30px">
<RadioGroup v-for="item in roleList" :key="item.id" v-model="modifyFrom.roleId" style="margin-left: 15px" @on-change="roleChange(item)">
<Radio :label="item.id">{{item.name}}</Radio>
</RadioGroup>
</div>
<div style="margin-top: 40px" v-if="shopSelectDisplay">
<span class="name-font" style="width: 80px;display: inline-block">店铺</span>
<Select class="select-head" style="width: 300px;" clearable v-model="modifyFrom.shopId" placeholder="请选择店铺" filterable>
<Option v-for="item in this.shopList" :value="item.id" :key="item.id">{{item.name}}</Option>
</Select>
</div>
<!--确认返回-->
<div style="margin-top: 40px">
<Button type="primary" style="height: 39px;width: 101px" @click="modifyAccountConfirm()" >完成</Button>
<Button style="height: 39px;width: 101px;border: 0" @click="modifyAccountcancel()"></Button>
</div>
</row>
</template>
<script>
import accountManagementModify from '../../services/account/AccountManagementModify'
import accountManagement from '../../services/account/AccountManagement'
export default {
data() {
return {
name: "accountManagementModify",
modifyFrom: {
accountId: this.$route.query.accountId,
userId: this.$route.query.userId,
userName: this.$route.query.userName,
account: this.$route.query.account,
password: this.$route.query.password,
confirmPassword: this.$route.query.password,
roleId: this.$route.query.roleId,
shopId: this.$route.query.shopId,
},
modifyValidate: {
userName:[
{required:true,message:'用户名不能为空',trigger:'blur'},
{ min: 1, max: 8, message: '长度在 1 到 8 个字符', trigger: 'blur' },
{ pattern: /^[\u4e00-\u9fa5_0-9a-zA-Z]+$/, message: '只可以输入数字,字母,中文',trigger: 'blur'}
],
account:[
{required:true,message:'账号不能为空',trigger:'blur'},
{ min: 1, max: 12, message: '长度在 1 到 12 个字符', trigger: 'blur' },
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
password:[
{required:true,message:'密码不能为空',trigger:'blur'},
{ min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur' },
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
confirmPassword:[
{required:true,message:'确认密码不能为空',trigger:'blur'},
{ min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur' },
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
},
selectRole: this.$route.query.roleId,
roleList: [],
//
shopList: [],
//
shopSelectDisplay: false,
}
},
mounted: function () {
debugger
if(this.$route.query.roleCode === 'DZ-DIANZHANG'){
this.shopSelectDisplay = true;
this.listShop();
}
this.listRole();
},
methods: {
//
listRole() {
let that = this;
that.roleList = [];
accountManagement.listRoleInfoApi({}, function (data) {
data = data.data;
if (data.code === '9999') {
that.$router.push('/login');
that.$Message.error("会话超时请重新登陆!");
}
if(data.code === '0001') {
that.$Message.error("查询失败");
return;
}
if(data.code === '0000') {
let row = data.results;
for(let i = 0 ; i < row.length ; i++) {
that.roleList.push(row[i]);
}
}
});
},
//
modifyAccountConfirm : function () {
if(this.modifyFrom.userName){
this.modifyFrom.userName = this.modifyFrom.userName.trim();
}
if(this.modifyFrom.password){
this.modifyFrom.password = this.modifyFrom.password.trim();
}
if(this.modifyFrom.confirmPassword){
this.modifyFrom.confirmPassword = this.modifyFrom.confirmPassword.trim();
}
if(this.modifyFrom.account){
this.modifyFrom.account = this.modifyFrom.account.trim();
}
//
this.$refs["modifyFrom"].validate((valid) => {
if (!valid) {
return;
}
if(this.shopSelectDisplay && !this.modifyFrom.shopId) {
this.$Message.info("店长必须选择店铺");
return;
}
if(!this.modifyFrom.roleId) {
this.$Message.info("必须选择角色");
return;
}
if(this.modifyFrom.confirmPassword !== this.modifyFrom.password) {
this.$Message.info("两次输入密码必须一致");
return;
}
let that = this;
let request = {
modifyForm: JSON.stringify(that.modifyFrom)
};
accountManagementModify.modifyAccountApi(request, function (data) {
data = data.data;
if(data.code === '0001') {
that.$Message.error("修改账号失败");
return;
}
if(data.code === '0002') {
that.$Message.info("账号已经存在(登录账号不能重复)");
return;
}
if(data.code === '0000') {
that.$Message.success("修改账号成功");
that.$router.push({path:'/account/manager'});
}
})
});
},
//
modifyAccountcancel : function () {
this.$router.push({path:'/account/manager'});
},
//
roleChange(roleBean) {
if(roleBean.code === 'DZ-DIANZHANG'){
this.shopSelectDisplay = true;
this.listShop();
} else {
this.shopSelectDisplay = false;
this.modifyFrom.shopId = null;
}
},
//
listShop() {
let that = this;
that.shopList = [];
accountManagementModify.listShopApi({}, function (data) {
data = data.data;
if (data.code === '9999') {
that.$router.push('/login');
that.$Message.error("会话超时请重新登陆!");
}
if(data.code === '0001') {
that.$Message.error("查询店铺失败");
return;
}
if(data.code === '0000') {
let row = data.results;
for(let i = 0 ; i < row.length ; i++) {
that.shopList.push(row[i]);
}
}
});
},
}
}
</script>
<style scoped>
</style>

@ -29,12 +29,11 @@
<Modal
v-model="modal13"
title="删除提示"
@on-ok="ok"
@on-cancel="cancel" align="center">
<p style="margin-top: 20px;margin-bottom: 20px">确定要删除此账户吗删除后不可恢复</p>
<div slot="footer" style="text-align: center;margin-bottom: 10px;margin-top: 10px">
<Button style="width: 100px;" @click="modal13 = false">取消删除</Button>
<Button type="error" style="width: 100px;margin-left: 20px" @click="modal13 = false">确认删</Button>
<Button type="error" style="width: 100px;margin-left: 20px" @click="ok"></Button>
</div>
</Modal>
</div>
@ -122,7 +121,20 @@
},
on: {
click: () => {
that.addOneAccount();
this.$router.push({
path: '/account/management/modify',
query: {
accountId: params.row.accountId,
userId: params.row.userId,
userName: params.row.userName,
account: params.row.account,
password: params.row.password,
confirmPassword: params.row.confirmPassword,
roleId: params.row.roleId,
roleCode: params.row.roleCode,
shopId: params.row.shopId,
}
});
}
}
}, '修改'),
@ -182,11 +194,13 @@
},
//
addOneAccount() {
this.$router.push({path: '/account/management/add'});
this.$router.push({
path: '/account/management/add',
});
},
//
uploadAccount() {
this.$router.push({path: '/account/management/upload'});
this.$router.push({path: '/account/upload'});
},
//
listRoleInfo() {
@ -312,13 +326,15 @@
}
})
},
},
cancel() {
cancel() {
},
ok() {
this.modal13 = false;
this.remove();
}
},
ok() {
this.remove();
}
}
</script>

@ -1,68 +1,71 @@
<style scoped>
/deep/.title-font {
color: #4E5966;
font-size: 14px;
font-weight: 700;
margin-bottom: 20px;
}
/deep/.name-font {
font-size: 14px;
color: #4E5966;
}
/deep/ .title-font {
color: #4E5966;
font-size: 14px;
font-weight: 700;
margin-bottom: 20px;
}
/deep/ .name-font {
font-size: 14px;
color: #4E5966;
}
</style>
<template>
<row style="margin-left: 30px;margin-top: 30px">
<!--表单-->
<div style="text-align: left">
<span class="title-font">用户信息</span>
</div>
<div style="text-align: left;margin-top: 20px">
<Form style="text-align: left" :model="addFrom" :rules="addValidate" ref="addFrom">
<Form-Item prop="userName">
<span class="name-font" style="width: 80px;display: inline-block">用户名</span>
<i-input placeholder="请输入用户名" style="width: 300px;" v-model="addFrom.userName"/>
</Form-Item>
<Form-Item prop="account">
<span class="name-font" style="width: 80px;display: inline-block">账号</span>
<i-input placeholder="请输入账号" style="width: 300px;" v-model="addFrom.account" />
</Form-Item>
<Form-Item prop="password">
<span class="name-font" style="width: 80px;display: inline-block">密码</span>
<i-input type="password" placeholder="请输入密码" style="width: 300px;" v-model="addFrom.password"/>
</Form-Item>
<Form-Item prop="confirmPassword">
<span class="name-font" style="width: 80px;display: inline-block">确认密码</span>
<i-input type="password" placeholder="请确认密码" style="width: 300px;" v-model="addFrom.confirmPassword"/>
</Form-Item>
</Form>
</div>
<!--角色-->
<div style="text-align: left;margin-top: 30px">
<span class="title-font">角色信息</span>
</div>
<div style="text-align: left;margin: 30px 0 0 30px">
<RadioGroup v-for="item in roleList" :key="item.id" v-model="addFrom.roleId" style="margin-left: 15px" @on-change="roleChange(item)">
<Radio :label="item.id">{{item.name}}</Radio>
</RadioGroup>
</div>
<div style="margin-top: 40px" v-if="shopSelectDisplay">
<span class="name-font" style="width: 80px;display: inline-block">店铺</span>
<Select class="select-head" style="width: 300px;" clearable v-model="addFrom.shopId" placeholder="请选择店铺" filterable>
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{item.name}}</Option>
</Select>
</div>
<!--确认返回-->
<row style="margin-top: 40px">
<Button type="primary" style="height:39px;width:101px" @click="addAccountConfirm()"></Button>
<Button style="height:39px;width:101px;border:0" @click="addAccountCancel()"></Button>
</row>
<row style="margin-left: 30px;margin-top: 30px">
<!--表单-->
<div style="text-align: left">
<span class="title-font">用户信息</span>
</div>
<div style="text-align: left;margin-top: 20px">
<Form style="text-align: left" :model="addFrom" :rules="addValidate" ref="addFrom">
<Form-Item prop="userName">
<span class="name-font" style="width: 80px;display: inline-block">用户名</span>
<i-input placeholder="请输入用户名" style="width: 300px;" v-model="addFrom.userName"/>
</Form-Item>
<Form-Item prop="account">
<span class="name-font" style="width: 80px;display: inline-block">账号</span>
<i-input placeholder="请输入账号" style="width: 300px;" v-model="addFrom.account"/>
</Form-Item>
<Form-Item prop="password">
<span class="name-font" style="width: 80px;display: inline-block">密码</span>
<i-input type="password" placeholder="请输入密码" style="width: 300px;" v-model="addFrom.password"/>
</Form-Item>
<Form-Item prop="confirmPassword">
<span class="name-font" style="width: 80px;display: inline-block">确认密码</span>
<i-input type="password" placeholder="请确认密码" style="width: 300px;"
v-model="addFrom.confirmPassword"/>
</Form-Item>
</Form>
</div>
</row>
<!--角色-->
<div style="text-align: left;margin-top: 30px">
<span class="title-font">角色信息</span>
</div>
<div style="text-align: left;margin: 30px 0 0 30px">
<RadioGroup v-for="item in roleList" :key="item.id" v-model="addFrom.roleId" style="margin-left: 15px"
@on-change="roleChange(item)">
<Radio :label="item.id">{{item.name}}</Radio>
</RadioGroup>
</div>
<div style="margin-top: 40px" v-if="shopSelectDisplay">
<span class="name-font" style="width: 80px;display: inline-block">店铺</span>
<Select class="select-head" style="width: 300px;" clearable v-model="addFrom.shopId" placeholder="请选择店铺"
filterable>
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{item.name}}</Option>
</Select>
</div>
<!--确认返回-->
<row style="margin-top: 40px">
<Button type="primary" style="height:39px;width:101px" @click="addAccountConfirm()"></Button>
<Button style="height:39px;width:101px;border:0" @click="addAccountCancel()"></Button>
</row>
</row>
</template>
@ -70,179 +73,194 @@
<script>
import accountManagementAdd from '../../services/account/AccountManagementAdd'
import permission from '../../services/permission/Permission'
import accountManagement from "../../services/account/AccountManagement";
export default {
data() {
return {
name: "accountManagementAdd",
addFrom: {
userName: null,
roleId: null,
account: null,
password: null,
confirmPassword: null,
shopId: null
},
addValidate: {
userName:[
{required:true,message:'用户名不能为空',trigger:'blur'},
{ min: 1, max: 8, message: '长度在 1 到 8 个字符', trigger: 'blur' },
{ pattern: /^[\u4e00-\u9fa5_0-9a-zA-Z]+$/, message: '只可以输入数字,字母,中文',trigger: 'blur'}
],
account:[
{required:true,message:'账号不能为空',trigger:'blur'},
{ min: 1, max: 12, message: '长度在 1 到 12 个字符', trigger: 'blur' },
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
password:[
{required:true,message:'密码不能为空',trigger:'blur'},
{ min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur' },
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
confirmPassword:[
{required:true,message:'确认密码不能为空',trigger:'blur'},
{ min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur' },
{ pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母',trigger: 'blur'},
],
},
roleList: [
{
id:1,
name:"系统管理员"
data() {
return {
name: "accountManagementAdd",
addFrom: {
userName: null,
roleId: null,
account: null,
password: null,
confirmPassword: null,
shopId: null
},
addValidate: {
userName: [
{required: true, message: '用户名不能为空', trigger: 'blur'},
{min: 1, max: 8, message: '长度在 1 到 8 个字符', trigger: 'blur'},
{pattern: /^[\u4e00-\u9fa5_0-9a-zA-Z]+$/, message: '只可以输入数字,字母,中文', trigger: 'blur'}
],
account: [
{required: true, message: '账号不能为空', trigger: 'blur'},
{min: 1, max: 12, message: '长度在 1 到 12 个字符', trigger: 'blur'},
{pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母', trigger: 'blur'},
],
password: [
{required: true, message: '密码不能为空', trigger: 'blur'},
{min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur'},
{pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母', trigger: 'blur'},
],
confirmPassword: [
{required: true, message: '确认密码不能为空', trigger: 'blur'},
{min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur'},
{pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母', trigger: 'blur'},
],
},
roleList: [
{
id: 1,
name: "系统管理员"
},
{
id: 2,
name: "运营人员"
},
{
id: 3,
name: "店长"
},
],
//
shopList: [
{
id: 3,
name: "店长"
},
],
//
shopSelectDisplay: false,
}
},
mounted: function () {
//-
this.listRoleInfo();
},
methods: {
//
listRoleInfo() {
let that = this;
that.roleList = [];
accountManagement.listRoleInfoApi({}, function (data) {
data = data.data;
if (data.code === '9999') {
that.$router.push('/login');
that.$Message.error("会话超时请重新登陆!");
}
if (data.code === '0001') {
that.$Message.error("查询角色失败!");
return;
}
if (data.code === '0000') {
let row = data.results;
for (let i = 0; i < row.length; i++) {
that.roleList.push(row[i]);
}
}
})
},
//
addAccountConfirm : function () {
if(this.addFrom.userName){
this.addFrom.userName = this.addFrom.userName.trim();
}
if(this.addFrom.password){
this.addFrom.password = this.addFrom.password.trim();
}
if(this.addFrom.confirmPassword){
this.addFrom.confirmPassword = this.addFrom.confirmPassword.trim();
}
if(this.addFrom.account){
this.addFrom.account = this.addFrom.account.trim();
}
this.$refs["addFrom"].validate((valid) => {
if (!valid) {
return;
}
if(this.shopSelectDisplay && !this.addFrom.shopId) {
this.$Message.info("店长必须选择店铺");
return;
}
if(!this.addFrom.roleId) {
this.$Message.info("必须选择角色");
return;
}
if(this.addFrom.confirmPassword !== this.addFrom.password) {
this.$Message.info("两次输入密码必须一致");
return;
}
let that = this;
//
let request = {
addFrom: JSON.stringify(that.addFrom)
};
accountManagementAdd.saveAccountInputApi(request, function (data) {
data = data.data;
if (data.code === '9999') {
that.$router.push('/login');
that.$Message.error("会话超时请重新登陆!");
}
if(data.code === '0001') {
that.$Message.error("保存账号失败");
return;
}
if(data.code === '0002') {
that.$Message.info("账号已经存在(登录账号不能重复)");
return;
}
if(data.code === '0000') {
that.$Message.success("保存账号成功");
that.$router.push({path:'/account/manager'});
}
})
});
},
{
id:2,
name:"运营人员"
//
addAccountCancel: function () {
this.$router.push({path: '/account/manager'});
},
{
id:3,
name:"店长"
//
roleChange(roleBean) {
if (roleBean.code === 'DZ-DIANZHANG') {
this.shopSelectDisplay = true;
this.listOfShop();
} else {
this.shopSelectDisplay = false;
this.addFrom.shopId = null;
}
},
],
//
shopList: [
{
id:3,
name:"店长"
//
listOfShop() {
let that = this;
that.shopList = [];
let request = {
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId
};
accountManagement.listAllShopApi(request, function (data) {
data = data.data;
if (data.code === '9999') {
that.$router.push('/login');
that.$Message.error("会话超时请重新登陆!");
}
if (data.code === '0001') {
that.$Message.error("查询店铺失败!");
return;
}
if (data.code === '0000') {
let row = data.results;
for (let i = 0; i < row.length; i++) {
that.shopList.push(row[i]);
}
}
})
},
],
//
shopSelectDisplay: false,
}
},
mounted: function () {
//-
// this.listRole();
},
methods: {
//
// listRole() {
// let that = this;
// that.roleList = [];
// permission.listRoleInfoApi({}, function (data) {
// data = data.data;
// if(data.code === '0001') {
// that.$Message.error("");
// return;
// }
// if(data.code === '0000') {
// let row = data.results;
// for(let i = 0 ; i < row.length ; i++) {
// that.roleList.push(row[i]);
// }
// }
// });
// },
// //
// addAccountConfirm : function () {
// if(this.addFrom.userName){
// this.addFrom.userName = this.addFrom.userName.trim();
// }
// if(this.addFrom.password){
// this.addFrom.password = this.addFrom.password.trim();
// }
// if(this.addFrom.confirmPassword){
// this.addFrom.confirmPassword = this.addFrom.confirmPassword.trim();
// }
// if(this.addFrom.account){
// this.addFrom.account = this.addFrom.account.trim();
// }
//
// this.$refs["addFrom"].validate((valid) => {
// if (!valid) {
// return;
// }
//
// if(this.shopSelectDisplay && !this.addFrom.shopId) {
// this.$Message.info("");
// return;
// }
// if(!this.addFrom.roleId) {
// this.$Message.info("");
// return;
// }
// if(this.addFrom.confirmPassword !== this.addFrom.password) {
// this.$Message.info("");
// return;
// }
// let that = this;
// //
// let request = {
// addFrom: JSON.stringify(that.addFrom)
// };
// accountManagementAdd.saveAccountInputApi(request, function (data) {
// data = data.data;
// if(data.code === '0001') {
// that.$Message.error("");
// return;
// }
// if(data.code === '0002') {
// that.$Message.info("");
// return;
// }
// if(data.code === '0000') {
// that.$Message.success("");
// that.$router.push({path:'/account/management'});
// }
// })
//
// });
//
// },
// //
// addAccountCancel : function () {
// this.$router.push({path:'/account/management'});
// },
// //
// roleChange(roleBean) {
// if(roleBean.code === 'DZ-DIANZHANG'){
// this.shopSelectDisplay = true;
// this.listShop();
// } else {
// this.shopSelectDisplay = false;
// this.addFrom.shopId = null;
// }
// },
// //
// listShop() {
// let that = this;
// that.shopList = [];
// accountManagementAdd.listShopApi({}, function (data) {
// data = data.data;
// if(data.code === '0001') {
// that.$Message.error("");
// return;
// }
// if(data.code === '0000') {
// let row = data.results;
// for(let i = 0 ; i < row.length ; i++) {
// that.shopList.push(row[i]);
// }
// }
// });
// },
}
}
</script>

@ -9,7 +9,7 @@
<Upload
multiple
type="drag"
action="/api/shop/upload/shop" :data="data" :on-success="upSuccess" :on-error="upError">
action="" :data="data" :on-success="upSuccess" :on-error="upError">
<div style="padding: 20px 0">
<Icon type="ios-cloud-upload" size="70" style="color: #3399ff"></Icon>
<p>将文件拖拽到此区域</p>
@ -45,7 +45,7 @@
upSuccess(response, res, file) {
console.log("1111");
if (!response.results) {
this.$message.info("上传成功,店铺已添加")
this.$message.info("上传成功,账户已添加")
} else {
let data = response.results;
this.data1 = data;

@ -5,6 +5,7 @@ import ExternalContact from '@/pages/ExternalContact';
import Home from '@/pages/Home';
import AccountManager from '@/pages/user/AccountManager';
import AccountManagerAdd from '@/pages/user/AccountManagerAdd';
import AccountManagementModify from '@/pages/user/AccountManagementModify';
import AccountManagerUpload from '@/pages/user/AccountManagerUpload';
import RoleManager from '@/pages/user/RoleManager';
import IncreaseManager from '@/pages/shop/IncreaseManager';
@ -54,7 +55,12 @@ const router = new Router({
component: AccountManagerAdd
},
{
path: '/account/management/upload',
path: '/account/management/modify',
name: 'AccountManagementModify',
component: AccountManagementModify
},
{
path: '/account/upload',
name: 'AccountManagerUpload',
component: AccountManagerUpload
},

@ -15,6 +15,17 @@ export function listShopApi(params, call) {
return http.get('account/shop/list', params).then(call);
}
/**
* 保存账号
* @param params
* @param call
* @returns {Promise<any | never>}
*/
export function saveAccountInputApi(params, call) {
return http.post('account/save', params).then(call);
}
export default {
listShopApi
listShopApi,
saveAccountInputApi
}

@ -0,0 +1,30 @@
/**
* 修改账号
* @author jinchaofan
* @date 2020/2/18
*/
import http from '../CommonHttp'
/**
* 修改账号
* @param params
* @param call
* @returns {Promise<any | never>}
*/
export function modifyAccountApi(params, call) {
return http.post('account/modify', params).then(call);
}
/**
* 查询所有店铺
* @param params
* @param call
* @returns {Promise<any | never>}
*/
export function listShopApi(params, call) {
return http.get('/poi/store/all/list', params).then(call);
}
export default {
modifyAccountApi,
listShopApi
}
Loading…
Cancel
Save