提交: 项目管理-项目信息-租户,新增租户时,不选择直接点击‘确定’按钮,页面报sql错误 优化
This commit is contained in:
parent
b0684324ad
commit
c9885ae012
|
@ -354,11 +354,15 @@ export default {
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if ((this.form.tenantId !== null && this.form.tenantId !==undefined) && (this.form.projectId !== null && this.form.projectId !==undefined)) {
|
||||||
addProject_tenant(this.form).then(response => {
|
addProject_tenant(this.form).then(response => {
|
||||||
this.msgSuccess("新增成功");
|
this.msgSuccess("新增成功");
|
||||||
this.selectTableShow = false;
|
this.selectTableShow = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.$message.error('没有选择任何数据!');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
|
|
Loading…
Reference in New Issue