Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
b0965653
Commit
b0965653
authored
Oct 10, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除不必要的代码
parent
e472f625
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
116 additions
and
176 deletions
+116
-176
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+7
-11
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+8
-12
ruoyi-ui/src/views/monitor/job/index.vue
ruoyi-ui/src/views/monitor/job/index.vue
+9
-13
ruoyi-ui/src/views/monitor/job/log.vue
ruoyi-ui/src/views/monitor/job/log.vue
+3
-3
ruoyi-ui/src/views/monitor/logininfor/index.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
+3
-3
ruoyi-ui/src/views/monitor/online/index.vue
ruoyi-ui/src/views/monitor/online/index.vue
+1
-1
ruoyi-ui/src/views/monitor/operlog/index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
+3
-3
ruoyi-ui/src/views/system/config/index.vue
ruoyi-ui/src/views/system/config/index.vue
+9
-15
ruoyi-ui/src/views/system/dept/index.vue
ruoyi-ui/src/views/system/dept/index.vue
+7
-11
ruoyi-ui/src/views/system/dict/data.vue
ruoyi-ui/src/views/system/dict/data.vue
+8
-12
ruoyi-ui/src/views/system/dict/index.vue
ruoyi-ui/src/views/system/dict/index.vue
+8
-12
ruoyi-ui/src/views/system/menu/index.vue
ruoyi-ui/src/views/system/menu/index.vue
+7
-11
ruoyi-ui/src/views/system/notice/index.vue
ruoyi-ui/src/views/system/notice/index.vue
+7
-11
ruoyi-ui/src/views/system/post/index.vue
ruoyi-ui/src/views/system/post/index.vue
+8
-12
ruoyi-ui/src/views/system/role/index.vue
ruoyi-ui/src/views/system/role/index.vue
+11
-17
ruoyi-ui/src/views/system/user/index.vue
ruoyi-ui/src/views/system/user/index.vue
+9
-15
ruoyi-ui/src/views/system/user/profile/resetPwd.vue
ruoyi-ui/src/views/system/user/profile/resetPwd.vue
+1
-3
ruoyi-ui/src/views/system/user/profile/userAvatar.vue
ruoyi-ui/src/views/system/user/profile/userAvatar.vue
+4
-6
ruoyi-ui/src/views/system/user/profile/userInfo.vue
ruoyi-ui/src/views/system/user/profile/userInfo.vue
+1
-3
ruoyi-ui/src/views/tool/gen/index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+2
-2
No files found.
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
View file @
b0965653
...
...
@@ -420,19 +420,15 @@ export default {
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
}
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
}
this.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
...
...
@@ -449,7 +445,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function() {});
})
}
}
};
...
...
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
View file @
b0965653
...
...
@@ -436,19 +436,15 @@ export default {
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
}
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
}
this.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
...
...
@@ -466,7 +462,7 @@ export default {
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function() {});
})
},
/** 导出按钮操作 */
handleExport() {
...
...
@@ -479,7 +475,7 @@ export default {
return export${BusinessName}(queryParams);
}).then(response => {
this.download(response.msg);
})
.catch(function() {});
})
}
}
};
...
...
ruoyi-ui/src/views/monitor/job/index.vue
View file @
b0965653
...
...
@@ -402,7 +402,7 @@ export default {
return
runJob
(
row
.
jobId
,
row
.
jobGroup
);
}).
then
(()
=>
{
this
.
msgSuccess
(
"
执行成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 任务详细信息 */
handleView
(
row
)
{
...
...
@@ -437,19 +437,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
jobId
!=
undefined
)
{
updateJob
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addJob
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -467,7 +463,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -480,7 +476,7 @@ export default {
return
exportJob
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/monitor/job/log.vue
View file @
b0965653
...
...
@@ -263,7 +263,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 清空按钮操作 */
handleClean
()
{
...
...
@@ -276,7 +276,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
清空成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -289,7 +289,7 @@ export default {
return
exportJobLog
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/monitor/logininfor/index.vue
View file @
b0965653
...
...
@@ -196,7 +196,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 清空按钮操作 */
handleClean
()
{
...
...
@@ -209,7 +209,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
清空成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -222,7 +222,7 @@ export default {
return
exportLogininfor
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/monitor/online/index.vue
View file @
b0965653
...
...
@@ -120,7 +120,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
强退成功
"
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/monitor/operlog/index.vue
View file @
b0965653
...
...
@@ -284,7 +284,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 清空按钮操作 */
handleClean
()
{
...
...
@@ -297,7 +297,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
清空成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -310,7 +310,7 @@ export default {
return
exportOperlog
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/system/config/index.vue
View file @
b0965653
...
...
@@ -304,19 +304,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
configId
!=
undefined
)
{
updateConfig
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addConfig
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -334,7 +330,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -347,14 +343,12 @@ export default {
return
exportConfig
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
},
/** 清理缓存按钮操作 */
handleClearCache
()
{
clearCache
().
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
清理成功
"
);
}
this
.
msgSuccess
(
"
清理成功
"
);
});
}
}
...
...
ruoyi-ui/src/views/system/dept/index.vue
View file @
b0965653
...
...
@@ -284,19 +284,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
deptId
!=
undefined
)
{
updateDept
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addDept
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -313,7 +309,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/system/dict/data.vue
View file @
b0965653
...
...
@@ -304,19 +304,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
dictCode
!=
undefined
)
{
updateData
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addData
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -334,7 +330,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -347,7 +343,7 @@ export default {
return
exportData
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/system/dict/index.vue
View file @
b0965653
...
...
@@ -308,19 +308,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
dictId
!=
undefined
)
{
updateType
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addType
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -338,7 +334,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -351,7 +347,7 @@ export default {
return
exportType
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
},
/** 清理缓存按钮操作 */
handleClearCache
()
{
...
...
ruoyi-ui/src/views/system/menu/index.vue
View file @
b0965653
...
...
@@ -367,19 +367,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
menuId
!=
undefined
)
{
updateMenu
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addMenu
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -396,7 +392,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/system/notice/index.vue
View file @
b0965653
...
...
@@ -307,19 +307,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
noticeId
!=
undefined
)
{
updateNotice
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addNotice
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
...
...
@@ -337,7 +333,7 @@ export default {
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
}
)
.
catch
(
function
()
{
}
);
}
)
}
}
}
;
...
...
ruoyi-ui/src/views/system/post/index.vue
View file @
b0965653
...
...
@@ -276,19 +276,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
postId
!=
undefined
)
{
updatePost
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addPost
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -306,7 +302,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -319,7 +315,7 @@ export default {
return
exportPost
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/system/role/index.vue
View file @
b0965653
...
...
@@ -537,20 +537,16 @@ export default {
if
(
this
.
form
.
roleId
!=
undefined
)
{
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
();
updateRole
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
();
addRole
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -561,11 +557,9 @@ export default {
if
(
this
.
form
.
roleId
!=
undefined
)
{
this
.
form
.
deptIds
=
this
.
getDeptAllCheckedKeys
();
dataScope
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
openDataScope
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
openDataScope
=
false
;
this
.
getList
();
});
}
},
...
...
@@ -581,7 +575,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -594,7 +588,7 @@ export default {
return
exportRole
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
ruoyi-ui/src/views/system/user/index.vue
View file @
b0965653
...
...
@@ -582,9 +582,7 @@ export default {
cancelButtonText
:
"
取消
"
}).
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功,新密码是:
"
+
value
);
}
this
.
msgSuccess
(
"
修改成功,新密码是:
"
+
value
);
});
}).
catch
(()
=>
{});
},
...
...
@@ -594,19 +592,15 @@ export default {
if
(
valid
)
{
if
(
this
.
form
.
userId
!=
undefined
)
{
updateUser
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addUser
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
}
this
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
...
...
@@ -624,7 +618,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
@@ -637,7 +631,7 @@ export default {
return
exportUser
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
})
.
catch
(
function
()
{});
})
},
/** 导入按钮操作 */
handleImport
()
{
...
...
ruoyi-ui/src/views/system/user/profile/resetPwd.vue
View file @
b0965653
...
...
@@ -57,9 +57,7 @@ export default {
if
(
valid
)
{
updateUserPwd
(
this
.
user
.
oldPassword
,
this
.
user
.
newPassword
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
}
this
.
msgSuccess
(
"
修改成功
"
);
}
);
}
...
...
ruoyi-ui/src/views/system/user/profile/userAvatar.vue
View file @
b0965653
...
...
@@ -125,12 +125,10 @@ export default {
let
formData
=
new
FormData
();
formData
.
append
(
"
avatarfile
"
,
data
);
uploadAvatar
(
formData
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
open
=
false
;
this
.
options
.
img
=
process
.
env
.
VUE_APP_BASE_API
+
response
.
imgUrl
;
store
.
commit
(
'
SET_AVATAR
'
,
this
.
options
.
img
);
this
.
msgSuccess
(
"
修改成功
"
);
}
this
.
open
=
false
;
this
.
options
.
img
=
process
.
env
.
VUE_APP_BASE_API
+
response
.
imgUrl
;
store
.
commit
(
'
SET_AVATAR
'
,
this
.
options
.
img
);
this
.
msgSuccess
(
"
修改成功
"
);
this
.
visible
=
false
;
});
});
...
...
ruoyi-ui/src/views/system/user/profile/userInfo.vue
View file @
b0965653
...
...
@@ -62,9 +62,7 @@ export default {
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
if
(
valid
)
{
updateUserProfile
(
this
.
user
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"
修改成功
"
);
}
this
.
msgSuccess
(
"
修改成功
"
);
});
}
});
...
...
ruoyi-ui/src/views/tool/gen/index.vue
View file @
b0965653
...
...
@@ -270,7 +270,7 @@ export default {
return
synchDb
(
tableName
);
}).
then
(()
=>
{
this
.
msgSuccess
(
"
同步成功
"
);
})
.
catch
(
function
()
{});
})
},
/** 打开导入表弹窗 */
openImportTable
()
{
...
...
@@ -313,7 +313,7 @@ export default {
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"
删除成功
"
);
})
.
catch
(
function
()
{});
})
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment