Commit 8d2256f5 by 杨明

Merge branch 'v2.11.0' of http://192.168.3.233:8090/saas/scrm-micro-authorize into yangm_v2.11.0

2 parents 0853567e ddde34ff
<template> <template>
<div class="container"> <div class="container">
<GLCombiForm :formObj="searchForm" :rowNumber="1" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :formObj="searchForm" :rowNumber="1" :formData="searchFormData" @handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<div class="header-text">已激活列表</div> <div class="header-text">已激活列表</div>
<div> <div>
<el-button class="table-btn" @click="handleqrCode" :size="size" type="primary" plain mode="el-button">企微接入授权</el-button> <el-button class="table-btn" @click="handleqrCode" :size="size" type="primary" plain mode="el-button">
企微接入授权
</el-button>
</div> </div>
</div> </div>
<GLTable ref="activeTable" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="activeTable" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm"
:tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="staffName" slot-scope="scope"> <div slot="staffName" slot-scope="scope">
<div class="staffName"> <div class="staffName">
<span>{{ scope.scope.staffName }}</span> <span>{{ scope.scope.staffName }}</span>
...@@ -15,16 +19,16 @@ ...@@ -15,16 +19,16 @@
</div> </div>
</div> </div>
<div slot="loginStatus" slot-scope="scope"> <div slot="loginStatus" slot-scope="scope">
<div class="loginStatus" v-if="scope.scope.loginStatus"> <div class="loginStatus">
<span class="cycle" :style="{ background: scope.scope.loginStatus == '1' ? '#2CCA74' : scope.scope.loginStatus == '0' ? '#999999' : '' }"></span> <span class="cycle"
{{ scope.scope.loginStatus == '1' ? '在线' : scope.scope.loginStatus == '0' ? '离线' : '' }} :style="{ background: scope.scope.loginStatus == '1' ? '#2CCA74' : scope.scope.loginStatus == '0' ? '#999999' : '' }"></span>
{{ scope.scope.loginStatus == '1' ? '在线' : scope.scope.loginStatus == '0' ? '离线' : '--' }}
</div> </div>
<div v-else>--</div>
</div> </div>
</GLTable> </GLTable>
<GLDialog :title="'授权登入二维码'" mode="small" :visible.sync="qrCodeVisible"> <GLDialog :title="'授权登入二维码'" mode="small" :visible.sync="qrCodeVisible">
<div v-loading="addLoading" class="qrIMGbox"> <div v-loading="addLoading" class="qrIMGbox">
<img class="qrIMG" :src="qrcodeUrl" /> <img class="qrIMG" :src="qrcodeUrl"/>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="refreshQrcode">刷新</el-button> <el-button type="primary" size="small" @click="refreshQrcode">刷新</el-button>
...@@ -35,6 +39,8 @@ ...@@ -35,6 +39,8 @@
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import {utils} from 'glsx-common'
export default { export default {
name: 'collocation', name: 'collocation',
data() { data() {
...@@ -43,11 +49,12 @@ export default { ...@@ -43,11 +49,12 @@ export default {
verifyQRCodeFailsToOpen: false, verifyQRCodeFailsToOpen: false,
addLoading: false, addLoading: false,
qrCodeInterval: null, qrCodeInterval: null,
qrCodeIntervalList: [],
qrcodeUrl: '', qrcodeUrl: '',
qrCodeVisible: false, qrCodeVisible: false,
qrcodeId: '', qrcodeId: '',
searchForm: { searchForm: {
loginStatus:'' loginStatus: ''
}, },
searchFormData: [ searchFormData: [
{ {
...@@ -98,32 +105,32 @@ export default { ...@@ -98,32 +105,32 @@ export default {
label: '员工企微', label: '员工企微',
prop: 'staffName', prop: 'staffName',
addHtml: 'staffName', addHtml: 'staffName',
minwidth:110 minwidth: 110
}, },
{ {
label: '手机号码', label: '手机号码',
prop: 'staffPhone', prop: 'staffPhone',
minwidth:110 minwidth: 110
}, },
{ {
label: '所属门店', label: '所属门店',
prop: 'merchantName', prop: 'merchantName',
minwidth:110 minwidth: 110
}, },
{ {
label: '最后同步时间', label: '最后同步时间',
prop: 'lastLoginTime', prop: 'lastLoginTime',
minwidth:110 minwidth: 110
}, },
{ {
label: '状态', label: '状态',
prop: 'loginStatus', prop: 'loginStatus',
addHtml: 'loginStatus', addHtml: 'loginStatus',
minwidth:110 minwidth: 110
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: {pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count'},
getListApi: this.$apis.collocation.wechatDepositList getListApi: this.$apis.collocation.wechatDepositList
} }
}, },
...@@ -143,6 +150,7 @@ export default { ...@@ -143,6 +150,7 @@ export default {
async handleqrCode() { async handleqrCode() {
this.addLoading = true this.addLoading = true
this.qrCodeVisible = true this.qrCodeVisible = true
this.verifyQRCodeFailsToOpen = false
await this.$apis.collocation await this.$apis.collocation
.getLoginQcCode({}) .getLoginQcCode({})
.then(res => { .then(res => {
...@@ -152,16 +160,24 @@ export default { ...@@ -152,16 +160,24 @@ export default {
}) })
.catch(err => { .catch(err => {
this.qrCodeVisible = false this.qrCodeVisible = false
this.clearAllInterval()
}) })
}, },
clearAllInterval() {
this.qrCodeIntervalList.length && this.qrCodeIntervalList.forEach(item => {
clearInterval(item);
})
this.qrCodeIntervalList = [];
this.qrCodeInterval = null;
},
verifyQRCodeIsInvalid() { verifyQRCodeIsInvalid() {
this.qrCodeInterval = setInterval(() => { this.qrCodeInterval = setInterval(() => {
this.qrcodeTimeoutApi() this.qrcodeTimeoutApi()
// 300000 }, 15000)
}, 5000) this.qrCodeIntervalList.push(this.qrCodeInterval)
}, },
qrcodeTimeoutApi() { qrcodeTimeoutApi() {
this.$apis.collocation.getQcCodeDetail({ id: this.qrcodeId }).then(res => { this.$apis.collocation.getQcCodeDetail({id: this.qrcodeId}).then(res => {
if (res == true) { if (res == true) {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -173,14 +189,14 @@ export default { ...@@ -173,14 +189,14 @@ export default {
} }
}) })
}, },
refreshQrcode() { refreshQrcode: utils.debounce(function () {
this.handleqrCode() this.handleqrCode()
} }, 5000)
}, },
computed: { computed: {
listenChange() { listenChange() {
const { verifyQRCodeFailsToOpen, qrCodeVisible } = this const {verifyQRCodeFailsToOpen, qrCodeVisible} = this
return { verifyQRCodeFailsToOpen, qrCodeVisible } return {verifyQRCodeFailsToOpen, qrCodeVisible}
} }
}, },
watch: { watch: {
...@@ -188,7 +204,7 @@ export default { ...@@ -188,7 +204,7 @@ export default {
if (val.qrCodeVisible == true && val.verifyQRCodeFailsToOpen == true) { if (val.qrCodeVisible == true && val.verifyQRCodeFailsToOpen == true) {
this.verifyQRCodeIsInvalid() this.verifyQRCodeIsInvalid()
} else { } else {
clearInterval(this.qrCodeInterval) this.clearAllInterval()
} }
} }
} }
...@@ -201,36 +217,44 @@ export default { ...@@ -201,36 +217,44 @@ export default {
padding: 0 16px; padding: 0 16px;
} }
} }
.container { .container {
padding: 20px; padding: 20px;
background-color: #fff; background-color: #fff;
.table-header { .table-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 10px; margin-bottom: 10px;
.header-text { .header-text {
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
font-weight: 600; font-weight: 600;
} }
} }
.table-btn { .table-btn {
color: #5850ff; color: #5850ff;
border: 1px solid #5850ff; border: 1px solid #5850ff;
} }
.qrIMGbox { .qrIMGbox {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.qrIMG { .qrIMG {
width: 150px; width: 150px;
height: 150px; height: 150px;
} }
} }
/deep/.loginStatus {
/deep/ .loginStatus {
display: flex; display: flex;
align-items: center; align-items: center;
.cycle { .cycle {
margin-right: 8px; margin-right: 8px;
width: 6px; width: 6px;
...@@ -239,9 +263,11 @@ export default { ...@@ -239,9 +263,11 @@ export default {
border-radius: 50%; border-radius: 50%;
} }
} }
.staffName { .staffName {
display: flex; display: flex;
align-items: center; align-items: center;
.entmicroName { .entmicroName {
font-size: 12px; font-size: 12px;
color: #fb8f28; color: #fb8f28;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="info-content gl-form-page"> <div class="info-content gl-form-page">
<el-form class="basic-form" :model="basicForm" :rules="basicRules" ref="basicForm" label-width="154px"> <el-form class="basic-form" :model="basicForm" :rules="basicRules" ref="basicForm" label-width="154px">
<el-form-item label="群发名称:" prop="groupName"> <el-form-item label="群发名称:" prop="groupName">
<el-input size="small" v-model="basicForm.groupName"></el-input> <el-input size="small" v-model="basicForm.groupName" placeholder="请输入群发名称"></el-input>
</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>-->
...@@ -256,6 +256,7 @@ export default { ...@@ -256,6 +256,7 @@ export default {
this.basicForm.userList = [] this.basicForm.userList = []
this.selectData = [] this.selectData = []
this.basicForm.crowdList = [] this.basicForm.crowdList = []
this.$refs.selectLabel.labelTreeRetSelect = []
} }
} }
}, },
...@@ -336,6 +337,11 @@ export default { ...@@ -336,6 +337,11 @@ export default {
} }
}, },
selectChange(val) { selectChange(val) {
this.tagging = []
this.taggingList = []
this.basicForm.crowdList = []
this.$refs.selectLabel.labelTreeRetSelect = []
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
}, },
...@@ -718,6 +724,9 @@ export default { ...@@ -718,6 +724,9 @@ export default {
.input-tag-wrapper { .input-tag-wrapper {
max-height: 75px; max-height: 75px;
min-width: 488px;
max-width: 844px;
width: auto;
overflow: auto; overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
...@@ -729,7 +738,7 @@ export default { ...@@ -729,7 +738,7 @@ export default {
color: #666; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 5px 5px 0px 5px; padding: 8px;
flex-wrap: wrap; flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
// width: 50%; // width: 50%;
...@@ -749,7 +758,7 @@ export default { ...@@ -749,7 +758,7 @@ export default {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px; margin-bottom: 6px;
// background: #fff !important; // background: #fff !important;
} }
...@@ -820,4 +829,14 @@ export default { ...@@ -820,4 +829,14 @@ export default {
/deep/.content .btn-group { /deep/.content .btn-group {
line-height: 14px; line-height: 14px;
} }
/deep/.el-select {
.el-select__caret:first-child::before {
content: "\e6e1";
}
.is-focus {
.el-select__caret:first-child {
transform: rotateZ(0deg);
}
}
}
</style> </style>
...@@ -67,9 +67,9 @@ import util from '@/utils/util' ...@@ -67,9 +67,9 @@ import util from '@/utils/util'
export default { export default {
name: 'activityModel', name: 'activityModel',
props: { props: {
resetMerchantId:{ resetMerchantId: {
type:String, type: String,
default:'' default: ''
} }
}, },
data() { data() {
...@@ -237,7 +237,6 @@ export default { ...@@ -237,7 +237,6 @@ export default {
} }
}) })
.filter(item => item) .filter(item => item)
console.log(labelTreeRets)
this.$emit('tagSelected', labelTreeRets) this.$emit('tagSelected', labelTreeRets)
}, },
//全选 //全选
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
{ {
label: '标签/人群', label: '标签/人群',
prop: 'labelCrowdName', prop: 'labelCrowdName',
width: 220, width: 370,
line: 1 line: 1
}, },
{ {
...@@ -157,15 +157,18 @@ export default { ...@@ -157,15 +157,18 @@ export default {
{ {
label: '发送状态', label: '发送状态',
prop: 'sendState', prop: 'sendState',
addHtml: 'sendState' addHtml: 'sendState',
width:150,
}, },
{ {
label: '发送成功', label: '发送成功',
prop: 'successCompletion' prop: 'successCompletion',
width: 120,
}, },
{ {
label: '发送失败', label: '发送失败',
prop: 'failCompletion' prop: 'failCompletion',
width: 120,
}, },
{ {
label: '操作', label: '操作',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!