Browse Source

fix(announcement): 修复组织信息默认值设置逻辑

yz 2 tuần trước cách đây
mục cha
commit
265b3637f6
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/announcement/mixins/announcementIndex.js

+ 3 - 3
src/views/announcement/mixins/announcementIndex.js

@@ -503,9 +503,9 @@ export default {
                 // 设置默认值
                 const formData = {
                     ...row,
-                    orgId: this.userInfo.orgId || 1,
-                    orgCode: this.userInfo.orgCode || 'ORG_0001',
-                    orgName: this.userInfo.orgName || '默认组织',
+                    orgId: this.userInfo.orgId || row.orgId,
+                    orgCode: this.userInfo.orgCode || row.orgCode,
+                    orgName: this.userInfo.orgName || row.orgName,
                     brandScope: row.brandScope || {},
                     // customerBlacklist: Array.isArray(row.customerBlacklist) ? row.customerBlacklist : [],
                     customerBlacklist: updateCustomerBlacklist,