Commit 713adbc5 by 王志慧

feat

1 parent 9d507379
......@@ -181,7 +181,6 @@ export default {
}
.btn-group-panel {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 10px 0 10px 20px;
border: 1px solid #e5e5e5;
......@@ -191,7 +190,6 @@ export default {
border-bottom-left-radius: 4px;
.btn-group {
display: flex;
justify-content: space-around;
column-gap: 20px;
line-height: 20px;
.add-btn {
......
......@@ -39,82 +39,19 @@
</gl-select-menu>
</transition>
</el-form-item>
<!-- #1.SA个人喜报>> : -->
<el-form-item label="#1.SA个人喜报>> :" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.saPerReportValue" :key="k">
<el-input v-model="i.name" placeholder="将SA个人喜报推送至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.saPerReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.saPerReportValue, k)"></i>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('personalDialog')">配置</span>
</el-form-item>
<!-- SA喜报 -->
<el-form-item label="#2.SA喜报>> :" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.saReportValue" :key="k">
<el-input v-model="i.name" placeholder="将SA喜报推送至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.saReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.saReportValue, k)"></i>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('bulletinDialog')">配置</span>
</el-form-item>
<!-- #3.文字喜报>> : -->
<el-form-item label="#3.文字喜报>> :" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.wordReportValue" :key="k">
<el-input v-model="i.name" placeholder="将文字喜报至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.wordReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.wordReportValue, k)"></i>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('charactersDialog')">配置</span>
</el-form-item>
<!-- <el-form-item label="#4.收款喜报" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.xiReportValue" :key="k">
<el-input v-model="i.name" placeholder="将收款喜报推送至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.xiReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.xiReportValue, k)"></i>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('xibaoDialog')">配置</span>
</el-form-item> -->
<!-- #4.早报>> : -->
<el-form-item label="#4.早报>> :" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.zhanReportValue" :key="k">
<el-input v-model="i.name" placeholder="将早报推送至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.zhanReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.zhanReportValue, k)"></i>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('dailyDialog')">配置</span>
</el-form-item>
<!-- #5.客户进度消息>> : -->
<el-form-item label="#5.客户进度消息>> :" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.scheduleReportValue" :key="k">
<el-input v-model="i.name" placeholder="将客户进度消息推送至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.scheduleReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.scheduleReportValue, k)"></i>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('progressDialog')">配置</span>
</el-form-item>
<!-- #6.补单通知>> : -->
<el-form-item label="#6.补单通知>> :" class="group-item-box">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput.orderReportValue" :key="k">
<el-input v-model="i.name" placeholder="将补单通知推送至群聊"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.orderReportValue)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.orderReportValue, k)"></i>
<!-- #喜报>> : -->
<template v-for="(bulletin, index) in buttetinList">
<el-form-item :label="'#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index">
<div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<el-input v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'"></el-input>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput[bulletin.storageList])"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i>
</div>
</div>
</div>
<span class="group-config-text" @click="openConfigDialog('replenishmentDialog')">配置</span>
</el-form-item>
<span class="group-config-text" @click="openConfigDialog(bulletin.componentName)">配置</span>
</el-form-item>
</template>
</el-form>
</div>
</div>
......@@ -229,6 +166,38 @@ export default {
attr: 'wordReport',
type: 7
}
],
buttetinList: [
{
label: 'SA个人喜报',
storageList: 'saPerReportValue',
componentName: 'personalDialog'
},
{
label: 'SA喜报',
storageList: 'saReportValue',
componentName: 'bulletinDialog'
},
{
label: '文字喜报',
storageList: 'wordReportValue',
componentName: 'charactersDialog'
},
{
label: '早报',
storageList: 'zhanReportValue',
componentName: 'dailyDialog'
},
{
label: '客户进度消息',
storageList: 'scheduleReportValue',
componentName: 'progressDialog'
},
{
label: '补单通知',
storageList: 'orderReportValue',
componentName: 'replenishmentDialog'
}
]
}
},
......@@ -526,15 +495,15 @@ export default {
console.log(params, 'params---')
this.$apis.saasOrder.updateYqConfig(params).then(res => {
this.$message({
message: res.code == '0' ? '配置成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.data) {
this.$router.go(-1)
}
this.$apis.saasOrder.updateYqConfig(params).then(res => {
this.$message({
message: res.code == '0' ? '配置成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.data) {
this.$router.go(-1)
}
})
},
handlebattleClose() {
this.$router.go(-1)
......@@ -590,9 +559,9 @@ export default {
cursor: pointer;
}
.placeholder {
font-size: 14px;
color: #c0c6ce;
line-height: 20px;
}
font-size: 14px;
color: #c0c6ce;
line-height: 20px;
}
}
</style>
......@@ -93,7 +93,7 @@ export default {
console.log(val)
if (val) {
this.$nextTick(() => {
this.$refs.verbalRef && this.$refs.verbalRef.update('${销售顾问用户名}7')
this.$refs.verbalRef && this.$refs.verbalRef.update(this.wordType.switchText)
})
}
}
......@@ -105,16 +105,15 @@ export default {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = i
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
}
})
})
},
handlebattleConfirm() {
console.log(this.$refs.verbalRef.getTextValue())
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
if (data == 'wordType') this[data].switchText = this.$refs.verbalRef.getTextValue()
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'wordReport', data: switchList })
......
......@@ -99,14 +99,14 @@ export default {
})
},
handlebattleConfirm() {
console.log(this.$refs.verbalRef.getTextValue)
// this.isDialogVisible = false
// let switchList = []
// this.params.forEach(data => {
// if(data =='verbalType') data.switchText = this.$refs.verbalRef.getTextValue()
// switchList.push(this[data])
// })
// this.$emit('handlePreview', { key: 'saPerReport', data: switchList })
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
if(data =='verbalType') this[data].switchText = this.$refs.verbalRef.getTextValue()
switchList.push(this[data])
})
console.log(switchList)
this.$emit('handlePreview', { key: 'saPerReport', data: switchList })
}
}
}
......
......@@ -9,9 +9,9 @@
</div>
<div class="right-wrap">
<div class="empty">
<img src="@/assets/buttetin/empty.png"/>
<img src="@/assets/buttetin/empty.png" />
</div>
<p class="">暂无配置项</p>
<div class="explain">
<div class="color6 weight-6 font-14">
<i class="el-icon-warning"></i>
......@@ -29,7 +29,7 @@ export default {
data() {
return {
isDialogVisible: false,
mode: 'big',
mode: 'big'
}
},
methods: {
......@@ -61,6 +61,9 @@ export default {
}
}
.right-wrap {
display: 1;
position: relative;
width:100%;
margin-top: 12px;
/deep/.el-form-item {
margin-bottom: 0px;
......@@ -68,32 +71,17 @@ export default {
.item-line {
margin-bottom: 20px;
}
.switchStyle /deep/ .el-switch__label {
.empty {
width: 420px;
height: 260px;
position: absolute;
display: none;
color: #fff;
font-size: 12px !important;
line-height: 20px;
}
.el-switch__core {
background-color: rgba(166, 166, 166, 1);
}
.switchStyle /deep/.el-switch__label--left {
z-index: 9;
left: 20px;
}
.switchStyle /deep/ .el-switch__label--right {
z-index: 9;
left: 4px;
}
.switchStyle /deep/ .el-switch__label.is-active {
display: block;
}
.switchStyle /deep/ .el-switch__core {
width: 56px !important;
}
.switchStyle /deep/ .el-switch__label {
width: 56px !important;
top:35%;
left:50%;
transform: translate(-50%,-50%);
img{
width:100%;
height:100%;
}
}
.explain {
width: 486px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!