fix(接口定义): 修复同步备注和依赖关系checkbox不能取消的问题

This commit is contained in:
CaptainB 2022-01-18 20:13:11 +08:00 committed by 刘瑞斌
parent 0ee86b6ddf
commit 0d05cd92d9
4 changed files with 8 additions and 9 deletions

View File

@ -340,8 +340,8 @@ export default {
create(row) {
//
this.basisData.versionId = row.id;
this.basisData.newVersionRemark = !!this.basisData.remark;
this.basisData.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0;
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
this.createNewVersionVisible = true;
} else {

View File

@ -660,9 +660,8 @@ export default {
create(row) {
//
this.httpForm.versionId = row.id;
this.httpForm.newVersionRemark = !!this.httpForm.remark;
this.httpForm.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0;
this.$set(this.httpForm, 'newVersionRemark', !!this.httpForm.remark);
this.$set(this.httpForm, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.httpForm.remark) {
this.createNewVersionVisible = true;
} else {

View File

@ -346,8 +346,8 @@ export default {
create(row) {
//
this.basisData.versionId = row.id;
this.basisData.newVersionRemark = !!this.basisData.remark;
this.basisData.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0;
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
this.createNewVersionVisible = true;
} else {

View File

@ -468,8 +468,8 @@ export default {
create(row) {
//
this.basisData.versionId = row.id;
this.basisData.newVersionRemark = !!this.basisData.remark;
this.basisData.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0;
this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark);
this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) {
this.createNewVersionVisible = true;
} else {