Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 eac8cacc
authored
Aug 06, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改已知bug
1 parent
7d1340e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
69 deletions
linkwe-ui/src/components/Upload.vue
linkwe-ui/src/views/application/groupFission.vue
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
linkwe-ui/src/views/drainageCode/group/add.vue
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/components/Upload.vue
View file @
eac8cac
...
...
@@ -113,6 +113,9 @@ export default {
this
.
$emit
(
'update:fileName'
,
res
.
data
.
fileName
)
this
.
$emit
(
'update:file'
,
file
)
// this.fileUrl = URL.createObjectURL(file.raw)
}
else
{
this
.
loading
=
false
this
.
$message
.
error
(
res
.
msg
)
}
},
onError
(
err
,
file
,
fileList
)
{
...
...
linkwe-ui/src/views/application/groupFission.vue
View file @
eac8cac
...
...
@@ -98,7 +98,7 @@ export default {
>
</el-form-item>
</el-form>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table
:data=
"tableData"
>
<el-table-column
prop=
"taskName"
label=
"群裂变名称"
>
</el-table-column>
<el-table-column
prop=
"fissNum"
label=
"裂变客户数量"
>
</el-table-column>
<el-table-column
prop=
"fissStatus"
label=
"活动状态"
>
...
...
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
View file @
eac8cac
...
...
@@ -8,7 +8,11 @@ export default {
components
:
{
PhoneDialog
,
SelectMaterial
,
SelectCustomerGroup
},
data
()
{
const
checkContent
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
this
.
form
.
content
&&
this
.
form
.
picList
.
length
===
0
&&
this
.
form
.
materialIdList
.
length
===
0
)
{
if
(
!
this
.
form
.
content
&&
this
.
form
.
picList
.
length
===
0
&&
this
.
form
.
materialIdList
.
length
===
0
)
{
callback
(
new
Error
(
'该项为必填项'
))
}
else
{
callback
()
...
...
@@ -36,7 +40,10 @@ export default {
pickerOptions
:
{
disabledDate
(
time
)
{
// return time.getTime() < Date.now()
return
time
.
getTime
()
<
new
Date
(
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
())
return
(
time
.
getTime
()
<
new
Date
(
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
())
)
}
},
uploadImageUrl
:
''
,
...
...
@@ -46,9 +53,7 @@ export default {
ruleName
:
[
{
required
:
true
,
message
:
'该项为必填项'
,
trigger
:
'blur'
}
],
title
:
[
{
required
:
true
,
message
:
'该项为必填项'
,
trigger
:
'blur'
}
],
title
:
[{
required
:
true
,
message
:
'该项为必填项'
,
trigger
:
'blur'
}],
chatIdList
:
[
{
required
:
true
,
message
:
'该项为必填项'
,
trigger
:
'change'
}
],
...
...
@@ -58,8 +63,8 @@ export default {
content
:
[
// { required: true, message: '该项为必填项', trigger: 'change' },
{
validator
:
checkContent
,
trigger
:
'change'
}
]
,
})
,
]
})
}
},
watch
:
{
...
...
@@ -69,7 +74,7 @@ export default {
this
.
form
.
startExeTime
=
''
this
.
form
.
stopExeTime
=
''
}
else
{
[
this
.
form
.
startExeTime
,
this
.
form
.
stopExeTime
]
=
dateRange
;[
this
.
form
.
startExeTime
,
this
.
form
.
stopExeTime
]
=
dateRange
}
},
customerGroups
(
groups
)
{
...
...
@@ -83,11 +88,11 @@ export default {
},
computed
:
{
imageMaterialUrls
()
{
const
urls
=
this
.
imageMaterialList
.
map
(
m
=>
m
.
materialUrl
)
const
urls
=
this
.
imageMaterialList
.
map
(
(
m
)
=>
m
.
materialUrl
)
return
urls
},
messageList
()
{
const
texts
=
this
.
textMaterialList
.
map
(
t
=>
t
.
content
)
const
texts
=
this
.
textMaterialList
.
map
(
(
t
)
=>
t
.
content
)
return
texts
},
imageList
()
{
...
...
@@ -103,37 +108,44 @@ export default {
/** 获取详情 */
getDetail
(
id
)
{
this
.
loading
=
true
getDetail
(
id
)
.
then
(({
data
})
=>
{
this
.
dateRange
=
[
data
.
startExeTime
||
''
,
data
.
stopExeTime
||
''
]
this
.
customerGroups
=
data
.
groupList
||
[]
this
.
form
.
ruleName
=
data
.
ruleName
||
''
this
.
form
.
title
=
data
.
title
||
''
this
.
form
.
content
=
data
.
content
||
''
this
.
form
.
picList
=
data
.
picList
||
[]
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
dateRange
=
[
data
.
startExeTime
||
''
,
data
.
stopExeTime
||
''
]
this
.
customerGroups
=
data
.
groupList
||
[]
this
.
form
.
materialIdList
=
[]
this
.
form
.
ruleName
=
data
.
ruleName
||
''
this
.
form
.
title
=
data
.
title
||
''
this
.
form
.
content
=
data
.
content
||
''
this
.
form
.
picList
=
data
.
picList
||
[]
const
materialList
=
data
.
materialList
||
[]
this
.
form
.
materialIdList
=
[]
for
(
let
material
of
materialList
)
{
if
(
material
.
materialUrl
)
{
this
.
imageMaterialList
.
push
(
material
)
}
else
{
this
.
textMaterialList
.
push
(
material
)
}
const
materialList
=
data
.
materialList
||
[]
this
.
form
.
materialIdList
.
push
(
material
.
id
)
for
(
let
material
of
materialList
)
{
if
(
material
.
materialUrl
)
{
this
.
imageMaterialList
.
push
(
material
)
}
else
{
this
.
textMaterialList
.
push
(
material
)
}
this
.
loading
=
false
})
this
.
form
.
materialIdList
.
push
(
material
.
id
)
}
this
.
loading
=
false
})
},
// 选择素材确认按钮
submitSelectMaterial
(
text
,
image
,
file
)
{
text
&&
text
.
id
&&
!
this
.
form
.
materialIdList
.
includes
(
text
.
id
)
&&
this
.
form
.
materialIdList
.
push
(
text
.
id
)
&&
this
.
textMaterialList
.
push
(
text
)
image
&&
image
.
id
&&
!
this
.
form
.
materialIdList
.
includes
(
image
.
id
)
&&
this
.
form
.
materialIdList
.
push
(
image
.
id
)
&&
this
.
imageMaterialList
.
push
(
image
)
text
&&
text
.
id
&&
!
this
.
form
.
materialIdList
.
includes
(
text
.
id
)
&&
this
.
form
.
materialIdList
.
push
(
text
.
id
)
&&
this
.
textMaterialList
.
push
(
text
)
image
&&
image
.
id
&&
!
this
.
form
.
materialIdList
.
includes
(
image
.
id
)
&&
this
.
form
.
materialIdList
.
push
(
image
.
id
)
&&
this
.
imageMaterialList
.
push
(
image
)
this
.
$refs
.
form
.
validateField
(
'content'
)
},
// 选择客户群聊确认
...
...
@@ -169,22 +181,25 @@ export default {
})
},
goRoute
()
{
const
pathName
=
this
.
activeName
===
'0'
?
'Text'
:
'Image'
this
.
$router
.
push
({
name
:
pathName
,
})
let
contentType
=
[
'text'
,
'image'
,
'file'
]
window
.
open
(
'#/customerMaintain/material/'
+
contentType
[
this
.
activeName
])
},
removeImage
(
url
)
{
this
.
form
.
picList
.
splice
(
this
.
form
.
picList
.
indexOf
(
url
),
1
)
},
removeImageMaterial
(
image
)
{
this
.
imageMaterialList
.
splice
(
this
.
imageMaterialList
.
indexOf
(
image
),
1
)
this
.
form
.
materialIdList
.
splice
(
this
.
form
.
materialIdList
.
indexOf
(
image
.
id
),
1
)
this
.
form
.
materialIdList
.
splice
(
this
.
form
.
materialIdList
.
indexOf
(
image
.
id
),
1
)
},
removeTextMaterial
(
text
)
{
this
.
textMaterialList
.
splice
(
this
.
textMaterialList
.
indexOf
(
text
),
1
)
this
.
form
.
materialIdList
.
splice
(
this
.
form
.
materialIdList
.
indexOf
(
text
.
id
),
1
)
this
.
form
.
materialIdList
.
splice
(
this
.
form
.
materialIdList
.
indexOf
(
text
.
id
),
1
)
}
}
}
...
...
@@ -192,12 +207,7 @@ export default {
<
template
>
<div
class=
"wrap"
v-loading=
"loading"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form
:model=
"form"
ref=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"规则名称"
prop=
"ruleName"
>
<el-input
v-model=
"form.ruleName"
...
...
@@ -234,10 +244,7 @@ export default {
clearable
>
</el-input>
</el-form-item>
<el-form-item
label=
"执行时间"
prop=
"startExeTime"
>
<el-form-item
label=
"执行时间"
prop=
"startExeTime"
>
<el-date-picker
v-model=
"dateRange"
value-format=
"yyyy-MM-dd HH:mm:ss"
...
...
@@ -295,11 +302,7 @@ export default {
@
click=
"removeImageMaterial(image)"
></el-button>
</div>
<div
v-for=
"url in form.picList"
:key=
"url"
class=
"image-wrapper"
>
<div
v-for=
"url in form.picList"
:key=
"url"
class=
"image-wrapper"
>
<el-image
:src=
"url"
fit=
"fit"
></el-image>
<el-button
icon=
"el-icon-close"
...
...
@@ -309,10 +312,7 @@ export default {
></el-button>
</div>
<upload
:fileUrl
.
sync=
"uploadImageUrl"
class=
"image-uploader"
>
<upload
:fileUrl
.
sync=
"uploadImageUrl"
class=
"image-uploader"
>
<i
class=
"el-icon-plus uploader-icon"
></i>
</upload>
</el-tab-pane>
...
...
@@ -445,7 +445,8 @@ export default {
top
:
5px
;
}
}
.text-wrapper
,
.image-wrapper
{
.text-wrapper
,
.image-wrapper
{
margin
:
5px
;
.remove-btn
{
...
...
linkwe-ui/src/views/drainageCode/group/add.vue
View file @
eac8cac
...
...
@@ -49,11 +49,7 @@ export default {
<
template
>
<div
class=
"page"
>
<el-steps
:active=
"active"
finish-status=
"success"
align-center
>
<el-steps
:active=
"active"
finish-status=
"success"
align-center
>
<el-step
title=
"基本信息"
description=
"设置群活码基本信息"
></el-step>
<el-step
title=
"实际群码"
description=
"添加并管理微信实际群码"
></el-step>
<el-step
title=
"群活码"
description=
"设置完成后生成群活码"
></el-step>
...
...
@@ -61,17 +57,25 @@ export default {
<div
class=
"page-content"
>
<div
v-if=
"active === 0"
>
<BaseInfo
ref=
"baseInfo"
:groupCodeId=
"groupCodeId"
@
next=
"next"
></BaseInfo>
<BaseInfo
ref=
"baseInfo"
:groupCodeId=
"groupCodeId"
@
next=
"next"
></BaseInfo>
</div>
<div
v-if=
"active === 1"
>
<RealCode
ref=
"realCode"
:groupCodeId=
"groupCodeId"
@
next=
"next"
></RealCode>
<RealCode
ref=
"realCode"
:groupCodeId=
"groupCodeId"
@
next=
"next"
></RealCode>
</div>
<div
v-if=
"active === 2"
>
<GroupCode
:groupCodeId=
"groupCodeId"
></GroupCode>
</div>
</div>
<div
class=
"
fr
"
>
<div
class=
"
ac
"
>
<template
v-if=
"active === 0"
>
<el-button
@
click=
"$router.back()"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleGroupCode"
>
下一步
</el-button>
...
...
linkwe-ui/src/views/groupMessage/add.vue
View file @
eac8cac
...
...
@@ -129,7 +129,7 @@ export default {
// 新建素材按钮
goRoute
()
{
let
contentType
=
[
'text'
,
'image'
,
'file'
]
window
.
open
(
'#/material/'
+
contentType
[
this
.
activeName
])
window
.
open
(
'#/
customerMaintain/
material/'
+
contentType
[
this
.
activeName
])
},
// 选择素材确认按钮
submitSelectMaterial
(
text
,
image
,
file
)
{
...
...
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