Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
eac8cacc
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
eac8cacc
编写于
8月 06, 2021
作者:
X
xinla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改已知bug
上级
7d1340e2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
77 addition
and
69 deletion
+77
-69
linkwe-ui/src/components/Upload.vue
linkwe-ui/src/components/Upload.vue
+3
-0
linkwe-ui/src/views/application/groupFission.vue
linkwe-ui/src/views/application/groupFission.vue
+1
-1
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
+60
-59
linkwe-ui/src/views/drainageCode/group/add.vue
linkwe-ui/src/views/drainageCode/group/add.vue
+12
-8
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/views/groupMessage/add.vue
+1
-1
未找到文件。
linkwe-ui/src/components/Upload.vue
浏览文件 @
eac8cacc
...
...
@@ -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
浏览文件 @
eac8cacc
...
...
@@ -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
浏览文件 @
eac8cacc
...
...
@@ -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
浏览文件 @
eac8cacc
...
...
@@ -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
浏览文件 @
eac8cacc
...
...
@@ -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
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录