|
@@ -1449,19 +1449,19 @@ export default {
|
|
|
this.$refs[item.error_field][0].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
|
|
|
this.$refs[item.error_field][0].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
} else {
|
|
|
- // this.$refs[item.error_field].className = item.category<=1 ? 'choose-twinkle':'choose-twinkle-1';
|
|
|
- // this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
- if (item.basis.length > 1) {
|
|
|
- this.$nextTick(() => {
|
|
|
- item.basis.forEach(e => {
|
|
|
- this.$refs[e].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
|
|
|
- });
|
|
|
- this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$refs[item.error_field].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
|
|
|
- this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
- }
|
|
|
+ this.$refs[item.error_field].className = item.category<=1 ? 'choose-twinkle':'choose-twinkle-1';
|
|
|
+ this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
+ // if (item.basis.length > 1) {
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // item.basis.forEach(e => {
|
|
|
+ // this.$refs[e].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
|
|
|
+ // });
|
|
|
+ // this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.$refs[item.error_field].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
|
|
|
+ // this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
// 加载数据后渲染颜色
|