Commit 7e3a7068 authored by xhx's avatar xhx

fix: msg

parent 31781636
...@@ -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: "",
......
...@@ -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
......
...@@ -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)
}, },
......
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