forked from github/dataease
fix: API 数据集校验
This commit is contained in:
parent
5710e3b058
commit
67a62ead86
@ -434,7 +434,7 @@
|
|||||||
|
|
||||||
<el-row v-show="active === 1">
|
<el-row v-show="active === 1">
|
||||||
<el-form
|
<el-form
|
||||||
ref="apiItem"
|
ref="apiItemBasicInfo"
|
||||||
size="small"
|
size="small"
|
||||||
:model="apiItem"
|
:model="apiItem"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
@ -941,10 +941,8 @@ export default {
|
|||||||
this.$message.error(i18n.t("datasource.has_repeat_name"));
|
this.$message.error(i18n.t("datasource.has_repeat_name"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.apiItem.name || !this.apiItem.url) {
|
|
||||||
return;
|
this.$refs.apiItemBasicInfo.validate((valid) => {
|
||||||
}
|
|
||||||
this.$refs.apiItem.validate((valid) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const data = JSON.parse(JSON.stringify(this.apiItem));
|
const data = JSON.parse(JSON.stringify(this.apiItem));
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@ -977,7 +975,7 @@ export default {
|
|||||||
},
|
},
|
||||||
closeEditItem() {
|
closeEditItem() {
|
||||||
this.active = 0;
|
this.active = 0;
|
||||||
this.$refs.apiItem.clearValidate();
|
this.$refs.apiItemBasicInfo.clearValidate();
|
||||||
this.edit_api_item = false;
|
this.edit_api_item = false;
|
||||||
},
|
},
|
||||||
saveItem() {
|
saveItem() {
|
||||||
|
Loading…
Reference in New Issue
Block a user