Browse Source

feat: 邀请入群配置 - 新增设置"群公告"

zhengxy 11 months ago
parent
commit
a00f7040a5
1 changed files with 20 additions and 0 deletions
  1. 20 0
      project/src/components/manage/InviteIntoGroup/createData.vue

+ 20 - 0
project/src/components/manage/InviteIntoGroup/createData.vue

@@ -145,6 +145,22 @@
145 145
       </div>
146 146
       <!-- E 群管理表格 -->
147 147
 
148
+      <!-- 群公告 announcement -->
149
+      <div class="regulations">
150
+        <label>群公告</label>
151
+        <div class="flex">
152
+          <el-input
153
+            type="textarea"
154
+            placeholder="请输入群公告"
155
+            v-model="announcement"
156
+            clearable
157
+            :disabled="!editFlag"
158
+            style="width:300px"
159
+            size="small"
160
+            :rows="6"
161
+          />
162
+        </div>
163
+      </div>
148 164
 
149 165
       <div class="regulations">
150 166
         <label><em>*</em>邀请类型</label>
@@ -194,6 +210,7 @@ export default {
194 210
       loading: true,
195 211
       editFlag: true,
196 212
       name: '',//群发标题
213
+      announcement: '', // 群公告
197 214
       is_for_all: 1,
198 215
       user_id_list: [],
199 216
       main_msg_data: {
@@ -328,6 +345,8 @@ export default {
328 345
 
329 346
           //标题
330 347
           this.name = res.rst.title;
348
+          //群公告
349
+          this.announcement = res.rst.announcement;
331 350
           //客服
332 351
           this.user_id_list = res.rst.users ? res.rst.users : [];
333 352
           if (res.rst.users && res.rst.users.length > 0) {
@@ -431,6 +450,7 @@ export default {
431 450
       let params = {
432 451
         rule_id: this.rule_id ? this.rule_id : '',
433 452
         title: this.name,
453
+        announcement: this.announcement,
434 454
         is_for_all:this.is_for_all,
435 455
         users:this.user_id_list&&this.user_id_list.length>0 ? this.user_id_list.join(',') : '',
436 456
         invite_config:JSON.stringify(this.main_msg_data.chat_group_config),