master
tangyi 2022-01-12 18:44:24 +08:00
parent 9918fe441f
commit 3bf173d9c0
1 changed files with 29 additions and 25 deletions

View File

@ -298,7 +298,7 @@ export default {
TopicPageData: {
current: 1,
libraryType: "topic_type_1",
size:""
size: 5,
},
topicData: {
createTime: "",
@ -368,6 +368,7 @@ export default {
},
mounted() {
this.projectData = JSON.parse(localStorage.topicData);
this.getProject();
},
methods: {
options(num) {
@ -391,8 +392,9 @@ export default {
},
addprojectTopic() {
console.log(123);
this.axios
.psot("/hysc/library/addTopic", this.topicData)
.post("/hysc/library/addTopic", this.topicData)
.then(function (response) {
console.log(response.data.data);
})
@ -403,7 +405,7 @@ export default {
addProject() {
this.drawer = true;
this.addCation();
this.topicData.projectId=this.projectData.id
this.topicData.projectId = this.projectData.id;
},
handleClose() {
this.drawer = false;
@ -453,21 +455,23 @@ export default {
//
getProject() {
let param = new URLSearchParams();
let that = this;
// let that = this;
param.append("code", "topic_type_4");
param.append("current", this.TopicPageData.current);
param.append("libraryType", this.TopicPageData.libraryType);
param.append("size", this.TopicPageData.size);
this.axios
.get("/hysc/system/dict/dictionary", {
.get("/hysc/library/getTopicPage", {
params: param,
})
.then(function (response) {
console.log(response.data.data);
that.selectClassData = response.data.data;
// that.selectClassData = response.data.data;
})
.catch(function (error) {
console.log(error);
});
}
},
},
};
</script>