Commit fdb62433 authored by xhx's avatar xhx

fix

parent e7105dd1
...@@ -80,9 +80,6 @@ ...@@ -80,9 +80,6 @@
<a v-if="record.notify_status==1" @click="onDelete(record)"> <a v-if="record.notify_status==1" @click="onDelete(record)">
删除 删除
</a> </a>
<a v-else-if="record.notify_status==2" style="color: rgba(249, 250, 251, var(--tw-text-opacity));">
删除
</a>
</span> </span>
</a-table> </a-table>
<!-- 操作Modal --> <!-- 操作Modal -->
...@@ -175,14 +172,17 @@ export default Vue.extend({ ...@@ -175,14 +172,17 @@ export default Vue.extend({
this.text = '确定下架该消息吗?' this.text = '确定下架该消息吗?'
}, },
onEdit(record: any) { onEdit(record: any) {
this.btnType = 'edit'
this.uuid = record.uuid
this.show = true
this.$nextTick(() => {
(this.$refs.ruleForm as any).resetFields()
this.form = { this.form = {
title: record.title, title: record.title,
content: record.content, content: record.content,
type: record.notify_type type: record.notify_type
} }
this.btnType = 'edit' })
this.uuid = record.uuid
this.show = true
}, },
onDelete(record:any){ onDelete(record:any){
this.type = modal.delete this.type = modal.delete
...@@ -223,13 +223,14 @@ export default Vue.extend({ ...@@ -223,13 +223,14 @@ export default Vue.extend({
this.showActionModal = false this.showActionModal = false
}, },
query(){ query(){
this.pagination.current = 1
this.getList() this.getList()
}, },
publish(){ publish(){
// (this.$refs.ruleForm as any).resetFields()
this.show = true this.show = true
this.btnType = 'add' this.btnType = 'add'
this.$nextTick(() => { this.$nextTick(() => {
(this.$refs.ruleForm as any).resetFields()
this.resetForm() this.resetForm()
}) })
}, },
......
...@@ -173,7 +173,7 @@ export default Vue.extend({ ...@@ -173,7 +173,7 @@ export default Vue.extend({
}) })
}, },
query(){ query(){
console.log(this.searchPageReqParams); this.pagination.current = 1
this.getList() this.getList()
}, },
getNewTime(startTime:number,endTime:number){ getNewTime(startTime:number,endTime:number){
......
...@@ -91,7 +91,7 @@ export default Vue.extend({ ...@@ -91,7 +91,7 @@ export default Vue.extend({
this.title = res.title this.title = res.title
this.author = res.writer this.author = res.writer
this.imgUrl = res.file_name 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.summary = res.desc
this.editableContent = res.content this.editableContent = res.content
this.content = 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