diff --git a/src/api/shop.js b/src/api/shop.js
index 8e6c02f..d3845c8 100644
--- a/src/api/shop.js
+++ b/src/api/shop.js
@@ -458,7 +458,6 @@ export function queryAllShopInfo(params) {
});
}
-
/**
* 修改商品排序
* @returns
@@ -495,7 +494,6 @@ export function upCategorySort(data) {
});
}
-
/**
* 查询店铺充值记录
* @returns
@@ -519,10 +517,86 @@ export function downloadTableRecharge(data) {
return request({
url: `/api/tbShopUser/recharge/download`,
method: "post",
- data:{
+ data: {
shopId: localStorage.getItem("shopId"),
...data
},
responseType: "blob"
});
}
+
+/**
+ * 员工列表
+ * @returns
+ */
+export function tbPlussShopStaffGet(params) {
+ return request({
+ url: `/api/tbPlussShopStaff`,
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ ...params
+ }
+ });
+}
+
+/**
+ * 角色列表
+ * @returns
+ */
+export function rolesGet() {
+ return request({
+ url: `/api/roles`,
+ method: "get"
+ });
+}
+
+/**
+ * 增加员工
+ * @returns
+ */
+export function tbPlussShopStaff(data) {
+ return request({
+ url: `/api/tbPlussShopStaff`,
+ method: data.id ? "put" : "post",
+ data: {
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ }
+ });
+}
+
+/**
+ * 通过id获取员工信息
+ * @returns
+ */
+export function tbPlussShopStaffDetail(id) {
+ return request({
+ url: `/api/tbPlussShopStaff/${id}`,
+ method: "get"
+ });
+}
+
+/**
+ * 更改员工状态
+ * @returns
+ */
+export function updateStatus(data) {
+ return request({
+ url: `/api/tbPlussShopStaff/updateStatus`,
+ method: "put",
+ data
+ });
+}
+
+/**
+ * 员工删除
+ * @returns
+ */
+export function shopStaffDelete(data) {
+ return request({
+ url: `/api/tbPlussShopStaff`,
+ method: "delete",
+ data
+ });
+}
diff --git a/src/views/shop/components/addStaff.vue b/src/views/shop/components/addStaff.vue
new file mode 100644
index 0000000..065c88a
--- /dev/null
+++ b/src/views/shop/components/addStaff.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/shop/staff_list.vue b/src/views/shop/staff_list.vue
new file mode 100644
index 0000000..ee3c402
--- /dev/null
+++ b/src/views/shop/staff_list.vue
@@ -0,0 +1,123 @@
+
+
+
+
+ 添加员工
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file