Commit 4a175cf7 by xuyl

更新状态新样式

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