Browse Source

fix(announcement): 修复新增公告时默认组织信息错误

yz 1 month ago
parent
commit
142f0bc6c3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/announcement/index.js

+ 4 - 4
src/views/announcement/index.js

@@ -547,10 +547,10 @@ export default {
             } else if (type === "add") {
                 // 新增时设置默认值
                 this.form = {
-                    orgId: this.userInfo.orgId || 1,
-                    orgCode: this.userInfo.orgCode || 'ORG_0001',
-                    orgName: this.userInfo.orgName || '默认组织',
-                    visibleRoles: [2], // 默认经销商
+                    orgId: this.userInfo.orgId || '',
+                    orgCode: this.userInfo.orgCode || '',
+                    orgName: this.userInfo.orgName || '',
+                    visibleRoles: [], // 默认经销商
                     brandScope: {},
                     customerBlacklist: {},
                     remark: ''