瀏覽代碼

职位发布默认值

Xiao_123 1 年之前
父節點
當前提交
11e624901b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/views/recruit/enterprise/positionManagement/components/baseInfo.vue

+ 5 - 0
src/views/recruit/enterprise/positionManagement/components/baseInfo.vue

@@ -260,6 +260,11 @@ const getQuery = async () => {
     if (e.noParam) return
     else obj[e.key] = e.value
   })
+  // 不是众聘岗位的默认给0
+  if (!obj.hire) {
+    obj.hirePoint = 0
+    obj.hirePrice = 0
+  }
   query = Object.assign(query, obj)
   return query
 }