java微服务框架之Student
2021-04-22 12:30
标签:sage disable ini ram ntc dex idt prim dia }, }, }, }, var arr = []; for (var i = 0; i arr[i] = 0; } java微服务框架之Student 标签:sage disable ini ram ntc dex idt prim dia 原文地址:https://www.cnblogs.com/whyuan/p/13276823.html
{{item.fraction}}
成绩
成绩
onSubmit() {
console.log(this.formInline);
this.initData();
},
handleSizeChange(val) {
this.size = val;
this.initData();
},
handleCurrentChange(val) {
this.page = val;
this.initData();
},
addStus() {
if (this.insertDalogVisible) {
console.log(this.insertForm);
this.axios.post(‘http://localhost:8800/api/student/insert‘, this.insertForm).then((res) => {
if (res.data.result) {
this.$message.success(‘添加成功‘);
this.insertDalogVisible = false;
this.initData();
}
});
} else if (this.editDalogVisible) {
console.log(this.editForm);
this.axios.post(‘http://localhost:8800/api/student/insert‘, this.editForm).then((res) => {
if (res.data.result) {
this.$message.success(‘修改成功‘);
this.editDalogVisible = false;
this.initData();
}
});
}
removeDomain(item) {
if (this.insertDalogVisible) {
var index = this.insertForm.houseList.indexOf(item)
if (index !== -1) {
this.insertForm.houseList.splice(index, 1)
}
} else if (this.editDalogVisible) {
var index = this.editForm.houseList.indexOf(item)
if (index !== -1) {
this.editForm.houseList.splice(index, 1)
}
}
addDomain() {
if (this.insertDalogVisible) {
this.insertForm.houseList.push({
name: ‘‘,
fraction: ‘‘
});
} else if (this.editDalogVisible) {
this.editForm.houseList.push({
name: ‘‘,
fraction: ‘‘
});
}
initData() {
this.axios.get(‘http://localhost:8800/api/student/list‘, {
params: {
page: this.page,
size: this.size,
name: this.formInline.name,
cname: this.formInline.cname
}
}).then((res) => {
console.log(res);
this.tableData = res.data.result.content;
this.total = res.data.result.totalElements;
for (var j = 0; j arr[i] += this.tableData[i].houseList[j].fraction;
this.tableData[i].zfen = arr[i];
}
console.log(this.tableData);
});
}
}
}
上一篇:java学习第四天7/9
下一篇:Flask之线程与协程