Explorar el Código

Merge branch 'master' of http://101.43.129.26:10880/psychological_camera/cpdm_manage into fix-new-第二版

plg hace 3 meses
padre
commit
89e470dc8f
Se han modificado 1 ficheros con 8 adiciones y 4 borrados
  1. 8 4
      src/components/PlanRegister.vue

+ 8 - 4
src/components/PlanRegister.vue

@@ -571,10 +571,14 @@ export default {
                   return true;
                 }
               });
-              let listNew =[]
-              listNew=  listTMP.filter((item)=>{
-                return item.value!=-1
-              })
+              let listNew = [];
+              listNew = listTMP.filter((item) => {
+                return item.value != -1;
+              });
+              listNew.sort((a, b) => {
+                return parseInt(b.label) - parseInt(a.label);
+              });
+
               this.gradeOption = listNew.reverse();
               //--------------------------------结束
               let resAdd = this.addPro(res.data);