Commit c7a4972b by 张超军

修改登录头

parent 135a9421
File added
......@@ -772,7 +772,7 @@ export default {
searchUser() {
let self = this;
this.$axios
.get("/system/roles")
.get("/security/roles")
.then((res) => {
if (res.data.code == 200 && res.data.detail.length > 0) {
let result = res.data.detail;
......@@ -943,7 +943,7 @@ export default {
this.$refs.addFormParams.validate((valid) => {
if (valid) {
this.$axios
.post("/system/user-groups", this.addFormParams)
.post("/security/user-groups", this.addFormParams)
.then((res) => {
if (res.data.code == 201) {
setTimeout(() => {
......@@ -974,7 +974,7 @@ export default {
console.info(valid);
if (valid) {
this.$axios
.put("/system/user-groups", this.editFormParams)
.put("/security/user-groups", this.editFormParams)
.then((res) => {
if (res.data.code == 200) {
setTimeout(() => {
......@@ -1030,7 +1030,7 @@ export default {
// 搜索
search() {
console.info("搜索用户列表");
this.$axios.get("/system/user-groups").then((res) => {
this.$axios.get("/security/user-groups").then((res) => {
if (res.data.code == "200") {
this.tableData = res.data.detail;
}
......
......@@ -652,7 +652,7 @@ export default {
// 获取用户信息
searchUser() {
console.info("搜索用户列表");
this.$axios.get("/system/users").then((res) => {
this.$axios.get("/security/users").then((res) => {
if (res.data.code == 200) {
this.userTableData = res.data.detail;
}
......@@ -692,7 +692,7 @@ export default {
// 获取用户组信息
searchGroup() {
this.$axios.get("/system/user-groups").then((res) => {
this.$axios.get("/security/user-groups").then((res) => {
if (res.data.code == 200) {
this.groupTableData = res.data.detail;
}
......
......@@ -401,7 +401,7 @@ export default {
methods: {
// 获取权限列表
getPermissionDataLists() {
this.$axios.get("/system/permissions").then((res) => {
this.$axios.get("/security/permissions").then((res) => {
if (res.data.code == 200 && res.data.detail.length > 0) {
let result = res.data.detail;
var arr = [];
......@@ -490,7 +490,7 @@ export default {
}
this.$axios({
method: "post",
url: "/system/roles",
url: "/security/roles",
headers: {
"Content-Type": "application/json;charset=UTF-8",
},
......@@ -516,7 +516,7 @@ export default {
// 获取角色列表 和 角色权限列表
search() {
this.$axios
.get("/system/roles")
.get("/security/roles")
.then((res) => {
if (res.data.code == "200" && res.data.detail.length > 0) {
let result = res.data.detail;
......
......@@ -736,7 +736,7 @@ export default {
console.log(valid);
if (valid) {
this.$axios
.post("/system/users", this.addFormParams)
.post("/security/users", this.addFormParams)
.then((res) => {
if (res.data.code == 201) {
setTimeout(() => {
......@@ -783,7 +783,7 @@ export default {
this.$refs.editFormParams.validate((valid) => {
console.log(valid);
if (valid) {
this.$axios.put("/system/users", this.editFormParams).then((res) => {
this.$axios.put("/security/users", this.editFormParams).then((res) => {
if (res.data.code == 200) {
setTimeout(() => {
this.$message.success("修改成功");
......@@ -825,7 +825,7 @@ export default {
},
search() {
console.info("搜索用户列表");
this.$axios.get("/system/users").then((res) => {
this.$axios.get("/security/users").then((res) => {
if (res.data.code == 200) {
this.tableData = res.data.detail;
}
......@@ -891,7 +891,7 @@ export default {
// 人员信息
getPersonInfor(id) {
this.loading = true;
this.$axios.get("/system/users/" + id, { loading: false }).then((res) => {
this.$axios.get("/security/users/" + id, { loading: false }).then((res) => {
this.loading = false;
if (res.data) {
let result = res.data;
......
......@@ -408,7 +408,7 @@ export default {
},
personInfor() {
let self = this;
this.$axios.get("/system/users/" + this.userID).then((res) => {
this.$axios.get("/security/users/" + this.userID).then((res) => {
if (res.data) {
let result = res.data;
if (result.status == "1") {
......@@ -529,7 +529,7 @@ export default {
// 获取权限列表
getPermissionDataLists() {
this.$axios.get("/system/permissions").then((res) => {
this.$axios.get("/security/permissions").then((res) => {
if (res.data.code == 200 && res.data.detail.length > 0) {
let result = res.data.detail;
var arr = [];
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-24 18:33:09
* @LastEditTime: 2021-11-24 18:43:52
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
......@@ -98,7 +98,7 @@ module.exports = {
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
// target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390/", // 湖南-线上
target: "http://www.meetfood.cn:2390/", // 湖南-线上
ws: true,
changeOrigin: true,
......@@ -115,13 +115,23 @@ module.exports = {
"^/login": ""
}
},
"/system": {
target: "http://192.168.128.106:8765/security", // 湖南-王
// "/system": {
// target: "http://192.168.128.106:8765/security", // 湖南-王
// // target: "http://www.meetfood.cn:2390/system", // 湖南-王
// ws: true,
// changeOrigin: true,
// pathRewrite: {
// "^/system": ""
// }
// },
"/security": {
target: "http://192.168.128.106:8765", // 湖南-王
// target: "http://www.meetfood.cn:2390/system", // 湖南-王
ws: true,
changeOrigin: true,
pathRewrite: {
"^/system": ""
"^/security": ""
}
}
// 阿里
......
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