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
3208a148
Commit
3208a148
authored
Mar 19, 2021
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成的加载
parent
53b0f40f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
10 deletions
+52
-10
RandomCreate.vue
src/page/sampling-plan/RandomCreate.vue
+26
-4
TaskRequirements.vue
src/page/sampling-plan/add/TaskRequirements.vue
+26
-6
No files found.
src/page/sampling-plan/RandomCreate.vue
View file @
3208a148
...
@@ -101,12 +101,23 @@ export default {
...
@@ -101,12 +101,23 @@ export default {
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
duration
:
0
,
duration
:
0
,
message
:
'随机生成中...'
,
message
:
'随机生成中...'
,
loadingType
:
'spinner'
,
forbidClick
:
true
,
forbidClick
:
true
,
});
});
let
result
=
await
samplingPlan
.
generateSampler
({
count
:
this
.
count
,
planId
:
this
.
planId
})
let
result
=
await
samplingPlan
.
generateSampler
({
count
:
this
.
count
,
planId
:
this
.
planId
})
if
(
result
)
{
if
(
result
)
{
this
.
$toast
(
'生成成功!'
)
let
second
=
3
;
this
.
userList
=
result
const
timer
=
setInterval
(()
=>
{
second
--
;
if
(
second
)
{
//
}
else
{
clearInterval
(
timer
);
// 手动清除 Toast
this
.
$toast
(
'生成成功!'
)
this
.
userList
=
result
}
},
1000
);
}
}
}
else
{
}
else
{
this
.
$toast
(
"请输入随机数量"
)
this
.
$toast
(
"请输入随机数量"
)
...
@@ -150,12 +161,23 @@ export default {
...
@@ -150,12 +161,23 @@ export default {
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
duration
:
0
,
duration
:
0
,
message
:
'随机生成中...'
,
message
:
'随机生成中...'
,
loadingType
:
'spinner'
,
forbidClick
:
true
,
forbidClick
:
true
,
});
});
let
result
=
await
samplingPlan
.
generatePlace
({
count
:
this
.
locCount
,
planId
:
this
.
planId
})
let
result
=
await
samplingPlan
.
generatePlace
({
count
:
this
.
locCount
,
planId
:
this
.
planId
})
if
(
result
)
{
if
(
result
)
{
this
.
$toast
(
'生成成功!'
)
let
second
=
3
;
this
.
locList
=
result
const
timer
=
setInterval
(()
=>
{
second
--
;
if
(
second
)
{
//
}
else
{
clearInterval
(
timer
);
// 手动清除 Toast
this
.
$toast
(
'生成成功!'
)
this
.
locList
=
result
}
},
1000
);
}
}
}
else
{
}
else
{
this
.
$toast
(
"请输入随机数量"
)
this
.
$toast
(
"请输入随机数量"
)
...
...
src/page/sampling-plan/add/TaskRequirements.vue
View file @
3208a148
...
@@ -97,13 +97,23 @@ export default {
...
@@ -97,13 +97,23 @@ export default {
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
duration
:
0
,
duration
:
0
,
message
:
'随机生成中...'
,
message
:
'随机生成中...'
,
loadingType
:
'spinner'
,
forbidClick
:
true
,
forbidClick
:
true
,
});
});
let
result
=
await
samplingPlan
.
generateSampler
({
count
:
this
.
count
,
planId
:
this
.
planId
})
let
result
=
await
samplingPlan
.
generateSampler
({
count
:
this
.
count
,
planId
:
this
.
planId
})
if
(
result
)
{
if
(
result
)
{
// this.$toast.clear();
let
second
=
3
;
this
.
$toast
(
'生成成功!'
)
const
timer
=
setInterval
(()
=>
{
this
.
userList
=
result
second
--
;
if
(
second
)
{
//
}
else
{
clearInterval
(
timer
);
// 手动清除 Toast
this
.
$toast
(
'生成成功!'
)
this
.
userList
=
result
}
},
1000
);
}
}
}
else
{
}
else
{
this
.
$toast
(
"请输入随机数量"
)
this
.
$toast
(
"请输入随机数量"
)
...
@@ -147,13 +157,23 @@ export default {
...
@@ -147,13 +157,23 @@ export default {
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
duration
:
0
,
duration
:
0
,
message
:
'随机生成中...'
,
message
:
'随机生成中...'
,
loadingType
:
'spinner'
,
forbidClick
:
true
,
forbidClick
:
true
,
});
});
let
result
=
await
samplingPlan
.
generatePlace
({
count
:
this
.
locCount
,
planId
:
this
.
planId
})
let
result
=
await
samplingPlan
.
generatePlace
({
count
:
this
.
locCount
,
planId
:
this
.
planId
})
if
(
result
)
{
if
(
result
)
{
// this.$toast.clear();
let
second
=
3
;
this
.
$toast
(
'生成成功!'
)
const
timer
=
setInterval
(()
=>
{
this
.
locList
=
result
second
--
;
if
(
second
)
{
//
}
else
{
clearInterval
(
timer
);
// 手动清除 Toast
this
.
$toast
(
'生成成功!'
)
this
.
locList
=
result
}
},
1000
);
}
}
}
else
{
}
else
{
this
.
$toast
(
"请输入随机数量"
)
this
.
$toast
(
"请输入随机数量"
)
...
...
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