diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue index 771b57f..d02aafb 100644 --- a/flossom-ui/src/views/system/member/index.vue +++ b/flossom-ui/src/views/system/member/index.vue @@ -1096,12 +1096,15 @@ export default { // 开关打卡 openOrCloseClock(row) { let spanContent; + let title; if (row.clock == 1) { spanContent = "确定将选择的数据禁止打卡?"; + title = "禁止打卡"; } else { spanContent = "确定将选择的数据开启打卡?"; + title = "开启打卡"; } - this.$confirm("" + spanContent + "
请谨慎操作,一旦成功将无法撤销。", '注销账号', { + this.$confirm("" + spanContent + "
请谨慎操作,一旦成功将无法撤销。", title, { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', @@ -1117,12 +1120,15 @@ export default { // 开关活动 openOrCloseActivity(row) { let spanContent; + let title; if (row.activity == 1) { spanContent = "确定将选择的数据禁止活动?"; + title = "禁止活动"; } else { spanContent = "确定将选择的数据开启活动?"; + title = "开启活动"; } - this.$confirm("" + spanContent + "
请谨慎操作,一旦成功将无法撤销。", '注销账号', { + this.$confirm("" + spanContent + "
请谨慎操作,一旦成功将无法撤销。", title, { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning',