ronaldo9Zhang 2 жил өмнө
parent
commit
4e3790fc38

+ 3 - 3
src/views/modelLibrary/components/formPerfectSensor.vue

@@ -395,9 +395,9 @@ export default {
         },
         handleCheckedTargetChange(value) {
             let checkedCount = value.length;
-            this.checkAll = checkedCount === this.form.targetFilter.length;
-            this.isIndeterminate =
-                checkedCount > 0 && checkedCount < this.targetOptions.length;
+            this.checkAll = (checkedCount != 0) && (checkedCount === this.form.targetFilter.length);
+            // this.checkAll = checkedCount === this.form.targetFilter.length;
+            this.isIndeterminate = checkedCount > 0 && checkedCount < this.targetOptions.length;
         },
         inputChange() {
             if (

+ 2 - 0
src/views/modelLibrary/vehicleConfigurationDetail.vue

@@ -625,6 +625,8 @@ export default {
             this.form.vehicleDescription = item.description;
             this.carModel = this.getImgUrl(item.vehicleFrontView);
 
+            this.$refs.form.clearValidate("vehicleDescription");
+
             // let arr = [...this.vehicleNameList[0].options, ...this.vehicleNameList[1].options];
             // let item = arr.find((i) => i.id == id);
             // this.form.vehicleDescription = item.description;