Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
58176547
Commit
58176547
authored
Aug 20, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0a5975d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
allmaterial.vue
src/components/enterprise/material/allmaterial.vue
+4
-4
textmaterial.vue
src/components/enterprise/material/textmaterial.vue
+3
-3
materialManage.vue
src/pages/enterprise/materialManage.vue
+4
-1
No files found.
src/components/enterprise/material/allmaterial.vue
View file @
58176547
...
...
@@ -6,19 +6,19 @@
</div>
</div>
-->
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
wrap-cells=
'true'
class=
"sticky-column-table"
separator=
"none"
title=
""
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-title=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
style=
"max-width: 200px;"
>
<span>
{{
getType
(
props
.
row
,
'title'
)
}}
</span>
</q-td>
</
template
>
<
template
v-slot:body-cell-Content=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"width: 200px;"
>
<q-td
:props=
"props"
style=
"max-width: 500px;"
>
<div
>
<span
v-if=
"props.row.Type==1"
>
{{
getType
(
props
.
row
,
'content'
)
}}
</span>
<q-img
v-if=
"props.row.Type==2 || props.row.Type==3 || props.row.Type==6"
:src=
"getType(props.row,'content')"
style=
"width: 80px;height: 80px;border-radius: 6px;display: flex;"
>
...
...
src/components/enterprise/material/textmaterial.vue
View file @
58176547
...
...
@@ -2,7 +2,7 @@
<div
class=
"textmaterial"
style=
"padding: 0;margin: 0;"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table no-bottom-table"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table no-bottom-table"
wrap-cells=
'true'
separator=
"none"
title=
""
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
></div>
...
...
@@ -11,12 +11,12 @@
label=
"添加文本"
@
click=
"goadd()"
></q-btn>
</
template
>
<
template
v-slot:body-cell-title=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
style=
"max-width: 200px"
>
<span>
{{
props
.
row
.
TextModel
&&
props
.
row
.
TextModel
.
Title
?
props
.
row
.
TextModel
.
Title
:
''
}}
</span>
</q-td>
</
template
>
<
template
v-slot:body-cell-Content=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
style=
"max-width: 500px;"
>
<span>
{{
props
.
row
.
TextModel
&&
props
.
row
.
TextModel
.
Content
?
props
.
row
.
TextModel
.
Content
:
''
}}
</span>
</q-td>
</
template
>
...
...
src/pages/enterprise/materialManage.vue
View file @
58176547
...
...
@@ -8,7 +8,7 @@
map-options
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name
"
<q-input
@
keyup
.
enter
.
native=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Content
"
label=
"输入搜索内容"
maxlength=
"20"
/>
</div>
</div>
...
...
@@ -189,6 +189,9 @@
})
})
.
catch
(
err
=>
{
this
.
loading
=
false
})
},
changePage
(
e
)
{
if
(
this
.
tabCheck
==
0
||
this
.
tabCheck
==
4
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment