Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b4ac8cce
authored
Nov 08, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'yangm_v2.11.0' into 'v2.11.0'
Yangm v2.11.0 See merge request
!36
2 parents
9a211776
2c1fb335
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
23 deletions
src/api/modules/common.js
src/setup/qiankun.js
src/views/friendGroup/components/drawRecord.vue
src/views/friendGroup/components/selectMember.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/api/modules/common.js
View file @
b4ac8cc
...
@@ -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
*/
*/
...
...
src/setup/qiankun.js
View file @
b4ac8cc
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-02-10 19:00:41
* @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-11-0
2 18:00:40
* @LastEditTime: 2022-11-0
4 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
)
...
...
src/views/friendGroup/components/drawRecord.vue
View file @
b4ac8cc
<
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
;
...
...
src/views/friendGroup/components/selectMember.vue
View file @
b4ac8cc
...
@@ -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
)
})
})
}
}
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
b4ac8cc
<
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
;
...
...
src/views/friendGroup/index.vue
View file @
b4ac8cc
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment