|
|
@@ -78,6 +78,16 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="receiverId"
|
|
|
+ label="消息状态"
|
|
|
+ width="100"
|
|
|
+ >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span v-html="'已发送'" v-if="row.receiverId!=null " style="color:green;"></span>
|
|
|
+ <span v-html="'未发送'" v-else style="color:gray;"></span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="name"
|
|
|
label="姓名"
|
|
|
@@ -87,7 +97,11 @@
|
|
|
prop="sex"
|
|
|
label="性别"
|
|
|
width="100"
|
|
|
- ></el-table-column>
|
|
|
+ >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ {{row.sex=='1' ? '男' : '女'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="phone"
|
|
|
label="电话"
|
|
|
@@ -96,7 +110,7 @@
|
|
|
<el-table-column
|
|
|
prop="companyName"
|
|
|
label="单位名称"
|
|
|
- width="150"
|
|
|
+ width="200"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="companyStructName"
|
|
|
@@ -300,7 +314,11 @@ export default {
|
|
|
handleBatchSend() {
|
|
|
var self = this;
|
|
|
|
|
|
- var idList = this.multipleSelection.map((record) => {
|
|
|
+ var idList = this.multipleSelection
|
|
|
+ .filter((record)=>{
|
|
|
+ return record.receiverId==null
|
|
|
+ })
|
|
|
+ .map((record) => {
|
|
|
return record.id;
|
|
|
});
|
|
|
|