dxd 2 年之前
父節點
當前提交
bb99841c67
共有 3 個文件被更改,包括 7 次插入8 次删除
  1. 0 1
      src/views/menu5/menu5-1/index.vue
  2. 6 6
      src/views/menu5/menu5-2/index.vue
  3. 1 1
      src/views/menu5/menu5-3/index.vue

+ 0 - 1
src/views/menu5/menu5-1/index.vue

@@ -662,7 +662,6 @@ export default {
       this.open1(data);
     },
     getItems(data) {
-      debugger
       this.curID = data ? data.id : "0";
       this.curTree = data ? data : {};
       let params = {

+ 6 - 6
src/views/menu5/menu5-2/index.vue

@@ -475,8 +475,8 @@ export default {
       resourceApi.getCategories(this.leftQuery).then((res) => {
         if (res.mess == "success") {
           this.treeData = res.data;
-          this.getItems(this.treeData);
-          this.getTask(this.treeData);
+          this.getItems();
+          this.getTask();
         }
       });
     },
@@ -490,7 +490,6 @@ export default {
       });
     },
     getTask(data) {
-      debugger;
       this.curID = data ? data.id : "0";
       this.curTree = data ? data : {};
       let params = {
@@ -509,8 +508,8 @@ export default {
       this.curID = data ? data.id : "0";
       this.curTree = data ? data : {};
       let params = {
-        name: data ? data.name : "",
-        ctgid: data.id,
+        name: this.listQuery.name,
+        ctgid: this.curID,
       };
       this.newForm.ctgid = params.ctgid;
       paperApi.getPapers(params).then((res) => {
@@ -592,7 +591,7 @@ export default {
       this.leftQuery.period = "高中";
       this.leftQuery.subject = "语文";
       this.curID = 0;
-      this.getTask()
+      this.getTask();
       this.$refs.treeInner.setCurrentKey(null);
     },
     back() {
@@ -601,6 +600,7 @@ export default {
     },
     addItems() {
       this.status = 1;
+      this.newForm = {};
     },
     Schange(e) {
       DictsApi.grades({ sid: e }).then((res) => {

+ 1 - 1
src/views/menu5/menu5-3/index.vue

@@ -569,7 +569,6 @@ export default {
     handle(name, index, row) {
       switch (name) {
         case "detail":
-          
           break;
         case "del":
           break;
@@ -669,6 +668,7 @@ export default {
     },
     addItems() {
       this.status = 1;
+      this.newForm = {};
     },
 
     startScan() {