Commit b477b1d4 by zhao_shaonan

优化样式

parent 88c3566b
...@@ -237,7 +237,7 @@ img { ...@@ -237,7 +237,7 @@ img {
color:#fff; color:#fff;
font-size:$header-fontSize; font-size:$header-fontSize;
font-weight: 600; font-weight: 600;
text-indent: 80px; text-indent: 44px;
position: fixed; position: fixed;
top:0px; top:0px;
width:100%; width:100%;
......
<template> <template>
<div class="common-lay"> <div class="common-lay">
<el-header>title</el-header>
<el-container> <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> <el-main>
<router-view /> <router-view />
</el-main> </el-main>
......
<template> <template>
<div class="home" <!--<div class="home"
v-loading="loading"> v-loading="loading">
<img :src="captcha.img ? 'captcha.img' : defaultGoodsImage" /> <img :src="captcha.img ? 'captcha.img' : defaultGoodsImage" />
<div class="demo" <div class="demo"
...@@ -25,19 +25,20 @@ ...@@ -25,19 +25,20 @@
v-if="userAuth < 6">定时任务补偿</el-tab-pane> v-if="userAuth < 6">定时任务补偿</el-tab-pane>
</el-tabs> </el-tabs>
<span>{{ time }}</span> <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> </div>
</template> </template>
<script> <script>
import { Home, test, test1, js_test } from "@/api/home.js"; import { Home, test, test1, js_test } from "@/api/home.js";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import NsCode from "@c/code.vue"
export default { export default {
name: "Home", name: "Home",
components: { components: {},
NsCode data() {
},
data () {
return { return {
loading: false, loading: false,
tokeb: "", tokeb: "",
...@@ -47,78 +48,84 @@ export default { ...@@ -47,78 +48,84 @@ export default {
}, },
value: "", value: "",
activeName: "", activeName: "",
options: [{
label: '一级 1',
id: '1',
children: [{
label: '二级 1-1',
id: '11',
children: [{
label: '1',
id: '111'
}]
}]
}],
isMultiple: true, isMultiple: true,
time: '' time: ""
}; };
}, },
created () { created() {
this.getHome(); this.getHome();
this.getH(); this.getH();
this.getT(); this.getT();
this.time = this.$util.timeStampTurnTime('1603697627061'); this.time = this.$util.timeStampTurnTime("1603697627061");
this.ttt() this.ttt();
}, },
computed: { computed: {
...mapGetters(["defaultGoodsImage", "userAuth"]) ...mapGetters(["defaultGoodsImage", "userAuth"])
}, },
methods: { methods: {
ttt () { toJccx() {
js_test("test.json").then(res => { 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(111);
console.log(res); console.log(res);
}).catch(err => {
console.log(err);
}) })
.catch(err => {
console.log(err);
});
}, },
getHome () { getHome() {
Home({ Home({
object: "粤sty989" object: "粤sty989"
}).then(res => { })
.then(res => {
console.log(res); console.log(res);
this.loading = false this.loading = false;
}).catch(err => { })
this.loading = false .catch(err => {
this.loading = false;
console.log(err); console.log(err);
}); });
}, },
getH () { getH() {
test({ test({
object: "粤sty989" object: "粤sty989"
}).then(res => { })
.then(res => {
console.log(res); console.log(res);
}).catch(err => { })
.catch(err => {
console.log(err); console.log(err);
}); });
}, },
getT () { getT() {
test1({ test1({
zjhm: 412721197608203413 zjhm: 412721197608203413
}).then(res => { }).then(res => {
console.log(res); console.log(res);
}); });
}, },
toBar () { toBar() {
this.$router.push("/asdw"); this.$router.push("/asdw");
}, },
toLogin () { toLogin() {
this.$router.push("/test"); this.$router.push("/test");
}, },
search (test) { search(test) {
console.log(test); console.log(test);
}, },
handleClick (tab, event) { handleClick(tab, event) {
console.log(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