Commit 11530279 by wangweidong

首页优化修改

parent a42dda8d
...@@ -352,5 +352,7 @@ export default { ...@@ -352,5 +352,7 @@ export default {
inspectionCount: data => inspectionCount: data =>
http.post('meter/v1/sample/inspection_count', data).then(res => res), http.post('meter/v1/sample/inspection_count', data).then(res => res),
makingCount: data => makingCount: data =>
http.post('meter/v1/sample/making_count', data).then(res => res) http.post('meter/v1/sample/making_count', data).then(res => res),
issueCount: data =>
http.post('meter/v1/sample/issue_count', data).then(res => res)
} }
<template> <template>
<div @click="_toIssue" style="flex: 1;margin-bottom: 10px"> <div style="flex: 1;margin-bottom: 10px" @click="_toIssue">
<Card style="width:100%"> <Card style="width:100%">
<div class="config_meta"> <div class="config_meta">
<p class="fl"> <p class="fl">
报告签发 证书签发
</p> </p>
<div class="fr"> <div class="fr">
<ButtonGroup shape="circle" size="small"> <ButtonGroup shape="circle" size="small">
<Button <Button
v-for="(item,index) in buttonList" v-for="(item,index) in buttonList"
:key="index" :key="index"
@click.stop="_buttonChange(index)"
:class="{buttonActive :activityIndex === index}" :class="{buttonActive :activityIndex === index}"
type="primary" type="primary"
@click.stop="_buttonChange(index)"
> >
{{ item }} {{ item }}
</Button> </Button>
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<script> <script>
import Global from '../../../api/config' import Global from '../../../api/config'
import { meterSample } from '../../../api'
export default { export default {
data() { data() {
return { return {
...@@ -43,16 +44,17 @@ export default { ...@@ -43,16 +44,17 @@ export default {
}, },
mounted() { mounted() {
if (Global.getLn()) { if (Global.getLn()) {
// this._request(); this._request()
} }
}, },
methods: { methods: {
// _request() { _request: async function() {
// //type 请求 0:当天 1:本周 2:本月 // type 请求 0:当天 1:本周 2:本月
// this.$store.dispatch('FoodContract/contractCount', {type: this.type}).then(() => { const result = await meterSample.issueCount({ type: this.type })
// this.num = this.$store.state.FoodContract.model; if (result) {
// }); this.num = result
// }, }
},
_toIssue() { _toIssue() {
this.$router.push('/meter/certificate/certificate_issue') this.$router.push('/meter/certificate/certificate_issue')
}, },
......
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