Commit 11530279 by wangweidong

首页优化修改

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