瀏覽代碼

职位关闭提示语修改

Xiao_123 6 月之前
父節點
當前提交
b745c040ce
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/recruit/enterprise/positionManagement/components/item.vue

+ 2 - 1
src/views/recruit/enterprise/positionManagement/components/item.vue

@@ -222,7 +222,8 @@ const handleAction = async (index, type, { id }, item) => {
 
   // 关闭职位提醒
   if (index === 0) {
-    Confirm('系统提示', '是否确认关闭所选职位?关闭后再激活需重新收取费用!').then(async () => {
+    const text = baseInfo.value?.entitlement?.publishJobCount && baseInfo.value?.entitlement?.publishJobCount > 0 ? '将消耗一个发布点数' : '将重新收取费用'
+    Confirm('系统提示', `是否确认关闭所选职位?关闭后再激活,${text}`).then(async () => {
       await apiList[index](ids)
       Snackbar.success(t('common.operationSuccessful'))
       // 清空选项