Skip to content

Commit

Permalink
更新首页布局
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed May 29, 2018
1 parent 4e9fbbc commit 6da627f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config/dev.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ var prodEnv = require('./prod.env')

module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"http://localhost:26958/api"',
BASE_API: '"http://172.20.10.3:26958/api"',
})
27 changes: 11 additions & 16 deletions src/views/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
<el-col :span="6" :offset="1">
<el-card :body-style="{ padding: '15px 0px',height:'300px'}">
<img src="https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/100/h/100" style="border-radius:80px" >

<br><br>
<div class="dashboard-text">人事考勤管理系统</div>
<div class="bottom clearfix">
<!-- <div class='dashboard-text'>{{name}} -->
<!-- <span v-for='role in roles' :key='role'>{{role}}</span> -->
<!-- </div> -->

<time class="time dashboard-text">{{ currentDate }}</time>
<span style="display:block;">{{ currentDate }}</span>
</div>

</el-card>
Expand All @@ -25,7 +21,6 @@
<img src="https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/100/h/100" style="border-radius:80px" >

<div class="dashboard-text">
<span style="display:block;">Anshare Vue Admin</span>
<span style="display:block;">Author:BoBo</span>
<span style="display:block;">Follow me on GitHub</span>

Expand Down Expand Up @@ -138,18 +133,18 @@ export default {
created() {
this.GetNowTime();
this.GetReport();
console.log("created!")
console.log("created!");
// this.GetMusic()
},
beforeCreate(){
console.log("beforeCreate")
beforeCreate() {
console.log("beforeCreate");
},
mounted(){
console.log("mounted!")
mounted() {
console.log("mounted!");
},
beforeMount(){
console.log("beforemounted")
beforeMount() {
console.log("beforemounted");
}
};
</script>
Expand All @@ -168,7 +163,7 @@ export default {
}
&-text {
text-align: center;
margin: 30px;
margin: 0 30px 30px 30px;
font-size: 20px;
line-height: 30px;
Expand Down

0 comments on commit 6da627f

Please sign in to comment.