Commit 6e642c9b by cwq0219
2 parents 6c497763 d5dd14ec
......@@ -36,7 +36,7 @@
</div>
</el-form-item>
<el-form-item label="选择客户" prop="selectType">
<el-radio-group v-model="basicForm.selectType">
<el-radio-group @change="selectChange" v-model="basicForm.selectType">
<el-radio :label="1">全部成员</el-radio>
<el-radio :label="2">筛选成员</el-radio>
</el-radio-group>
......@@ -296,7 +296,6 @@ export default {
}
},
mounted() {
this.getGroupList()
let clientHeight = document.documentElement.clientHeight
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
......@@ -307,6 +306,7 @@ export default {
this.membersVisible = !this.membersVisible
},
handleCancel() {
// this.$router.push('/customerTransform/index')
this.$router.go(-1)
},
// 成员弹窗
......@@ -484,6 +484,12 @@ export default {
selectableRange: '00:00:00 - 23:59:59'
}
}
},
selectChange(val) {
console.log(val)
if (val == 2) {
this.getGroupList()
}
}
}
}
......
......@@ -3,6 +3,7 @@
<div
class="w-textarea_input"
ref="wTextareaContent"
contenteditable="true"
:id="contentId"
@click="inputClick($event)"
@focus="isLocked = true"
......@@ -243,7 +244,7 @@ $textColor: #666;
position: relative;
&_input {
width: 100%;
min-height: 100px;
min-height: 200px;
box-sizing: border-box;
padding: 10px;
line-height: 1.5;
......
......@@ -236,15 +236,23 @@ export default {
textInput(val) {
const hasText = this.previewList.some(item => item.attType == 1)
if (hasText) {
this.$set(this.previewList, 0, {
attContent: val,
attType: ATT_TYPE.TEXT
})
if (val) {
this.$set(this.previewList, 0, {
attContent: val,
attType: ATT_TYPE.TEXT
})
} else {
this.previewList.splice(0, 1)
}
} else {
this.previewList.unshift({
attContent: val,
attType: ATT_TYPE.TEXT
})
if (val) {
this.previewList.unshift({
attContent: val,
attType: ATT_TYPE.TEXT
})
} else {
this.previewList.splice(0, 1)
}
}
},
selectActivity(val) {
......@@ -299,7 +307,6 @@ export default {
}
},
updateText(val) {
console.log(val)
this.textInput(val)
}
}
......
......@@ -204,14 +204,12 @@ export default {
}
}
},
watch: {
$route(val) {
console.log(val)
if (val.path == '/customerTransform/index') {
this.$refs.customer.refreshTable()
this.$refs.customerGroup.refreshTable()
}
}
beforeRouteEnter(to, from, next) {
next(vm => {
const path = from.path
const pathArr = path.split('/')
if (pathArr[2] == 'addCustomerGroup' || pathArr[2] == 'detaiCustomeGroup') vm.activeIndex = 2
})
},
methods: {
switchMenu(val) {
......
......@@ -125,7 +125,7 @@
title="浏览量"
width="200"
trigger="hover"
content="进入活动页面但未购买商品的张傲数量+购买活动商品的账号数量。"
content="进入活动页面但未购买商品的账号数量+购买活动商品的账号数量。"
>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
......@@ -310,7 +310,7 @@ export default {
title: '会员服务',
content: '会员服务由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。',
linkName: '设置会员服务',
path: '/memberCenter/center'
path: '/memberCenter/service'
},
{
title: '商品销售',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!