Explorar o código

优化售卖时间提交数据

lishanshan hai 8 meses
pai
achega
41adc7ff2d
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      pages/product/creatProduct.vue

+ 6 - 1
pages/product/creatProduct.vue

@@ -1134,6 +1134,11 @@ export default {
 				});
 				return
 			} else {
+				if(this.form.sellingTimeType == '3') {
+					this.form.sellingDay = []
+				} else if(this.form.sellingTimeType == '2') {
+					this.form.localProductSellingWeeks = this.localProductSellingWeeks
+				}
 				if (this.productId == '') {
 					this.$http.post("/app/product/add", this.form).then(res => {
 						if (res.data.code == 200) {
@@ -1324,7 +1329,7 @@ export default {
 		}
 	},
 	mounted() {
-		this.form.localProductSellingWeeks =this.localProductSellingWeeks
+		this.form.localProductSellingWeeks = this.localProductSellingWeeks
 		this.getProductGroup()
 		this.getLeftTree()
 		this.getForm()