Browse Source

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

pull/63/head^2
zhangdaihao 6 years ago
parent
commit
f1aa19a9bb
  1. 11
      ant-design-jeecg-vue/src/views/system/UserList.vue
  2. 18
      ant-design-jeecg-vue/src/views/system/modules/UserModal.vue

11
ant-design-jeecg-vue/src/views/system/UserList.vue

@ -65,7 +65,6 @@
<!-- 操作按钮区域 -->
<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="handleSyncUser" type="primary" icon="plus">重新同步流程用户</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-button type="primary" icon="import">导入</a-button>
@ -345,16 +344,6 @@
this.$refs.sysUserAgentModal.agentSettings(username);
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() {
//TODO 密码修改完成 不需要刷新页面,可以把datasource中的数据更新一下
}

18
ant-design-jeecg-vue/src/views/system/modules/UserModal.vue

@ -346,8 +346,6 @@
if(res.success){
that.$message.success(res.message);
that.$emit('ok');
//同步用户到工作流
this.handleSyncUser(this.model.username);
}else{
that.$message.warning(res.message);
}
@ -389,8 +387,6 @@
if (res.success) {
that.$message.success(res.message);
that.$emit('ok');
//同步用户到工作流
this.handleSyncUser(this.model.username);
} else {
that.$message.warning(res.message);
}
@ -435,8 +431,6 @@
if(res.success){
that.$message.success(res.message);
that.$emit('ok');
//同步用户到工作流
this.handleSyncUser(this.model.username);
}else{
that.$message.warning(res.message);
}
@ -596,18 +590,6 @@
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>

Loading…
Cancel
Save