Commit f94d5ca0 by zhuxiaomei

测试修改

parent 819b5812
NODE_ENV=development
VUE_APP_BASE_URL=http://192.168.0.155:7000
NODE_ENV=devtest
VUE_APP_BASE_URL=http://api.pertest.patzn.com
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve --mode development", "serve": "vue-cli-service serve --mode development",
"devtest": "vue-cli-service serve --mode devtest", "servetest": "vue-cli-service serve --mode pertest",
"build": "vue-cli-service build --mode production", "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" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
......
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
saveSampler:data=>http.post('/drs/v1/sampling_plan/save_plan_sampler', data).then(res=>res), 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), 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),
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), 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), searchModelCount:data=>http.post('/drs/v1/sampling_plan/search_model_count', data).then(res=>res),
} }
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<img src="@/assets/home/plan.png"></div> <img src="@/assets/home/plan.png"></div>
<div> <div>
<div class="title">我创建的抽样计划</div> <div class="title">我创建的抽样计划</div>
<!--todo 每个模块的数量-->
<div class="num">{{ planCount }}</div> <div class="num">{{ planCount }}</div>
</div> </div>
</div> </div>
...@@ -82,6 +81,9 @@ export default { ...@@ -82,6 +81,9 @@ export default {
}, },
mounted() { mounted() {
const that = this const that = this
if (window.screen.width < 750) {
that.$router.replace('/home_small')
}
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
if (window.screen.width < 750) { if (window.screen.width < 750) {
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<img src="@/assets/home/plan.png"></div> <img src="@/assets/home/plan.png"></div>
<div> <div>
<div class="title">我创建的抽样计划</div> <div class="title">我创建的抽样计划</div>
<!--todo 每个模块的数量-->
<div class="num">{{ planCount }}</div> <div class="num">{{ planCount }}</div>
</div> </div>
</div> </div>
...@@ -79,6 +78,9 @@ export default { ...@@ -79,6 +78,9 @@ export default {
}, },
mounted() { mounted() {
const that = this const that = this
if (window.screen.width > 750) {
that.$router.replace('/home')
}
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
if (window.screen.width > 750) { if (window.screen.width > 750) {
......
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +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, uid: this.$global.getUserInfo().id,
...this.formObj ...this.formObj
}; };
if (this.key) { if (this.key) {
...@@ -289,12 +289,15 @@ export default { ...@@ -289,12 +289,15 @@ export default {
this._refresh() this._refresh()
} }
}, },
_submit() { _submit: async function (ids) {
if (this.checkListValue.length === 0) { if (ids.length === 0) {
this.$toast('请至少选择一条数据!') this.$toast('请至少选择一条数据!')
} else { } else {
// this._delOk(ids) const result = await samplingPlan.submitPlanApp({planIds: ids.join(',')})
// todo 提交 if (result) {
this.$toast('操作成功!')
this._refresh()
}
} }
}, },
_goFile(id) { _goFile(id) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<van-step>维护人员地点</van-step> <van-step>维护人员地点</van-step>
<van-step>任务要求</van-step> <van-step>任务要求</van-step>
</van-steps> </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-form @submit="onSubmit">
<van-field <van-field
v-model="formObj.name" v-model="formObj.name"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment