diff --git a/project/fengdu/app/AppSubjectSet/components/Add.vue b/project/fengdu/app/AppSubjectSet/components/Add.vue index c6728a6f..40766486 100644 --- a/project/fengdu/app/AppSubjectSet/components/Add.vue +++ b/project/fengdu/app/AppSubjectSet/components/Add.vue @@ -63,6 +63,7 @@ picUrl: '', status: '1', }, + isFlag: false } }, @@ -88,8 +89,10 @@ }, confirm () { + if(this.isFlag) return this.$refs.form.validate((valid) => { if (valid) { + this.isFlag = true this.instance.post(`/app/appneighborhoodassistancetheme/addOrUpdate`, { ...this.form, picUrl: this.form.files[0].url diff --git a/project/fengdu/app/AppSubjectSet/components/List.vue b/project/fengdu/app/AppSubjectSet/components/List.vue index 08177fe8..ea99cff6 100644 --- a/project/fengdu/app/AppSubjectSet/components/List.vue +++ b/project/fengdu/app/AppSubjectSet/components/List.vue @@ -69,10 +69,10 @@ colConfigs: [ { prop: 'title', label: '话题名称', align: 'left', width: '200' }, { prop: 'description', label: '话题描述', align: 'left'}, - { prop: 'createUserName', label: '创建人', align: 'center', width: '120' }, - { prop: 'createTime', label: '创建时间', align: 'center', width: '180' }, { prop: 'partakeCount', label: '参与话题数', align: 'center', width: '120' }, { prop: 'showIndex', label: '排序', align: 'center', width: '120' }, + { prop: 'createUserName', label: '创建人', align: 'center', width: '120' }, + { prop: 'createTime', label: '创建时间', align: 'center', width: '180' }, { slot: 'status'}, { slot: 'options'}, ], @@ -99,7 +99,7 @@ }, remove (id) { - this.$confirm('确定删除该活动?').then(() => { + this.$confirm('确定删除该话题?').then(() => { this.instance.post(`/app/appneighborhoodassistancetheme/delete?ids=${id}`).then(res => { if (res.code == 0) { this.$message.success('删除成功!')