Commit 1a49e95a by qiyeqing

全局搜索 消息类型

1 parent dc054859
...@@ -16,9 +16,8 @@ ...@@ -16,9 +16,8 @@
</el-form-item> </el-form-item>
<el-form-item label="时间范围"> <el-form-item label="时间范围">
<el-date-picker v-model="form.Stime" type="datetimerange" format='yyyy-MM-dd' <el-date-picker v-model="form.Stime" type="datetimerange" format='yyyy-MM-dd' range-separator="至"
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" start-placeholder="开始日期" end-placeholder="结束日期" align="right">
align="right">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -33,7 +32,7 @@ ...@@ -33,7 +32,7 @@
</el-form> </el-form>
<div class="content"> <div class="content">
<el-table :data="fileData" stripe style="width: 100%" :header-cell-style="{background:'#fff'}"> <el-table :data="fileData" stripe style="width: 100%" :header-cell-style="{background:'#fff'}">
<el-table-column prop="date" label="发送者" width="300"> <el-table-column prop="date" label="发送者" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<p v-if="scope.row.fromInfo">{{scope.row.fromInfo.name}}</p> <p v-if="scope.row.fromInfo">{{scope.row.fromInfo.name}}</p>
</template> </template>
...@@ -48,8 +47,7 @@ ...@@ -48,8 +47,7 @@
<template slot="header"> <template slot="header">
{{floorRange}} {{floorRange}}
<el-select size="mini" v-model="floorRange" class="noborder" @change="chechName(floorRange)"> <el-select size="mini" v-model="floorRange" class="noborder" @change="chechName(floorRange)">
<el-option v-for="item in displayOptions" :key="item.value" :label="item.label" <el-option v-for="item in displayOptions" :key="item.value" :label="item.label" :value="item.value">
:value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</template> </template>
...@@ -103,7 +101,7 @@ ...@@ -103,7 +101,7 @@
}, },
currentPage: 1, currentPage: 1,
total: 0, total: 0,
ac:'', ac: '',
fileData: [], fileData: [],
floorRange: '全部', floorRange: '全部',
displayOptions: [{ displayOptions: [{
...@@ -144,7 +142,7 @@ ...@@ -144,7 +142,7 @@
beginTime: this.form.Stime ? yearMouthDay(this.form.Stime[0]) : "", beginTime: this.form.Stime ? yearMouthDay(this.form.Stime[0]) : "",
endTime: this.form.Stime ? yearMouthDay(this.form.Stime[1]) : "", endTime: this.form.Stime ? yearMouthDay(this.form.Stime[1]) : "",
pageNum: this.currentPage, pageNum: this.currentPage,
action:this.ac action: this.ac
} }
content.getChatAllList(query).then(res => { content.getChatAllList(query).then(res => {
console.log(res) console.log(res)
...@@ -153,29 +151,32 @@ ...@@ -153,29 +151,32 @@
}) })
}, },
chechName(e) { chechName(e) {
if (e == 0) { if (e == '') {
this.floorRange = '全部' this.floorRange = '全部'
this.ac='' this.ac = ''
} else if (e == 1) { } else if (e == 'send') {
this.floorRange = '已发送' this.floorRange = '已发送'
this.ac='send' this.ac = 'send'
} else if (e == 2) { } else if (e == 'recall') {
this.floorRange = '已撤回' this.floorRange = '已撤回'
this.ac='recall' this.ac = 'recall'
} else { } else {
this.floorRange = '切回企业日志' this.floorRange = '切回企业日志'
this.ac='switch' this.ac = 'switch'
} }
console.log(e,this.ac)
this.init() this.init()
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.demo-form-inline { .demo-form-inline {
background: #f1f1f1; background: #f1f1f1;
padding: 18px 10px 0 10px; padding: 18px 10px 0 10px;
} }
.content { .content {
margin-top: 15px; margin-top: 15px;
padding: 10px; padding: 10px;
...@@ -222,5 +223,9 @@ ...@@ -222,5 +223,9 @@
border: none border: none
} }
} }
.emcode /deep/ em{color: #ff0000;}
.emcode /deep/ em {
color: #ff0000;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!