Commit f37ee601 by 前端

更新冒烟代码

1 parent 6b9ad1fc
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<view-sub-title :title='title' /> <view-sub-title :title='title' />
<div class='rank-wrap flex' v-for='(item,index) in rankDataList' :key='index'> <div class='rank-wrap flex' v-for='(item,index) in rankDataList' :key='index'>
<div class='rank-index'>{{ index + 1 }}</div> <div class='rank-index'>{{ index + 1 }}</div>
<div clas='rank-name'>{{ item[name] }}</div> <div class='rank-name'>
<span :title='item[name]'> {{ item[name] }}</span>
</div>
<div>{{ item[numName] }}</div> <div>{{ item[numName] }}</div>
</div> </div>
</div> </div>
...@@ -38,10 +40,10 @@ export default { ...@@ -38,10 +40,10 @@ export default {
<style lang='scss' scoped> <style lang='scss' scoped>
.static-rank { .static-rank {
margin: 0 3px; margin: 0 3px;
height: 200px;
.rank-wrap { .rank-wrap {
display: grid; display: grid;
grid-template-columns: 5% 80% 15%; grid-template-columns: 8% 77% 15%;
color: #FFFFFF; color: #FFFFFF;
background: #1D1C1C; background: #1D1C1C;
font-size: 10px; font-size: 10px;
...@@ -51,6 +53,16 @@ export default { ...@@ -51,6 +53,16 @@ export default {
.rank-index { .rank-index {
color: #606266; color: #606266;
} }
.rank-name{
cursor: pointer;
span{
display: block;
width: 93%;
text-overflow:ellipsis;
white-space:nowrap;
overflow:hidden;
}
}
} }
} }
</style> </style>
<template> <template>
<div class='view-content-bottom'> <div class='view-content-bottom'>
<!-- :showFuncIntro='showFuncIntro'--> <!-- :showFuncIntro='showFuncIntro'-->
<view-dialog-table :selectedData='selectedData'></view-dialog-table> <view-dialog-table :selectedData='selectedData'></view-dialog-table>
<div class='view-content-search'> <div class='view-content-search'>
<el-form <el-form
inline inline
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item class='btn-wrap'>
<el-button @click='handleSearch' class='search-btn btn' size='mini'>查询</el-button> <el-button @click='handleSearch' class='search-btn btn' size='mini'>查询</el-button>
<el-button @click='reset' class='reset-btn btn' size='mini'>重置</el-button> <el-button @click='reset' class='reset-btn btn' size='mini'>重置</el-button>
<el-button @click='handleOutput' class='output-btn btn' size='mini'>导出</el-button> <el-button @click='handleOutput' class='output-btn btn' size='mini'>导出</el-button>
...@@ -91,10 +91,13 @@ ...@@ -91,10 +91,13 @@
label='活动名称' label='活动名称'
width='170'> width='170'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if='scope.row.viewActivityNum'>
v-for='(item,index) in scope.row.viewActivityNum.map(item => item.activityName)' :key='index'> <div class='activity-Name'
<span :title='item'>{{ item }}</span> v-for='(item,index) in scope.row.viewActivityNum.map(item => item.activityName)' :key='index'>
</div> <span :title='item'>{{ item }}</span>
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -123,20 +126,26 @@ ...@@ -123,20 +126,26 @@
label='活动名称' label='活动名称'
width='170'> width='170'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if='scope.row.forwardActivityNum?.length > 0'>
v-for='(item,index) in scope.row.viewActivityNum.map(item => item.activityName)' :key='index'> <div class='activity-Name'
<span :title='item'>{{ item }}</span> v-for='(item,index) in scope.row.forwardActivityNum.map(item => item.activityName)' :key='index'>
</div> <span :title='item'>{{ item }}</span>
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label='数量'> label='数量'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if='scope.row.forwardActivityNum?.length > 0'>
@click="clickDialogTable(scope.row,'forwardActivity',index)" <div class='activity-Name'
v-for='(item,index) in scope.row.forwardActivityNum.map(item => item.activityNum)' :key='index'> @click="clickDialogTable(scope.row,'forwardActivity',index)"
{{ item }} v-for='(item,index) in scope.row.forwardActivityNum.map(item => item.activityNum)' :key='index'>
</div> {{ item }}
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -154,22 +163,30 @@ ...@@ -154,22 +163,30 @@
width='170' width='170'
label='活动名称'> label='活动名称'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if='scope.row.clueActivityNum?.length > 0'>
v-for='(item,index) in scope.row.viewActivityNum.map(item => item.activityName)' :key='index'> <div class='activity-Name'
<span :title='item'>{{ item }}</span> v-for='(item,index) in scope.row.clueActivityNum.map(item => item.activityName)' :key='index'>
</div> <span :title='item'>{{ item }}</span>
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label='数量'> label='数量'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if='scope.row.clueActivityNum?.length > 0'>
@click="clickDialogTable(scope.row,'clueActivity',index)" <div class='activity-Name'
v-for='(item,index) in scope.row.clueActivityNum.map(item => item.activityNum)' @click="clickDialogTable(scope.row,'clueActivity',index)"
:key='index'> v-for='(item,index) in scope.row.clueActivityNum.map(item => item.activityNum)'
{{ item }} :key='index'>
</div> {{ item }}
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop='cluetotal' prop='cluetotal'
...@@ -186,20 +203,26 @@ ...@@ -186,20 +203,26 @@
width='170' width='170'
label='活动名称'> label='活动名称'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if=' scope.row.activationActivityNum?.length > 0'>
v-for='(item,index) in scope.row.viewActivityNum.map(item => item.activityName)' :key='index'> <div class='activity-Name'
<span :title='item'>{{ item }}</span> v-for='(item,index) in scope.row.activationActivityNum.map(item => item.activityName)' :key='index'>
</div> <span :title='item'>{{ item }}</span>
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label='数量'> label='数量'>
<template slot-scope='scope'> <template slot-scope='scope'>
<div class='activity-Name' <template v-if='scope.row.activationActivityNum?.length > 0'>
@click="clickDialogTable(scope.row,'activationActivity',index)" <div class='activity-Name'
v-for='(item,index) in scope.row.activationActivityNum.map(item => item.activityNum)' :key='index'> @click="clickDialogTable(scope.row,'activationActivity',index)"
{{ item }} v-for='(item,index) in scope.row.activationActivityNum.map(item => item.activityNum)' :key='index'>
</div> {{ item }}
</div>
</template>
<template v-else>-</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -329,10 +352,11 @@ export default { ...@@ -329,10 +352,11 @@ export default {
grid-template-columns: repeat(auto-fill, 100px); grid-template-columns: repeat(auto-fill, 100px);
justify-content: center; justify-content: center;
border-bottom: 1px solid #606266; border-bottom: 1px solid #606266;
span{
text-overflow:ellipsis; span {
white-space:nowrap; text-overflow: ellipsis;
overflow:hidden; white-space: nowrap;
overflow: hidden;
} }
&:last-child { &:last-child {
...@@ -361,23 +385,25 @@ export default { ...@@ -361,23 +385,25 @@ export default {
border: none; border: none;
} }
.btn-wrap {
.btn {
border: none;
color: #FFFFFF;
}
.btn { .search-btn {
border: none; background: #EB6001;
color: #FFFFFF; }
}
.search-btn { .reset-btn {
background: #EB6001; background: #878787;
} }
.reset-btn { .output-btn {
background: #878787; background: #353535;
}
} }
.output-btn {
background: #353535;
}
} }
} }
......
...@@ -29,7 +29,5 @@ export default { ...@@ -29,7 +29,5 @@ export default {
.left { .left {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
//width: 40%;
//height: 40%;
} }
</style> </style>
...@@ -44,6 +44,7 @@ export default { ...@@ -44,6 +44,7 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.right { .right {
display: grid; display: grid;
grid-template-columns: 25% 25% 25% 25%; grid-template-columns: 25% 25% 25% 25%;
} }
......
...@@ -63,8 +63,18 @@ ...@@ -63,8 +63,18 @@
<template slot='reference' slot-scope='scope'> <template slot='reference' slot-scope='scope'>
{{ scope.scope.reference == 'null' || !scope.scope.reference ? '-' : scope.scope.reference }} {{ scope.scope.reference == 'null' || !scope.scope.reference ? '-' : scope.scope.reference }}
<span v-if='scope.scope.referencetype' class='referencetype'>@{{ !scope.scope.referencetype || scope.scope.referencetype =='null' ? '-' : scope.scope.referencetype }}</span> <span v-if='scope.scope.referencetype && scope.scope.reference' class='referencetype'>@{{ !scope.scope.referencetype || scope.scope.referencetype =='null' ? '-' : scope.scope.referencetype }}</span>
</template> </template>
<template slot='lastFollowup' slot-scope='scope'>
<el-switch
v-model="scope.scope.lastFollowup == '是'"
active-color="#EB6001"
inactive-color="#E8E8EA">
</el-switch>
</template>
</glsx-table> </glsx-table>
</div> </div>
</GlDialog> </GlDialog>
...@@ -158,4 +168,8 @@ export default { ...@@ -158,4 +168,8 @@ export default {
.referencetype{ .referencetype{
color:rgb(235, 96, 1); color:rgb(235, 96, 1);
} }
/deep/.el-table{
background-color: rgba(38, 38, 38, 0.75);
}
</style> </style>
...@@ -138,7 +138,8 @@ export default { ...@@ -138,7 +138,8 @@ export default {
{ {
label: '最后跟进', label: '最后跟进',
prop: 'lastFollowup', prop: 'lastFollowup',
width: '180' width: '180',
addHtml: 'lastFollowup'
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!