Commit fdb62433 authored by xhx's avatar xhx

fix

parent e7105dd1
......@@ -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()
})
},
......
......@@ -173,7 +173,7 @@ export default Vue.extend({
})
},
query(){
console.log(this.searchPageReqParams);
this.pagination.current = 1
this.getList()
},
getNewTime(startTime:number,endTime:number){
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment