|
@@ -1043,6 +1043,9 @@ export default {
|
|
|
if (this.packageList.length > 0) {
|
|
if (this.packageList.length > 0) {
|
|
|
this.form.packageJson = JSON.stringify(this.packageList);
|
|
this.form.packageJson = JSON.stringify(this.packageList);
|
|
|
this.form.showTreatment = 0;
|
|
this.form.showTreatment = 0;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.form.packageJson = "[]";
|
|
|
|
|
+ this.form.showTreatment = 1;
|
|
|
}
|
|
}
|
|
|
if (this.form.courseProducts != null) {
|
|
if (this.form.courseProducts != null) {
|
|
|
this.form.productId = this.form.courseProducts.map(item => item.id).join(',');
|
|
this.form.productId = this.form.courseProducts.map(item => item.id).join(',');
|