Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
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
wangweidong
patzn-cloud-web-back-soil
Commits
434d66f2
Commit
434d66f2
authored
Jan 14, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了消息通知分页
parent
3c02ab90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
30 deletions
+17
-30
messagePanel.vue
pages/workbench/messagePanel.vue
+17
-30
No files found.
pages/workbench/messagePanel.vue
View file @
434d66f2
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
<Card
style=
"width:100%"
>
<Card
style=
"width:100%"
>
<div
class=
"config_meta"
>
<div
class=
"config_meta"
>
<p
class=
"fl"
>
<p
class=
"fl"
>
消息通知
{{
total
}}
消息通知
</p>
</p>
<div
class=
"fr"
@
click=
"_detail
"
>
<div
@
click=
"_detail"
class=
"fr
"
>
<Tooltip
content=
"查看更多"
placement=
"left"
>
<Tooltip
content=
"查看更多"
placement=
"left"
>
<Icon
type=
"ios-more"
size=
"30"
color=
"#2d8cf0"
style=
"cursor:pointer;"
/>
<Icon
type=
"ios-more"
size=
"30"
color=
"#2d8cf0"
style=
"cursor:pointer;"
/>
</Tooltip>
</Tooltip>
...
@@ -13,27 +13,16 @@
...
@@ -13,27 +13,16 @@
<div
class=
"clear"
/>
<div
class=
"clear"
/>
</div>
</div>
<div
style=
"width: 100%;"
>
<div
style=
"width: 100%;"
>
<element-table
<PTVXETableHeight
ref=
"pageTable"
ref=
"pageTable"
:table-height=
"300"
:page-columns=
"pageColumns"
@
on-result-change=
"_tableResultChange"
:getPage=
"tableData"
hide-checkbox=
"true"
>
:table-height=
"tableHeight"
<vxe-table-column
:get-page=
"tableData"
:field=
"item.key"
show-check-box
:title=
"item.title"
hide-page
:min-width=
"item.width?item.width:150"
@
on-result-change=
"_tableResultChange"
>
<el-table-column
v-for=
"item in pageColumns"
:key=
"item.key"
show-overflow-tooltip
sortable
:prop=
"item.key"
:label=
"item.title"
:align=
"item.align"
:width=
"item.width"
:min-width=
"200"
:fixed=
"item.fixed?item.fixed:undefined"
:fixed=
"item.fixed?item.fixed:undefined"
>
v-for=
"item in pageColumns"
:key=
"item.key"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"item.datetime"
>
<span
v-if=
"item.datetime"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd HH:MM'
):
''
}}
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd HH:MM'
):
''
}}
...
@@ -45,8 +34,8 @@
...
@@ -45,8 +34,8 @@
{{
scope
.
row
[
item
.
key
]
}}
{{
scope
.
row
[
item
.
key
]
}}
</span>
</span>
</
template
>
</
template
>
</
el
-table-column>
</
vxe
-table-column>
</
element-table
>
</
PTVXETableHeight
>
</div>
</div>
</Card>
</Card>
<!--<!–未完成检测项目列表–>-->
<!--<!–未完成检测项目列表–>-->
...
@@ -68,7 +57,7 @@ export default {
...
@@ -68,7 +57,7 @@ export default {
{
title
:
'内容'
,
key
:
'content'
},
{
title
:
'内容'
,
key
:
'content'
},
{
title
:
'创建时间'
,
key
:
'ctime'
,
datetime
:
true
}
{
title
:
'创建时间'
,
key
:
'ctime'
,
datetime
:
true
}
],
],
total
:
''
formObj
:
{}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -87,13 +76,11 @@ export default {
...
@@ -87,13 +76,11 @@ export default {
_tableResultChange
(
msg
)
{},
_tableResultChange
(
msg
)
{},
async
_request
()
{
async
_request
()
{
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
const
data
=
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
page
:
1
,
const
result
=
await
workbench
.
myMessagePage
(
this
.
formObj
)
rows
:
10
}
const
result
=
await
workbench
.
myMessagePage
(
data
)
if
(
result
)
{
if
(
result
)
{
this
.
tableData
=
result
this
.
tableData
=
result
this
.
$refs
.
pageTable
.
_hideLoading
()
}
}
// this.$store.dispatch('ManufactContract/messagePage', {page: 1, rows: 7}).then(() => {
// this.$store.dispatch('ManufactContract/messagePage', {page: 1, rows: 7}).then(() => {
// let tableData = this.$store.state.ManufactContract.page.records
// let tableData = this.$store.state.ManufactContract.page.records
...
...
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