Commit b5865547 authored by 柳 佳乐's avatar 柳 佳乐
Browse files

20221123

parent d4ec6684
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
} else { } else {
this.$message({ this.$message({
type: "error", type: "error",
message: res.data, message: res.msg,
}); });
this.loading = false; this.loading = false;
} }
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
deleteMenu(data.id).then(res => { deleteMenu(data.id).then(res => {
if (res.status == 'success') { if (res.success) {
this.getMenuData() this.getMenuData()
this.$message({ this.$message({
type: 'success', type: 'success',
......
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
}) })
.then(() => { .then(() => {
deleteRole(row.rlId).then((res) => { deleteRole(row.rlId).then((res) => {
if (res.status == 'success') { if (res.success) {
this.$message.success("删除成功") this.$message.success("删除成功")
this.rolesList.splice($index, 1) this.rolesList.splice($index, 1)
} else { } else {
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
//获取员工 //获取员工
getSatff(){ getSatff(){
secletStaff(this.staffQurey).then((res)=>{ secletStaff(this.staffQurey).then((res)=>{
if(res.status == 'success'){ if(res.success){
// console.log(res.status) // console.log(res.status)
this.staffList = res.data.list this.staffList = res.data.list
this.total = res.data.total this.total = res.data.total
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
} }
console.log(param) console.log(param)
updateRole(param).then(res=>{ updateRole(param).then(res=>{
if(res.status == 'success'){ if(res.successs){
this.getSatff() this.getSatff()
}else{ }else{
this.$message.error(res.data) this.$message.error(res.data)
......
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