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 e2551b5f
authored
Jun 05, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
内容中心bug修复
1 parent
009c3a02
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
25 deletions
vue3-lw-pc/package-lock.json
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/MaPage.vue
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/index.vue
vue3-lw-pc/package-lock.json
deleted
100644 → 0
View file @
009c3a0
This diff could not be displayed because it is too large.
vue3-lw-pc/src/components/ContentCenter/MaterialCenter/MaPage.vue
View file @
e2551b5
...
@@ -62,12 +62,12 @@ export default {
...
@@ -62,12 +62,12 @@ export default {
},
},
list
:
[],
// 列表
list
:
[],
// 列表
total
:
0
,
// 总条数
total
:
0
,
// 总条数
treeData
:
[{}],
// 树
//
treeData: [{}], // 树
// 树props
// 树props
treeProps
:
{
//
treeProps: {
children
:
'children'
,
//
children: 'children',
label
:
'name'
,
//
label: 'name',
},
//
},
treeForm
:
{},
// 树表格
treeForm
:
{},
// 树表格
treeDialogVisible
:
false
,
// 树表格对话框显隐
treeDialogVisible
:
false
,
// 树表格对话框显隐
...
@@ -107,7 +107,7 @@ export default {
...
@@ -107,7 +107,7 @@ export default {
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
query
.
mediaType
=
this
.
type
this
.
query
.
mediaType
=
this
.
type
this
.
getTree
()
//
this.getTree()
// this.getList()
// this.getList()
// 开始
// 开始
this
.
getCodeCategoryListFn
()
this
.
getCodeCategoryListFn
()
...
@@ -150,20 +150,20 @@ export default {
...
@@ -150,20 +150,20 @@ export default {
},
},
// 结束
// 结束
// 获取类目树
// 获取类目树
getTree
()
{
//
getTree() {
getTree
(
this
.
type
).
then
(({
data
})
=>
{
//
getTree(this.type).then(({ data }) => {
this
.
treeData
=
[
//
this.treeData = [
{
//
{
id
:
''
,
//
id: '',
name
:
'全部'
,
//
name: '全部',
parentId
:
'0'
,
//
parentId: '0',
hasParent
:
false
,
//
hasParent: false,
hasChildren
:
true
,
//
hasChildren: true,
children
:
data
||
[],
//
children: data || [],
},
//
},
]
//
]
})
//
})
},
//
},
// 获取素材列表
// 获取素材列表
getList
(
page
)
{
getList
(
page
)
{
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
...
@@ -173,7 +173,7 @@ export default {
...
@@ -173,7 +173,7 @@ export default {
this
.
list
=
rows
.
sort
((
a
,
b
)
=>
+
new
Date
(
b
.
updateTime
)
-
+
new
Date
(
a
.
updateTime
))
this
.
list
=
rows
.
sort
((
a
,
b
)
=>
+
new
Date
(
b
.
updateTime
)
-
+
new
Date
(
a
.
updateTime
))
this
.
total
=
+
total
this
.
total
=
+
total
this
.
loading
=
false
this
.
loading
=
false
this
.
$emit
(
'listChange'
,
this
.
list
)
this
.
$emit
(
'listChange'
,
this
.
list
,
this
.
type
)
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -197,7 +197,8 @@ export default {
...
@@ -197,7 +197,8 @@ 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>
...
@@ -211,7 +212,8 @@ export default {
...
@@ -211,7 +212,8 @@ export default {
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>
...
@@ -225,7 +227,8 @@ export default {
...
@@ -225,7 +227,8 @@ 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/ContentCenter/MaterialCenter/index.vue
View file @
e2551b5
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
:key=
"index"
:key=
"index"
:label=
"item.label + '(' + item.list.length + ')'"
:label=
"item.label + '(' + item.list.length + ')'"
:name=
"item.name"
>
:name=
"item.name"
>
<MaPage
ref=
"page"
:type=
"item.type"
v-slot=
"
{ list }">
<MaPage
ref=
"page"
:type=
"item.type"
v-slot=
"
{ list }"
@listChange="listChange"
>
<div
v-if=
"item.type === '0'"
>
<div
v-if=
"item.type === '0'"
>
<div
v-if=
"list && list.length"
>
<div
v-if=
"list && list.length"
>
<el-checkbox-group
v-model=
"paneList[picindex].list"
class=
"imgStyle"
>
<el-checkbox-group
v-model=
"paneList[picindex].list"
class=
"imgStyle"
>
...
@@ -136,6 +136,19 @@ export default {
...
@@ -136,6 +136,19 @@ export default {
}
}
return
str
return
str
},
},
listChange
(
list
,
type
)
{
this
.
paneList
=
this
.
paneList
.
map
((
item
)
=>
{
if
(
type
===
item
.
type
)
{
item
.
list
.
forEach
((
one
)
=>
{
this
.
ids
=
this
.
ids
.
filter
((
two
)
=>
{
return
two
.
id
!==
one
.
id
})
})
item
.
list
=
[]
}
return
item
})
},
dealList
()
{
dealList
()
{
this
.
paneList
=
[
this
.
paneList
=
[
{
list
:
[],
label
:
'文本'
,
name
:
'text'
,
type
:
'4'
},
{
list
:
[],
label
:
'文本'
,
name
:
'text'
,
type
:
'4'
},
...
...
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