Commit 0f8f2df5 by lichengming

修改了首页

parent 11530279
...@@ -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="_buttonChange(index)"
type="primary"
> >
{{ item }} {{ item }}
</Button> </Button>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
<div class="config_footer"> <div class="config_footer">
<div> <div>
<span class="fl">{{ num }}</span> <span @click="toSendTask()" class="fl" style="color: #00b5ec;cursor: pointer;">{{ num }}</span>
<div class="clear" /> <div class="clear" />
</div> </div>
</div> </div>
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
} }
}, },
methods: { methods: {
toSendTask() {
this.$router.push('/meter/test/send_sample_input')
},
_request: async function() { _request: async function() {
// type 请求 0:当天 1:本周 2:本月 // type 请求 0:当天 1:本周 2:本月
const result = await meterSample.testingCount({ type: this.type }) const result = await meterSample.testingCount({ type: this.type })
......
...@@ -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="_buttonChange(index)"
type="primary"
> >
{{ item }} {{ item }}
</Button> </Button>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
<div class="config_footer"> <div class="config_footer">
<div> <div>
<span class="fl">{{ num }}</span> <span @click="toSendOut()" class="fl" style="color: #00b5ec;cursor: pointer;">{{ num }}</span>
<div class="clear" /> <div class="clear" />
</div> </div>
</div> </div>
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
} }
}, },
methods: { methods: {
toSendOut() {
this.$router.push('/meter/entrust/send_test')
},
_request: async function() { _request: async function() {
// type 请求 0:当天 1:本周 2:本月 // type 请求 0:当天 1:本周 2:本月
const result = await meterSample.inspectionCount({ type: this.type }) const result = await meterSample.inspectionCount({ type: this.type })
......
<template> <template>
<div style="flex: 1;margin-bottom: 10px" @click="_toIssue"> <div 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">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
<div class="config_footer"> <div class="config_footer">
<div> <div>
<span class="fl">{{ num }}</span> <span @click="_toIssue" style="color: #00b5ec;cursor: pointer;" class="fl">{{ num }}</span>
<div class="clear" /> <div class="clear" />
</div> </div>
</div> </div>
......
<template> <template>
<div @click="_toWrite()" style="flex: 1;margin-bottom: 10px"> <div 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">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
<div class="config_footer"> <div class="config_footer">
<div> <div>
<span class="fl">{{ num }}</span> <span @click="_toWrite()" style="color: #00b5ec;cursor: pointer;" class="fl">{{ num }}</span>
<div class="clear" /> <div class="clear" />
</div> </div>
</div> </div>
......
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