Pārlūkot izejas kodu

初始化数据

lishanshan 8 mēneši atpakaļ
vecāks
revīzija
9837be8d86
1 mainītis faili ar 1 papildinājumiem un 61 dzēšanām
  1. 1 61
      pages/product/creatProduct.vue

+ 1 - 61
pages/product/creatProduct.vue

@@ -1324,67 +1324,7 @@ export default {
 		}
 	},
 	mounted() {
-		this.form.localProductSellingWeeks = [
-			{
-				"weekDay": "周一",
-				"sellingStartTimeList": [
-					[
-						"06:00:00-11:00:00"
-					],
-					[
-						"03:00:00-12:00:00"
-					],
-					[
-						"08:00:00-11:00:00"
-					]
-				],
-				"checked": true
-			},
-			{
-				"weekDay": "周二",
-				"sellingStartTimeList": [
-					[
-						"05:00:05-12:00:00"
-					]
-				],
-				"checked": true
-			},
-			{
-				"weekDay": "周三",
-				"sellingStartTimeList": [
-					[]
-				],
-				"checked": false
-			},
-			{
-				"weekDay": "周四",
-				"sellingStartTimeList": [
-					[]
-				],
-				"checked": false
-			},
-			{
-				"weekDay": "周五",
-				"sellingStartTimeList": [
-					[]
-				],
-				"checked": false
-			},
-			{
-				"weekDay": "周六",
-				"sellingStartTimeList": [
-					[]
-				],
-				"checked": false
-			},
-			{
-				"weekDay": "周日",
-				"sellingStartTimeList": [
-					[]
-				],
-				"checked": false
-			}
-		]
+		this.form.localProductSellingWeeks =this.localProductSellingWeeks
 		this.getProductGroup()
 		this.getLeftTree()
 		this.getForm()