Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jy_jfb_vue
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
jy_jfb_vue
Commits
2b511691
提交
2b511691
authored
9月 17, 2025
作者:
赵世杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
cce14ef1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
29 行增加
和
5 行删除
+29
-5
recruit.js
src/api/recruit.js
+9
-0
index.vue
src/views/recruit/index.vue
+20
-5
没有找到文件。
src/api/recruit.js
浏览文件 @
2b511691
...
...
@@ -63,4 +63,12 @@ export function industryListAll(query) {
method
:
'get'
,
params
:
query
})
}
// 上下架
export
function
recruitStatus
(
query
)
{
return
request
({
url
:
'/recruit/u/status'
,
method
:
'post'
,
data
:
query
})
}
\ No newline at end of file
src/views/recruit/index.vue
浏览文件 @
2b511691
...
...
@@ -87,11 +87,18 @@
{{
row
.
province
}}
{{
row
.
city
}}
{{
row
.
region
}}
{{
row
.
address
}}
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"status"
>
<
template
#
default=
"{row}"
>
{{
row
.
status
==
'up'
?
'上架'
:
'下架'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createTime"
align=
"center"
width=
"160"
/>
<el-table-column
label=
"操作"
width=
"
12
0"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
width=
"
23
0"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
#
default=
"{row}"
>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"visibleOpenpay = true; detailInfo = row"
>
编辑
</el-button>
<el-button
link
type=
"primary"
icon=
"Delete"
@
click=
"del(row)"
>
删除
</el-button>
<el-button
v-if=
"row.status == 'up'"
link
type=
"primary"
icon=
"Edit"
@
click=
"toggleStatus(row)"
>
下架
</el-button>
<el-button
v-if=
"row.status == 'down'"
link
type=
"primary"
icon=
"Edit"
@
click=
"toggleStatus(row)"
>
上架
</el-button>
<el-button
v-if=
"row.status == 'down'"
link
type=
"primary"
icon=
"Edit"
@
click=
"visibleOpenpay = true; detailInfo = row"
>
编辑
</el-button>
<el-button
v-if=
"row.status == 'down'"
link
type=
"primary"
icon=
"Delete"
@
click=
"del(row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -114,7 +121,7 @@
</template>
<
script
setup
>
import
{
recruitList
,
recruitDel
,
recruitTypeAll
,
experienceAll
,
qualificationAll
,
orgListAll
,
industryListAll
}
from
"@/api/recruit"
;
import
{
recruitList
,
recruitDel
,
recruitTypeAll
,
experienceAll
,
qualificationAll
,
orgListAll
,
industryListAll
,
recruitStatus
}
from
"@/api/recruit"
;
import
{
ref
}
from
"vue"
;
import
Add
from
"./add.vue"
;
const
{
proxy
}
=
getCurrentInstance
();
...
...
@@ -150,7 +157,15 @@ experienceAll().then(res => {
qualificationAll
().
then
(
res
=>
{
qualificationList
.
value
=
res
.
data
.
list
})
function
toggleStatus
(
row
)
{
const
text
=
row
.
status
==
'up'
?
'下架'
:
'上架'
proxy
.
$modal
.
confirm
(
`确定要
${
text
}
吗?`
).
then
(
function
()
{
return
recruitStatus
({
id
:
row
.
id
});
}).
then
(()
=>
{
getList
();
proxy
.
$modal
.
msgSuccess
(
`
${
text
}
成功`
);
}).
catch
(()
=>
{});
}
/** 查询列表 */
function
getList
()
{
const
form
=
{
...
queryParams
.
value
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论