瀏覽代碼

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

plg 2 月之前
父節點
當前提交
89e470dc8f
共有 1 個文件被更改,包括 8 次插入4 次删除
  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);