Commit 2ec5173a by 杨明

fixed

1 parent b3955e0f
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-16 14:23:36
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-09-19 10:54:45
* @FilePath: \scrm-micro-marketing\src\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<div id="app"> <div id="app">
<!-- <h2> <!-- <h2>
...@@ -69,9 +77,6 @@ export default { ...@@ -69,9 +77,6 @@ export default {
color: #fff; color: #fff;
z-index: -1111; z-index: -1111;
} }
.el-switch__core {
width: 50px !important;
}
.el-switch__label--right { .el-switch__label--right {
position: relative; position: relative;
right: 46px; right: 46px;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-09-16 15:37:37 * @LastEditTime: 2022-09-26 17:25:16
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
......
...@@ -86,8 +86,10 @@ ...@@ -86,8 +86,10 @@
</div> </div>
</template> </template>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleConfig(scope.scope)"><div class="config">配置</div></el-button> <div class="gl-table-button">
<el-button type="text" @click="handleReset(scope.scope)" v-if="scope.scope.welcomeDTOS && scope.scope.welcomeDTOS.length"><div class="config">重置</div></el-button> <el-button type="text" @click="handleConfig(scope.scope)"><div class="config">配置</div></el-button>
<el-button type="text" @click="handleReset(scope.scope)" v-if="scope.scope.welcomeDTOS && scope.scope.welcomeDTOS.length"><div class="config">重置</div></el-button>
</div>
</div> </div>
</GLTable> </GLTable>
<div class="activity-name-tips"> <div class="activity-name-tips">
...@@ -637,8 +639,6 @@ export default { ...@@ -637,8 +639,6 @@ export default {
.edit-group { .edit-group {
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
margin-left: 15px;
line-height: 32px;
} }
} }
.activity-status { .activity-status {
...@@ -664,7 +664,6 @@ export default { ...@@ -664,7 +664,6 @@ export default {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
margin: 8px 0px; margin: 8px 0px;
width: 432px;
a { a {
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
......
...@@ -90,7 +90,8 @@ export default { ...@@ -90,7 +90,8 @@ export default {
}, },
{ {
label: '客户总数', label: '客户总数',
prop: 'customerCount' prop: 'customerCount',
width: 200
}, },
{ {
label: '已跟进', label: '已跟进',
......
...@@ -540,7 +540,7 @@ export default { ...@@ -540,7 +540,7 @@ export default {
.sale-select { .sale-select {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: 80px; margin-left: 154px;
} }
.input-tag-wrapper { .input-tag-wrapper {
max-height: 75px; max-height: 75px;
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<div class="title">基础信息</div> <div class="title">基础信息</div>
<div class="info-box"> <div class="info-box">
<div class="info-content"> <div class="info-content">
<div class="tips-text"> <!-- <div class="tips-text">
<img src="@/assets/guestCustom/tips.png" class="tips-icon" alt /> <img src="@/assets/guestCustom/tips.png" class="tips-icon" alt />
<span>企业主体信息需要认证,才可使用该功能。</span> <span>企业主体信息需要认证,才可使用该功能。</span>
</div> </div> -->
<el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="124px"> <el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="124px">
<el-form-item label="自定义群名" prop="groupName"> <el-form-item label="自定义群名" prop="groupName">
<el-input v-model.trim="basicForm.groupName" size="small" placeholder="为群聊设个自定义组名,如“VIP服务群”" maxlength="10"></el-input> <el-input v-model.trim="basicForm.groupName" size="small" placeholder="为群聊设个自定义组名,如“VIP服务群”" maxlength="10"></el-input>
...@@ -87,13 +87,15 @@ ...@@ -87,13 +87,15 @@
</div> </div>
</div> </div>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleSubmit">确定</el-button> <el-button type="primary" @click="handleSubmit">确定</el-button>
</GLFooter> </GLFooter>
<GLDialog :title="'选择成员'" :visible.sync="membersVisible"> <GLDialog :title="'选择成员'" :visible.sync="membersVisible">
<!-- <SelectMembers islord="false" :selectData="selectData" ref="membersForm"></SelectMembers> --> <!-- <SelectMembers islord="false" :selectData="selectData" ref="membersForm"></SelectMembers> -->
<SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData" :followData="followData"></SelectMember> <div style="width:100%;overflow:hidden">
<SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData" :followData="followData"></SelectMember>
</div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="membersVisible = false">取消</el-button> <el-button plain size="small" class="btn-three" @click="membersVisible = false">取消</el-button>
<el-button type="primary" size="small" @click="handleConfirm">确定</el-button> <el-button type="primary" size="small" @click="handleConfirm">确定</el-button>
...@@ -120,7 +122,6 @@ export default { ...@@ -120,7 +122,6 @@ export default {
}, },
data() { data() {
const validatorUser = (rule, value, callback) => { const validatorUser = (rule, value, callback) => {
const followList = this.basicForm.followList const followList = this.basicForm.followList
let userList = [] let userList = []
if (this.basicForm.userList && this.basicForm.userList.length) { if (this.basicForm.userList && this.basicForm.userList.length) {
...@@ -128,11 +129,10 @@ export default { ...@@ -128,11 +129,10 @@ export default {
} else { } else {
userList = this.basicForm.followList userList = this.basicForm.followList
} }
if (!this.basicForm.followList.length) { if (!this.basicForm.followList.length) {
callback(new Error('请选择跟进专员')) callback(new Error('请选择跟进专员'))
} else { } else {
if (userList.length < 2) { if (userList.length < 2) {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
} }
} }
// const nameVaild = (rule, value, callback) => { // const nameVaild = (rule, value, callback) => {
// //
// if (value) { // if (value) {
// const params = { // const params = {
// templateName: value // templateName: value
...@@ -209,6 +209,9 @@ export default { ...@@ -209,6 +209,9 @@ export default {
followVisible: false followVisible: false
} }
}, },
beforeDestroy() {
this.$message.closeAll()
},
watch: { watch: {
basicForm: { basicForm: {
handler(val) { handler(val) {
...@@ -217,13 +220,14 @@ export default { ...@@ -217,13 +220,14 @@ export default {
deep: true deep: true
} }
// membersVisible(val) { // membersVisible(val) {
// //
// if (!val) { // if (!val) {
// this.$refs.membersForm.resetSearch() // this.$refs.membersForm.resetSearch()
// } // }
// } // }
}, },
mounted() { mounted() {
this.wxTips()
if (this.$route.params) { if (this.$route.params) {
const id = this.$route.params.id const id = this.$route.params.id
if (id != -1) this.getDetail(id) if (id != -1) this.getDetail(id)
...@@ -234,6 +238,31 @@ export default { ...@@ -234,6 +238,31 @@ export default {
this.boxHeight = clientHeight - 200 this.boxHeight = clientHeight - 200
}, },
methods: { methods: {
wxTips() {
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menu.forEach(item => {
if (!item.children) {
return
}
item.children.forEach(itm => {
if (itm.path == '/enterpriseWechat/index') {
this.$apis.groupGuest.getStatus({}).then(res => {
if (res.status != 'SUCCESS') {
const h = this.$createElement
this.$message({
showClose: true,
duration: 0,
message: h('p', null, [h('span', null, '此功能需完成【企业微信授权】后方可使用! '), h('span', { on: { click: this.jumpWx }, style: { marginRight: '150px', cursor: 'pointer', color: '#5850ff' } }, ['企业微信授权 ', h('i', { class: 'el-icon-d-arrow-right' }, '')])])
})
}
})
}
})
})
},
jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
},
openMembers() { openMembers() {
this.membersVisible = !this.membersVisible this.membersVisible = !this.membersVisible
}, },
...@@ -271,7 +300,7 @@ export default { ...@@ -271,7 +300,7 @@ export default {
apiName = 'update' apiName = 'update'
params.id = this.basicForm.id params.id = this.basicForm.id
} }
this.$apis.groupGuest[apiName](params) this.$apis.groupGuest[apiName](params)
.then(res => { .then(res => {
if (res) { if (res) {
...@@ -310,7 +339,7 @@ export default { ...@@ -310,7 +339,7 @@ export default {
this.basicForm.userList = this.selectData this.basicForm.userList = this.selectData
this.basicForm.followList = res.userList.filter(item => item.follow == 1) this.basicForm.followList = res.userList.filter(item => item.follow == 1)
} }
// this.selectData = res.userList // this.selectData = res.userList
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
...@@ -335,7 +364,6 @@ export default { ...@@ -335,7 +364,6 @@ export default {
} }
}, },
remove(val, idx) { remove(val, idx) {
if (this.$refs.membersForm) { if (this.$refs.membersForm) {
this.$refs.membersForm.remove(val) this.$refs.membersForm.remove(val)
this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags) this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags)
...@@ -380,7 +408,7 @@ export default { ...@@ -380,7 +408,7 @@ export default {
.container { .container {
margin-bottom: 20px; margin-bottom: 20px;
background: #ffffff; background: #ffffff;
// padding: 20px; // padding: 20px;
.title { .title {
padding: 20px 0 17px 20px; padding: 20px 0 17px 20px;
......
...@@ -8,42 +8,13 @@ ...@@ -8,42 +8,13 @@
<div class="member-content"> <div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="所在门店/部门" style="margin-bottom: 0;"> <el-form-item label="所在门店/部门" style="margin-bottom: 0;">
<el-popover <el-popover ref="popover" placement="bottom" width="215" trigger="click" v-model="popoverVisible" @show="onShowPopover" @hide="onHidePopover">
ref="popover" <el-tree class="select-tree" :data="treeData" :props="defaultProps" default-expand-all @node-click="handleNodeClick"></el-tree>
placement="bottom" <el-input v-model="searchForm.department" slot="reference" :size="size" readonly placeholder="请选择所在门店/部门" :class="{ rotate: popoverVisible }" suffix-icon="el-icon-arrow-down" @keyup.enter.native="search"></el-input>
width="215"
trigger="click"
v-model="popoverVisible"
@show="onShowPopover"
@hide="onHidePopover"
>
<el-tree
class="select-tree"
:data="treeData"
:props="defaultProps"
default-expand-all
@node-click="handleNodeClick"
></el-tree>
<el-input
v-model="searchForm.department"
slot="reference"
:size="size"
readonly
placeholder="请选择所在门店/部门"
:class="{ 'rotate': popoverVisible }"
suffix-icon="el-icon-arrow-down"
@keyup.enter.native="search"
></el-input>
</el-popover> </el-popover>
</el-form-item> </el-form-item>
<el-form-item label="姓名" style="margin-bottom: 0;"> <el-form-item label="姓名" style="margin-bottom: 0;">
<el-input <el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
:size="size"
v-model.trim="searchForm.name"
@keyup.enter.native="search"
clearable
placeholder="请输入姓名搜索"
></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item> <!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox> <el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
...@@ -53,21 +24,10 @@ ...@@ -53,21 +24,10 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-content"> <div class="table-content">
<GLTable <GLTable v-loading="loading" ref="empTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" :noDataImg="url" @selectionTable="selectionTable" @row-click="rowClick">
:key="key"
v-loading="loading"
ref="empTable"
:tableData="tableEmpData"
:tableParams="tableParams"
:hasNum="false"
:hasPage="false"
:noDataImg="url"
@selectionTable="selectionTable"
@row-click="rowClick"
>
<div slot="staffName" slot-scope="scope"> <div slot="staffName" slot-scope="scope">
<span>{{scope.scope.staffName}}</span> <span>{{ scope.scope.staffName }}</span>
<span class="staff-title" v-show="scope.scope.staffTitle">{{scope.scope.staffTitle}}</span> <span class="staff-title" v-show="scope.scope.staffTitle">{{ scope.scope.staffTitle }}</span>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -78,19 +38,12 @@ ...@@ -78,19 +38,12 @@
</div> </div>
<div class="member-right"> <div class="member-right">
<div class="member-title">已选</div> <div class="member-title">已选</div>
<div class="member-name">成员名称({{innerTags.length}}项)</div> <div class="member-name">成员名称({{ innerTags.length }}项)</div>
<div class="input-tag-wrapper"> <div class="input-tag-wrapper">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)">
v-for="(tag, idx) in innerTags"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<!-- <i class="el-icon-user-solid"></i> --> <!-- <i class="el-icon-user-solid"></i> -->
<img class="headPortrait" src="@/assets/headPortrait.png" /> <img class="headPortrait" src="@/assets/headPortrait.png" />
{{ tag.staffName }} {{ tag.staffName }}
</el-tag> </el-tag>
</div> </div>
...@@ -146,7 +99,6 @@ export default { ...@@ -146,7 +99,6 @@ export default {
}, },
mounted() { mounted() {
this.listDepartmentTree() this.listDepartmentTree()
}, },
methods: { methods: {
selectionTable(val) { selectionTable(val) {
...@@ -180,7 +132,7 @@ export default { ...@@ -180,7 +132,7 @@ export default {
this.allTreeData = this.getEmployee(res) this.allTreeData = this.getEmployee(res)
this.currentTreeData = this.getEmployee(res) this.currentTreeData = this.getEmployee(res)
this.treeData = res this.treeData = res
this.tableEmpData.length ? (this.$refs.empTable.tableHeightValues = '250px') : this.$refs.empTable.setTableHeightFun() // this.tableEmpData.length && (this.$refs.empTable.tableHeightValues = '250px')
if (this.selectData && this.selectData.length) { if (this.selectData && this.selectData.length) {
this.selectData.forEach(item => { this.selectData.forEach(item => {
this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item) this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
...@@ -298,6 +250,7 @@ export default { ...@@ -298,6 +250,7 @@ export default {
} }
} }
.member-wrapper { .member-wrapper {
width: 100%;
display: flex; display: flex;
.member-title { .member-title {
font-size: 16px; font-size: 16px;
...@@ -312,8 +265,6 @@ export default { ...@@ -312,8 +265,6 @@ export default {
} }
} }
.member-left { .member-left {
width: 800px;
.member-content { .member-content {
border: 1px solid #eee; border: 1px solid #eee;
.member-form { .member-form {
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
{ {
label: '群聊名称', label: '群聊名称',
prop: 'groupName', prop: 'groupName',
width:250, width: 250,
line: 1 line: 1
}, },
{ {
...@@ -300,7 +300,6 @@ export default { ...@@ -300,7 +300,6 @@ export default {
}) })
break break
default: default:
} }
}, },
setTableFinishFun() { setTableFinishFun() {
...@@ -345,12 +344,12 @@ export default { ...@@ -345,12 +344,12 @@ export default {
} }
} }
.btn-header { .btn-header {
margin-bottom: 10px; margin-bottom: 16px;
} }
.container { .container {
margin-bottom: 20px; margin-bottom: 20px;
background: #ffffff; background: #ffffff;
padding: 20px; padding: 20px;
} }
.addBtn { .addBtn {
...@@ -367,7 +366,7 @@ export default { ...@@ -367,7 +366,7 @@ export default {
.toptips { .toptips {
display: inline-block; display: inline-block;
position: relative; position: relative;
margin-left: 10px; margin-left: 16px;
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!