| | |
| | | </template> |
| | | |
| | | <script> |
| | | import Watermark from "./warterMarkVUE" |
| | | import { getStore } from "@/util/store" |
| | | |
| | | export default { |
| | | name: "app", |
| | | data () { |
| | | return { |
| | | globalUserInfo: getStore({ name: "userInfo" }), |
| | | } |
| | | }, |
| | | watch: {}, |
| | | created () { |
| | | Watermark.set("饶城格格通" + ' ' + this.globalUserInfo.user_name + ' ' + this.getTime()) |
| | | }, |
| | | mounted () { |
| | | }, |
| | | methods: { |
| | | getTime () { |
| | | var date = new Date() |
| | | var Y = date.getFullYear() + '-' |
| | | var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-' |
| | | var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ' |
| | | var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':' |
| | | var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':' |
| | | var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()) |
| | | return Y + M + D + h + m + s |
| | | }, |
| | | }, |
| | | computed: {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |