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 @@
"private": true,
"scripts": {
"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",
"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": {
......
......@@ -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),
}
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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"
......
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