This commit is contained in:
2026-05-29 11:46:12 +08:00
parent da0ce6d11c
commit 5b37d340af
5 changed files with 97 additions and 5 deletions
@@ -119,7 +119,9 @@ const ACTIVITY_CULTURE_INFO_MANAGE = {
<el-dropdown-item :command="{type:'openCode',row}">
二维码
</el-dropdown-item>
<!-- <el-dropdown-item :command="{type:'notifyMsg',row}">-->
<!-- 通知报名人员-->
<!-- </el-dropdown-item>-->
</el-dropdown-menu>
</el-dropdown>
</template>
@@ -150,7 +152,23 @@ const ACTIVITY_CULTURE_INFO_MANAGE = {
<span slot="footer" class="dialog-footer">
<el-button @click="codeDialogVisible = false" type="primary">关 闭</el-button>
</span>
</el-dialog>
</el-dialog>
<el-dialog
title="通知报名人员"
:visible.sync="notifyDialogVisible"
:close-on-click-modal="false"
width="50%">
<el-input
type="textarea"
:rows="6"
placeholder="请输入通知内容"
v-model="notifyContent">
</el-input>
<span slot="footer" class="dialog-footer">
<el-button @click="notifyDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="sendNotify">发 送</el-button>
</span>
</el-dialog>
</guava>
`,
props: {
@@ -174,7 +192,10 @@ const ACTIVITY_CULTURE_INFO_MANAGE = {
{prop: "applyTime", label: "创建时间", sortable: true},
{prop: "isUnseal", label: "是否开启"},
],
url: ""
url: "",
notifyDialogVisible: false,
notifyContent: '',
notifyActivityId: '',
}
},
components: {
@@ -210,6 +231,10 @@ const ACTIVITY_CULTURE_INFO_MANAGE = {
this.codeDialogVisible = true
} else if (type === "export") {
commonUtil.pjaxPush("/platform/activity/info/mange/export?id=" + row.id)
} else if(type === "notifyMsg") {
this.notifyActivityId = row.id
this.notifyContent = ''
this.notifyDialogVisible = true
}
},
goBack() {
@@ -264,6 +289,28 @@ const ACTIVITY_CULTURE_INFO_MANAGE = {
}
})
this.tableLoading = false
},
async sendNotify() {
if (!this.notifyContent.trim()) {
this.$message.warning('请输入通知内容')
return
}
this.$confirm("确认发送通知给所有报名人员吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(async () => {
const resp = await this.$axios.post(loc() + "/sendNotify", {
activityId: this.notifyActivityId,
content: this.notifyContent
})
if (resp.code === 0) {
this.$message.success(resp.msg)
this.notifyDialogVisible = false
} else {
this.$message.warning(resp.msg)
}
}).catch(() => {})
}
},
async created() {