no message
This commit is contained in:
parent
2f368e631a
commit
24683adc2e
@ -156,11 +156,11 @@
|
||||
xupdate(key, name, type){
|
||||
this.updateKey = key;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.xupdate.open().getComponentType(type).setConfig({name:name, remoteurl:'system/table/getUpdate?name='+key+'&token='+this.token});
|
||||
this.$refs.xupdate.open().getComponentType(type).setConfig({name:name, remoteurl:'table/getUpdate?name='+key+'&token='+this.token});
|
||||
})
|
||||
},
|
||||
loaddata(){
|
||||
this.$http.post('system/user/get',{uid: this.userData.uid, type:this.type}).then((res) => {
|
||||
this.$http.post('user/index/get',{uid: this.userData.uid, type:this.type}).then((res) => {
|
||||
if (res.code==200) {
|
||||
Object.assign(this.$data, res.data);
|
||||
return false;
|
||||
@ -169,7 +169,7 @@
|
||||
});
|
||||
},
|
||||
onRemove(){
|
||||
this.$http.post('app/avatar/delete',{token: this.token}).then((res) => {
|
||||
this.$http.post('avatar/index/delete',{token: this.token}).then((res) => {
|
||||
if (res.code==200) {
|
||||
this.userData.avatar = '';
|
||||
this.$refs.uploader.clearFiles();
|
||||
|
@ -145,7 +145,7 @@
|
||||
//获取组织
|
||||
async getGroup(){
|
||||
this.showGrouploading = true;
|
||||
var res = await this.$http.get('system/user/groupList');
|
||||
var res = await this.$http.get('user/group/lists');
|
||||
this.showGrouploading = false;
|
||||
var allNode = {[config.group.props.key]: '', [config.group.props.label]: '所有'}
|
||||
res.data.unshift(allNode);
|
||||
@ -160,7 +160,7 @@
|
||||
[config.user.request.page]: this.currentPage,
|
||||
[config.user.request.limit]: this.limit
|
||||
}
|
||||
var res = await this.$http.get('system/user/userList', params);
|
||||
var res = await this.$http.get('user/index/lists', params);
|
||||
this.showUserloading = false;
|
||||
this.user = config.user.parseData(res).rows;
|
||||
this.total = config.user.parseData(res).total || 0;
|
||||
@ -169,7 +169,7 @@
|
||||
//获取角色
|
||||
async getRole(){
|
||||
this.showGrouploading = true;
|
||||
var res = await this.$http.get('system/user/roleList');
|
||||
var res = await this.$http.get('user/group/lists');
|
||||
this.showGrouploading = false;
|
||||
this.role = config.role.parseData(res).rows
|
||||
},
|
||||
|
@ -110,7 +110,7 @@
|
||||
|
||||
// 提交到远程
|
||||
|
||||
this.$http.post('system/user/commonlyusedSubmit', {data:myModsName}).then((res) => {
|
||||
this.$http.post('user/index/commonlyusedSubmit', {data:myModsName}).then((res) => {
|
||||
if (res.code == 200 ) {
|
||||
this.$tool.data.set('commonlyused', myModsName)
|
||||
this.$message.success(res.message || "操作成功")
|
||||
|
@ -65,8 +65,8 @@
|
||||
|
||||
//获取token
|
||||
var user = await this.$api.auth.token.post(data)
|
||||
this.islogin = false
|
||||
if(user.code !== 200){
|
||||
this.islogin = false
|
||||
this.$message.warning(user.message)
|
||||
return false
|
||||
}
|
||||
|
@ -74,7 +74,7 @@
|
||||
//加载树数据
|
||||
async getMenu(){
|
||||
this.menuloading = true
|
||||
var res = await this.$http.get('system/menu');
|
||||
var res = await this.$http.get('menu');
|
||||
this.menuloading = false
|
||||
this.menuList = res.data;
|
||||
},
|
||||
@ -109,7 +109,7 @@
|
||||
// let obj = Object.assign({}, draggingNode.data, {parentid:dropNode.data.id});
|
||||
// delete obj.children;
|
||||
|
||||
var res = await this.$http.post('system/menu/update', {id:draggingNode.data.id,ids:ids});
|
||||
var res = await this.$http.post('menu/update', {id:draggingNode.data.id,ids:ids});
|
||||
if(res.code !== 200){
|
||||
this.$message.warning(res.message);
|
||||
return false;
|
||||
@ -138,7 +138,7 @@
|
||||
}
|
||||
}
|
||||
this.menuloading = true
|
||||
var res = await this.$http.post('system/menu/submit',newMenuData)
|
||||
var res = await this.$http.post('menu/submit',newMenuData)
|
||||
this.menuloading = false
|
||||
|
||||
if(res.code !== 200){
|
||||
@ -174,7 +174,7 @@
|
||||
var reqData = {
|
||||
ids: CheckedNodes.map(item => item.id)
|
||||
}
|
||||
var res = await this.$http.post('system/menu/delete',reqData)
|
||||
var res = await this.$http.post('menu/delete',reqData)
|
||||
this.menuloading = false
|
||||
|
||||
if(res.code == 200){
|
||||
|
@ -106,7 +106,7 @@
|
||||
render(){
|
||||
this.loading = true;
|
||||
setTimeout(async ()=>{
|
||||
var res = await this.$http.get('system/setting/get');
|
||||
var res = await this.$http.get('setting/get');
|
||||
if (res.code!=200) {
|
||||
this.$message.warning(res.message)
|
||||
return false;
|
||||
@ -125,7 +125,7 @@
|
||||
},
|
||||
async submit(){
|
||||
this.submitloading = true;
|
||||
var res = this.$http.post('system/setting/submit', {info:this.info,extend:this.extend});
|
||||
var res = this.$http.post('setting/submit', {info:this.info,extend:this.extend});
|
||||
this.submitloading = false;
|
||||
this.$message.success(res.message || "操作成功")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user