Commit b477b1d4 by zhao_shaonan

优化样式

parent 88c3566b
......@@ -237,7 +237,7 @@ img {
color:#fff;
font-size:$header-fontSize;
font-weight: 600;
text-indent: 80px;
text-indent: 44px;
position: fixed;
top:0px;
width:100%;
......
<template>
<div class="common-lay">
<el-header>title</el-header>
<el-container>
<el-aside width="200px">
<el-menu default-active="2"
class="el-menu-vertical-demo"
@open="handleOpen"
@close="handleClose"
v-for="item in menuList"
:key="item.id"
router>
<el-submenu :index="item.id">
<template slot="title">
<i class="el-icon-location"></i>
<span>{{item.name}}</span>
</template>
<el-menu-item :index="subitem.path"
v-for="subitem in item.children"
:key="subitem.id">
<template slot="title">
<i class="el-icon-menu"></i>
<span>{{subitem.name}}</span>
</template>
</el-menu-item>
</el-submenu>
</el-menu>
</el-aside>
<el-main>
<router-view />
</el-main>
......
<template>
<div class="home"
<!--<div class="home"
v-loading="loading">
<img :src="captcha.img ? 'captcha.img' : defaultGoodsImage" />
<div class="demo"
......@@ -25,19 +25,20 @@
v-if="userAuth < 6">定时任务补偿</el-tab-pane>
</el-tabs>
<span>{{ time }}</span>
</div>-->
<div style="margin:20px 0 0 50px">
<el-button type="primary" @click="toJccx">基础查询</el-button>
<el-button type="primary" @click="toRzcx">日志查询</el-button>
</div>
</template>
<script>
import { Home, test, test1, js_test } from "@/api/home.js";
import { mapGetters } from "vuex";
import NsCode from "@c/code.vue"
export default {
name: "Home",
components: {
NsCode
},
data () {
components: {},
data() {
return {
loading: false,
tokeb: "",
......@@ -47,78 +48,84 @@ export default {
},
value: "",
activeName: "",
options: [{
label: '一级 1',
id: '1',
children: [{
label: '二级 1-1',
id: '11',
children: [{
label: '1',
id: '111'
}]
}]
}],
isMultiple: true,
time: ''
time: ""
};
},
created () {
created() {
this.getHome();
this.getH();
this.getT();
this.time = this.$util.timeStampTurnTime('1603697627061');
this.ttt()
this.time = this.$util.timeStampTurnTime("1603697627061");
this.ttt();
},
computed: {
...mapGetters(["defaultGoodsImage", "userAuth"])
},
methods: {
ttt () {
js_test("test.json").then(res => {
toJccx() {
let routeData = this.$router.resolve({
path: "/jccxIndex"
});
window.open(routeData.href, "_blank");
},
toRzcx() {
let routeData = this.$router.resolve({
path: "/rzcxIndex"
});
window.open(routeData.href, "_blank");
},
ttt() {
js_test("test.json")
.then(res => {
console.log(111);
console.log(res);
}).catch(err => {
console.log(err);
})
.catch(err => {
console.log(err);
});
},
getHome () {
getHome() {
Home({
object: "粤sty989"
}).then(res => {
})
.then(res => {
console.log(res);
this.loading = false
}).catch(err => {
this.loading = false
this.loading = false;
})
.catch(err => {
this.loading = false;
console.log(err);
});
},
getH () {
getH() {
test({
object: "粤sty989"
}).then(res => {
})
.then(res => {
console.log(res);
}).catch(err => {
})
.catch(err => {
console.log(err);
});
},
getT () {
getT() {
test1({
zjhm: 412721197608203413
}).then(res => {
console.log(res);
});
},
toBar () {
toBar() {
this.$router.push("/asdw");
},
toLogin () {
toLogin() {
this.$router.push("/test");
},
search (test) {
search(test) {
console.log(test);
},
handleClick (tab, event) {
handleClick(tab, event) {
console.log(tab, event);
}
}
......
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