diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 688684d5..ea8dd3b1 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -74,9 +74,9 @@ 车辆类型 - - {{item.name}} + + {{item.name}} @@ -175,6 +175,7 @@ export default { computed: { computedTypeList() { return this.typeList.map((item, index) => { + console.log("item, index",item, index) if (this.isMultiple) { if ([2, 5, 6, 7, 8, 9].includes(index)) { return { ...item, disabled: true }; @@ -186,10 +187,11 @@ export default { }); }, }, - watch: { +/* watch: { typeList: { handler(newVal) { - if (newVal.length === 4) { // 假设你想判断数组长度是否为 4 + console.log("newVal",newVal) + if (newVal.length === 2) { // 假设你想判断数组长度是否为 4 this.isMultiple = true; } else { this.isMultiple = false; @@ -197,12 +199,13 @@ export default { }, deep: true, }, - }, + },*/ async mounted() { this.id=this.$route.params?.id const selectElement = document.getElementById('mySelect'); selectElement.addEventListener('change', function() { this.selectedOption=selectElement.value; + console.log(" this.selectedOption", this.selectedOption) }); await this.getTypeList(); if( this.id){ @@ -211,6 +214,9 @@ export default { await this.getSupplierServiceTree(); }, methods:{ + setChange(){ + console.log("===========",this.selectedOption) + }, async vehicleLicenseFrontHandler(file) { // 上传 行驶证首页 const formData = new FormData(); formData.append("file" , file.file);