Commit 35440dce authored by 徐一鸣's avatar 徐一鸣

权限管理fixed

parent 56464e59
This diff is collapsed.
......@@ -65,7 +65,7 @@
<script>
import uploadFile from "@/components/upload_file";
import { getRole } from "@/utils/common";
import { getRole, formatDateTime_date } from "@/utils/common";
export default {
props: {},
components: {
......@@ -162,17 +162,12 @@ export default {
}
},
get_now_user() {
this.$http
.get(`/apaas/backmgt/user/getCurrentUser`)
.then((response) => {
console.log(response);
let data = response.data.data;
this.form = {
person: data.user_name,
date: data.create_date.replace("T", " ").replace("Z", " "),
};
})
.catch((response) => {});
let userName = this.$store.state.userInfo.user_name;
this.form = {
person: userName,
date: formatDateTime_date(new Date()),
};
},
get_user() {
this.$http
......
This diff is collapsed.
......@@ -10,7 +10,6 @@ function getRole(){
//时间戳转时间格式
var formatDateTime_date = function (date) {
debugger
var y = date.getFullYear();
var M = date.getMonth() + 1;
M = M < 10 ? ('0' + M) : M;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment