Commit 4a175cf7 by xuyl

更新状态新样式

1 parent 788b377e
@import '@/styles/variables.scss';
.el-tag {
color: #666!important;
font-size: 14px!important;
color: #666 !important;
font-size: 14px !important;
height: 26px;
line-height: 26px;
}
......@@ -112,4 +112,54 @@
.mgt10 {
margin-top: 10px;
}
.circleStatusRed {
width: 6px;
height: 6px;
border-radius: 50%;
background: #eb4e4e;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
.circleStatusGray {
width: 6px;
height: 6px;
border-radius: 50%;
background: #999999;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
.circleStatusGreen {
width: 6px;
height: 6px;
border-radius: 50%;
background: #2cca74;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
.circleStatusYellow {
width: 6px;
height: 6px;
border-radius: 50%;
background: #fdb757;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
.circleStatusPurple {
width: 6px;
height: 6px;
border-radius: 50%;
background: #5850FF;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
\ No newline at end of file
......@@ -15,6 +15,10 @@
<!-- <span class="dot" :class="scope.scope.enableStatus ? DICTSTATUS[scope.scope.enableStatus].split(',')[1] : ''"></span> -->
<span class="statusText" :class="scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[1] : ''">{{ scope.scope.status ? CLIENTSTATUS[scope.scope.status].split(',')[0] : '--' }}</span>
</span>
<span slot="delFlag" slot-scope="scope">
<span :class="{ circleStatusGreen: scope.scope.delFlag == 0, circleStatusGray: scope.scope.delFlag == -1 }"></span>
{{ scope.scope.delFlag == -1 ? '已解散' : scope.scope.delFlag == 0 ? '正常' : '' }}
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> -->
<span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">
......@@ -177,10 +181,8 @@ export default {
{
label: '群聊状态',
prop: 'delFlag',
width: 95,
formatter: cellValue => {
return cellValue.delFlag == 0 ? '正常' : cellValue.delFlag == -1 ? '已解散' : ''
}
width: 120,
addHtml: 'delFlag'
},
{
label: '创建时间',
......
......@@ -73,8 +73,10 @@
<span>{{ scope.scope.isJoin ? '是' : '否' }}</span>
</span>
<span slot="status" slot-scope="scope">
<!-- <span class="dot" :class="scope.scope.enableStatus ? DICTSTATUS[scope.scope.enableStatus].split(',')[1] : ''"></span> -->
<span class="statusText" :class="{ 'red-text': scope.scope.status === -1, 'green-text': scope.scope.status == 0 }">{{ statusText(scope.scope.status) }}</span>
<span class="statusText">
<span :class="{ circleStatusGray: scope.scope.status === -1, circleStatusGreen: scope.scope.status == 0 }"></span>
<span>{{ statusText(scope.scope.status) }}</span>
</span>
</span>
<!-- <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<auth-button :data="scope.scope"></auth-button>
......@@ -243,72 +245,59 @@ export default {
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 190
//align: 'left'
},
{
label: '联系电话',
prop: 'customerPhone',
addHtml: 'customerPhone',
minWidth: 130
//align: 'left'
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
// minWidth: 80
//align: 'left'
},
{
label: '跟进员工',
prop: 'followStaff',
addHtml: 'followStaff',
minWidth: 280
//align: 'left'
},
{
label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoin',
addHtml: 'isJoin',
width: 120
//align: 'left'
},
{
label: '当前状态',
prop: 'status',
addHtml: 'status',
minWidth: 100
//align: 'left'
minWidth: 130
},
{
label: '所属渠道',
prop: 'sourceChannel',
minWidth: 100
//align: 'left'
},
{
label: '添加来源',
prop: 'addWayName',
minWidth: 120
//align: 'left'
},
{
label: '添加时间',
prop: 'addTime',
width: 170
//align: 'left'
},
{
label: '操作',
prop: 'optionBtns',
width: '62px',
width: '60px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
// tableOption: {
// width: 80
// }
},
followList2: [],
getListApi: getTableList,
......
......@@ -36,7 +36,8 @@
</div>
</div>
<span slot="status" slot-scope="scope">
<span class="statusText" :class="{ 'red-text': scope.scope.status === '2', 'green-text': scope.scope.status === '1' }">{{ scope.scope.status == '1' ? '启用' : '停用' }}</span>
<span :class="{ circleStatusGray: scope.scope.status === 2, circleStatusGreen: scope.scope.status === 1 }"></span>
<span>{{ scope.scope.status == '1' ? '启用' : '停用' }}</span>
</span>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<!-- <el-button type="text" @click="btnClick('edit', scope.scope)">修改</el-button>
......@@ -85,31 +86,31 @@ export default {
{
label: '群聊名称',
prop: 'groupName',
minWidth: 90,
line: 1
// width: 200
},
{
label: '默认成员',
prop: 'entmicroName',
minWidth: 150,
minWidth: 250,
addHtml: 'entmicro-name'
},
{
label: '创建时间',
prop: 'createdTime',
line: 1
// width: 180
line: 1,
minWidth: 110
},
{
label: '状态',
prop: 'status',
// width: '80px',
minWidth: 130,
addHtml: 'status'
},
{
label: '操作',
prop: 'optionBtns',
width: '180px',
width: '170px',
addHtml: 'optionBtns',
fixed: 'right'
}
......
......@@ -18,8 +18,9 @@
</template>
<!-- 线索状态 -->
<template slot="status" slot-scope="scope">
<span :class="{ circleStatusYellow: scope.scope.status == 0, circleStatusPurple: scope.scope.status == 1, circleStatusGreen: scope.scope.status == 2 }"></span>
<span>
{{ scope.scope.status == 1 ? '跟进中' : scope.scope.status == 2 ? '已完成' : '' }}
{{ scope.scope.status == 0 ? '待跟进' : scope.scope.status == 1 ? '跟进中' : scope.scope.status == 2 ? '已完成' : '' }}
</span>
</template>
<!-- 跟进员工 -->
......@@ -80,7 +81,7 @@ export default {
name: 'leadManage',
data() {
return {
loading:false,
loading: false,
url: url,
searchForm: {
status: '',
......@@ -234,17 +235,10 @@ export default {
sessionStorage.setItem('isReload', true)
}
},
mounted(){
//没数据的时候要算高度
setTimeout(() => {
if (!this.$refs.leadManage.data.length) {
this.loading = true
this.$refs.leadManage.setTableHeightFun()
this.loading = false
}
}, 200)
},
methods: {
setTableFinishFun() {
this.$refs.leadManage.data.length ? (this.$refs.leadManage.tableHeightValues = '') : this.$refs.leadManage.setTableHeightFun()
},
setTableHeightEvent() {
this.$refs.leadManage.setTableHeightFun()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!