mirror of https://github.com/jeecgboot/jeecg-boot
JeecgBoot V2.0版本发布| 解决用户保存资源找不到问题
parent
135db2251c
commit
f1aa19a9bb
|
@ -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中的数据更新一下
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue