Commit 5777c5bc by xuyl

修复智能名片展示页面与访问记录页面bug

1 parent ae7c5c21
......@@ -262,6 +262,7 @@ export default {
<style lang="scss" scoped>
.visitCont {
cursor: pointer;
color: #5850FF;
}
.popover-panel {
width: 1000px;
......
......@@ -19,6 +19,7 @@
</el-form-item>
<el-form-item size="small" style="float: right; margin-left: 40px">
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="handleReset">重置</el-button>
</el-form-item>
</el-form>
</div>
......@@ -26,6 +27,13 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="accessToRecords(scope)">访问记录</el-button>
</div>
<div class="table-btns" slot="nickName" slot-scope="scope">
{{ scope.scope.nickName }}
<span class="typeInfo">{{scope.scope.type == '1' ? '@微信':scope.scope.type == '2'?'@企微' : '' }}</span>
</div>
<div class="table-btns" slot="isJoin" slot-scope="scope">
{{ scope.scope.isJoin == '0' ? '否' : scope.scope.isJoin == '1' ? '是' : '--' }}
</div>
</GLTable>
<el-dialog class="recordDialog" title="访问记录" :visible.sync="dialogTableVisible" width="38%" :top="0">
<el-table :data="recordRelationList">
......@@ -60,7 +68,8 @@ export default {
tableColumns: [
{
label: '访客',
prop: 'nickName'
prop: 'nickName',
addHtml: 'nickName'
},
{
label: '手机号码',
......@@ -69,9 +78,7 @@ export default {
{
label: '已加企微',
prop: 'isJoin',
formatter: value => {
return '是'
}
addHtml: 'isJoin'
},
{
label: '渠道名称',
......@@ -134,6 +141,20 @@ export default {
this.endDate = ''
this.codeSearch()
},
handleReset() {
Object.keys(this.tableSearchForm).forEach((key) => {
this.tableSearchForm[key] = ''
})
this.createTime = []
this.timeRadio = 1
let params = {
...this.tableSearchForm,
pageSize: 1,
pageNum: 10,
dateInterval: 1
}
this.sendPageListApi(params)
},
handleSearch() {
this.codeSearch()
},
......@@ -146,6 +167,10 @@ export default {
endDate: this.endDate,
dateInterval: this.dateInterval
}
this.sendPageListApi(params)
},
sendPageListApi(params){
this.$apis.businessCard.getaccessToRecordsPage(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
......@@ -167,6 +192,10 @@ export default {
</script>
<style lang="scss" scoped>
.typeInfo{
font-size: 12px;
color: #2CCA74;
}
/deep/.recordDialog {
.el-dialog {
height: 100vh;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!