-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- {{ $t('query') }}
+ {{ $t('query') }}
- {{ $t('add') }}
+ {{ $t('add') }}
{{ $t('deleteBatch') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {{scope.$index+1}}
+
+
+
+
+
+
+
+
+
+
+
+
+
- {{ $t('update') }}
- {{ $t('delete') }}
+ {{ $t('update') }}
+ {{ $t('delete') }}
@@ -74,12 +98,42 @@ export default {
deleteIsBatch: true
},
dataForm: {
- id: ''
+ id: '',
+ name: '',
+ state: '',
+ startTime: '',
+ endTime: ''
+ },
+ stateArr: [
+ { dictValue: '1', dictName: '上架' },
+ { dictValue: '0', dictName: '下架' }
+ ],
+ pickerBeginDateBefore: {
+ disabledDate: (time) => {
+ let beginDateVal = this.dataForm.endTime
+ if (beginDateVal) {
+ return time.getTime() > new Date(beginDateVal + ' 00:00:00').getTime()
+ }
+ }
+ },
+ pickerBeginDateAfter: {
+ disabledDate: (time) => {
+ let EndDateVal = this.dataForm.startTime
+ if (EndDateVal) {
+ return time.getTime() < new Date(EndDateVal + ' 00:00:00').getTime()
+ }
+ }
}
}
},
components: {
AddOrUpdate
+ },
+ methods: {
+ btKeyUpname (e) {
+ e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '')
+ this.dataForm.name = e.target.value
+ }
}
}