JeecgBoot V2.0版本发布| 解决用户保存资源找不到问题

pull/63/head^2
zhangdaihao 2019-05-20 12:52:28 +08:00
parent 135db2251c
commit f1aa19a9bb
2 changed files with 0 additions and 29 deletions

View File

@ -65,7 +65,6 @@
<!-- --> <!-- -->
<div class="table-operator" style="border-top: 5px"> <div class="table-operator" style="border-top: 5px">
<a-button @click="handleAdd" v-has="'user:add'" type="primary" icon="plus"></a-button> <a-button @click="handleAdd" v-has="'user:add'" type="primary" icon="plus"></a-button>
<a-button @click="handleSyncUser" type="primary" icon="plus"></a-button>
<a-button type="primary" icon="download" @click="handleExportXls('用户信息')"></a-button> <a-button type="primary" icon="download" @click="handleExportXls('用户信息')"></a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import"></a-button> <a-button type="primary" icon="import"></a-button>
@ -345,16 +344,6 @@
this.$refs.sysUserAgentModal.agentSettings(username); this.$refs.sysUserAgentModal.agentSettings(username);
this.$refs.sysUserAgentModal.title = "用户代理人设置"; this.$refs.sysUserAgentModal.title = "用户代理人设置";
}, },
handleSyncUser() {
var that = this;
putAction(that.url.syncUser, {}).then((res) => {
if (res.success) {
that.$message.success(res.message);
} else {
that.$message.warning(res.message);
}
})
},
passwordModalOk() { passwordModalOk() {
//TODO 密码修改完成 不需要刷新页面可以把datasource中的数据更新一下 //TODO 密码修改完成 不需要刷新页面可以把datasource中的数据更新一下
} }

View File

@ -346,8 +346,6 @@
if(res.success){ if(res.success){
that.$message.success(res.message); that.$message.success(res.message);
that.$emit('ok'); that.$emit('ok');
//同步用户到工作流
this.handleSyncUser(this.model.username);
}else{ }else{
that.$message.warning(res.message); that.$message.warning(res.message);
} }
@ -389,8 +387,6 @@
if (res.success) { if (res.success) {
that.$message.success(res.message); that.$message.success(res.message);
that.$emit('ok'); that.$emit('ok');
//同步用户到工作流
this.handleSyncUser(this.model.username);
} else { } else {
that.$message.warning(res.message); that.$message.warning(res.message);
} }
@ -435,8 +431,6 @@
if(res.success){ if(res.success){
that.$message.success(res.message); that.$message.success(res.message);
that.$emit('ok'); that.$emit('ok');
//同步用户到工作流
this.handleSyncUser(this.model.username);
}else{ }else{
that.$message.warning(res.message); that.$message.warning(res.message);
} }
@ -596,18 +590,6 @@
this.drawerWidth = 700; this.drawerWidth = 700;
} }
}, },
handleSyncUser(userName) {
try{
var that = this;
putAction(that.url.syncUserByUserName, {userName:userName}).then((res) => {
//if (res.success) {
//that.$message.success(res.message);
// } else {
//that.$message.warning(res.message);
//}
})
}catch (e){}
},
} }
} }
</script> </script>