邻里互助

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: '',
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

View File

@@ -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('删除成功!')