Commit a42dda8d by lichengming

修改了首页

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