Commit 8fbb03b3 by 李君

优化

1 parent 7368dacc
......@@ -52,15 +52,15 @@
header-row-class-name="manage-tab-head"
>
<el-table-column :label="$t('table.order')" align="center" type="index" width="100"></el-table-column>
<el-table-column :label="$t('table.alarmType')" align="center" prop="messageType">
<el-table-column :label="$t('table.alarmType')" align="center" prop="messageType" width="160">
<template slot-scope="scope">
<span>{{scope.row.messageType==0?$t('table.queueLengthAlert'):$t('table.waitTimeAlert')}}</span>
</template>
</el-table-column>
<el-table-column :label="$t('table.laneName')" align="center" prop="cashierChannelId"></el-table-column>
<el-table-column :label="$t('table.laneName')" width="160" align="center" prop="cashierChannelId" :formatter="landFormat"></el-table-column>
<el-table-column :label="$t('table.messageContent')" align="center" prop="messageContent" show-overflow-tooltip></el-table-column>
<el-table-column :label="$t('table.sentDate')" align="center" prop="createTime"></el-table-column>
<el-table-column :label="$t('table.state')" align="center" prop="status">
<el-table-column :label="$t('table.sentDate')" align="center" prop="createTime" width="160"></el-table-column>
<el-table-column :label="$t('table.state')" align="center" prop="status" width="100">
<template slot-scope="scope">
<span>{{scope.row.status==1?$t('table.sendSuccess'):$t('table.sendFail')}}</span>
</template>
......@@ -201,6 +201,15 @@
}
})
},
landFormat(row, column, cellValue){
let result = ''
this.channelListData.forEach(item=>{
if(item.id==cellValue){
result = item.name
}
})
return result
},
alarmRulesFun(){
this.$api.queueManagementApi.getAlarmRulesList({
mallId: this.searchForm.mallId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!