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
77be9253
Commit
77be9253
authored
Aug 13, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页优化修改
parent
67c9a9f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
23 deletions
+35
-23
meter-sample.js
api/meter/meter-sample.js
+7
-1
inspectionIngPanel.vue
pages/workbench/statistical-panel/inspectionIngPanel.vue
+9
-7
inspectionPanel.vue
pages/workbench/statistical-panel/inspectionPanel.vue
+9
-7
writeReportPanel.vue
pages/workbench/statistical-panel/writeReportPanel.vue
+10
-8
No files found.
api/meter/meter-sample.js
View file @
77be9253
...
@@ -346,5 +346,11 @@ export default {
...
@@ -346,5 +346,11 @@ export default {
http
.
get
(
'meter/v1/report/generate_pdf_auto?id='
+
data
),
http
.
get
(
'meter/v1/report/generate_pdf_auto?id='
+
data
),
pageCertificate
:
data
=>
pageCertificate
:
data
=>
http
.
post
(
'meter/v1/report/page'
,
data
).
then
(
res
=>
res
)
http
.
post
(
'meter/v1/report/page'
,
data
).
then
(
res
=>
res
),
testingCount
:
data
=>
http
.
post
(
'meter/v1/sample/testing_count'
,
data
).
then
(
res
=>
res
),
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
)
}
}
pages/workbench/statistical-panel/inspectionIngPanel.vue
View file @
77be9253
...
@@ -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
.
testingCount
({
type
:
this
.
type
})
// this.num = this.$store.state.FoodContract.model;
if
(
result
)
{
// });
this
.
num
=
result
// },
}
},
_buttonChange
(
index
)
{
_buttonChange
(
index
)
{
this
.
activityIndex
=
index
this
.
activityIndex
=
index
switch
(
index
)
{
switch
(
index
)
{
...
...
pages/workbench/statistical-panel/inspectionPanel.vue
View file @
77be9253
...
@@ -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
.
inspectionCount
({
type
:
this
.
type
})
// this.num = this.$store.state.FoodContract.model;
if
(
result
)
{
// });
this
.
num
=
result
// },
}
},
_buttonChange
(
index
)
{
_buttonChange
(
index
)
{
this
.
activityIndex
=
index
this
.
activityIndex
=
index
switch
(
index
)
{
switch
(
index
)
{
...
...
pages/workbench/statistical-panel/writeReportPanel.vue
View file @
77be9253
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<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"
>
...
@@ -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
.
makingCount
({
type
:
this
.
type
})
// this.num = this.$store.state.FoodContract.model;
if
(
result
)
{
// });
this
.
num
=
result
// },
}
},
_buttonChange
(
index
)
{
_buttonChange
(
index
)
{
this
.
activityIndex
=
index
this
.
activityIndex
=
index
switch
(
index
)
{
switch
(
index
)
{
...
...
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