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