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 cb78d38b
authored
Jan 16, 2021
by
xinlaa
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
聊天侧边栏调试
1 parent
f30aae32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
10 deletions
linkwe-ui/src/api/appTool/chatBar.js
linkwe-ui/src/views/appTool/chatToolbar/list.vue
linkwe-ui/src/api/appTool/chatBar.js
View file @
cb78d38
...
...
@@ -2,15 +2,12 @@ import request from '@/utils/request'
const
service
=
window
.
CONFIG
.
services
.
wecom
+
'/chat'
/**
*
*
侧边栏列表
* @param {*} params
*/
export
function
getList
(
params
)
{
export
function
getList
()
{
return
request
({
url
:
service
+
'/side/list'
,
params
:
{
h5
:
0
,
},
})
}
...
...
linkwe-ui/src/views/appTool/chatToolbar/list.vue
View file @
cb78d38
...
...
@@ -80,6 +80,7 @@ export default {
update
(
data
)
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
$set
(
data
,
'isEdit'
,
false
)
this
.
loading
=
false
})
.
catch
(()
=>
{
...
...
@@ -110,11 +111,31 @@ export default {
{{
mediaType
[
scope
.
row
.
mediaType
]
}}
</
template
>
</el-table-column>
<el-table-column
label=
"聊天工具栏名称"
align=
"center"
prop=
"sideName"
/>
<el-table-column
label=
"聊天工具栏名称"
align=
"center"
prop=
"sideName"
>
<
template
slot-scope=
"{ row }"
>
<el-input
class=
"bfc-d"
style=
"width: 100px;"
v-if=
"row.isEdit"
v-model=
"row.sideName"
placeholder=
"请输入"
></el-input>
<div
v-else
>
{{
row
.
sideName
}}
</div>
<i
v-if=
"!row.isEdit"
class=
"row-icon el-icon-edit"
@
click=
"$set(row, 'isEdit', true)"
></i>
<i
v-else
class=
"row-icon el-icon-circle-check"
@
click=
"update(row)"
></i>
</
template
>
</el-table-column>
<el-table-column
label=
"已抓取素材数量"
align=
"center"
prop=
"total"
/>
<el-table-column
label=
"是否启用"
...
...
@@ -241,4 +262,19 @@ export default {
width
:
100%
;
}
}
.el-table__row
{
.el-icon-edit
{
visibility
:
hidden
;
}
&
:hover
{
.el-icon-edit
{
visibility
:
visible
;
}
}
}
.row-icon
{
font-size
:
18px
;
vertical-align
:
middle
;
margin
:
7px
0
0
10px
;
}
</
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