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 35a2c0d5
authored
Oct 26, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'vue3-master' into xxj-23.10.16-新老客拉群优化-open
2 parents
fbb40b5c
5c5e4a08
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
329 additions
and
28 deletions
RELEASES.md
vue3-lw-pc/src/api/enterpriseId.js
vue3-lw-pc/src/views/drainageCode/smartForms/build/formsDetail.vue
vue3-lw-pc/src/views/enterpriseWechat/attachment.vue
vue3-lw-pc/src/views/enterpriseWechat/list.vue
vue3-lw-pc/src/views/enterpriseWechat/part8.vue
RELEASES.md
View file @
35a2c0d
# 更新日志
# 更新日志
## v5.11.0
2023.
10.26
1.
新增 pc 端企微配置-默认欢迎语配置
2.
修复 智能表单 填写页面中级联选择的宽度超出滚动问题
3.
其他已知 bug 修复和组件优化
## v5.10.2
2023.
10.16
1.
修复 阿里云上传配置问题
2.
修复 智能表单二维码下载问题
3.
修复 表单默认提交行为问题
4.
修复 登录重定向问题
5.
修复 名称查询人员问题
6.
修复 短链详情回显问题
7.
修复 企微配置异步偶发的不回显问题
8.
修改 智能短链小程序路径规则问题
9.
优化 智能短链
10.
优化 组织架构接口
11.
优化 主题色暗黑色阶
12.
优化 企微配置和外链校验
13.
优化 线索公海 tab 超出样式
14.
删除 商城小程序配置
15.
其他已知 bug 修复和组件优化
## v5.10.1
## v5.10.1
2023.
10.09
2023.
10.09
...
...
vue3-lw-pc/src/api/enterpriseId.js
View file @
35a2c0d
...
@@ -8,7 +8,7 @@ const service = window.lwConfig.services.wecom + '/corp'
...
@@ -8,7 +8,7 @@ const service = window.lwConfig.services.wecom + '/corp'
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/list'
,
url
:
service
+
'/list'
,
params
,
params
})
})
}
}
...
@@ -30,7 +30,7 @@ export function add(data) {
...
@@ -30,7 +30,7 @@ export function add(data) {
return
request
({
return
request
({
url
:
service
,
url
:
service
,
method
:
'post'
,
method
:
'post'
,
data
,
data
})
})
}
}
/**
/**
...
@@ -56,7 +56,7 @@ export function update(data) {
...
@@ -56,7 +56,7 @@ export function update(data) {
return
request
({
return
request
({
url
:
service
,
url
:
service
,
method
:
'put'
,
method
:
'put'
,
data
,
data
})
})
}
}
...
@@ -67,14 +67,14 @@ export function update(data) {
...
@@ -67,14 +67,14 @@ export function update(data) {
export
function
start
(
corpId
)
{
export
function
start
(
corpId
)
{
return
request
({
return
request
({
url
:
service
+
'/startVailWeCorpAccount/'
+
corpId
,
url
:
service
+
'/startVailWeCorpAccount/'
+
corpId
,
method
:
'put'
,
method
:
'put'
})
})
}
}
// 获取当前企业相关参数
// 获取当前企业相关参数
export
function
getDetail
()
{
export
function
getDetail
()
{
return
request
({
return
request
({
url
:
service
+
'/findCurrentCorpAccount'
,
url
:
service
+
'/findCurrentCorpAccount'
})
})
}
}
...
@@ -83,6 +83,22 @@ export function addOrUpdate(data) {
...
@@ -83,6 +83,22 @@ export function addOrUpdate(data) {
return
request
({
return
request
({
url
:
service
+
'/addOrUpdate'
,
url
:
service
+
'/addOrUpdate'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
})
}
// 获取欢迎语配置
export
function
getWecomeTemplate
()
{
return
request
({
url
:
service
+
'/findDefaultWelcomeMsg'
})
}
// 保存欢迎语配置
export
function
setWecomeTemplate
(
data
)
{
return
request
({
url
:
service
+
'/editWelComeMsg'
,
method
:
'post'
,
data
})
})
}
}
vue3-lw-pc/src/views/drainageCode/smartForms/build/formsDetail.vue
View file @
35a2c0d
<
template
>
<
template
>
<div
<div
:style=
"Ifcontainer ? 'height: 100%;' : 'background:#666;display: flex;justify-content: center;height: 100%;'"
>
:style=
"
Ifcontainer
? 'height: 100%;'
: 'background:#666;display: flex;justify-content: center;height: 100%;padding: 30px;'
"
>
<div
<div
:class=
"Ifcontainer ? 'container' : 'container containerPC'"
:class=
"Ifcontainer ? 'container' : 'container containerPC'"
data-title=
"调查问卷"
data-title=
"调查问卷"
...
@@ -907,7 +902,7 @@ export default {
...
@@ -907,7 +902,7 @@ export default {
background
:
var
(
--bg-white
);
background
:
var
(
--bg-white
);
}
}
.containerPC
{
.containerPC
{
max-width
:
3
5
0px
;
max-width
:
3
7
0px
;
}
}
.formDetailPush
{
.formDetailPush
{
...
@@ -940,3 +935,10 @@ export default {
...
@@ -940,3 +935,10 @@ export default {
padding
:
0
0
5px
0
!important
;
padding
:
0
0
5px
0
!important
;
}
}
</
style
>
</
style
>
<
style
>
/* 级联选择,宽度超出滚动 */
.el-cascader__dropdown
{
max-width
:
100vw
;
overflow
:
auto
;
}
</
style
>
vue3-lw-pc/src/views/enterpriseWechat/attachment.vue
0 → 100644
View file @
35a2c0d
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/enterpriseWechat/list.vue
View file @
35a2c0d
...
@@ -2,7 +2,13 @@
...
@@ -2,7 +2,13 @@
<div>
<div>
<el-tabs
v-model=
"active"
>
<el-tabs
v-model=
"active"
>
<el-tab-pane
v-for=
"(item, key) in tabs"
:key=
"key"
:label=
"item"
:name=
"key"
>
<el-tab-pane
v-for=
"(item, key) in tabs"
:key=
"key"
:label=
"item"
:name=
"key"
>
<component
:is=
"'part' + key"
:ref=
"'part' + key"
@
submit=
"savePart"
:data=
"form"
></component>
<component
:is=
"'part' + key"
:ref=
"'part' + key"
@
submit=
"savePart"
:data=
"form"
:initData=
"welcome"
></component>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"g-footer-sticky"
>
<div
class=
"g-footer-sticky"
>
...
@@ -11,15 +17,16 @@
...
@@ -11,15 +17,16 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
api
from
'@/api/enterpriseId'
import
*
as
api
from
'@/api/enterpriseId'
import
part1
from
'./part1.vue'
import
part1
from
'./part1.vue'
import
part2
from
'./part2.vue'
import
part2
from
'./part2.vue'
import
part3
from
'./part3.vue'
import
part3
from
'./part3.vue'
import
part4
from
'./part4.vue'
import
part4
from
'./part4.vue'
import
part5
from
'./part5.vue'
import
part5
from
'./part5.vue'
import
part6
from
'./part6.vue'
import
part6
from
'./part6.vue'
import
part7
from
'./part7.vue'
import
part7
from
'./part7.vue'
export
default
{
import
part8
from
'./part8.vue'
export
default
{
components
:
{
components
:
{
part1
,
part1
,
part2
,
part2
,
...
@@ -28,6 +35,7 @@ export default {
...
@@ -28,6 +35,7 @@ export default {
part5
,
part5
,
part6
,
part6
,
part7
,
part7
,
part8
},
},
props
:
{},
props
:
{},
data
()
{
data
()
{
...
@@ -41,9 +49,11 @@ export default {
...
@@ -41,9 +49,11 @@ export default {
5
:
'公众号配置'
,
5
:
'公众号配置'
,
6
:
'直播配置'
,
6
:
'直播配置'
,
7
:
'小程序配置'
,
7
:
'小程序配置'
,
8
:
'欢迎语配置'
},
},
form
:
{},
form
:
{},
loading
:
false
,
loading
:
false
,
welcome
:
[]
}
}
},
},
watch
:
{},
watch
:
{},
...
@@ -54,6 +64,12 @@ export default {
...
@@ -54,6 +64,12 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
savePart
(
data
)
{
savePart
(
data
)
{
if
(
this
.
active
==
8
)
{
api
.
setWecomeTemplate
(
data
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
getDetail
()
})
}
else
{
api
api
.
addOrUpdate
(
data
)
.
addOrUpdate
(
data
)
.
then
(()
=>
{
.
then
(()
=>
{
...
@@ -64,6 +80,7 @@ export default {
...
@@ -64,6 +80,7 @@ export default {
.
catch
(()
=>
{
.
catch
(()
=>
{
// this.dialogVisible = false
// this.dialogVisible = false
})
})
}
},
},
getDetail
()
{
getDetail
()
{
this
.
loading
=
true
this
.
loading
=
true
...
@@ -76,10 +93,19 @@ export default {
...
@@ -76,10 +93,19 @@ export default {
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
api
.
getWecomeTemplate
().
then
(({
data
})
=>
{
this
.
welcome
=
data
})
},
},
submit
()
{
submit
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
active
==
8
)
{
api
.
setWecomeTemplate
(
this
.
welcome
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
getDetail
()
})
}
else
{
api
api
.
addOrUpdate
(
this
.
form
)
.
addOrUpdate
(
this
.
form
)
.
then
(()
=>
{
.
then
(()
=>
{
...
@@ -91,21 +117,22 @@ export default {
...
@@ -91,21 +117,22 @@ export default {
// this.dialogVisible = false
// this.dialogVisible = false
})
})
}
}
}
})
})
},
}
// start(corpId) {
// start(corpId) {
// api.start(corpId).then(({ rows, total }) => {
// api.start(corpId).then(({ rows, total }) => {
// this.msgSuccess('操作成功')
// this.msgSuccess('操作成功')
// this.getList()
// this.getList()
// })
// })
// },
// },
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.tips
{
.tips
{
color
:
var
(
--font-black-7
);
color
:
var
(
--font-black-7
);
font-size
:
12px
;
font-size
:
12px
;
}
}
</
style
>
</
style
>
vue3-lw-pc/src/views/enterpriseWechat/part8.vue
0 → 100644
View file @
35a2c0d
<
template
>
<div>
<div
class=
"flex"
>
<div
style=
"width: calc(100% - 425px); padding-right: var(--card-margin);"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"form"
label-width=
"140px"
>
<el-row
class=
"g-card"
>
<el-col>
<Attachment
@
phoneData=
"getPhoneData"
@
success=
"getAttentment"
@
changeInfo=
"changeInfo"
:baseData=
"attachmentsData"
:showModle=
"false"
></Attachment>
</el-col>
</el-row>
</el-form>
</div>
<div
class=
"g-card"
style=
"width: 425px; margin-top: 0;"
>
<PreviewInPhone
:list=
"previewData"
:templateInfo=
"templateInfo"
></PreviewInPhone>
</div>
</div>
</div>
</
template
>
<
script
>
import
Attachment
from
'./Attachment.vue'
import
PreviewInPhone
from
'@/components/ContentCenter/PreviewInPhone'
export
default
{
props
:
{
initData
:
{
type
:
Object
,
default
:
{}
}
},
components
:
{
Attachment
,
PreviewInPhone
},
data
()
{
return
{
previewData
:
[],
templateInfo
:
''
,
attachmentsData
:
{
templateInfo
:
''
,
attachments
:
[]
},
form
:
[]
}
},
mounted
()
{},
watch
:
{
initData
:
{
deep
:
true
,
immediate
:
true
,
handler
(
newData
,
old
)
{
this
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
initData
))
this
.
setData
()
}
}
},
methods
:
{
changeInfo
(
data
)
{
this
.
templateInfo
=
data
},
getAttentment
(
data
)
{
this
.
form
=
data
},
getPhoneData
(
data
)
{
this
.
previewData
=
data
},
// 提交
submit
()
{
if
(
!
this
.
templateInfo
)
{
this
.
msgError
(
'欢迎语不能为空!'
)
return
}
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
arr
.
unshift
({
content
:
this
.
templateInfo
,
msgType
:
'text'
})
this
.
$emit
(
'submit'
,
arr
)
this
.
setData
()
},
setData
()
{
if
(
this
.
form
)
{
let
arr
=
[]
this
.
form
.
forEach
((
dd
)
=>
{
if
(
dd
.
msgType
==
'text'
)
{
this
.
templateInfo
=
dd
.
content
}
else
{
arr
.
push
(
dd
)
}
})
this
.
form
=
arr
let
data
=
this
.
setAttachments
(
arr
)
;(
this
.
attachmentsData
=
{
templateInfo
:
this
.
templateInfo
,
attachments
:
data
}),
(
this
.
previewData
=
data
)
console
.
log
(
this
.
attachmentsData
)
}
// this.$forceUpdate()
},
setAttachments
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
if
(
dd
.
msgType
===
'image'
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'0'
,
materialUrl
:
dd
.
picUrl
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'video'
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'2'
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'file'
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'3'
,
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'text'
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'4'
,
content
:
dd
.
content
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'link'
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'9'
,
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'miniprogram'
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'11'
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
msgType
===
'news'
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'12'
,
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
msgType
===
'posters'
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'5'
,
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
}
arr
.
push
(
obj
)
}
})
}
return
arr
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.sub-des
{
font-size
:
12px
;
font-weight
:
400
;
color
:
var
(
--font-black-6
);
}
::v-deep
.image-uploader
{
.uploader-icon
{
width
:
80px
;
height
:
80px
;
line-height
:
80px
;
}
.upload-img
{
width
:
80px
;
height
:
80px
;
}
}
::v-deep
.image-uploader2
{
.uploader-icon
{
width
:
120px
;
height
:
120px
;
line-height
:
120px
;
}
.upload-img
{
width
:
120px
;
height
:
120px
;
}
}
.el-form-item
{
margin-bottom
:
30px
;
}
</
style
>
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