Commit fd786db4 by 前端

Merge branch 'xuyl_dev_v2.4.0' into 'v2.4.0'

修复第一轮测试bug

See merge request !111
2 parents 8312b052 dc03ee38
.el-select {
width: 100%;
width: 100%;
}
.el-pagination {
display: flex;
margin-top: 18px;
display: flex;
margin-top: 18px;
}
.glsx-table .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: $btnBlue;
color: #fff;
background-color: $btnBlue;
color: #fff;
}
.el-dialog__header .el-dialog__title {
height: 28px;
font-size: 20px;
font-weight: bold;
color: #333333;
line-height: 28px;
height: 28px;
font-size: 20px;
font-weight: bold;
color: #333333;
line-height: 28px;
}
/deep/ .el-input__inner:focus {
border-color: $btnBlue !important;
border-color: $btnBlue !important;
}
/deep/.el-range-editor.is-active,
.el-range-editor.is-active:hover {
border-color: $btnBlue;
border-color: $btnBlue;
}
.el-message-box {
width: 547px;
height: 310px;
box-sizing: border-box;
padding-bottom: 10px;
width: 547px;
height: 310px;
box-sizing: border-box;
padding-bottom: 10px;
}
.el-message-box__title {
padding-left: 0;
margin-bottom: 0;
font-size: 20px;
line-height: 1;
color: #333;
padding-left: 0;
margin-bottom: 0;
font-size: 20px;
line-height: 1;
color: #333;
}
.el-message-box__title {
display: block !important;
display: block !important;
}
.el-message-box__headerbtn {
display: block !important;
color: #666666;
display: block !important;
color: #666666;
}
.el-message-box__header {
position: relative;
padding: 15px 20px;
border-bottom: 1px solid #e6e6e6;
position: relative;
padding: 15px 20px;
border-bottom: 1px solid #e6e6e6;
}
.el-message-box__content {
text-align: center;
padding: 60px 0;
text-align: center;
padding: 60px 0;
}
.el-icon-warning {
display: block !important;
font-size: 33px !important;
color: #5850ff !important;
position: relative;
left: 50%;
transform: translateX(-50%);
margin-bottom: 12px;
}
.el-icon-error {
display: block !important;
font-size: 33px !important;
position: relative;
left: 50%;
transform: translateX(-50%);
margin-bottom: 12px;
display: block !important;
font-size: 33px !important;
color: #5850ff !important;
position: relative;
left: 50%;
transform: translateX(-50%);
margin-bottom: 12px;
}
// .el-icon-error {
// display: block !important;
// font-size: 33px !important;
// position: relative;
// left: 50%;
// transform: translateX(-50%);
// margin-bottom: 12px;
// }
.el-tooltip__popper.is-dark {
background: #666666 !important;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06) !important;
font-size: 12px;
font-weight: 400;
color: #ffffff;
line-height: 18px;
background: #666666 !important;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06) !important;
font-size: 12px;
font-weight: 400;
color: #ffffff;
line-height: 18px;
}
.el-tooltip__popper[x-placement^="top"] .popper__arrow {
border-top-color: #666666 !important;
border-top-color: #666666 !important;
}
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {
border-top-color: #666666 !important;
}
border-top-color: #666666 !important;
}
\ No newline at end of file
......@@ -23,7 +23,7 @@
<div class="group-tree-container">
<div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<template v-for="(item, index) in crowdUnitList">
<div :key="item" v-if="item.selectGroup.length != item.children.length">
<div :key="item" v-if="item.selectGroup && item.children && item.selectGroup.length != item.children.length">
<span class="el-tree-node__expand-icon el-icon-caret-right" :class="{ expanded: item.checked }" @click.self="handleExpand(index)"></span>
<el-checkbox :indeterminate="item.isIndeterminateGroup" v-model="item.gruopCheckAll" @change="handleGroup(item.gruopCheckAll, index)">{{ item.crowdName }}</el-checkbox>
<el-checkbox-group :style="{ 'max-height': item.checked ? heightBox - 70 + 'px' : '0px' }" v-model="item.groupArr" @change="handleCheckedGroup(item.groupArr, index)" v-show="item.checked">
......@@ -40,7 +40,7 @@
</div>
<div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<template v-for="(item, index) in crowdUnitList">
<div :key="item" v-if="item.selectGroup.length > 0">
<div :key="item" v-if="item.selectGroup && item.selectGroup.length > 0">
<span class="el-tree-node__expand-icon el-icon-caret-right" :class="{ expanded: item.checked_right }" @click.self="handleExpandChecked(index)"></span>
<el-checkbox :indeterminate="item.isIndeterminateGroup_right" v-model="item.gruopCheckAll_right" @change="handleGroupChecked(item.gruopCheckAll_right, index)">{{ item.crowdName }}</el-checkbox>
<el-checkbox-group :style="{ 'max-height': item.checked_right ? heightBox - 70 + 'px' : '0px' }" v-model="item.groupArr_right" @change="handleCheckedGroupChecked(item.groupArr_right, index)" v-show="item.checked_right">
......@@ -51,9 +51,7 @@
</div>
</template>
</div>
<div class="el-form-item__error" v-show="crowdStatus">
请选择人群
</div>
<div class="el-form-item__error" v-show="crowdStatus"></div>
<!-- <div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<el-tree @node-expand="nodeExpand" accordion :data="crowdUnitList" :props="defaultProps" show-checkbox></el-tree>
</div> -->
......@@ -214,6 +212,7 @@ export default {
this.$message.success('操作成功')
this.$parent.searchTable()
} else {
// res.data.message
this.$message.error(res.data.message)
}
})
......
......@@ -51,6 +51,7 @@ export default {
},
data() {
return {
firstSearch: true,
expandArr: [],
isReload: true,
url: url,
......@@ -221,8 +222,11 @@ export default {
// if (!this.$refs.clientGroupManage.data.length) {
// this.$refs.clientGroupManage.setTableHeightFun()
// }
if (this.firstSearch) {
this.expandArr = this.$refs.clientGroupManage.data.length ? [this.$refs.clientGroupManage.data[0].crowdGroupId + ''] : []
this.firstSearch = false
}
this.expandArr = this.$refs.clientGroupManage.data.length ? [this.$refs.clientGroupManage.data[0].crowdGroupId + ''] : []
this.$refs.clientGroupManage.data.length ? (this.$refs.clientGroupManage.tableHeightValues = '') : this.$refs.clientGroupManage.setTableHeightFun()
},
//导出
......@@ -265,6 +269,9 @@ export default {
},
resetTable() {
this.searchForm = {
keyword: ''
}
this.isReload = false
this.$nextTick(() => {
this.isReload = true
......
......@@ -281,7 +281,7 @@
客户分群
<span>| 数据统计截止时间:{{ updateTime }}</span>
</span>
<span class="setting" v-if="userType == 2 && isMerchantStaffAdmin == true" @click="goToGrouping()">设置</span>
<span class="setting" v-if="(userType == 2 && isMerchantStaffAdmin == true) || (userType == 1 && accountLevel == 4)" @click="goToGrouping()">设置</span>
</div>
<div class="itembox">
<template v-for="(item, index) in customerSegmentation">
......@@ -557,7 +557,6 @@ export default {
},
customerListShow() {
let param = {
// this.merchantId
'req.merchantId': this.merchantId,
'req.isDisplay': 1
}
......
......@@ -322,18 +322,20 @@ export default {
spaceBetween: 16
}
},
pagination: {
el: '.swiper-pagination',
type: 'progressbar'
}
})
console.log(previewSwiper.breakpoints)
this.$nextTick(() => {
setTimeout(function() {
previewSwiper.slideTo(0, 0, false)
}, 500)
})
// let clientWidth = document.documentElement.clientWidth
// let breakpointsArr = previewSwiper.passedParams.breakpoints
// console.log(breakpointsArr)
},
methods: {
// 导出
......@@ -411,7 +413,6 @@ export default {
}
})
staff.unshift({ label: '全部', value: '' })
console.log(staff)
this.$nextTick(() => {
this.marketPeopleFormList[id].optionList = staff
})
......@@ -423,9 +424,10 @@ export default {
},
//重置表格
resetTable() {
console.log(this.backupCrowdId)
this.searchForm = {
customCrowd: true,
crowdId: this.backupCrowdId
crowdId: this.backupCrowdId ? this.backupCrowdId :this.theFirstGroudId
}
this.$refs.marketPeople.refreshTable()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!