Commit f901e933 by 王志慧

fixed

1 parent c7461f93
......@@ -191,7 +191,6 @@ export default {
this.isDialogVisible = true
},
addGroup(group) {
console.log(group)
group.push({ name: '' })
},
delGroup(group, i) {
......
......@@ -8,8 +8,10 @@
<div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange"
@visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
<!-- 推送人 -->
......@@ -21,7 +23,8 @@
{{ wechat.automaticName }}
</div>
<span class="el-input__suffix" @click="openAutomatic">
<span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span>
<span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span>
</span>
</div>
</div>
......@@ -32,7 +35,9 @@
</el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap">
<template v-if="automaticData.length > 0">
<el-tree class="filter-tree" :data="automaticData" node-key="id" :default-expanded-keys="expandedKeys" :props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree" @node-click="handleNodeClick"></el-tree>
<el-tree class="filter-tree" :data="automaticData" node-key="id" :default-expanded-keys="expandedKeys"
:props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree"
@node-click="handleNodeClick"></el-tree>
</template>
<div class="empty" v-else>暂无数据</div>
</div>
......@@ -46,9 +51,11 @@
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<!-- <el-input v-model="i.name" ></el-input> -->
<el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable>
<el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option>
<el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName"
:value="item.groupName"></el-option>
</el-select>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput[bulletin.storageList])"></i>
<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>
......@@ -62,7 +69,8 @@
<el-button @click="handlebattleClose" size="medium">取消</el-button>
<el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button>
</GLFooter>
<component :is="dialogComponent" ref="componentRef" v-if="isDialogVisible" :isDialogVisible="isDialogVisible" :switchList="switchList" @handlePreview="handlePreview" @handleClose="handleClose"></component>
<component :is="dialogComponent" ref="componentRef" v-if="isDialogVisible" :isDialogVisible="isDialogVisible"
:switchList="switchList" @handlePreview="handlePreview" @handleClose="handleClose"></component>
</div>
</template>
<script>
......@@ -117,7 +125,8 @@ export default {
saReport: [],
saPerReport: [],
scheduleReport: [],
wordReport: []
wordReport: [],
saasReport: []
},
switchList: {
// xiReport: [],
......@@ -134,7 +143,7 @@ export default {
{ switchType: 504, switchStatus: 'Y', actionReportType: 5, switchText: '' }
],
scheduleReport: [{ switchType: 601, switchStatus: 'Y', actionReportType: 6 }],
wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }]
wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }],
},
groupCofListInput: {
wordReportValue: [],
......@@ -143,7 +152,7 @@ export default {
saPerReportValue: [],
scheduleReportValue: [],
zhanReportValue: [],
saasReportValue:[]
saasReportValue: []
},
groupToType: [
// {
......@@ -173,6 +182,10 @@ export default {
{
attr: 'wordReport',
type: 7
},
{
attr: 'saasReport',
type: 8
}
],
buttetinList: [
......@@ -281,7 +294,7 @@ export default {
this.idBefEncryption = data.idBefEncryption
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }],saasReportValue:[{name :''}] }
this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }], saasReportValue: [{ name: '' }] }
})
},
// 弹窗数据回显
......@@ -314,7 +327,7 @@ export default {
saPerReportValue: [],
scheduleReportValue: [],
zhanReportValue: [],
saasReportValue:[]
saasReportValue: []
}
this.battleVisible = true
// 编辑
......@@ -362,7 +375,7 @@ export default {
saPerReportValue: [{ name: '' }],
scheduleReportValue: [{ name: '' }],
zhanReportValue: [{ name: '' }],
saasReportValue:[{name:''}]
saasReportValue: [{ name: '' }]
}
}
},
......@@ -377,7 +390,8 @@ export default {
saReport: [],
saPerReport: [],
scheduleReport: [],
wordReport: []
wordReport: [],
saasReport: []
}
}
}
......@@ -399,7 +413,8 @@ export default {
saReport: [],
saPerReport: [],
scheduleReport: [],
wordReport: []
wordReport: [],
saasReport: []
}
},
async getDepartmentTree() {
......@@ -563,15 +578,19 @@ export default {
.footer-panel {
margin-top: 20px;
}
.search-groomname {
width: 402px;
margin: 12px 16px 0;
/deep/.el-input {
width: 402px;
}
}
.addConfig-wrap {
background: #fff;
.header {
width: 100%;
height: 58px;
......@@ -579,31 +598,38 @@ export default {
line-height: 58px;
padding-left: 20px;
}
.ml12 {
margin-left: 12px;
}
.config-wrap {
padding: 32px 20px;
min-height: 600px;
}
.group-item-box {
/deep/.el-form-item__content {
width: 392px;
}
}
.group-box {
width: 100%;
padding: 20px;
background: #f9f9f9;
.input-box {
display: flex;
align-items: center;
/deep/ {
.el-select,
.el-input {
width: 355px !important;
}
}
i {
cursor: pointer;
font-size: 20px;
......@@ -612,6 +638,7 @@ export default {
}
}
}
.group-config-text {
font-size: 12px;
color: #5850ff;
......@@ -621,13 +648,14 @@ export default {
white-space: nowrap;
cursor: pointer;
}
.placeholder {
font-size: 14px;
color: #c0c6ce;
line-height: 20px;
}
}
.is-reverse {
transform: rotate(180deg);
}
</style>
}</style>
......@@ -69,6 +69,9 @@ export default {
{
type: 2,
name: '浏览时长'
},{
type:2,
name:'线索归属'
}
],
mapList: {
......@@ -76,7 +79,8 @@ export default {
手机号: '${phone}',
线索来源: '${source}',
具体线索: '${clue}',
浏览时长: '${browseTime}'
浏览时长: '${browseTime}',
线索归属: '${staff}'
}
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!