diff --git a/offer_frontend/src/views/admin/JobManageView.vue b/offer_frontend/src/views/admin/JobManageView.vue
index da7e394..403e79f 100644
--- a/offer_frontend/src/views/admin/JobManageView.vue
+++ b/offer_frontend/src/views/admin/JobManageView.vue
@@ -9,6 +9,11 @@
+
+
+ {{ row.created_at?.slice(0, 10) || '-' }}
+
+
@@ -16,9 +21,10 @@
-
+
编辑
+ 分享
删除
@@ -155,6 +161,25 @@ async function handleSave() {
}
}
+function shareJob(row) {
+ // 生成职位详情页链接
+ const jobUrl = `${window.location.origin}/#/jobs/${row.id}`
+
+ // 复制到剪贴板
+ navigator.clipboard.writeText(jobUrl).then(() => {
+ ElMessage.success(`已复制链接:${jobUrl}`)
+ }).catch(() => {
+ // 降级方案:使用传统方法
+ const textArea = document.createElement('textarea')
+ textArea.value = jobUrl
+ document.body.appendChild(textArea)
+ textArea.select()
+ document.execCommand('copy')
+ document.body.removeChild(textArea)
+ ElMessage.success(`已复制链接:${jobUrl}`)
+ })
+}
+
async function handleDelete(id) {
await ElMessageBox.confirm('确认删除该职位?', '提示', { type: 'warning' })
await deleteJob(id)