فهرست منبع

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

yz 2 هفته پیش
والد
کامیت
265b3637f6
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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,