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

权限管理fixed

parent 56464e59
This diff is collapsed.
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<script> <script>
import uploadFile from "@/components/upload_file"; import uploadFile from "@/components/upload_file";
import { getRole } from "@/utils/common"; import { getRole, formatDateTime_date } from "@/utils/common";
export default { export default {
props: {}, props: {},
components: { components: {
...@@ -162,17 +162,12 @@ export default { ...@@ -162,17 +162,12 @@ export default {
} }
}, },
get_now_user() { get_now_user() {
this.$http let userName = this.$store.state.userInfo.user_name;
.get(`/apaas/backmgt/user/getCurrentUser`)
.then((response) => {
console.log(response);
let data = response.data.data;
this.form = { this.form = {
person: data.user_name, person: userName,
date: data.create_date.replace("T", " ").replace("Z", " "), date: formatDateTime_date(new Date()),
}; };
})
.catch((response) => {});
}, },
get_user() { get_user() {
this.$http this.$http
......
This diff is collapsed.
...@@ -10,7 +10,6 @@ function getRole(){ ...@@ -10,7 +10,6 @@ function getRole(){
//时间戳转时间格式 //时间戳转时间格式
var formatDateTime_date = function (date) { var formatDateTime_date = function (date) {
debugger
var y = date.getFullYear(); var y = date.getFullYear();
var M = date.getMonth() + 1; var M = date.getMonth() + 1;
M = M < 10 ? ('0' + M) : M; 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