Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
430f090f
authored
Oct 09, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
日志
parent
759f6450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
src/views/News/index.vue
src/views/News/index.vue
View file @
430f090f
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-table-column
prop=
"create_time"
label=
"创建时间"
width=
"160"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"create_time"
label=
"创建时间"
width=
"160"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
label=
"操作"
width=
"120"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"120"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"viewChange(scope.$index, scope.row)"
>
查看内容
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"viewChange(scope.$index, scope.row)"
>
查看内容
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -32,18 +32,38 @@
...
@@ -32,18 +32,38 @@
</div>
</div>
</div>
</div>
<Menu/>
<Menu/>
<el-dialog
title=
"消息详情"
:column=
"2"
:close-on-click-modal=
"false"
:visible
.
sync=
"dialogVisible"
width=
"1000px"
>
<el-descriptions
size=
"medium"
border
>
<el-descriptions-item>
<
template
slot=
"label"
>
发件人
</
template
>
zgj@ichunt.com
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
收件人
</
template
>
tl@ichunt.com
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
时间
</
template
>
2022-07-04
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
大小
</
template
>
998B
</el-descriptions-item>
<el-descriptions-item>
<
template
slot=
"label"
>
附件
</
template
>
XXX说明文档 (668 KB)
</el-descriptions-item>
</el-descriptions>
<p
style=
"margin-top: 10px;"
>
青春是一个短暂的美梦, 当你醒来时, 它早已消失无踪,少量的邪恶足以抵消全部高贵的品质, 害得人声名狼藉,头上一片晴天,心中一个想念,为了无法计算的价值,饿了别叫妈, 叫饿了么,设置分割线文案的位置
</p>
</el-dialog>
</section>
</section>
</template>
</template>
<
script
>
<
script
>
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
Menu
from
"@/components/menu.vue"
;
import
{
Autocomplete
,
Button
,
DatePicker
,
Dialog
,
Dropdown
,
DropdownItem
,
DropdownMenu
,
Form
,
FormItem
,
Input
,
Message
,
MessageBox
,
Option
,
Pagination
,
Popover
,
Select
,
Table
,
TableColumn
,
Tag
,
Tooltip
}
from
'element-ui'
import
{
Divider
,
Descriptions
,
DescriptionsItem
,
Autocomplete
,
Button
,
DatePicker
,
Dialog
,
Dropdown
,
DropdownItem
,
DropdownMenu
,
Form
,
FormItem
,
Input
,
Message
,
MessageBox
,
Option
,
Pagination
,
Popover
,
Select
,
Table
,
TableColumn
,
Tag
,
Tooltip
}
from
'element-ui'
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$confirm
=
MessageBox
.
confirm
;
Vue
.
prototype
.
$confirm
=
MessageBox
.
confirm
;
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Tooltip
).
use
(
Autocomplete
).
use
(
Popover
).
use
(
Tag
)
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Tooltip
).
use
(
Autocomplete
).
use
(
Popover
).
use
(
Tag
)
.
use
(
Divider
);
Vue
.
use
(
DatePicker
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
).
use
(
Pagination
)
Vue
.
use
(
DatePicker
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
).
use
(
Pagination
)
.
use
(
Descriptions
).
use
(
DescriptionsItem
);
export
default
{
export
default
{
name
:
"news"
,
name
:
"news"
,
data
()
{
data
()
{
...
@@ -52,6 +72,7 @@ export default {
...
@@ -52,6 +72,7 @@ export default {
page
:
1
,
page
:
1
,
limit
:
10
,
limit
:
10
,
list
:
[],
list
:
[],
dialogVisible
:
false
,
formParam
:
{
formParam
:
{
msgType
:
''
,
msgType
:
''
,
time
:
''
time
:
''
...
@@ -77,6 +98,7 @@ export default {
...
@@ -77,6 +98,7 @@ export default {
})
})
},
},
viewChange
(
index
,
row
)
{
viewChange
(
index
,
row
)
{
this
.
dialogVisible
=
true
;
console
.
log
(
index
,
row
);
console
.
log
(
index
,
row
);
},
},
onSubmit
()
{
onSubmit
()
{
...
...
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