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 f476a1fa
authored
Nov 15, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
素材选择相关优化
1 parent
82dcb1b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
32 deletions
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/MaPage.vue
vue3-lw-pc/src/components/DragTable.vue
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
View file @
f476a1f
...
@@ -193,7 +193,6 @@
...
@@ -193,7 +193,6 @@
v-model:choseDialog=
"choseDialog"
v-model:choseDialog=
"choseDialog"
:talkListLength=
"talkList?.length"
:talkListLength=
"talkList?.length"
@
itemArry=
"getItemArry"
@
itemArry=
"getItemArry"
pad20
:templateType=
"templateType"
:templateType=
"templateType"
:tplType=
"tplType"
:tplType=
"tplType"
:moduleType=
"moduleType"
:moduleType=
"moduleType"
...
...
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/MaPage.vue
View file @
f476a1f
...
@@ -87,24 +87,6 @@ export default {
...
@@ -87,24 +87,6 @@ export default {
value
:
'id'
,
value
:
'id'
,
emitPath
:
false
,
emitPath
:
false
,
},
},
// 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file), 4 文本, 5 海报, 6 活码, 7 人群, 8 旅程,9 图文,10 链接,11 小程序
typeTitle
:
[
'图片'
,
'语音'
,
'视频'
,
'文件'
,
'文本'
,
'海报'
,
'活码'
,
'人群'
,
'旅程'
,
'图文'
,
'链接'
,
'小程序'
,
'文章'
,
'企业话术'
,
'客服话术'
,
],
form
:
{},
// 素材表单
form
:
{},
// 素材表单
}
}
},
},
...
@@ -200,13 +182,9 @@ export default {
...
@@ -200,13 +182,9 @@ export default {
<div
class=
"page"
>
<div
class=
"page"
>
<div
style=
"margin-top: 16px"
>
<div
style=
"margin-top: 16px"
>
<el-row
type=
"flex"
justify=
"space-between"
>
<el-row
type=
"flex"
justify=
"space-between"
>
<el-col
<el-col
:span=
"5"
class=
"left pad20"
style=
"border-radius: 4px; background: var(--bg-white)"
>
:span=
"5"
class=
"left pad20"
style=
"border-radius: 4px; background: var(--bg-white)"
>
<div
class=
"title"
>
<div
class=
"title"
>
<div
class=
"title-name"
>
{{
typeTitle
[
type
]
}}
分组
</div>
<div
class=
"title-name"
>
素材
分组
</div>
</div>
</div>
<div
class=
"item-list"
>
<div
class=
"item-list"
>
<div
<div
...
@@ -214,8 +192,7 @@ export default {
...
@@ -214,8 +192,7 @@ export default {
:class=
"
{ active: groupIndex == key }"
:class=
"
{ active: groupIndex == key }"
v-for="(group, key) in groupList"
v-for="(group, key) in groupList"
:key="group.id"
:key="group.id"
@click="switchGroup(key, group)"
@click="switchGroup(key, group)">
>
<div
class=
"name"
>
{{
group
.
name
+
' ('
+
group
.
number
+
')'
}}
</div>
<div
class=
"name"
>
{{
group
.
name
+
' ('
+
group
.
number
+
')'
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -225,12 +202,11 @@ export default {
...
@@ -225,12 +202,11 @@ export default {
<div
class=
"g-card"
style=
"padding-bottom: 0"
>
<div
class=
"g-card"
style=
"padding-bottom: 0"
>
<el-input
<el-input
v-model=
"query.materialName"
v-model=
"query.materialName"
:placeholder=
"'请输入
' + typeTitle[type] + '
标题'"
:placeholder=
"'请输入
素材
标题'"
clearable
clearable
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
style=
"width: 300px"
style=
"width: 300px"
@
keyup
.
enter=
"search()"
@
keyup
.
enter=
"search()"
/>
/>
<el-button
class=
"ml10"
@
click=
"getList(1)"
type=
"primary"
>
查询
</el-button>
<el-button
class=
"ml10"
@
click=
"getList(1)"
type=
"primary"
>
查询
</el-button>
<!-- v-hasPermi="['wecom:material:list']" -->
<!-- v-hasPermi="['wecom:material:list']" -->
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -244,8 +220,7 @@ export default {
...
@@ -244,8 +220,7 @@ export default {
:total=
"total"
:total=
"total"
v-model:page=
"query.pageNum"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
@
pagination=
"getList()"
/>
/>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
vue3-lw-pc/src/components/DragTable.vue
View file @
f476a1f
...
@@ -36,6 +36,16 @@
...
@@ -36,6 +36,16 @@
<span
class=
"twosplice distStyle"
>
{{ coverContent(row.content, 50) }}
</span>
<span
class=
"twosplice distStyle"
>
{{ coverContent(row.content, 50) }}
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
<!-- 图文 -->
<div
v-if=
"row.mediaType === '19'"
style=
"display: flex"
>
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
v-if=
"row.coverUrl"
></el-image>
<div
class=
"icon-style"
v-else
>
<svg-icon
class=
"icon-style"
icon=
"outLine"
></svg-icon>
</div>
<el-tooltip
:content=
"row.content"
placement=
"top"
:disabled=
"row.content ? row.content.length < 50 : true"
>
<span
class=
"twosplice distStyle"
>
{{ coverContent(row.content, 50) }}
</span>
</el-tooltip>
</div>
<!-- 小程序 -->
<!-- 小程序 -->
<div
v-if=
"row.mediaType === '11'"
>
<div
v-if=
"row.mediaType === '11'"
>
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
...
...
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