From fd47dfec2b1904464d9186409fa6abb5cc582876 Mon Sep 17 00:00:00 2001
From: "DESKTOP-369JRHT\\12997" <9>
Date: Thu, 11 Jul 2024 14:48:35 +0800
Subject: [PATCH] no message
---
fuintAdmin/src/main.js | 4 ++--
fuintAdmin/src/store/modules/user.js | 6 ++++++
fuintAdmin/src/views/duty/index.vue | 4 +++-
fuintAdmin/src/views/login.vue | 14 +++++++++++---
fuintAdmin/src/views/staff/list.vue | 3 +++
fuintAdmin/src/views/staff/storeInfo/index.vue | 2 +-
fuintAdmin/src/views/staff/tag/list.vue | 1 +
.../src/views/staffCommission/staffCommission.vue | 1 +
.../controller/BackendLoginController.java | 8 ++++++++
.../module/backendApi/response/LoginResponse.java | 1 +
10 files changed, 37 insertions(+), 7 deletions(-)
diff --git a/fuintAdmin/src/main.js b/fuintAdmin/src/main.js
index 1b8277b44..df0c466c4 100644
--- a/fuintAdmin/src/main.js
+++ b/fuintAdmin/src/main.js
@@ -56,8 +56,8 @@ Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.prototype.imgurl = 'http://192.168.0.138:8008'
// Vue.prototype.pcUrl = 'http://192.168.0.178:83/'
-Vue.prototype.pcUrl = 'https://cashier.youkerr.com/'
-Vue.prototype.ztUrl = 'http://localhost:82/'
+Vue.prototype.pcUrl = 'http://localhost:83/#/' // 收银台
+Vue.prototype.ztUrl = 'http://localhost:82/' // 中台
const Collapse= false
Vue.prototype.isCollapse = Collapse
diff --git a/fuintAdmin/src/store/modules/user.js b/fuintAdmin/src/store/modules/user.js
index d602e726a..95cd0c1c6 100644
--- a/fuintAdmin/src/store/modules/user.js
+++ b/fuintAdmin/src/store/modules/user.js
@@ -55,6 +55,12 @@ const user = {
return new Promise((resolve, reject) => {
login(username, password, captchaCode, uuid).then(res => {
console.log("user_58",res.data)
+
+ // dutyRoleCode
+ Cookies.remove('DUTY_ROLE_CODE');
+
+ Cookies.set("DUTY_ROLE_CODE", res.data.dutyRoleCode);
+
if (res.data.ownerId == "3") {
setToken(res.data.token)
commit('SET_TOKEN', res.data.token)
diff --git a/fuintAdmin/src/views/duty/index.vue b/fuintAdmin/src/views/duty/index.vue
index 52b23d22a..fb39b1e7b 100644
--- a/fuintAdmin/src/views/duty/index.vue
+++ b/fuintAdmin/src/views/duty/index.vue
@@ -35,7 +35,7 @@
type="primary"
icon="el-icon-plus"
@click="handleAdd1"
-
+ v-hasPermi="['duty:index:add']"
>新增
@@ -76,12 +76,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate1(scope.row)"
+ v-hasPermi="['duty:index:update']"
>修改
删除
diff --git a/fuintAdmin/src/views/login.vue b/fuintAdmin/src/views/login.vue
index 38d39e9db..b0f001c4f 100644
--- a/fuintAdmin/src/views/login.vue
+++ b/fuintAdmin/src/views/login.vue
@@ -279,12 +279,20 @@ export default {
Cookies.remove('rememberMe');
}
app.$store.dispatch("Login", this.loginForm).then(() => {
- if (Cookies.get("IS_ZT_LOGIN")) {
- location.replace(this.ztUrl+"resource_oilbank");
+ // Cookies.set("DUTY_ROLE_CODE", res.data.dutyRoleCode);
+
+ if (Cookies.get("DUTY_ROLE_CODE") && Cookies.get("DUTY_ROLE_CODE") == 2) {
+ console.log("123")
+ location.replace(this.pcUrl+"homeindex");
}else {
- app.$router.push({ path: this.redirect || "/" }).catch(()=>{});
+ if (Cookies.get("IS_ZT_LOGIN")) {
+ location.replace(this.ztUrl+"resource_oilbank");
+ }else {
+ app.$router.push({ path: this.redirect || "/" }).catch(()=>{});
+ }
}
+
}).catch(() => {
app.loading = false;
// if (app.captchaOnOff) {
diff --git a/fuintAdmin/src/views/staff/list.vue b/fuintAdmin/src/views/staff/list.vue
index 3623068ae..e6a231a59 100644
--- a/fuintAdmin/src/views/staff/list.vue
+++ b/fuintAdmin/src/views/staff/list.vue
@@ -52,6 +52,7 @@
type="primary"
icon="el-icon-plus"
@click="handleAdd"
+ v-hasPermi="['staff:list:save']"
>新增员工
@@ -109,6 +110,7 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
+ v-hasPermi="['staff:list:update']"
>修改
删除
diff --git a/fuintAdmin/src/views/staff/storeInfo/index.vue b/fuintAdmin/src/views/staff/storeInfo/index.vue
index e1056c970..6ee38046c 100644
--- a/fuintAdmin/src/views/staff/storeInfo/index.vue
+++ b/fuintAdmin/src/views/staff/storeInfo/index.vue
@@ -44,7 +44,7 @@
- 保存信息
+ 保存信息
diff --git a/fuintAdmin/src/views/staff/tag/list.vue b/fuintAdmin/src/views/staff/tag/list.vue
index abb50c133..a0c6f8044 100644
--- a/fuintAdmin/src/views/staff/tag/list.vue
+++ b/fuintAdmin/src/views/staff/tag/list.vue
@@ -76,6 +76,7 @@
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
+ v-hasPermi="['staff:tag:list:del']"
>删除
diff --git a/fuintAdmin/src/views/staffCommission/staffCommission.vue b/fuintAdmin/src/views/staffCommission/staffCommission.vue
index fa4bb581e..730dd8a20 100644
--- a/fuintAdmin/src/views/staffCommission/staffCommission.vue
+++ b/fuintAdmin/src/views/staffCommission/staffCommission.vue
@@ -132,6 +132,7 @@
type="primary"
icon="el-icon-plus"
@click="handleAdd"
+ v-hasPermi="['staffCommission:staffCommission\n']"
>新增提成方案