Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
819b5812
Commit
819b5812
authored
Mar 12, 2021
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页修改
parent
a4ba7c16
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
11 deletions
+70
-11
sampling-plan.js
src/api/drs/sampling-plan.js
+1
-0
Home.vue
src/page/Home.vue
+24
-5
HomeOld.vue
src/page/HomeOld.vue
+13
-0
HomeSmall.vue
src/page/HomeSmall.vue
+31
-6
SamplingPlan.vue
src/page/sampling-plan/SamplingPlan.vue
+1
-0
No files found.
src/api/drs/sampling-plan.js
View file @
819b5812
...
@@ -29,4 +29,5 @@ export default {
...
@@ -29,4 +29,5 @@ export default {
deletePlanSampler
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/delete_plan_sampler'
,
data
).
then
(
res
=>
res
),
deletePlanSampler
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/delete_plan_sampler'
,
data
).
then
(
res
=>
res
),
saveSubmitPlan
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/save_submit_plan'
,
data
).
then
(
res
=>
res
),
saveSubmitPlan
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/save_submit_plan'
,
data
).
then
(
res
=>
res
),
getSamplerPlace
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/search_selected_sampler_place'
,
data
).
then
(
res
=>
res
),
getSamplerPlace
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/search_selected_sampler_place'
,
data
).
then
(
res
=>
res
),
searchModelCount
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/search_model_count'
,
data
).
then
(
res
=>
res
),
}
}
src/page/Home.vue
View file @
819b5812
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div>
<div>
<div
class=
"title"
>
我创建的抽样计划
</div>
<div
class=
"title"
>
我创建的抽样计划
</div>
<!--todo 每个模块的数量-->
<!--todo 每个模块的数量-->
<div
class=
"num"
>
3
</div>
<div
class=
"num"
>
{{
planCount
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"box-c box-c-2"
>
<div
class=
"box-c box-c-2"
>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<img
src=
"@/assets/home/task.png"
></div>
<img
src=
"@/assets/home/task.png"
></div>
<div
class=
"cont"
>
<div
class=
"cont"
>
<div
class=
"title"
>
我的双随机任务
</div>
<div
class=
"title"
>
我的双随机任务
</div>
<div
class=
"num"
>
4
</div>
<div
class=
"num"
>
{{
taskCount
}}
</div>
</div>
</div>
</div>
</div>
<div
@
click=
"_goto('/sampling_list/sampling_task')"
>
<div
@
click=
"_goto('/sampling_list/sampling_task')"
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<img
src=
"@/assets/home/task-edit.png"
></div>
<img
src=
"@/assets/home/task-edit.png"
></div>
<div
class=
"cont"
>
<div
class=
"cont"
>
<div
class=
"title"
>
抽样信息录入
</div>
<div
class=
"title"
>
抽样信息录入
</div>
<div
class=
"num"
>
4
</div>
<div
class=
"num"
>
{{
samplingCount
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<img
src=
"@/assets/home/message.png"
></div>
<img
src=
"@/assets/home/message.png"
></div>
<div
class=
"cont"
>
<div
class=
"cont"
>
<div
class=
"title"
>
消息
</div>
<div
class=
"title"
>
消息
</div>
<div
class=
"num"
>
4
</div>
<div
class=
"num"
>
{{
msgCount
}}
</div>
</div>
</div>
</div>
</div>
<div
@
click=
"_goto('/history_sampling/sampling_list')"
>
<div
@
click=
"_goto('/history_sampling/sampling_list')"
>
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
samplingPlan
,
message
}
from
'../api/index'
import
FooterBar
from
'@/components/FooterBar.vue'
import
FooterBar
from
'@/components/FooterBar.vue'
export
default
{
export
default
{
...
@@ -72,7 +73,12 @@ export default {
...
@@ -72,7 +73,12 @@ export default {
FooterBar
FooterBar
},
},
data
()
{
data
()
{
return
{}
return
{
planCount
:
''
,
taskCount
:
''
,
samplingCount
:
''
,
msgCount
:
''
}
},
},
mounted
()
{
mounted
()
{
const
that
=
this
const
that
=
this
...
@@ -83,8 +89,21 @@ export default {
...
@@ -83,8 +89,21 @@ export default {
}
}
})()
})()
}
}
that
.
_getNum
()
},
},
methods
:
{
methods
:
{
_getNum
:
async
function
()
{
const
result
=
await
samplingPlan
.
searchModelCount
()
if
(
result
)
{
this
.
planCount
=
result
.
planCount
this
.
taskCount
=
result
.
taskCount
this
.
samplingCount
=
result
.
samplingCount
}
const
msgResult
=
await
message
.
myPage
({
page
:
1
,
rows
:
1
,
service
:
'drs'
,
read
:
0
})
if
(
msgResult
)
{
this
.
msgCount
=
msgResult
.
total
}
},
_goto
(
uri
)
{
_goto
(
uri
)
{
this
.
$router
.
push
(
uri
)
this
.
$router
.
push
(
uri
)
}
}
...
...
src/page/HomeOld.vue
View file @
819b5812
...
@@ -23,6 +23,7 @@ import indexImg1 from '../assets/index/1.png'
...
@@ -23,6 +23,7 @@ import indexImg1 from '../assets/index/1.png'
import
indexImg11
from
'../assets/index/11.png'
import
indexImg11
from
'../assets/index/11.png'
import
indexImg13
from
'../assets/index/13.png'
import
indexImg13
from
'../assets/index/13.png'
import
FooterBar
from
'@/components/FooterBar.vue'
import
FooterBar
from
'@/components/FooterBar.vue'
import
{
samplingPlan
}
from
"../api"
;
export
default
{
export
default
{
name
:
"Home"
,
name
:
"Home"
,
...
@@ -38,6 +39,9 @@ export default {
...
@@ -38,6 +39,9 @@ export default {
{
img
:
indexImg11
,
title
:
'历史任务'
,
uri
:
'/history_sampling/sampling_list'
},
{
img
:
indexImg11
,
title
:
'历史任务'
,
uri
:
'/history_sampling/sampling_list'
},
{
img
:
indexImg13
,
title
:
'双随机实现流程'
,
uri
:
'/flow_chart'
},
{
img
:
indexImg13
,
title
:
'双随机实现流程'
,
uri
:
'/flow_chart'
},
],
],
planCount
:
''
,
taskCount
:
''
,
samplingCount
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -49,8 +53,17 @@ export default {
...
@@ -49,8 +53,17 @@ export default {
}
}
})()
})()
}
}
that
.
_getNum
()
},
},
methods
:
{
methods
:
{
_getNum
:
async
function
(){
const
result
=
await
samplingPlan
.
searchModelCount
()
if
(
result
){
this
.
planCount
=
result
.
planCount
this
.
taskCount
=
result
.
taskCount
this
.
samplingCount
=
result
.
samplingCount
}
},
_goto
(
item
)
{
_goto
(
item
)
{
this
.
$router
.
push
(
item
.
uri
)
this
.
$router
.
push
(
item
.
uri
)
}
}
...
...
src/page/HomeSmall.vue
View file @
819b5812
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div>
<div>
<div
class=
"title"
>
我创建的抽样计划
</div>
<div
class=
"title"
>
我创建的抽样计划
</div>
<!--todo 每个模块的数量-->
<!--todo 每个模块的数量-->
<div
class=
"num"
>
3
</div>
<div
class=
"num"
>
{{
planCount
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"box-c box-c-2"
@
click=
"_goto('/sampling_task/sampling_task')"
>
<div
class=
"box-c box-c-2"
@
click=
"_goto('/sampling_task/sampling_task')"
>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<img
src=
"@/assets/home/task.png"
></div>
<img
src=
"@/assets/home/task.png"
></div>
<div>
<div>
<div
class=
"title"
>
我的双随机任务
</div>
<div
class=
"title"
>
我的双随机任务
</div>
<div
class=
"num"
>
4
</div>
<div
class=
"num"
>
{{
taskCount
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"box-c box-c-3"
@
click=
"_goto('/sampling_list/sampling_task')"
>
<div
class=
"box-c box-c-3"
@
click=
"_goto('/sampling_list/sampling_task')"
>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<img
src=
"@/assets/home/task-edit.png"
></div>
<img
src=
"@/assets/home/task-edit.png"
></div>
<div>
<div>
<div
class=
"title"
>
抽样信息录入
</div>
<div
class=
"title"
>
抽样信息录入
</div>
<div
class=
"num"
>
4
</div>
<div
class=
"num"
>
{{
samplingCount
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"box-c box-c-4"
@
click=
"_goto('/message')"
>
<div
class=
"box-c box-c-4"
@
click=
"_goto('/message')"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<img
src=
"@/assets/home/message.png"
></div>
<img
src=
"@/assets/home/message.png"
></div>
<div>
<div>
<div
class=
"title"
>
消息
</div>
<div
class=
"title"
>
消息
</div>
<div
class=
"num"
>
4
</div>
<div
class=
"num"
>
{{
msgCount
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
<
script
>
<
script
>
import
FooterBar
from
'@/components/FooterBar.vue'
import
FooterBar
from
'@/components/FooterBar.vue'
import
{
samplingPlan
,
message
}
from
"../api"
;
export
default
{
export
default
{
name
:
"Home"
,
name
:
"Home"
,
...
@@ -69,7 +70,12 @@ export default {
...
@@ -69,7 +70,12 @@ export default {
FooterBar
FooterBar
},
},
data
()
{
data
()
{
return
{}
return
{
planCount
:
''
,
taskCount
:
''
,
samplingCount
:
''
,
msgCount
:
''
}
},
},
mounted
()
{
mounted
()
{
const
that
=
this
const
that
=
this
...
@@ -80,8 +86,21 @@ export default {
...
@@ -80,8 +86,21 @@ export default {
}
}
})()
})()
}
}
that
.
_getNum
()
},
},
methods
:
{
methods
:
{
_getNum
:
async
function
()
{
const
result
=
await
samplingPlan
.
searchModelCount
()
if
(
result
)
{
this
.
planCount
=
result
.
planCount
this
.
taskCount
=
result
.
taskCount
this
.
samplingCount
=
result
.
samplingCount
}
const
msgResult
=
await
message
.
myPage
({
page
:
1
,
rows
:
1
,
service
:
'drs'
,
read
:
0
})
if
(
msgResult
)
{
this
.
msgCount
=
msgResult
.
total
}
},
_goto
(
uri
)
{
_goto
(
uri
)
{
this
.
$router
.
push
(
uri
)
this
.
$router
.
push
(
uri
)
}
}
...
@@ -125,18 +144,23 @@ img {
...
@@ -125,18 +144,23 @@ img {
.box-c
:nth-child
(
1
)
{
.box-c
:nth-child
(
1
)
{
background-image
:
linear-gradient
(
45deg
,
#10239e
,
#adc6ff
)
background-image
:
linear-gradient
(
45deg
,
#10239e
,
#adc6ff
)
}
}
.box-c
:nth-child
(
2
)
{
.box-c
:nth-child
(
2
)
{
background-image
:
linear-gradient
(
45deg
,
#536DFE
,
#00B0Ff
)
background-image
:
linear-gradient
(
45deg
,
#536DFE
,
#00B0Ff
)
}
}
.box-c
:nth-child
(
3
)
{
.box-c
:nth-child
(
3
)
{
background-image
:
linear-gradient
(
45deg
,
#00B0Ff
,
#536DFE
);
background-image
:
linear-gradient
(
45deg
,
#00B0Ff
,
#536DFE
);
}
}
.box-c
:nth-child
(
4
)
{
.box-c
:nth-child
(
4
)
{
background-image
:
linear-gradient
(
45deg
,
#00BFA6
,
#0036ff
)
background-image
:
linear-gradient
(
45deg
,
#00BFA6
,
#0036ff
)
}
}
.box-c
:nth-child
(
5
)
{
.box-c
:nth-child
(
5
)
{
background-image
:
linear-gradient
(
45deg
,
#0036ff
,
#00BFA6
);
background-image
:
linear-gradient
(
45deg
,
#0036ff
,
#00BFA6
);
}
}
.box-c
:nth-child
(
6
)
{
.box-c
:nth-child
(
6
)
{
background-image
:
linear-gradient
(
45deg
,
#00474f
,
#87e8de
)
background-image
:
linear-gradient
(
45deg
,
#00474f
,
#87e8de
)
...
@@ -172,6 +196,7 @@ img {
...
@@ -172,6 +196,7 @@ img {
}
}
}
}
.title
{
.title
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
18px
font-size
:
18px
...
...
src/page/sampling-plan/SamplingPlan.vue
View file @
819b5812
...
@@ -197,6 +197,7 @@ export default {
...
@@ -197,6 +197,7 @@ export default {
page
:
this
.
page
,
page
:
this
.
page
,
rows
:
this
.
rows
,
rows
:
this
.
rows
,
planId
:
this
.
planId
,
planId
:
this
.
planId
,
uid
:
this
.
$global
.
getUserInfo
().
id
,
...
this
.
formObj
...
this
.
formObj
};
};
if
(
this
.
key
)
{
if
(
this
.
key
)
{
...
...
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