Commit 60f95e46 by xuyl

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

2 parents 5682a4fe b4ac8cce
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-15 15:23:08 * @Date: 2022-09-15 15:23:08
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-09-26 09:49:34 * @LastEditTime: 2022-11-04 09:38:21
* @FilePath: \scrm-micro-authorize\src\api\modules\common.js * @FilePath: \scrm-micro-authorize\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-02-10 19:00:41 * @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-11-02 18:00:40 * @LastEditTime: 2022-11-04 09:38:04
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\setup\qiankun.js * @FilePath: \scrm-micro-pay\src\setup\qiankun.js
...@@ -32,9 +32,9 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -32,9 +32,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
const response_custom = Object.assign({}, { ...response, code_success_value: 'true', data_key: 'result', code_key: 'success' }) // const response_custom = Object.assign({}, { ...response, code_success_value: 'true', data_key: 'result', code_key: 'success' })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response: response_custom, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token, 'Content-Type': 'multipart/form-data' } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
......
<template> <template>
<div> <div>
<el-drawer title="发送记录" :visible.sync="drawVisible" direction="rtl" size="50%"> <el-drawer title="发送记录" :visible.sync="drawVisible" direction="rtl" size="50%">
<div class="horizon"></div>
<div class="drawer-body"> <div class="drawer-body">
<div class="record-panel"> <div class="record-panel">
<div class="record-border"> <div class="record-border">
...@@ -58,12 +59,12 @@ export default { ...@@ -58,12 +59,12 @@ export default {
} }
}, },
methods: { methods: {
getListData(id) { getListData() {
this.loading = true this.loading = true
const params = { const params = {
pageSize: this.$refs.proGroupRef.page.pageSize, pageSize: this.$refs.proGroupRef.page.pageSize,
pageNum: this.$refs.proGroupRef.page.pageNum, pageNum: this.$refs.proGroupRef.page.pageNum,
id id: this.recordId
} }
this.$apis.friendGroup.batchmomentRecord(params).then(res => { this.$apis.friendGroup.batchmomentRecord(params).then(res => {
this.loading = false this.loading = false
...@@ -74,12 +75,13 @@ export default { ...@@ -74,12 +75,13 @@ export default {
}) })
}, },
init(row) { init(row) {
const { id, successCount, failCount } = row const { id, successCount = 0, failCount = 0 } = row
this.recordId = id
this.successCount = successCount this.successCount = successCount
this.failCount = failCount this.failCount = failCount
this.drawVisible = true this.drawVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.getListData(id) this.getListData()
}) })
} }
} }
...@@ -87,7 +89,12 @@ export default { ...@@ -87,7 +89,12 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.drawer-body { .drawer-body {
padding: 0px 20px 20px; padding: 20px;
}
.horizon {
width: 100%;
height: 1px;
background: #e8e8ea;
} }
.record-panel { .record-panel {
display: flex; display: flex;
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
}, },
mounted() { mounted() {
console.log(this) console.log(this)
this.listDepartmentTree(false) this.listDepartmentTree(false, true)
}, },
methods: { methods: {
selectionTable(val) { selectionTable(val) {
...@@ -131,7 +131,8 @@ export default { ...@@ -131,7 +131,8 @@ export default {
onHidePopover() { onHidePopover() {
this.popoverVisible = false this.popoverVisible = false
}, },
listDepartmentTree(isFollowerStaff) { listDepartmentTree(isFollowerStaff, status) {
const selectData = this.$common.utils.deepClone(status ? this.selectData : this.innerTags)
const params = { addChildrensFlag: true } const params = { addChildrensFlag: true }
this.loading = true this.loading = true
params.isHavCustomer = true params.isHavCustomer = true
...@@ -149,8 +150,9 @@ export default { ...@@ -149,8 +150,9 @@ export default {
this.currentTreeData = this.getEmployee(res) this.currentTreeData = this.getEmployee(res)
this.treeData = res this.treeData = res
this.$refs.empTable.tableHeightValues = this.tableEmpData.length ? '' : '230px' this.$refs.empTable.tableHeightValues = this.tableEmpData.length ? '' : '230px'
if (this.selectData && this.selectData.length) { this.$refs.empTable.$refs.salelistMutiTable.clearSelection()
this.selectData.forEach(item => { if (selectData && selectData.length) {
selectData.forEach(item => {
this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item) this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
}) })
} }
......
<template> <template>
<div> <div>
<div class="container"> <div class="container">
<div class="title">编辑朋友圈</div> <div class="title">新建朋友圈</div>
<div class="info-box"> <div class="info-box">
<div class="info-content gl-form-page"> <div class="info-content gl-form-page">
<el-form class="basic-form" :model="basicForm" label-width="154px" :rules="basicRules" ref="groupForm"> <el-form class="basic-form" :model="basicForm" label-width="154px" :rules="basicRules" ref="groupForm">
<el-form-item prop="taskName" label="群发名称:" size="small"> <el-form-item prop="taskName" label="群发名称:" size="small">
<el-input v-model="basicForm.taskName" placeholder="请输入内容"></el-input> <el-input v-model="basicForm.taskName" placeholder="请输入群发名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="taskMerchantId" label="选择门店:" size="small"> <el-form-item prop="taskMerchantId" label="选择门店:" size="small">
<el-select filterable v-model="basicForm.taskMerchantId" placeholder="请选择"> <el-select filterable v-model="basicForm.taskMerchantId" placeholder="请选择门店">
<el-option v-for="item in optionsMe" :key="item.msgMerchantId" :label="item.msgMerchantName" :value="item.msgMerchantId"></el-option> <el-option v-for="item in optionsMe" :key="item.msgMerchantId" :label="item.msgMerchantName" :value="item.msgMerchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
<div v-show="empErrorShow" class="el-form-item__error">请选择员工</div> <div v-show="empErrorShow" class="el-form-item__error">请选择员工</div>
</el-form-item> </el-form-item>
<el-form-item prop="attachmentList"> <el-form-item prop="attachmentList" class="attachment-panel">
<label slot="label" class="required">朋友圈内容:</label> <label slot="label" class="required">朋友圈内容:</label>
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor> <GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div> <div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
...@@ -335,6 +335,12 @@ export default { ...@@ -335,6 +335,12 @@ export default {
font-weight: 100; font-weight: 100;
} }
} }
.attachment-panel {
/deep/ .btn-group-panel {
height: 40px;
padding: 0px 0px 0px 20px;
}
}
.tips-text { .tips-text {
display: flex; display: flex;
// align-items: center; // align-items: center;
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="marketing pro-group"> <div class="marketing pro-group">
<div class="m-b-20 friend-title"> <div class="m-b-20 friend-title">
<div> <div>
<!-- <GLButton :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</GLButton> --> <GLButton :size="size" class="el-icon-plus" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</GLButton>
<el-button :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</el-button> <!-- <el-button :size="size" type="primary" class="el-icon-plus" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</el-button> -->
</div> </div>
</div> </div>
<div class="container"> <div class="container">
...@@ -12,10 +12,9 @@ ...@@ -12,10 +12,9 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable v-loading="loading" ref="proGroupRef" @refreshTable="handleSearch" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf"> <GLTable v-loading="loading" ref="proGroupRef" @refreshTable="handleSearch" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
<div slot="sendStatus" slot-scope="scope"> <div class="loginStatus" slot="sendStatus" slot-scope="scope">
<span style="color: #eb4e4e" v-if="scope.scope.sendStatus == -1">发送失败</span> <span class="cycle" :style="{ background: scope.scope.sendStatus == '2' ? '#2CCA74' : scope.scope.sendStatus == '-1' ? '#EB4E4E' : scope.scope.sendStatus == '1' ? '#FDB757' : '' }"></span>
<span style="color: #FDB757" v-else-if="scope.scope.sendStatus == 1">发送中</span> {{ scope.scope.sendStatus == '2' ? '已完成' : scope.scope.sendStatus == '-1' ? '发送失败' : scope.scope.sendStatus == '1' ? '发送中' : '' }}
<span style="color: #2CCA74" v-else-if="scope.scope.sendStatus == 2">已完成</span>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
...@@ -301,12 +300,26 @@ export default { ...@@ -301,12 +300,26 @@ export default {
.el-table th > .cell { .el-table th > .cell {
padding: 0 16px; padding: 0 16px;
} }
.el-date-editor {
width: 210px !important;
}
} }
.container { .container {
background: #fff; background: #fff;
padding: 20px; padding: 20px;
margin-top: 16px; margin-top: 16px;
} }
.loginStatus {
display: flex;
align-items: center;
.cycle {
margin-right: 8px;
width: 6px;
height: 6px;
display: inline-block;
border-radius: 50%;
}
}
.friend-title { .friend-title {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!