|
@@ -73,24 +73,21 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import uploadFiles from "@/components/public/uploadFiles"
|
|
|
|
-import { prodRecordQuery } from "@/api/product"
|
|
|
|
-import { mapGetters } from "vuex"
|
|
|
|
|
|
+ import uploadFiles from "@/components/public/uploadFiles"
|
|
|
|
+ import {prodRecordQuery} from "@/api/product"
|
|
|
|
+ import {mapGetters} from "vuex"
|
|
|
|
|
|
-export default {
|
|
|
|
- components: { uploadFiles },
|
|
|
|
- created() {
|
|
|
|
- this.getProdType()
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
- // this.$refs.ruleForm.validate(valid => {
|
|
|
|
- // console.log(valid)
|
|
|
|
- // })
|
|
|
|
-
|
|
|
|
- let listener = document.querySelector('.saga-brand-box')
|
|
|
|
- listener.addEventListener('scroll', this.onScroll)
|
|
|
|
- // option
|
|
|
|
- this.list = this.states.map(item => {
|
|
|
|
|
|
+ export default {
|
|
|
|
+ components: {uploadFiles},
|
|
|
|
+ created() {
|
|
|
|
+ this.getProdType()
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ console.log(this.$route.query)
|
|
|
|
+ let listener = document.querySelector('.saga-brand-box')
|
|
|
|
+ listener.addEventListener('scroll', this.onScroll)
|
|
|
|
+ // option
|
|
|
|
+ this.list = this.states.map(item => {
|
|
return { value: `value:${item}`, label: `label:${item}` }
|
|
return { value: `value:${item}`, label: `label:${item}` }
|
|
})
|
|
})
|
|
|
|
|
|
@@ -195,7 +192,7 @@ export default {
|
|
tabPosition: 'left',
|
|
tabPosition: 'left',
|
|
ruleForm: {
|
|
ruleForm: {
|
|
product: '',
|
|
product: '',
|
|
- brand: '',
|
|
|
|
|
|
+ brand: [],
|
|
type: '',
|
|
type: '',
|
|
|
|
|
|
},
|
|
},
|
|
@@ -204,7 +201,7 @@ export default {
|
|
{ required: true, message: '请选择产品类型', trigger: 'change' }
|
|
{ required: true, message: '请选择产品类型', trigger: 'change' }
|
|
],
|
|
],
|
|
brand: [
|
|
brand: [
|
|
- { required: true, validator: checkBrand, trigger: 'focus,blur' }
|
|
|
|
|
|
+ { required: true, validator: checkBrand, trigger: 'change' }
|
|
],
|
|
],
|
|
type: [
|
|
type: [
|
|
{ required: true, message: '请输入型号', trigger: 'blur' }
|
|
{ required: true, message: '请输入型号', trigger: 'blur' }
|