Commit 66f1c719 by 前端

Merge branch 'yangm_v2.11.0' into 'v2.11.0'

Yangm v2.11.0

See merge request !39
2 parents e7878e3b 3b71fd90
...@@ -11,11 +11,8 @@ ...@@ -11,11 +11,8 @@
</el-form-item> </el-form-item>
<el-form-item label="选择门店:" prop="selectStore" class="settingSelect"> <el-form-item label="选择门店:" prop="selectStore" class="settingSelect">
<!-- <SearchDropDown :label="'msgMerchantName'" :value="'msgMerchantId'"></SearchDropDown>--> <!-- <SearchDropDown :label="'msgMerchantName'" :value="'msgMerchantId'"></SearchDropDown>-->
<el-select ref="selectLabel" clearable filterable remote :remote-method="remoteMethod" <el-select ref="selectLabel" clearable filterable remote :remote-method="remoteMethod" v-el-select-loadmore="loadmore" v-model="basicForm.selectStore" placeholder="请选择门店" @change="selectChange" @clear="clearDrop">
v-el-select-loadmore="loadmore" v-model="basicForm.selectStore" placeholder="请选择门店" <el-option v-for="(item, i) in dataItems" :key="i" :label="item.msgMerchantName" :value="item.msgMerchantId"></el-option>
@change="selectChange" @clear="clearDrop">
<el-option v-for="(item, i) in dataItems" :key="i" :label="item.msgMerchantName"
:value="item.msgMerchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="选择客户:" prop="selectType"> <el-form-item label="选择客户:" prop="selectType">
...@@ -37,10 +34,7 @@ ...@@ -37,10 +34,7 @@
</div> </div>
<div v-show="tagging.length != 0" :key="key" class="el-input-tag input-tag-wrapper"> <div v-show="tagging.length != 0" :key="key" class="el-input-tag input-tag-wrapper">
<span v-for="(tag, idx) in tagging" :key="idx"> <span v-for="(tag, idx) in tagging" :key="idx">
<el-tag v-for="(tagItem, idx1) in tag.labelList" :key="idx1" :size="size" type="info" closable <el-tag v-for="(tagItem, idx1) in tag.labelList" :key="idx1" :size="size" type="info" closable :disable-transitions="false" @close="removeTag(tag, idx1, idx)">{{ tagItem.name }}</el-tag>
:disable-transitions="false" @close="removeTag(tag, idx1, idx)">{{
tagItem.name
}}</el-tag>
</span> </span>
</div> </div>
</div> </div>
...@@ -50,8 +44,7 @@ ...@@ -50,8 +44,7 @@
</el-button> </el-button>
<div class="sale-select" v-show="basicForm.crowdList && basicForm.crowdList.length != 0"> <div class="sale-select" v-show="basicForm.crowdList && basicForm.crowdList.length != 0">
<div class="el-input-tag input-tag-wrapper"> <div class="el-input-tag input-tag-wrapper">
<el-tag effect="plain" type="info" v-for="(t, i) in basicForm.crowdList" :key="i" closable <el-tag effect="plain" type="info" v-for="(t, i) in basicForm.crowdList" :key="i" closable :disable-transitions="false" @close="removeCrowd(t, i)">
:disable-transitions="false" @close="removeCrowd(t, i)">
{{ t.crowdName }} {{ t.crowdName }}
</el-tag> </el-tag>
</div> </div>
...@@ -63,8 +56,7 @@ ...@@ -63,8 +56,7 @@
<div class="filter-footer"> <div class="filter-footer">
<div class="filter-number"> <div class="filter-number">
预计群发人数 预计群发人数
<el-button type="text" v-show="isUpdate" :loading="viewLoading" @click="viewMembers">查看 <el-button type="text" v-show="isUpdate" :loading="viewLoading" @click="viewMembers">查看</el-button>
</el-button>
<span v-show="!isUpdate">{{ groupNumber }}</span> <span v-show="!isUpdate">{{ groupNumber }}</span>
</div> </div>
</div> </div>
...@@ -88,13 +80,10 @@ ...@@ -88,13 +80,10 @@
<el-button @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">提交</el-button> <el-button type="primary" v-loading="addLoading" @click="handleSubmit">提交</el-button>
</GLFooter> </GLFooter>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :resetMerchantId="resetMerchantId" <SelectLabel ref="selectLabel" @tagSelected="handleSelect" :resetMerchantId="resetMerchantId" :dialogVisible="dialogVisible"></SelectLabel>
:dialogVisible="dialogVisible"></SelectLabel> <SelectCrowd ref="selectCrowd" @crowdData="getCrowdData" :resetMerchantId="resetMerchantId" :selectCrowdData="basicForm.crowdList"></SelectCrowd>
<SelectCrowd ref="selectCrowd" @crowdData="getCrowdData" :resetMerchantId="resetMerchantId"
:selectCrowdData="basicForm.crowdList"></SelectCrowd>
</div> </div>
</template> </template>
<script> <script>
const combineType = { const combineType = {
label: 2, label: 2,
...@@ -104,9 +93,7 @@ import emoji from '@/utils/emo' ...@@ -104,9 +93,7 @@ import emoji from '@/utils/emo'
import SelectCrowd from './components/selectCrowd.vue' import SelectCrowd from './components/selectCrowd.vue'
import SelectLabel from './components/SelectLabel.vue' import SelectLabel from './components/SelectLabel.vue'
// import SearchDropDown from './components/searchDropDown/index' // import SearchDropDown from './components/searchDropDown/index'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
export default { export default {
components: { components: {
SelectLabel, SelectLabel,
...@@ -231,9 +218,9 @@ export default { ...@@ -231,9 +218,9 @@ export default {
attachmentShow: false, attachmentShow: false,
attachmentText: '', attachmentText: '',
basicRules: { basicRules: {
groupName: [{required: true, message: '请输入群发名称', trigger: 'blur'}], groupName: [{ required: true, message: '请输入群发名称', trigger: 'blur' }],
selectStore: [{required: true, message: '请选择门店', trigger: 'change'}], selectStore: [{ required: true, message: '请选择门店', trigger: 'change' }],
selectType: [{required: true, message: '请选择客户类型', trigger: 'change'}] selectType: [{ required: true, message: '请选择客户类型', trigger: 'change' }]
}, },
basicForm: { basicForm: {
groupName: '', groupName: '',
...@@ -293,7 +280,7 @@ export default { ...@@ -293,7 +280,7 @@ export default {
'el-select-loadmore': { 'el-select-loadmore': {
bind(el, binding) { bind(el, binding) {
const SELECTWRAP_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap') const SELECTWRAP_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap')
SELECTWRAP_DOM.addEventListener('scroll', function () { SELECTWRAP_DOM.addEventListener('scroll', function() {
const condition = this.scrollHeight - this.scrollTop <= this.clientHeight const condition = this.scrollHeight - this.scrollTop <= this.clientHeight
if (condition) { if (condition) {
binding.value() binding.value()
...@@ -335,7 +322,6 @@ export default { ...@@ -335,7 +322,6 @@ export default {
}) })
this.dataItems = [...this.dataItems, ...this.arrBack] this.dataItems = [...this.dataItems, ...this.arrBack]
}, },
async remoteMethod(searchValue) { async remoteMethod(searchValue) {
if (searchValue !== '') { if (searchValue !== '') {
this.searchContentStorage = searchValue this.searchContentStorage = searchValue
...@@ -360,16 +346,16 @@ export default { ...@@ -360,16 +346,16 @@ export default {
}, },
selectChange(val) { selectChange(val) {
// 选择门店时,替换欢迎语组件当中的所有merchantId // 选择门店时,替换欢迎语组件当中的所有merchantId
this.btnList.forEach(item =>{ this.btnList.forEach(item => {
if (item.params && item.params.hasOwnProperty('merchant')){ if (item.params && item.params.hasOwnProperty('merchant')) {
item.params.merchant = val item.params.merchant = val
} }
if(item.funParams && Object.prototype.toString.call(item.funParams) === '[object Array]'){ if (item.funParams && Object.prototype.toString.call(item.funParams) === '[object Array]') {
item.funParams.forEach(funArr =>{ item.funParams.forEach(funArr => {
if (funArr.params && funArr.params.hasOwnProperty('merchantId')){ if (funArr.params && funArr.params.hasOwnProperty('merchantId')) {
funArr.params.merchantId = val funArr.params.merchantId = val
} }
if (funArr.merchantOpen && funArr.merchantOpen.params && funArr.merchantOpen.params.hasOwnProperty('merchantId')){ if (funArr.merchantOpen && funArr.merchantOpen.params && funArr.merchantOpen.params.hasOwnProperty('merchantId')) {
funArr.merchantOpen.params.merchantId = val funArr.merchantOpen.params.merchantId = val
} }
}) })
...@@ -382,7 +368,6 @@ export default { ...@@ -382,7 +368,6 @@ export default {
this.isUpdate = true this.isUpdate = true
this.resetMerchantId = val this.resetMerchantId = val
this.msgMerchantName = val && this.dataItems.find(item => item.msgMerchantId == val).msgMerchantName this.msgMerchantName = val && this.dataItems.find(item => item.msgMerchantId == val).msgMerchantName
}, },
// 返回 // 返回
handleCancel() { handleCancel() {
...@@ -395,8 +380,7 @@ export default { ...@@ -395,8 +380,7 @@ export default {
.then(() => { .then(() => {
this.$router.push('/wechatGroup/index') this.$router.push('/wechatGroup/index')
}) })
.catch(() => { .catch(() => {})
})
} else { } else {
this.$router.push('/wechatGroup/index') this.$router.push('/wechatGroup/index')
} }
...@@ -474,7 +458,7 @@ export default { ...@@ -474,7 +458,7 @@ export default {
if (item.attType == 1) { if (item.attType == 1) {
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '') const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) { const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
let s = list[parseInt(str.split('.')[0]) - 1] let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]` return `[${s}]`
}) })
...@@ -647,13 +631,11 @@ export default { ...@@ -647,13 +631,11 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
margin-bottom: 20px; margin-bottom: 20px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// padding: 20px; // padding: 20px;
.title { .title {
padding: 20px 0 17px 20px; padding: 20px 0 17px 20px;
...@@ -662,19 +644,16 @@ export default { ...@@ -662,19 +644,16 @@ export default {
font-weight: 600; font-weight: 600;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
.info-box { .info-box {
display: inline-flex; display: inline-flex;
width: 100%; width: 100%;
padding-bottom: 30px; padding-bottom: 30px;
align-items: flex-end; align-items: flex-end;
justify-content: space-between; justify-content: space-between;
.info-content { .info-content {
// width: calc(100% - 360px); // width: calc(100% - 360px);
width: 66%; width: 66%;
padding-right: 20px; padding-right: 20px;
//.filter-box { //.filter-box {
// // margin-left: 120px; // // margin-left: 120px;
// margin-bottom: 10px; // margin-bottom: 10px;
...@@ -690,7 +669,6 @@ export default { ...@@ -690,7 +669,6 @@ export default {
// } // }
// } // }
//} //}
.filter-footer { .filter-footer {
display: flex; display: flex;
// padding: 14px 20px; // padding: 14px 20px;
...@@ -698,7 +676,6 @@ export default { ...@@ -698,7 +676,6 @@ export default {
align-items: center; align-items: center;
color: #999; color: #999;
font-size: 14px; font-size: 14px;
.filter-number { .filter-number {
display: inline-block; display: inline-block;
line-height: 20px; line-height: 20px;
...@@ -706,31 +683,25 @@ export default { ...@@ -706,31 +683,25 @@ export default {
background-color: #e6e9ff; background-color: #e6e9ff;
color: #333; color: #333;
margin-top: 8px; margin-top: 8px;
span { span {
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
} }
} }
} }
.basic-form { .basic-form {
padding: 32px 0 20px 20px; padding: 32px 0 20px 20px;
.settingSelect { .settingSelect {
/deep/ input { /deep/ input {
height: 35px; height: 35px;
} }
} }
.selectedLabel { .selectedLabel {
display: flex; display: flex;
.selectLen { .selectLen {
margin-left: 20px; margin-left: 20px;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
.num { .num {
color: #5850ff; color: #5850ff;
} }
...@@ -739,20 +710,16 @@ export default { ...@@ -739,20 +710,16 @@ export default {
} }
} }
} }
.form-tips { .form-tips {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
.preview { .preview {
flex: 1; flex: 1;
margin-right: 24px; margin-right: 24px;
margin-bottom: 58px; margin-bottom: 58px;
} }
} }
.footer-panel { .footer-panel {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -764,22 +731,18 @@ export default { ...@@ -764,22 +731,18 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.label-text { .label-text {
margin-left: 10px; margin-left: 10px;
font-size: 14px; font-size: 14px;
span { span {
color: #5850ff; color: #5850ff;
} }
} }
.sale-select { .sale-select {
display: flex; display: flex;
align-items: center; align-items: center;
// width: 50%; // width: 50%;
} }
.input-tag-wrapper { .input-tag-wrapper {
max-height: 75px; max-height: 75px;
min-width: 488px; min-width: 488px;
...@@ -804,14 +767,12 @@ export default { ...@@ -804,14 +767,12 @@ export default {
align-items: center; align-items: center;
margin-top: 6px; margin-top: 6px;
font-size: 14px; font-size: 14px;
i { i {
color: #75acff; color: #75acff;
margin-right: 3px; margin-right: 3px;
font-size: 14px; font-size: 14px;
} }
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
...@@ -819,7 +780,6 @@ export default { ...@@ -819,7 +780,6 @@ export default {
margin-bottom: 6px; margin-bottom: 6px;
// background: #fff !important; // background: #fff !important;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
border: none !important; border: none !important;
...@@ -829,49 +789,40 @@ export default { ...@@ -829,49 +789,40 @@ export default {
padding-left: 0; padding-left: 0;
width: 100px; width: 100px;
} }
.form-error { .form-error {
color: #f56c6c; color: #f56c6c;
font-size: 12px; font-size: 12px;
margin-left: 186px; margin-left: 186px;
margin-top: 10px; margin-top: 10px;
} }
/deep/ { /deep/ {
//.el-form-item .el-form-item { //.el-form-item .el-form-item {
// margin-bottom: 22px; // margin-bottom: 22px;
//} //}
.required { .required {
display: inline-block; display: inline-block;
line-height: 40px; line-height: 40px;
} }
.required::before { .required::before {
content: '*'; content: '*';
color: #f56c6c; color: #f56c6c;
margin-right: 4px; margin-right: 4px;
} }
.el-loading-spinner { .el-loading-spinner {
transform: translateY(8px); transform: translateY(8px);
} }
.el-scrollbar { .el-scrollbar {
padding-bottom: 10px; padding-bottom: 10px;
} }
.gl-form-page .el-form .welcome-box { .gl-form-page .el-form .welcome-box {
min-width: 488px; min-width: 488px;
max-width: 844px; max-width: 844px;
width: auto; width: auto;
} }
} }
.group-content { .group-content {
padding: 0 0 20px 0; padding: 0 0 20px 0;
} }
.tips-text { .tips-text {
font-size: 12px; font-size: 12px;
color: #f56c6c; color: #f56c6c;
...@@ -879,22 +830,18 @@ export default { ...@@ -879,22 +830,18 @@ export default {
line-height: 20px; line-height: 20px;
padding-bottom: 4px; padding-bottom: 4px;
} }
.crowd-tips { .crowd-tips {
color: #999999; color: #999999;
font-size: 12px; font-size: 12px;
line-height: 16px; line-height: 16px;
} }
/deep/ .content .btn-group { /deep/ .content .btn-group {
line-height: 14px; line-height: 14px;
} }
/deep/ .el-select { /deep/ .el-select {
.el-select__caret:first-child::before { .el-select__caret:first-child::before {
content: "\e6e1"; content: '\e6e1';
} }
.is-focus { .is-focus {
.el-select__caret:first-child { .el-select__caret:first-child {
transform: rotateZ(0deg); transform: rotateZ(0deg);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!