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
fdb62433
Commit
fdb62433
authored
Sep 29, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e7105dd1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
index.vue
src/views/Root/Msg/index.vue
+8
-7
index.vue
src/views/Root/News/index.vue
+1
-1
publish.vue
src/views/Root/News/publish.vue
+1
-1
No files found.
src/views/Root/Msg/index.vue
View file @
fdb62433
...
...
@@ -80,9 +80,6 @@
<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>
</span>
</a-table>
<!-- 操作Modal -->
...
...
@@ -175,14 +172,17 @@ export default Vue.extend({
this
.
text
=
'确定下架该消息吗?'
},
onEdit
(
record
:
any
)
{
this
.
btnType
=
'edit'
this
.
uuid
=
record
.
uuid
this
.
show
=
true
this
.
$nextTick
(()
=>
{
(
this
.
$refs
.
ruleForm
as
any
).
resetFields
()
this
.
form
=
{
title
:
record
.
title
,
content
:
record
.
content
,
type
:
record
.
notify_type
}
this
.
btnType
=
'edit'
this
.
uuid
=
record
.
uuid
this
.
show
=
true
})
},
onDelete
(
record
:
any
){
this
.
type
=
modal
.
delete
...
...
@@ -223,13 +223,14 @@ export default Vue.extend({
this
.
showActionModal
=
false
},
query
(){
this
.
pagination
.
current
=
1
this
.
getList
()
},
publish
(){
// (this.$refs.ruleForm as any).resetFields()
this
.
show
=
true
this
.
btnType
=
'add'
this
.
$nextTick
(()
=>
{
(
this
.
$refs
.
ruleForm
as
any
).
resetFields
()
this
.
resetForm
()
})
},
...
...
src/views/Root/News/index.vue
View file @
fdb62433
...
...
@@ -173,7 +173,7 @@ export default Vue.extend({
})
},
query
(){
console
.
log
(
this
.
searchPageReqParams
);
this
.
pagination
.
current
=
1
this
.
getList
()
},
getNewTime
(
startTime
:
number
,
endTime
:
number
){
...
...
src/views/Root/News/publish.vue
View file @
fdb62433
...
...
@@ -91,7 +91,7 @@ export default Vue.extend({
this
.
title
=
res
.
title
this
.
author
=
res
.
writer
this
.
imgUrl
=
res
.
file_name
this
.
imageUrl
=
new
FileService
().
getImageSrc
(
res
.
file_name
)
this
.
imageUrl
=
res
.
file_name
?
new
FileService
().
getImageSrc
(
res
.
file_name
)
:
''
this
.
summary
=
res
.
desc
this
.
editableContent
=
res
.
content
this
.
content
=
res
.
content
...
...
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