Commit b4ac8cce by 前端

Merge branch 'yangm_v2.11.0' into 'v2.11.0'

Yangm v2.11.0

See merge request !36
2 parents 9a211776 2c1fb335
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-15 15:23:08
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
/*
* @Author: your name
* @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
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\setup\qiankun.js
......@@ -32,9 +32,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
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_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
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
<template>
<div>
<el-drawer title="发送记录" :visible.sync="drawVisible" direction="rtl" size="50%">
<div class="horizon"></div>
<div class="drawer-body">
<div class="record-panel">
<div class="record-border">
......@@ -58,12 +59,12 @@ export default {
}
},
methods: {
getListData(id) {
getListData() {
this.loading = true
const params = {
pageSize: this.$refs.proGroupRef.page.pageSize,
pageNum: this.$refs.proGroupRef.page.pageNum,
id
id: this.recordId
}
this.$apis.friendGroup.batchmomentRecord(params).then(res => {
this.loading = false
......@@ -74,12 +75,13 @@ export default {
})
},
init(row) {
const { id, successCount, failCount } = row
const { id, successCount = 0, failCount = 0 } = row
this.recordId = id
this.successCount = successCount
this.failCount = failCount
this.drawVisible = true
this.$nextTick(() => {
this.getListData(id)
this.getListData()
})
}
}
......@@ -87,7 +89,12 @@ export default {
</script>
<style scoped lang="scss">
.drawer-body {
padding: 0px 20px 20px;
padding: 20px;
}
.horizon {
width: 100%;
height: 1px;
background: #e8e8ea;
}
.record-panel {
display: flex;
......
......@@ -110,7 +110,7 @@ export default {
},
mounted() {
console.log(this)
this.listDepartmentTree(false)
this.listDepartmentTree(false, true)
},
methods: {
selectionTable(val) {
......@@ -131,7 +131,8 @@ export default {
onHidePopover() {
this.popoverVisible = false
},
listDepartmentTree(isFollowerStaff) {
listDepartmentTree(isFollowerStaff, status) {
const selectData = this.$common.utils.deepClone(status ? this.selectData : this.innerTags)
const params = { addChildrensFlag: true }
this.loading = true
params.isHavCustomer = true
......@@ -149,8 +150,9 @@ export default {
this.currentTreeData = this.getEmployee(res)
this.treeData = res
this.$refs.empTable.tableHeightValues = this.tableEmpData.length ? '' : '230px'
if (this.selectData && this.selectData.length) {
this.selectData.forEach(item => {
this.$refs.empTable.$refs.salelistMutiTable.clearSelection()
if (selectData && selectData.length) {
selectData.forEach(item => {
this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(item)
})
}
......
<template>
<div>
<div class="container">
<div class="title">编辑朋友圈</div>
<div class="title">新建朋友圈</div>
<div class="info-box">
<div class="info-content gl-form-page">
<el-form class="basic-form" :model="basicForm" label-width="154px" :rules="basicRules" ref="groupForm">
<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 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-select>
</el-form-item>
......@@ -29,7 +29,7 @@
</div>
<div v-show="empErrorShow" class="el-form-item__error">请选择员工</div>
</el-form-item>
<el-form-item prop="attachmentList">
<el-form-item prop="attachmentList" class="attachment-panel">
<label slot="label" class="required">朋友圈内容:</label>
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
......@@ -335,6 +335,12 @@ export default {
font-weight: 100;
}
}
.attachment-panel {
/deep/ .btn-group-panel {
height: 40px;
padding: 0px 0px 0px 20px;
}
}
.tips-text {
display: flex;
// align-items: center;
......
......@@ -3,8 +3,8 @@
<div class="marketing pro-group">
<div class="m-b-20 friend-title">
<div>
<!-- <GLButton :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</GLButton> -->
<el-button :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</el-button>
<GLButton :size="size" class="el-icon-plus" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</el-button> -->
</div>
</div>
<div class="container">
......@@ -12,10 +12,9 @@
<!-- 表格区域 开始 -->
<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">
<span style="color: #eb4e4e" v-if="scope.scope.sendStatus == -1">发送失败</span>
<span style="color: #FDB757" v-else-if="scope.scope.sendStatus == 1">发送中</span>
<span style="color: #2CCA74" v-else-if="scope.scope.sendStatus == 2">已完成</span>
<div class="loginStatus" slot="sendStatus" slot-scope="scope">
<span class="cycle" :style="{ background: scope.scope.sendStatus == '2' ? '#2CCA74' : scope.scope.sendStatus == '-1' ? '#EB4E4E' : scope.scope.sendStatus == '1' ? '#FDB757' : '' }"></span>
{{ scope.scope.sendStatus == '2' ? '已完成' : scope.scope.sendStatus == '-1' ? '发送失败' : scope.scope.sendStatus == '1' ? '发送中' : '' }}
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
......@@ -301,12 +300,26 @@ export default {
.el-table th > .cell {
padding: 0 16px;
}
.el-date-editor {
width: 210px !important;
}
}
.container {
background: #fff;
padding: 20px;
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 {
display: flex;
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!