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