|
@@ -543,8 +543,13 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false
|
|
|
if(res.status===1){
|
|
|
- this.$message.success("修改成功")
|
|
|
- this.$emit("getInfo")
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ }).then(()=>{
|
|
|
+ this.$emit("getInfo")
|
|
|
+ });
|
|
|
}
|
|
|
}).catch((res) =>{
|
|
|
this.loading = false
|
|
@@ -556,7 +561,11 @@ export default {
|
|
|
},
|
|
|
// 取消 恢复到修改前状态
|
|
|
onCancel(formName){
|
|
|
- this.$refs[formName].resetFields();
|
|
|
+ if(formName==='managerForm'){
|
|
|
+ this.managerForm.is_manager = this.page==='editOrgPerson'?JSON.parse(JSON.stringify(this.info.is_manager)):"false"
|
|
|
+ }else{
|
|
|
+ this.$refs[formName].resetFields();
|
|
|
+ }
|
|
|
},
|
|
|
// 修改设置
|
|
|
handleSetting(flag){
|
|
@@ -630,7 +639,11 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false
|
|
|
if(res.status===1){
|
|
|
- this.$message.success("修改成功")
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
this.$emit("getInfo")
|
|
|
this.handleSetting('passwordFlag')
|
|
|
}
|
|
@@ -659,7 +672,11 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false
|
|
|
if(res.status===1){
|
|
|
- this.$message.success("修改成功")
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
this.$emit("getInfo")
|
|
|
this.handleSetting('phoneFlag')
|
|
|
this.phoneForm.oldPhone = JSON.parse(JSON.stringify(this.phoneForm.newPhone))
|
|
@@ -690,7 +707,11 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false
|
|
|
if(res.status===1){
|
|
|
- this.$message.success("修改成功")
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
this.$emit("getInfo")
|
|
|
this.handleSetting('emailFlag')
|
|
|
this.emailForm.email = JSON.parse(JSON.stringify(this.emailForm.newEmail))
|
|
@@ -742,7 +763,11 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false
|
|
|
if(res.status===1){
|
|
|
- this.$message.success("修改成功")
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
}
|
|
|
}).catch((res) =>{
|
|
|
this.loading = false
|
|
@@ -783,7 +808,11 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.loading = false
|
|
|
if(res.status===1){
|
|
|
- this.$message.success("修改成功")
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
}
|
|
|
}).catch((res) =>{
|
|
|
this.loading = false
|
|
@@ -802,7 +831,11 @@ export default {
|
|
|
data.is_pass = "false";
|
|
|
}
|
|
|
getLogin(Mname, data).then(res => {
|
|
|
- this.$message.success("操作成功");
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
this.$router.go(-1)
|
|
|
});
|
|
|
},
|