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
09e5759e
Commit
09e5759e
authored
Dec 29, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了项目进度
parent
7e817ea3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
17 deletions
+32
-17
soil-statistics.js
api/soil/soil-statistics.js
+4
-0
ProgressList.vue
components/statistic/ProgressList.vue
+3
-2
SampleProgress.vue
pages/workbench/sample-progress/SampleProgress.vue
+16
-6
SampleSteps.vue
pages/workbench/sample-progress/SampleSteps.vue
+9
-9
No files found.
api/soil/soil-statistics.js
View file @
09e5759e
...
@@ -47,5 +47,9 @@ export default {
...
@@ -47,5 +47,9 @@ export default {
pageGroupExpStatistics
:
data
=>
pageGroupExpStatistics
:
data
=>
http
http
.
post
(
'soil/v1/statistics/page_group_exp_statistics'
,
data
)
.
post
(
'soil/v1/statistics/page_group_exp_statistics'
,
data
)
.
then
(
res
=>
res
),
listExperimentProgress
:
data
=>
http
.
post
(
'soil/v1/experiment/list_experiment_progress'
,
data
)
.
then
(
res
=>
res
)
.
then
(
res
=>
res
)
}
}
components/statistic/ProgressList.vue
View file @
09e5759e
...
@@ -7,9 +7,10 @@
...
@@ -7,9 +7,10 @@
<div
style=
"position: relative"
>
<div
style=
"position: relative"
>
<label
class=
"view-progress fl"
>
<label
class=
"view-progress fl"
>
<!--
<Progress
:percent=
"45"
:stroke-width=
"20"
status=
"active"
text-inside
/>
-->
<!--
<Progress
:percent=
"45"
:stroke-width=
"20"
status=
"active"
text-inside
/>
-->
<Progress
:percent=
"30"
status=
"active"
hide-info
></Progress>
<Progress
:percent=
"state >= index ? 99.9: 0"
status=
"active"
hide-info
></Progress>
<!--
<Progress
:percent=
"30"
status=
"active"
hide-info
></Progress>
-->
</label>
</label>
<label
:class=
"
{'process-actives':state >= index}" class="progress-bg-gray fl
process-actives
">
<label
:class=
"
{'process-actives':state >= index}" class="progress-bg-gray fl">
<label
class=
"progress-bg-white"
style=
"display: inline-block;max-width: 100%;margin-bottom: 4px;font-weight: 700;"
></label>
<label
class=
"progress-bg-white"
style=
"display: inline-block;max-width: 100%;margin-bottom: 4px;font-weight: 700;"
></label>
</label>
</label>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
...
...
pages/workbench/sample-progress/SampleProgress.vue
View file @
09e5759e
...
@@ -41,7 +41,7 @@ export default {
...
@@ -41,7 +41,7 @@ export default {
contractId
:
''
,
contractId
:
''
,
//
//
page
:
0
,
page
:
0
,
rows
:
1
0
,
rows
:
5
0
,
formObj
:
{},
formObj
:
{},
processObj
:
{
processObj
:
{
height
:
document
.
documentElement
.
clientHeight
-
300
+
'px'
height
:
document
.
documentElement
.
clientHeight
-
300
+
'px'
...
@@ -74,14 +74,24 @@ export default {
...
@@ -74,14 +74,24 @@ export default {
this
.
sampleInfo
=
[]
this
.
sampleInfo
=
[]
}
}
Object
.
assign
(
this
.
formObj
,
this
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
_searchParams
())
const
result
=
await
soilStatistics
.
pageWaitEnd
(
this
.
formObj
)
const
result
=
await
soilStatistics
.
listExperimentProgress
(
this
.
formObj
)
if
(
result
)
{
if
(
result
)
{
const
records
=
result
.
records
const
records
=
result
.
records
const
pages
=
result
.
pages
const
pages
=
result
.
pages
// for (let i = 0; i
<
records
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
records
.
length
;
i
++
)
{
// // 获取下标
// 获取下标
// records[i].index = this.sampleProgressList.indexOf(records[i].index)
if
(
records
[
i
].
auditTime
)
{
// }
records
[
i
].
progressIndex
=
3
}
else
if
(
records
[
i
].
checkTime
)
{
records
[
i
].
progressIndex
=
2
}
else
if
(
records
[
i
].
testEndTime
)
{
records
[
i
].
progressIndex
=
1
}
else
if
(
records
[
i
].
allotTime
)
{
records
[
i
].
progressIndex
=
0
}
else
{
records
[
i
].
progressIndex
=
-
1
}
}
// this.sampleInfo = records
// this.sampleInfo = records
this
.
sampleInfo
=
this
.
sampleInfo
.
concat
(
records
)
this
.
sampleInfo
=
this
.
sampleInfo
.
concat
(
records
)
this
.
$refs
.
myscrollfull
.
endByPage
(
this
.
sampleInfo
.
length
,
pages
)
this
.
$refs
.
myscrollfull
.
endByPage
(
this
.
sampleInfo
.
length
,
pages
)
...
...
pages/workbench/sample-progress/SampleSteps.vue
View file @
09e5759e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<Col
span=
"6"
>
<Col
span=
"6"
>
<ul
class=
"progress-ul"
>
<ul
class=
"progress-ul"
>
<li>
<li>
<div
class=
"title"
>
名称
</div>
<div
class=
"title"
>
样品编号
</div>
<div
class=
"cont"
>
<div
class=
"cont"
>
<a
<a
:class=
"
{
:class=
"
{
...
@@ -16,17 +16,17 @@
...
@@ -16,17 +16,17 @@
'warning-color':itemInfo.queryType === 3
'warning-color':itemInfo.queryType === 3
}"
}"
style="font-weight: bold"
style="font-weight: bold"
>
{{
itemInfo
.
client
}}
</a>
>
{{
itemInfo
.
sampleCode
}}
</a>
</div>
</div>
</li>
</li>
<li>
<li>
<div
class=
"title"
>
编号
</div>
<div
class=
"title"
>
试验名称
</div>
<div
class=
"cont"
>
<div
class=
"cont"
>
{{
itemInfo
.
projectNo
}}
{{
itemInfo
.
name
}}
</div>
</div>
</li>
</li>
<li>
<li>
<div
class=
"title"
>
钻孔
名称
</div>
<div
class=
"title"
>
钻孔
编号
</div>
<div
class=
"cont"
>
<div
class=
"cont"
>
{{
itemInfo
.
boreholeName
}}
{{
itemInfo
.
boreholeName
}}
</div>
</div>
...
@@ -35,10 +35,10 @@
...
@@ -35,10 +35,10 @@
</Col>
</Col>
<!--样品进度信息-->
<!--样品进度信息-->
<Col
span=
"18"
>
<Col
span=
"18"
>
<ProgressList
:progressList=
"[
{name:'已分配',time:itemInfo.
signDate,user:itemInfo.sign
er},
<ProgressList
:progressList=
"[
{name:'已分配',time:itemInfo.
allotTime,user:itemInfo.allot
er},
{name:'检测完成',time:itemInfo.
receiveDate,user:itemInfo.receiver},{name:'已复核',time:itemInfo.testDate,user:itemInfo.test
er},
{name:'检测完成',time:itemInfo.
testEndTime,user:itemInfo.testEnder},{name:'已复核',time:itemInfo.checkTime,user:itemInfo.check
er},
{name:'已
校核',time:itemInfo.reportMakeDate,user:itemInfo.reportMake
r}]"
{name:'已
审核',time:itemInfo.auditTime,user:itemInfo.audito
r}]"
:state="itemInfo.
i
ndex">
</ProgressList>
:state="itemInfo.
progressI
ndex">
</ProgressList>
</Col>
</Col>
</Row>
</Row>
</div>
</div>
...
...
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