Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
e7105dd1
Commit
e7105dd1
authored
Sep 29, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除之前部分代码
parent
d484d82d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
18 deletions
+1
-18
index.vue
src/views/Root/Msg/index.vue
+0
-4
index.vue
src/views/Root/News/index.vue
+1
-14
No files found.
src/views/Root/Msg/index.vue
View file @
e7105dd1
...
...
@@ -77,14 +77,10 @@
编辑
</a>
<a-divider
v-show=
"record.notify_status === 1"
type=
"vertical"
/>
<<<<<<<
HEAD
<a
v-if=
"record.notify_status==1"
@
click=
"onDelete(record)"
>
删除
</a>
<a
v-else-if=
"record.notify_status==2"
style=
"color: rgba(249, 250, 251, var(--tw-text-opacity));"
>
=======
<a
v-show=
"record.notify_status === 1"
@
click=
"onDelete(record)"
>
>>>>>>> origin/dev
删除
</a>
</span>
...
...
src/views/Root/News/index.vue
View file @
e7105dd1
...
...
@@ -140,7 +140,6 @@ export default Vue.extend({
},
created
()
{
this
.
getList
()
this
.
search
()
},
methods
:{
tableChange
(
e
:
any
)
{
...
...
@@ -155,7 +154,6 @@ export default Vue.extend({
offset
:
(
this
.
pagination
.
current
-
1
)
*
this
.
pagination
.
defaultPageSize
}
news
.
articleList
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'this getlist'
)
this
.
list
=
res
.
data
.
items
this
.
pagination
.
total
=
res
.
data
.
total
// if (this.searchPageReqParams.title) {
...
...
@@ -165,26 +163,15 @@ export default Vue.extend({
},
findTitle
()
{
const
searchParams
=
this
.
searchPageReqParams
.
article_type
===
1
?
"searchByPolicy"
:
"searchByTitle"
console
.
log
(
searchParams
,
'this searchParams'
);
console
.
log
(
searchParams
);
news
[
searchParams
]({
title
:
this
.
searchPageReqParams
.
title
}).
then
(
res
=>
{
console
.
log
(
res
,
'this res'
)
this
.
list
=
res
.
data
.
items
this
.
pagination
.
total
=
res
.
data
.
total
console
.
log
(
this
.
list
,
'this.list'
);
})
},
search
(){
this
.
getList
if
(
this
.
searchPageReqParams
.
article_type
===
1
){
this
.
list
.
filter
(
item
=>
{
console
.
log
(
item
,
'this item'
);
// return item.title.includes(this.searchPageReqParams.title);
})
}
},
query
(){
console
.
log
(
this
.
searchPageReqParams
);
this
.
getList
()
...
...
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