Commit 073c7cef by 前端

Merge branch 'xuyl_dev_v2.10.0' into 'v2.10.0'

访问量搜索条件置灰,无标签错误样式调整

See merge request !30
2 parents 47787627 4a58638a
......@@ -28,15 +28,15 @@
<el-popover trigger="hover" placement="top" v-if="JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length > 3">
<GLTitle :content="item.name" class="accountType-row accountType-row-tag" v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index"></GLTitle>
<div slot="reference" class="name-wrapper" style="display:flex">
<div v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index" v-show="index < 4">
<div style="display:flex" v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index" v-show="index < 4">
<div :title="item.name" class="accountType-row accountType-row-tag" v-if="index == 3 && JSON.parse(scope.scope.tagJson).length > 3">{{ '...(' + JSON.parse(scope.scope.tagJson).length + ')' }}</div>
<GLTitle :content="item.name" class="accountType-row accountType-row-tag" v-else></GLTitle>
</div>
</div>
</el-popover>
<div style="display:flex">
<div style="display:flex">
<template v-if="JSON.parse(scope.scope.tagJson) && JSON.parse(scope.scope.tagJson).length <= 3 && JSON.parse(scope.scope.tagJson).length > 0">
<div v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index">
<div style="display:flex" v-for="(item, index) in JSON.parse(scope.scope.tagJson)" :key="index">
<GLTitle :content="item.name" class="accountType-row accountType-row-tag"></GLTitle>
</div>
</template>
......@@ -59,7 +59,7 @@
</template>
<script>
import util from "@/utils/util";
import util from '@/utils/util'
export default {
name: 'cardList',
......@@ -183,9 +183,9 @@ export default {
methods: {
// 跳转访问量
visitCisitCont(scope) {
const { cardName, visitCont, id: cardId } = scope
const { cardName, visitCont, id: cardId, staffName } = scope
if (!visitCont) return
this.$parent.query = { cardName, cardId }
this.$parent.query = { cardName, cardId, staffName }
this.$parent.activeName = '2'
},
staffNameSplit(name) {
......@@ -295,7 +295,7 @@ export default {
line-height: 20px;
}
.tag-panel {
margin-bottom: -8px;
//margin-bottom: -8px;
.tag-item {
border-radius: 4px;
border: 1px solid #e8e8ea;
......@@ -382,7 +382,7 @@ export default {
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
//margin-bottom: 5px;
margin-right: 5px;
&-tag {
display: inline-block;
......
......@@ -6,10 +6,10 @@
<el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small" label="渠道名称:">
<el-input size="small" v-model="tableSearchForm.cardName" placeholder="请输入渠道名称"></el-input>
<el-input size="small" v-model="tableSearchForm.cardName" placeholder="请输入渠道名称" :disabled="isShowInput"></el-input>
</el-form-item>
<el-form-item size="small" label="名片来源:">
<el-input size="small" v-model="tableSearchForm.staffName" placeholder="请输入名片来源"></el-input>
<el-input size="small" v-model="tableSearchForm.staffName" placeholder="请输入名片来源" :disabled="isShowInput"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right; margin-left: 12px">
<el-button type="primary" @click="handleSearch">查询</el-button>
......@@ -32,17 +32,17 @@
</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>
<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-dialog class="recordDialog" title="访问记录" :visible.sync="dialogTableVisible" width="38%" :top="0">
<el-table :data="recordRelationList">
<el-table-column type="index" :index="1" label="序号" width="120"></el-table-column>
<el-table-column property="pageName" label="访问页面" width="220"></el-table-column>
<el-table-column property="createdTime" label="访问时间" ></el-table-column>
<el-table-column property="createdTime" label="访问时间"></el-table-column>
</el-table>
</el-dialog>
</div>
......@@ -53,6 +53,7 @@ export default {
name: 'recordList',
data() {
return {
isShowInput: false,
recordRelationList: [],
dialogTableVisible: false,
timeRadio: 1,
......@@ -145,7 +146,8 @@ export default {
this.codeSearch()
},
handleReset() {
Object.keys(this.tableSearchForm).forEach((key) => {
this.isShowInput = false
Object.keys(this.tableSearchForm).forEach(key => {
this.tableSearchForm[key] = ''
})
this.createTime = []
......@@ -173,7 +175,7 @@ export default {
this.sendPageListApi(params)
},
sendPageListApi(params){
sendPageListApi(params) {
this.$apis.businessCard.getaccessToRecordsPage(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
......@@ -182,10 +184,12 @@ export default {
},
mounted() {
if (this.$parent.query && this.$parent.query.cardName) {
let { cardName,cardId } = this.$parent.query
let { cardName, cardId, staffName } = this.$parent.query
this.timeRadio = this.dateInterval = 4
this.$set(this.tableSearchForm, 'cardName', cardName)
this.$set(this.tableSearchForm, 'staffName', staffName)
this.$set(this.tableSearchForm, 'cardId', cardId)
this.isShowInput = true
}
this.codeSearch()
},
......@@ -196,23 +200,23 @@ export default {
</script>
<style lang="scss" scoped>
.resetBtn{
.resetBtn {
margin-left: 8px;
}
.titleAndTime{
.titleAndTime {
display: flex;
justify-content: space-between;
align-items: center;
align-items: center;
margin-bottom: 12px;
.listTitle{
.listTitle {
font-size: 16px;
font-weight: 600;
color: #333;
}
}
.typeInfo{
.typeInfo {
font-size: 12px;
color: #2CCA74;
color: #2cca74;
}
/deep/.recordDialog {
.el-dialog {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!