Commit cdd6b97b by wufan

feat:去掉params里面的storeId

parent 3eb57089
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2019-07-10 10:30:49 * @Date: 2019-07-10 10:30:49
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-07 20:09:55 * @LastEditTime: 2020-12-08 13:41:34
* @Description: * @Description:
*/ */
import React, { useContext, useEffect } from 'react'; import React, { useContext, useEffect } from 'react';
...@@ -51,11 +51,7 @@ const App: React.FC = (props: any) => { ...@@ -51,11 +51,7 @@ const App: React.FC = (props: any) => {
} }
function getUserPermission() { function getUserPermission() {
const storeId = User.getStoreId(); BaseService.getUserPermission({ }).then((res) => {
const storeUserId = User.getStoreUserId();
console.log("getUserPermission",storeId,storeUserId)
BaseService.getUserPermission({ storeId, storeUserId }).then((res) => {
console.log(res.result); console.log(res.result);
const {storePermission, storePermissionGroup, storeUserPermission, storeUserPermissionGroup } = res.result; const {storePermission, storePermissionGroup, storeUserPermission, storeUserPermissionGroup } = res.result;
ctx.dispatch(setStoreGroupPermission(storePermissionGroup)) ctx.dispatch(setStoreGroupPermission(storePermissionGroup))
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-27 16:21:49 * @Date: 2020-11-27 16:21:49
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-08 10:38:21 * @LastEditTime: 2020-12-08 13:40:35
* @Description: Description * @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -176,8 +176,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) { ...@@ -176,8 +176,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
nickName, nickName,
phone: String(phone), phone: String(phone),
roleCodes:[role], roleCodes:[role],
avatar, avatar
storeId:User.getStoreId()
}; };
console.log("params",params); console.log("params",params);
StoreService.addEmployee(params).then((res) => { StoreService.addEmployee(params).then((res) => {
......
...@@ -46,7 +46,6 @@ interface QueryType { ...@@ -46,7 +46,6 @@ interface QueryType {
nickName?: string; nickName?: string;
phone?: string; phone?: string;
roleCodes: Array<string>; roleCodes: Array<string>;
storeId: string | undefined | null;
} }
interface ChoosedItemType { interface ChoosedItemType {
...@@ -64,8 +63,7 @@ function EmployeesManagePage() { ...@@ -64,8 +63,7 @@ function EmployeesManagePage() {
size: 10, size: 10,
nickName: "", nickName: "",
phone: "", phone: "",
roleCodes: [], roleCodes: []
storeId: User.getStoreId(),
}); });
const [valueLike, setValueLike] = useState(); const [valueLike, setValueLike] = useState();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-08 10:42:20 * @LastEditTime: 2020-12-08 13:42:55
* @Description: 用户管理页面 * @Description: 用户管理页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -13,7 +13,6 @@ import _ from "underscore"; ...@@ -13,7 +13,6 @@ import _ from "underscore";
import { PageControl } from "@/components"; import { PageControl } from "@/components";
import { Table, Input, DatePicker } from "antd"; import { Table, Input, DatePicker } from "antd";
import StoreService from "@/domains/store-domain/storeService"; import StoreService from "@/domains/store-domain/storeService";
import User from "@/common/js/user";
import "./UserManagePage.less"; import "./UserManagePage.less";
import moment from "moment"; import moment from "moment";
...@@ -29,7 +28,6 @@ function UserManagePage() { ...@@ -29,7 +28,6 @@ function UserManagePage() {
size: 10, size: 10,
nickName: "", nickName: "",
phone: "", phone: "",
storeId: User.getStoreId(),
registerBegin: null, registerBegin: null,
registerEnd: null, registerEnd: null,
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment