Commit 0fa4d329 authored by 黄奎's avatar 黄奎

页面修改

parent a0334d16
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
.q-field__prepend { .q-field__prepend {
padding-right: 0px !important; padding-right: 0px !important;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale"> <q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale">
...@@ -362,9 +361,21 @@ ...@@ -362,9 +361,21 @@
saveConsult() { saveConsult() {
this.$refs.PlanName.validate(); this.$refs.PlanName.validate();
if (!this.$refs.PlanName.hasError) { if (!this.$refs.PlanName.hasError) {
this.objOption.SaleIds = this.SaleIdsArray.toString(); if (this.SaleIdsArray && this.SaleIdsArray.length > 0) {
this.objOption.UseCourseIds = this.UseCourseIdsArray.toString(); this.objOption.SaleIds = this.SaleIdsArray.toString();
this.objOption.NotUseCourseIds = this.NotUseCourseIdsArray.toString(); } else {
this.objOption.SaleIds = "";
}
if (this.UseCourseIdsArray && this.UseCourseIdsArray.length > 0) {
this.objOption.UseCourseIds = this.UseCourseIdsArray.toString();
} else {
this.objOption.UseCourseIds = "";
}
if (this.NotUseCourseIdsArray && this.NotUseCourseIdsArray.length > 0) {
this.objOption.NotUseCourseIds = this.NotUseCourseIdsArray.toString();
} else {
this.objOption.NotUseCourseIds = '';
}
this.saveLoading = true; this.saveLoading = true;
SetBounsPlan(this.objOption).then(res => { SetBounsPlan(this.objOption).then(res => {
this.saveLoading = false; this.saveLoading = false;
...@@ -389,5 +400,4 @@ ...@@ -389,5 +400,4 @@
} }
}, },
} }
</script>
</script> \ No newline at end of file
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