java微服务框架之Student

2021-04-22 12:30

阅读:602

标签:sage   disable   ini   ram   ntc   dex   idt   prim   dia   

},
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;

var arr = [];

for (var i = 0; i arr[i] = 0;
for (var j = 0; j arr[i] += this.tableData[i].houseList[j].fraction;

}
this.tableData[i].zfen = arr[i];
}
console.log(this.tableData);
});
}
}
}

java微服务框架之Student

标签:sage   disable   ini   ram   ntc   dex   idt   prim   dia   

原文地址:https://www.cnblogs.com/whyuan/p/13276823.html


评论


亲,登录后才可以留言!