|
@@ -614,6 +614,8 @@ export default {
|
|
name: "",
|
|
name: "",
|
|
pno: "",
|
|
pno: "",
|
|
};
|
|
};
|
|
|
|
+ this.leftQuery.period = "高中";
|
|
|
|
+ this.leftQuery.subject = "语文";
|
|
this.curID = 0;
|
|
this.curID = 0;
|
|
this.getItems();
|
|
this.getItems();
|
|
this.$refs.treeInner.setCurrentKey(null);
|
|
this.$refs.treeInner.setCurrentKey(null);
|
|
@@ -745,8 +747,8 @@ export default {
|
|
this.dialogForm.ctype = "work";
|
|
this.dialogForm.ctype = "work";
|
|
this.dialogForm.ctgid = res.data.category_id;
|
|
this.dialogForm.ctgid = res.data.category_id;
|
|
console.log(this.dialogForm);
|
|
console.log(this.dialogForm);
|
|
- this.dialogForm.imgs = this.dialogForm.imgs.map(
|
|
|
|
- (item) => item.url?item.url:item
|
|
|
|
|
|
+ this.dialogForm.imgs = this.dialogForm.imgs.map((item) =>
|
|
|
|
+ item.url ? item.url : item
|
|
);
|
|
);
|
|
console.log(this.dialogForm);
|
|
console.log(this.dialogForm);
|
|
paperApi.edit(this.dialogForm).then((res) => {
|
|
paperApi.edit(this.dialogForm).then((res) => {
|