邻里互助

This commit is contained in:
liuye
2023-03-16 17:01:59 +08:00
parent f1b4729b63
commit a6122f481d
2 changed files with 6 additions and 3 deletions

View File

@@ -63,6 +63,7 @@
picUrl: '', picUrl: '',
status: '1', status: '1',
}, },
isFlag: false
} }
}, },
@@ -88,8 +89,10 @@
}, },
confirm () { confirm () {
if(this.isFlag) return
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
this.isFlag = true
this.instance.post(`/app/appneighborhoodassistancetheme/addOrUpdate`, { this.instance.post(`/app/appneighborhoodassistancetheme/addOrUpdate`, {
...this.form, ...this.form,
picUrl: this.form.files[0].url picUrl: this.form.files[0].url

View File

@@ -69,10 +69,10 @@
colConfigs: [ colConfigs: [
{ prop: 'title', label: '话题名称', align: 'left', width: '200' }, { prop: 'title', label: '话题名称', align: 'left', width: '200' },
{ prop: 'description', label: '话题描述', align: 'left'}, { 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: 'partakeCount', label: '参与话题数', align: 'center', width: '120' },
{ prop: 'showIndex', 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: 'status'},
{ slot: 'options'}, { slot: 'options'},
], ],
@@ -99,7 +99,7 @@
}, },
remove (id) { remove (id) {
this.$confirm('确定删除该活动').then(() => { this.$confirm('确定删除该话题').then(() => {
this.instance.post(`/app/appneighborhoodassistancetheme/delete?ids=${id}`).then(res => { this.instance.post(`/app/appneighborhoodassistancetheme/delete?ids=${id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('删除成功!') this.$message.success('删除成功!')