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
f94d5ca0
Commit
f94d5ca0
authored
Mar 12, 2021
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试修改
parent
819b5812
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
12 deletions
+21
-12
.env.devpoint
.env.devpoint
+2
-0
.env.devtest
.env.devtest
+0
-2
package.json
package.json
+3
-2
sampling-plan.js
src/api/drs/sampling-plan.js
+1
-0
Home.vue
src/page/Home.vue
+3
-1
HomeSmall.vue
src/page/HomeSmall.vue
+3
-1
SamplingPlan.vue
src/page/sampling-plan/SamplingPlan.vue
+8
-5
SamplingPlanAdd.vue
src/page/sampling-plan/add/SamplingPlanAdd.vue
+1
-1
No files found.
.env.devpoint
0 → 100644
View file @
f94d5ca0
NODE_ENV=development
VUE_APP_BASE_URL=http://192.168.0.155:7000
.env.devtest
deleted
100644 → 0
View file @
819b5812
NODE_ENV=devtest
VUE_APP_BASE_URL=http://api.pertest.patzn.com
package.json
View file @
f94d5ca0
...
...
@@ -4,9 +4,10 @@
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve --mode development"
,
"
devtest"
:
"vue-cli-service serve --mode dev
test"
,
"
servetest"
:
"vue-cli-service serve --mode per
test"
,
"build"
:
"vue-cli-service build --mode production"
,
"pertest"
:
"vue-cli-service build --mode pertest"
,
"buildtest"
:
"vue-cli-service build --mode pertest"
,
"builddev"
:
"vue-cli-service build --mode devpoint"
,
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
...
...
src/api/drs/sampling-plan.js
View file @
f94d5ca0
...
...
@@ -28,6 +28,7 @@ export default {
saveSampler
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/save_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
),
submitPlanApp
:
data
=>
http
.
post
(
'/drs/v1/sampling_plan/submit_plan_app'
,
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 @
f94d5ca0
...
...
@@ -7,7 +7,6 @@
<img
src=
"@/assets/home/plan.png"
></div>
<div>
<div
class=
"title"
>
我创建的抽样计划
</div>
<!--todo 每个模块的数量-->
<div
class=
"num"
>
{{
planCount
}}
</div>
</div>
</div>
...
...
@@ -82,6 +81,9 @@ export default {
},
mounted
()
{
const
that
=
this
if
(
window
.
screen
.
width
<
750
)
{
that
.
$router
.
replace
(
'/home_small'
)
}
window
.
onresize
=
()
=>
{
return
(()
=>
{
if
(
window
.
screen
.
width
<
750
)
{
...
...
src/page/HomeSmall.vue
View file @
f94d5ca0
...
...
@@ -7,7 +7,6 @@
<img
src=
"@/assets/home/plan.png"
></div>
<div>
<div
class=
"title"
>
我创建的抽样计划
</div>
<!--todo 每个模块的数量-->
<div
class=
"num"
>
{{
planCount
}}
</div>
</div>
</div>
...
...
@@ -79,6 +78,9 @@ export default {
},
mounted
()
{
const
that
=
this
if
(
window
.
screen
.
width
>
750
)
{
that
.
$router
.
replace
(
'/home'
)
}
window
.
onresize
=
()
=>
{
return
(()
=>
{
if
(
window
.
screen
.
width
>
750
)
{
...
...
src/page/sampling-plan/SamplingPlan.vue
View file @
f94d5ca0
...
...
@@ -197,7 +197,7 @@ export default {
page
:
this
.
page
,
rows
:
this
.
rows
,
planId
:
this
.
planId
,
uid
:
this
.
$global
.
getUserInfo
().
id
,
uid
:
this
.
$global
.
getUserInfo
().
id
,
...
this
.
formObj
};
if
(
this
.
key
)
{
...
...
@@ -289,12 +289,15 @@ export default {
this
.
_refresh
()
}
},
_submit
(
)
{
if
(
this
.
checkListValue
.
length
===
0
)
{
_submit
:
async
function
(
ids
)
{
if
(
ids
.
length
===
0
)
{
this
.
$toast
(
'请至少选择一条数据!'
)
}
else
{
// this._delOk(ids)
// todo 提交
const
result
=
await
samplingPlan
.
submitPlanApp
({
planIds
:
ids
.
join
(
','
)})
if
(
result
)
{
this
.
$toast
(
'操作成功!'
)
this
.
_refresh
()
}
}
},
_goFile
(
id
)
{
...
...
src/page/sampling-plan/add/SamplingPlanAdd.vue
View file @
f94d5ca0
...
...
@@ -5,7 +5,7 @@
<van-step>
维护人员地点
</van-step>
<van-step>
任务要求
</van-step>
</van-steps>
<div
v-if=
"active===0"
>
<div
v-if=
"active===0"
style=
"height: calc(100% - 63px);overflow-y: auto"
>
<van-form
@
submit=
"onSubmit"
>
<van-field
v-model=
"formObj.name"
...
...
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