Commit b3f41b77 by 杨明

fixed

1 parent 12c23ffa

448 Bytes | W: | H:

608 Bytes | W: | H:

src/assets/tagsManage/question.png
src/assets/tagsManage/question.png
src/assets/tagsManage/question.png
src/assets/tagsManage/question.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -79,6 +79,9 @@ export default { ...@@ -79,6 +79,9 @@ export default {
console.log(this.tagsPartFormList[id]) console.log(this.tagsPartFormList[id])
}) })
}, },
tagLength(children) {
return children.filter(item => item).length
},
goDetail(scope) { goDetail(scope) {
this.$router.push('/clientManage/clientDetail?id=' + scope.oneId) this.$router.push('/clientManage/clientDetail?id=' + scope.oneId)
}, },
...@@ -97,7 +100,7 @@ export default { ...@@ -97,7 +100,7 @@ export default {
//获取选中的标签并排序 //获取选中的标签并排序
getCheckItem(item) { getCheckItem(item) {
const tree_id = [] const tree_id = []
const labelTree = this.$refs.tagTree.labelTree const labelTree = this.$common.utils.deepClone(this.$refs.tagTree.labelTree)
labelTree.forEach(tree_node => { labelTree.forEach(tree_node => {
tree_node.children.forEach(t_node => { tree_node.children.forEach(t_node => {
tree_id.push(t_node.id) tree_id.push(t_node.id)
...@@ -122,6 +125,9 @@ export default { ...@@ -122,6 +125,9 @@ export default {
} }
}) })
}) })
this.tagCheckItem.forEach(tag => {
tag.children = tag.children.filter(item => item)
})
}, },
//导出 //导出
handleExport() { handleExport() {
...@@ -154,16 +160,13 @@ export default { ...@@ -154,16 +160,13 @@ export default {
this.userLoading = false this.userLoading = false
this.tableData = res.data this.tableData = res.data
this.tableTotal = res.count this.tableTotal = res.count
if (this.tableTotal == 0) { this.$nextTick(() => {
this.$refs.viewCustomers.setTableHeightFun() if (tagLists.length == 0) {
} document.querySelector('.noDataText').innerText = '当前未选择标签,快去选择标签查看客户吧!'
// this.$nextTick(() => { } else {
// if (tagLists.length == 0) { document.querySelector('.noDataText') ? (document.querySelector('.noDataText').innerText = '暂无数据') : ''
// document.querySelector('.noDataText').innerText = '请选择标签' }
// } else { })
// document.querySelector('.noDataText').innerText = '暂无数据'
// }
// })
}) })
.catch(err => { .catch(err => {
this.userLoading = false this.userLoading = false
......
...@@ -187,7 +187,6 @@ export default { ...@@ -187,7 +187,6 @@ export default {
position: relative; position: relative;
height: 20px; height: 20px;
font-size: 20px; font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 700; font-weight: 700;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
...@@ -284,7 +283,6 @@ export default { ...@@ -284,7 +283,6 @@ export default {
top: 365px; top: 365px;
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
...@@ -296,7 +294,6 @@ export default { ...@@ -296,7 +294,6 @@ export default {
right: 57px; right: 57px;
top: 389px; top: 389px;
font-size: 18px; font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #fe9c1c; color: #fe9c1c;
line-height: 25px; line-height: 25px;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<span class="ellipsis-1"> <span class="ellipsis-1">
<!-- {{ leftPanelInfo.customerName }} --> <!-- {{ leftPanelInfo.customerName }} -->
{{ beautySub(leftPanelInfo.customerName) }} {{ beautySub(leftPanelInfo.customerName) }}
<label class="pure-blue-text font-12">{{ leftPanelInfo.type == 1 ? '@微信' : leftPanelInfo.type == 2 ? '@企微' : '' }}</label> <!-- <label class="pure-blue-text font-12">{{ leftPanelInfo.type == 1 ? '@微信' : leftPanelInfo.type == 2 ? '@企微' : '' }}</label> -->
</span> </span>
</el-tooltip> </el-tooltip>
</p> </p>
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<el-button type="primary" @click="goBack">返回</el-button> <el-button type="primary" @click="goBack">返回</el-button>
</div> </div>
</div> </div>
<basic-dialog class="phone-fill-box" title="添加联系电话" :isVisible="phoneVisible" @confirmDialog="phoneConfirmDialog" @closeDialog="phoneVisible = false"> <basic-dialog class="phone-fill-box" title="添加联系电话" :isVisible="phoneVisible" @confirmDialog="phoneConfirmDialog" @closeDialog="phoneVisible = false" :isShowCloseBtn="true">
<div class="dialog-form"> <div class="dialog-form">
<label>联系电话:</label> <label>联系电话:</label>
<el-input v-model.trim="contactPhone" size="small" placeholder="请输入11位的手机号" maxlength="11"></el-input> <el-input v-model.trim="contactPhone" size="small" placeholder="请输入11位的手机号" maxlength="11"></el-input>
...@@ -456,7 +456,7 @@ export default { ...@@ -456,7 +456,7 @@ export default {
prop: 'addWay', prop: 'addWay',
addHtml: 'addWay', addHtml: 'addWay',
align: 'left', align: 'left',
minWidth: 120 width: 90
}, },
{ {
label: '添加类型', label: '添加类型',
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
prop: 'remark', prop: 'remark',
align: 'left', align: 'left',
line: 1, line: 1,
width: 150 width: 230
}, },
{ {
label: '描述', label: '描述',
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
let params = { let params = {
labelTreeReq: { labelTreeReq: {
pageNum: 1, pageNum: 1,
pageSize: 1000, pageSize: 10000,
shopId: this.$globalState.session.merchantId, shopId: this.$globalState.session.merchantId,
labelGroupName: this.filterText, labelGroupName: this.filterText,
edition: this.$globalState.session.merchantModel edition: this.$globalState.session.merchantModel
...@@ -219,9 +219,12 @@ export default { ...@@ -219,9 +219,12 @@ export default {
margin-right: 10px; margin-right: 10px;
} }
.el-icon-edit-outline { .el-icon-edit-outline {
color: #5850ff; color: #999;
font-size: 15px; font-size: 15px;
cursor: pointer; cursor: pointer;
&:hover {
color: #5850ff;
}
} }
} }
} }
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="pageContent"> <div class="pageContent" :style="{ height: heightBox - 115 + 'px' }">
<GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="clientNumExp"> <div class="clientNumExp">
<div class="clientNum"> <div class="clientNum">
...@@ -558,7 +558,7 @@ export default { ...@@ -558,7 +558,7 @@ export default {
}, },
mounted() { mounted() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 140 this.heightBox = clientHeight - 122
//没数据的时候要算高度 //没数据的时候要算高度
// setTimeout(() => { // setTimeout(() => {
// if (!this.$refs.tagsManage.data.length) { // if (!this.$refs.tagsManage.data.length) {
...@@ -1128,7 +1128,7 @@ export default { ...@@ -1128,7 +1128,7 @@ export default {
width: 260px; width: 260px;
margin-right: 10px; margin-right: 10px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
margin-top: 20px; margin-top: 10px;
background-color: #fff; background-color: #fff;
} }
.client-tabel { .client-tabel {
...@@ -1139,7 +1139,7 @@ export default { ...@@ -1139,7 +1139,7 @@ export default {
} }
.client-title-panel { .client-title-panel {
padding: 16px; padding: 16px;
margin-top: 20px; margin-top: 10px;
background-color: #fff; background-color: #fff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
...@@ -1198,6 +1198,15 @@ export default { ...@@ -1198,6 +1198,15 @@ export default {
} }
} }
.pageContent { .pageContent {
/deep/ {
.noDataImg {
margin-top: 100px;
}
.noDataText {
margin-bottom: 100px;
}
}
overflow-y: auto;
padding: 20px 20px 30px; padding: 20px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
margin-top: 10px; margin-top: 10px;
...@@ -1218,7 +1227,6 @@ export default { ...@@ -1218,7 +1227,6 @@ export default {
.clientListNew { .clientListNew {
display: flex; display: flex;
align-items: center; align-items: center;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
font-size: 20px; font-size: 20px;
...@@ -1227,7 +1235,6 @@ export default { ...@@ -1227,7 +1235,6 @@ export default {
margin-left: 6px; margin-left: 6px;
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #5850ff; color: #5850ff;
line-height: 20px; line-height: 20px;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="pageContent" > <div class="pageContent">
<div> <div>
<div class="clientNumExp"> <div class="clientNumExp">
<div class="clientNum"> <div class="clientNum">
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
} }
}, },
computed: { computed: {
items: function () { items: function() {
var _search = this.searchLabel var _search = this.searchLabel
const labelList = this.labelList.filter(item => item.labelName.indexOf(_search) > -1) const labelList = this.labelList.filter(item => item.labelName.indexOf(_search) > -1)
return labelList return labelList
...@@ -351,18 +351,17 @@ export default { ...@@ -351,18 +351,17 @@ export default {
pageSize: this.$refs.viewCustomers.page.pageSize, pageSize: this.$refs.viewCustomers.page.pageSize,
pageNum: this.$refs.viewCustomers.page.pageNum pageNum: this.$refs.viewCustomers.page.pageNum
} }
this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))} this.exportParams = { ...JSON.parse(JSON.stringify(this.allListParams)) }
this.loading2 = true; this.loading2 = true
getCustomersList(params).then(res => { getCustomersList(params).then(res => {
this.tableData = res.data this.tableData = res.data
this.tableTotal = res.count this.tableTotal = res.count
if (res.data.length == 0) { if (res.data.length == 0) {
this.$refs.viewCustomers.setTableHeightFun() this.$refs.viewCustomers.setTableHeightFun()
} }
setTimeout(()=>{ setTimeout(() => {
this.loading2 = false; this.loading2 = false
},300) }, 300)
}) })
}, },
//获取标签组 //获取标签组
...@@ -544,7 +543,6 @@ export default { ...@@ -544,7 +543,6 @@ export default {
div { div {
margin-top: 12px; margin-top: 12px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #000000; color: #000000;
} }
...@@ -570,7 +568,6 @@ export default { ...@@ -570,7 +568,6 @@ export default {
.clientListNew { .clientListNew {
display: flex; display: flex;
align-items: center; align-items: center;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
font-size: 20px; font-size: 20px;
...@@ -579,7 +576,6 @@ export default { ...@@ -579,7 +576,6 @@ export default {
margin-left: 6px; margin-left: 6px;
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #5850ff; color: #5850ff;
line-height: 20px; line-height: 20px;
...@@ -632,7 +628,6 @@ export default { ...@@ -632,7 +628,6 @@ export default {
letter-spacing: 1px; letter-spacing: 1px;
.labelSetLeft { .labelSetLeft {
font-size: 20px; font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
...@@ -640,7 +635,6 @@ export default { ...@@ -640,7 +635,6 @@ export default {
} }
.labelSetLeftRight { .labelSetLeftRight {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
...@@ -730,7 +724,6 @@ export default { ...@@ -730,7 +724,6 @@ export default {
} }
.iconLabelstext { .iconLabelstext {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!