Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
11530279
Commit
11530279
authored
Aug 13, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页优化修改
parent
a42dda8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
meter-sample.js
api/meter/meter-sample.js
+3
-1
reportIssuePanel.vue
pages/workbench/statistical-panel/reportIssuePanel.vue
+12
-10
No files found.
api/meter/meter-sample.js
View file @
11530279
...
...
@@ -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
)
}
pages/workbench/statistical-panel/reportIssuePanel.vue
View file @
11530279
<
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'
)
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment