Skip to content

Commit

Permalink
fix: 测试问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
luofann committed Nov 13, 2023
1 parent 74f2dbc commit 4af64f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,11 @@
subItemSchema.field_schema.forEach(fieldSchema => {
if (fieldSchema.required) {
if (fieldSchema.type === 'MEMBERS' || fieldSchema.type === 'MULTI_MEMBERS') {
responseItem.contentStatus = responseItem.contentStatus ? responseItem.contentStatus : fieldSchema.value.some(schemaMem => (Array.isArray(schemaMem.value) ? !schemaMem.value.length : !schemaMem.value));
responseItem.contentStatus = responseItem.contentStatus ? responseItem.contentStatus : fieldSchema.value.some(schemaMem => {
const { key, value } = schemaMem;
return !['STARTER_LEADER', 'ASSIGN_LEADER', 'VARIABLE_LEADER'].includes(key)
&& (Array.isArray(value) ? !value.length : !value);
});
} else {
responseItem.contentStatus = responseItem.contentStatus ? responseItem.contentStatus : !fieldSchema.value;
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/pc/src/views/systemConfig/dataDictionary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
},
// 新增字典
openAddData(item) {
this.slideData = item;
this.slideData = { ...item, ownersInputValue: item.owners ? item.owners.split(',') : [] };
this.customSettings.title = item.id ? this.$t('m.systemConfig["编辑字典"]') : this.$t('m.systemConfig["新增字典"]');
this.customSettings.isShow = true;
},
Expand Down

0 comments on commit 4af64f9

Please sign in to comment.