Commit 7e3a7068 authored by xhx's avatar xhx

fix: msg

parent 31781636
......@@ -71,13 +71,13 @@
@click="remove(record)">
下架
</a>
<a-divider type="vertical" />
<a-divider v-show="record.notify_status === 1" type="vertical" />
<a v-show="record.notify_status === 1"
@click="onEdit(record)">
编辑
</a>
<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>
</span>
......@@ -223,9 +223,12 @@ export default Vue.extend({
this.getList()
},
publish(){
this.resetForm()
// (this.$refs.ruleForm as any).resetFields()
this.show = true
this.btnType = 'add'
this.$nextTick(() => {
this.resetForm()
})
},
showModal(current:object){
this.visible = true
......@@ -276,12 +279,13 @@ export default Vue.extend({
});
},
resetForm() {
let form = this.form
type formtype = keyof typeof form
Object.keys(this.form).forEach(m=>{
// this.form[m as formtype] = ''
})
this.form['type'] = 1
// let form = this.form
// type formtype = keyof typeof form
// Object.keys(this.form).forEach(m=>{
// this.form[m as formtype] = ''
// })
// this.form['type'] = 1
(this.$refs.ruleForm as any).resetFields()
},
},
data(){
......@@ -310,11 +314,9 @@ export default Vue.extend({
labelCol: { span: 4 },
wrapperCol: { span: 14 },
form: {
// name: '',
title:'',
type: 1,
content:'',
// module:''
},
rules,
uuid: "",
......
......@@ -172,11 +172,7 @@ export default Vue.extend({
},
query(){
console.log(this.searchPageReqParams);
if (this.searchPageReqParams.title) {
this.findTitle()
} else {
this.getList()
}
this.getList()
},
getNewTime(startTime:number,endTime:number){
this.searchPageReqParams.start_time = startTime
......
......@@ -94,6 +94,7 @@ export default Vue.extend({
this.imageUrl = new FileService().getImageSrc(res.file_name)
this.summary = res.desc
this.editableContent = res.content
this.content = res.content
console.log('res', res)
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