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
7e3a7068
Commit
7e3a7068
authored
Sep 29, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: msg
parent
31781636
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
index.vue
src/views/Root/Msg/index.vue
+13
-11
index.vue
src/views/Root/News/index.vue
+1
-5
publish.vue
src/views/Root/News/publish.vue
+1
-0
No files found.
src/views/Root/Msg/index.vue
View file @
7e3a7068
...
@@ -71,13 +71,13 @@
...
@@ -71,13 +71,13 @@
@
click=
"remove(record)"
>
@
click=
"remove(record)"
>
下架
下架
</a>
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-show=
"record.notify_status === 1"
type=
"vertical"
/>
<a
v-show=
"record.notify_status === 1"
<a
v-show=
"record.notify_status === 1"
@
click=
"onEdit(record)"
>
@
click=
"onEdit(record)"
>
编辑
编辑
</a>
</a>
<a-divider
v-show=
"record.notify_status === 1"
type=
"vertical"
/>
<a-divider
v-show=
"record.notify_status === 1"
type=
"vertical"
/>
<a
@
click=
"onDelete(record)"
>
<a
v-show=
"record.notify_status === 1"
@
click=
"onDelete(record)"
>
删除
删除
</a>
</a>
</span>
</span>
...
@@ -223,9 +223,12 @@ export default Vue.extend({
...
@@ -223,9 +223,12 @@ export default Vue.extend({
this
.
getList
()
this
.
getList
()
},
},
publish
(){
publish
(){
this
.
resetForm
()
// (this.$refs.ruleForm as any).resetFields
()
this
.
show
=
true
this
.
show
=
true
this
.
btnType
=
'add'
this
.
btnType
=
'add'
this
.
$nextTick
(()
=>
{
this
.
resetForm
()
})
},
},
showModal
(
current
:
object
){
showModal
(
current
:
object
){
this
.
visible
=
true
this
.
visible
=
true
...
@@ -276,12 +279,13 @@ export default Vue.extend({
...
@@ -276,12 +279,13 @@ export default Vue.extend({
});
});
},
},
resetForm
()
{
resetForm
()
{
let
form
=
this
.
form
// let form = this.form
type
formtype
=
keyof
typeof
form
// type formtype = keyof typeof form
Object
.
keys
(
this
.
form
).
forEach
(
m
=>
{
// Object.keys(this.form).forEach(m=>{
// this.form[m as formtype] = ''
// this.form[m as formtype] = ''
})
// })
this
.
form
[
'type'
]
=
1
// this.form['type'] = 1
(
this
.
$refs
.
ruleForm
as
any
).
resetFields
()
},
},
},
},
data
(){
data
(){
...
@@ -310,11 +314,9 @@ export default Vue.extend({
...
@@ -310,11 +314,9 @@ export default Vue.extend({
labelCol
:
{
span
:
4
},
labelCol
:
{
span
:
4
},
wrapperCol
:
{
span
:
14
},
wrapperCol
:
{
span
:
14
},
form
:
{
form
:
{
// name: '',
title
:
''
,
title
:
''
,
type
:
1
,
type
:
1
,
content
:
''
,
content
:
''
,
// module:''
},
},
rules
,
rules
,
uuid
:
""
,
uuid
:
""
,
...
...
src/views/Root/News/index.vue
View file @
7e3a7068
...
@@ -172,11 +172,7 @@ export default Vue.extend({
...
@@ -172,11 +172,7 @@ export default Vue.extend({
},
},
query
(){
query
(){
console
.
log
(
this
.
searchPageReqParams
);
console
.
log
(
this
.
searchPageReqParams
);
if
(
this
.
searchPageReqParams
.
title
)
{
this
.
getList
()
this
.
findTitle
()
}
else
{
this
.
getList
()
}
},
},
getNewTime
(
startTime
:
number
,
endTime
:
number
){
getNewTime
(
startTime
:
number
,
endTime
:
number
){
this
.
searchPageReqParams
.
start_time
=
startTime
this
.
searchPageReqParams
.
start_time
=
startTime
...
...
src/views/Root/News/publish.vue
View file @
7e3a7068
...
@@ -94,6 +94,7 @@ export default Vue.extend({
...
@@ -94,6 +94,7 @@ export default Vue.extend({
this
.
imageUrl
=
new
FileService
().
getImageSrc
(
res
.
file_name
)
this
.
imageUrl
=
new
FileService
().
getImageSrc
(
res
.
file_name
)
this
.
summary
=
res
.
desc
this
.
summary
=
res
.
desc
this
.
editableContent
=
res
.
content
this
.
editableContent
=
res
.
content
this
.
content
=
res
.
content
console
.
log
(
'res'
,
res
)
console
.
log
(
'res'
,
res
)
console
.
log
(
'imageUrl'
,
this
.
imageUrl
)
console
.
log
(
'imageUrl'
,
this
.
imageUrl
)
},
},
...
...
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