Commit a42dda8d by lichengming

修改了首页

parent 02eee1f5
<template> <template>
<div style="flex: 1;margin-bottom: 10px"> <div @click="_toIssue" style="flex: 1;margin-bottom: 10px">
<Card style="width:100%"> <Card style="width:100%">
<div class="config_meta"> <div class="config_meta">
<p class="fl"> <p class="fl">
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<Button <Button
v-for="(item,index) in buttonList" v-for="(item,index) in buttonList"
:key="index" :key="index"
type="primary" @click.stop="_buttonChange(index)"
:class="{buttonActive :activityIndex === index}" :class="{buttonActive :activityIndex === index}"
@click="_buttonChange(index)" type="primary"
> >
{{ item }} {{ item }}
</Button> </Button>
...@@ -53,6 +53,9 @@ export default { ...@@ -53,6 +53,9 @@ export default {
// this.num = this.$store.state.FoodContract.model; // this.num = this.$store.state.FoodContract.model;
// }); // });
// }, // },
_toIssue() {
this.$router.push('/meter/certificate/certificate_issue')
},
_buttonChange(index) { _buttonChange(index) {
this.activityIndex = index this.activityIndex = index
switch (index) { switch (index) {
......
<template> <template>
<div style="flex: 1;margin-bottom: 10px"> <div @click="_toWrite()" style="flex: 1;margin-bottom: 10px">
<Card style="width:100%"> <Card style="width:100%">
<div class="config_meta"> <div class="config_meta">
<p class="fl"> <p class="fl">
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<Button <Button
v-for="(item,index) in buttonList" v-for="(item,index) in buttonList"
:key="index" :key="index"
type="primary"
:class="{buttonActive :activityIndex === index}" :class="{buttonActive :activityIndex === index}"
@click="_buttonChange(index)" @click.stop="_buttonChange(index)"
type="primary"
> >
{{ item }} {{ item }}
</Button> </Button>
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
} }
}, },
methods: { methods: {
_toWrite() {
this.$router.push('/meter/certificate/certificate_make')
},
_request: async function() { _request: async function() {
// type 请求 0:当天 1:本周 2:本月 // type 请求 0:当天 1:本周 2:本月
const result = await meterSample.makingCount({ type: this.type }) const result = await meterSample.makingCount({ type: this.type })
......
...@@ -49,6 +49,11 @@ import MeterSampleQuantity from '../pages/meter-statistics/sample-quantity/Meter ...@@ -49,6 +49,11 @@ import MeterSampleQuantity from '../pages/meter-statistics/sample-quantity/Meter
import MeterReportTemplate from '../pages/meter-certificate/template/MeterReportTemplate' import MeterReportTemplate from '../pages/meter-certificate/template/MeterReportTemplate'
import Blank from '~/pages/blank' import Blank from '~/pages/blank'
export default [ export default [
// {
// path: '/',
// component: workbench,
// meta: { title: '首页' }
// },
{ {
path: 'workbench', path: 'workbench',
component: workbench, component: workbench,
......
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