报错
This commit is contained in:
		| @@ -33,11 +33,11 @@ | ||||
|                     @change="onSelcetChange"> | ||||
|                     <div class="AppAnnounceDetail-select"> | ||||
|                       <el-input size="small" class="AppAnnounceDetail-select__input" placeholder="请选择..." disabled v-model="form.wxGroupsName"></el-input> | ||||
|                       <div class="select-left" v-if="form.wxGroups.length"> | ||||
|                       <div class="select-left" v-if="form.wxGroups && form.wxGroups.length"> | ||||
|                         <span v-for="(item, index) in form.wxGroups" :key="index" v-if="index < 9">{{ item.groupOwnerName }}</span> | ||||
|                         <em v-if="form.wxGroups.length > 9">等{{ form.wxGroups.length }}个</em> | ||||
|                       </div> | ||||
|                       <i v-if="!form.wxGroups.length">请选择</i> | ||||
|                       <i v-else>请选择</i> | ||||
|                       <div class="select-right">{{ form.filterCriteria.length ? '重新选择' : '选择' }}</div> | ||||
|                     </div> | ||||
|                   </ai-picker> | ||||
| @@ -54,7 +54,7 @@ | ||||
|                 <el-form-item label="发送内容" prop="content" style="width: 100%;" :rules="[{ required: true, message: '请输入发送内容', trigger: 'blur' }]"> | ||||
|                   <el-input size="small" type="textarea" :rows="6" maxlength="1300" show-word-limit placeholder="请输入文本内容..." v-model="form.content"></el-input> | ||||
|                   <div class="add"> | ||||
|                     <div class="fileList" v-if="fileList.length"> | ||||
|                     <div class="fileList" v-if="fileList && fileList.length"> | ||||
|                       <div class="add-item" v-for="(item, index) in fileList" :key="index"> | ||||
|                         <div class="left"> | ||||
|                           <img :src="mapIcon(item.msgType)"/> | ||||
| @@ -173,7 +173,7 @@ | ||||
|                   <ai-user-selecter :instance="instance" v-model="form.examines" @change="onUserChange"> | ||||
|                     <div class="AppAnnounceDetail-select"> | ||||
|                       <el-input class="AppAnnounceDetail-select__input" size="small" placeholder="请选择..." v-model="form.examinesName"></el-input> | ||||
|                       <div class="select-left" v-if="form.examines.length"> | ||||
|                       <div class="select-left" v-if="form.examines && form.examines.length"> | ||||
|                         <span v-for="(item, index) in form.examines" :key="index">{{ item.name }}</span> | ||||
|                       </div> | ||||
|                       <i v-if="!form.examines.length">请选择</i> | ||||
| @@ -381,10 +381,11 @@ export default { | ||||
|  | ||||
|     groupLen() { | ||||
|       let i = 0 | ||||
|       this.form.wxGroups.forEach(v => { | ||||
|         i = i + v.groupIds.split(',').length | ||||
|       }) | ||||
|  | ||||
|       if(this.form.wxGroups && this.form.wxGroups.length) { | ||||
|         this.form.wxGroups.forEach(v => { | ||||
|           i = i + v.groupIds.split(',').length | ||||
|         }) | ||||
|       } | ||||
|       return i | ||||
|     } | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user