wuzhen更新
This commit is contained in:
1 parent
0917c7f156
commit
073674dd15
62 files changed
+7469
-203009
No files matched your search
@@ -0,0 +1,94 @@
|
||||
/**
|
||||
* 企业信息管理 API
|
||||
* @author Cursor AI
|
||||
* @date 2025-01-25
|
||||
*/
|
||||
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { EnterpriseVO, EnterpriseForm, EnterpriseQuery } from './types';
|
||||
|
||||
// TableDataInfo 接口定义
|
||||
export interface TableDataInfo<T> {
|
||||
total: number;
|
||||
rows: T[];
|
||||
code?: number;
|
||||
msg?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业信息列表
|
||||
* @param query 查询参数
|
||||
* @returns Promise<TableDataInfo<EnterpriseVO>>
|
||||
*/
|
||||
export function listEnterprise(query?: EnterpriseQuery): AxiosPromise<TableDataInfo<EnterpriseVO>> {
|
||||
return request({
|
||||
url: '/zsjy/enterprise/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业信息详细
|
||||
* @param id 企业主键
|
||||
* @returns Promise<EnterpriseVO>
|
||||
*/
|
||||
export function getEnterprise(id: string | number): AxiosPromise<EnterpriseVO> {
|
||||
return request({
|
||||
url: `/zsjy/enterprise/${id}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增企业信息
|
||||
* @param data 企业信息
|
||||
* @returns Promise<any>
|
||||
*/
|
||||
export function addEnterprise(data: EnterpriseForm): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/zsjy/enterprise',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改企业信息
|
||||
* @param data 企业信息
|
||||
* @returns Promise<any>
|
||||
*/
|
||||
export function updateEnterprise(data: EnterpriseForm): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/zsjy/enterprise',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除企业信息
|
||||
* @param id 企业主键
|
||||
* @returns Promise<any>
|
||||
*/
|
||||
export function delEnterprise(id: string | number | Array<string | number>): AxiosPromise<any> {
|
||||
return request({
|
||||
url: `/zsjy/enterprise/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出企业信息
|
||||
* @param query 查询参数
|
||||
* @returns Promise<any>
|
||||
*/
|
||||
export function exportEnterprise(query: EnterpriseQuery): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/zsjy/enterprise/export',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
@@ -6,13 +6,15 @@
|
||||
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 此处导出招生就业管理模块相关的所有API接口
|
||||
// 示例:
|
||||
// export * from './enrollment' // 招生管理
|
||||
// export * from './employment' // 就业管理
|
||||
// export * from './enterprise' // 企业管理
|
||||
// export * from './career' // 职业规划
|
||||
// export * from './statistics' // 统计分析
|
||||
// 导出招生就业管理模块相关的所有API接口
|
||||
export * from './enterprise'; // 企业信息管理
|
||||
// export * from './jobPosition'; // 招聘岗位管理 (待开发)
|
||||
// export * from './recruitmentPoster'; // 招聘海报管理 (待开发)
|
||||
|
||||
// 临时导出一个空对象,防止编译错误
|
||||
export default {};
|
||||
// 现有导出
|
||||
export * from './statistics'; // 统计分析
|
||||
export * from './enrollmentProcess'; // 录取流程管理
|
||||
export * from './enrollmentStatistics'; // 报名统计
|
||||
|
||||
// 类型导出
|
||||
export * from './types'; // 类型定义
|
||||
@@ -0,0 +1,91 @@
|
||||
import request from '@/utils/request'
|
||||
import { JobPositionVO, JobPositionForm, JobPositionQuery, TableDataInfo } from './types'
|
||||
import { AxiosPromise } from 'axios'
|
||||
|
||||
/**
|
||||
* 查询招聘岗位列表
|
||||
* @param query 查询参数
|
||||
* @returns 招聘岗位列表
|
||||
*/
|
||||
export function listJobPosition(query?: JobPositionQuery): AxiosPromise<TableDataInfo<JobPositionVO>> {
|
||||
return request({
|
||||
url: '/zsjy/position/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询招聘岗位详细
|
||||
* @param id 招聘岗位ID
|
||||
* @returns 招聘岗位详情
|
||||
*/
|
||||
export function getJobPosition(id: string | number): AxiosPromise<JobPositionVO> {
|
||||
return request({
|
||||
url: '/zsjy/position/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增招聘岗位
|
||||
* @param data 招聘岗位表单
|
||||
* @returns 操作结果
|
||||
*/
|
||||
export function addJobPosition(data: JobPositionForm) {
|
||||
return request({
|
||||
url: '/zsjy/position',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改招聘岗位
|
||||
* @param data 招聘岗位表单
|
||||
* @returns 操作结果
|
||||
*/
|
||||
export function updateJobPosition(data: JobPositionForm) {
|
||||
return request({
|
||||
url: '/zsjy/position',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除招聘岗位
|
||||
* @param id 招聘岗位ID
|
||||
* @returns 操作结果
|
||||
*/
|
||||
export function delJobPosition(id: string | number | Array<string | number>) {
|
||||
return request({
|
||||
url: '/zsjy/position/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出招聘岗位
|
||||
* @param query 查询参数
|
||||
* @returns 导出结果
|
||||
*/
|
||||
export function exportJobPosition(query: JobPositionQuery) {
|
||||
return request({
|
||||
url: '/zsjy/position/export',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询企业下拉选项
|
||||
* @returns 企业列表
|
||||
*/
|
||||
export function listEnterpriseOptions() {
|
||||
return request({
|
||||
url: '/zsjy/enterprise/options',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import request from '@/utils/request'
|
||||
import { RecruitmentPosterVO, RecruitmentPosterForm, RecruitmentPosterQuery, TableDataInfo } from './types'
|
||||
import { AxiosPromise } from 'axios'
|
||||
|
||||
/**
|
||||
* 查询招聘海报列表
|
||||
* @param query 查询参数
|
||||
* @returns 招聘海报列表
|
||||
*/
|
||||
export function listRecruitmentPoster(query?: RecruitmentPosterQuery): AxiosPromise<TableDataInfo<RecruitmentPosterVO>> {
|
||||
return request({
|
||||
url: '/zsjy/poster/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询招聘海报详细
|
||||
* @param id 招聘海报ID
|
||||
* @returns 招聘海报详情
|
||||
*/
|
||||
export function getRecruitmentPoster(id: string | number): AxiosPromise<RecruitmentPosterVO> {
|
||||
return request({
|
||||
url: '/zsjy/poster/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增招聘海报
|
||||
* @param data 招聘海报表单
|
||||
* @returns 操作结果
|
||||
*/
|
||||
export function addRecruitmentPoster(data: RecruitmentPosterForm) {
|
||||
return request({
|
||||
url: '/zsjy/poster',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改招聘海报
|
||||
* @param data 招聘海报表单
|
||||
* @returns 操作结果
|
||||
*/
|
||||
export function updateRecruitmentPoster(data: RecruitmentPosterForm) {
|
||||
return request({
|
||||
url: '/zsjy/poster',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除招聘海报
|
||||
* @param id 招聘海报ID
|
||||
* @returns 操作结果
|
||||
*/
|
||||
export function delRecruitmentPoster(id: string | number | Array<string | number>) {
|
||||
return request({
|
||||
url: '/zsjy/poster/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出招聘海报
|
||||
* @param query 查询参数
|
||||
* @returns 导出结果
|
||||
*/
|
||||
export function exportRecruitmentPoster(query: RecruitmentPosterQuery) {
|
||||
return request({
|
||||
url: '/zsjy/poster/export',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询岗位下拉选项
|
||||
* @param enterpriseId 企业ID
|
||||
* @returns 岗位列表
|
||||
*/
|
||||
export function listPositionOptions(enterpriseId?: number | string) {
|
||||
return request({
|
||||
url: '/zsjy/position/options',
|
||||
method: 'get',
|
||||
params: { enterpriseId }
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,561 @@
|
||||
/**
|
||||
* 招生就业管理模块 - 类型定义
|
||||
*/
|
||||
|
||||
/**
|
||||
* 企业信息 VO
|
||||
*/
|
||||
export interface EnterpriseVO {
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 企业名称
|
||||
*/
|
||||
enterpriseName?: string;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
industry?: string;
|
||||
|
||||
/**
|
||||
* 行业名称
|
||||
*/
|
||||
industryName?: string;
|
||||
|
||||
/**
|
||||
* 主营业务
|
||||
*/
|
||||
mainBusiness?: string;
|
||||
|
||||
/**
|
||||
* 企业规模
|
||||
*/
|
||||
enterpriseScale?: string;
|
||||
|
||||
/**
|
||||
* 企业规模名称
|
||||
*/
|
||||
enterpriseScaleName?: string;
|
||||
|
||||
/**
|
||||
* 企业联系人姓名
|
||||
*/
|
||||
contactName?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
contactPhone?: string;
|
||||
|
||||
/**
|
||||
* 企业邮箱
|
||||
*/
|
||||
email?: string;
|
||||
|
||||
/**
|
||||
* 企业地址
|
||||
*/
|
||||
address?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
tenantId?: string;
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
createDept?: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: number;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业信息表单对象
|
||||
*/
|
||||
export interface EnterpriseForm extends BaseEntity {
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 企业名称
|
||||
*/
|
||||
enterpriseName: string;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
industry: string;
|
||||
|
||||
/**
|
||||
* 主营业务
|
||||
*/
|
||||
mainBusiness: string;
|
||||
|
||||
/**
|
||||
* 企业规模
|
||||
*/
|
||||
enterpriseScale: string;
|
||||
|
||||
/**
|
||||
* 企业联系人姓名
|
||||
*/
|
||||
contactName: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
contactPhone: string;
|
||||
|
||||
/**
|
||||
* 企业邮箱
|
||||
*/
|
||||
email: string;
|
||||
|
||||
/**
|
||||
* 企业地址
|
||||
*/
|
||||
address: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业信息查询条件
|
||||
*/
|
||||
export interface EnterpriseQuery extends PageQuery {
|
||||
/**
|
||||
* 企业名称
|
||||
*/
|
||||
enterpriseName?: string;
|
||||
|
||||
/**
|
||||
* 所属行业
|
||||
*/
|
||||
industry?: string;
|
||||
|
||||
/**
|
||||
* 主营业务
|
||||
*/
|
||||
mainBusiness?: string;
|
||||
|
||||
/**
|
||||
* 企业规模
|
||||
*/
|
||||
enterpriseScale?: string;
|
||||
|
||||
/**
|
||||
* 企业联系人姓名
|
||||
*/
|
||||
contactName?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
contactPhone?: string;
|
||||
|
||||
/**
|
||||
* 企业邮箱
|
||||
*/
|
||||
email?: string;
|
||||
|
||||
/**
|
||||
* 企业地址
|
||||
*/
|
||||
address?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 招聘岗位VO对象
|
||||
*/
|
||||
export interface JobPositionVO {
|
||||
/**
|
||||
* 岗位ID
|
||||
*/
|
||||
id: number | string;
|
||||
|
||||
/**
|
||||
* 所属企业ID
|
||||
*/
|
||||
enterpriseId: number | string;
|
||||
|
||||
/**
|
||||
* 企业名称(关联字段)
|
||||
*/
|
||||
enterpriseName?: string;
|
||||
|
||||
/**
|
||||
* 岗位名称
|
||||
*/
|
||||
positionName: string;
|
||||
|
||||
/**
|
||||
* 工作地址
|
||||
*/
|
||||
workAddress: string;
|
||||
|
||||
/**
|
||||
* 工作时间
|
||||
*/
|
||||
workTime: string;
|
||||
|
||||
/**
|
||||
* 薪资
|
||||
*/
|
||||
salary: string;
|
||||
|
||||
/**
|
||||
* 所需技能
|
||||
*/
|
||||
requiredSkills?: string;
|
||||
|
||||
/**
|
||||
* 有效期开始日期
|
||||
*/
|
||||
startDate: string;
|
||||
|
||||
/**
|
||||
* 有效期结束日期
|
||||
*/
|
||||
endDate: string;
|
||||
|
||||
/**
|
||||
* 是否永久有效(0否 1是)
|
||||
*/
|
||||
isPermanent: number;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
tenantId?: string;
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
createDept?: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: number;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 招聘岗位Form对象
|
||||
*/
|
||||
export interface JobPositionForm extends BaseEntity {
|
||||
/**
|
||||
* 岗位ID
|
||||
*/
|
||||
id?: number | string;
|
||||
|
||||
/**
|
||||
* 所属企业ID
|
||||
*/
|
||||
enterpriseId: number | string;
|
||||
|
||||
/**
|
||||
* 岗位名称
|
||||
*/
|
||||
positionName: string;
|
||||
|
||||
/**
|
||||
* 工作地址
|
||||
*/
|
||||
workAddress: string;
|
||||
|
||||
/**
|
||||
* 工作时间
|
||||
*/
|
||||
workTime: string;
|
||||
|
||||
/**
|
||||
* 薪资
|
||||
*/
|
||||
salary: string;
|
||||
|
||||
/**
|
||||
* 所需技能
|
||||
*/
|
||||
requiredSkills?: string;
|
||||
|
||||
/**
|
||||
* 有效期开始日期
|
||||
*/
|
||||
startDate: string;
|
||||
|
||||
/**
|
||||
* 有效期结束日期
|
||||
*/
|
||||
endDate: string;
|
||||
|
||||
/**
|
||||
* 是否永久有效(0否 1是)
|
||||
*/
|
||||
isPermanent: number;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 招聘岗位Query对象
|
||||
*/
|
||||
export interface JobPositionQuery extends PageQuery {
|
||||
/**
|
||||
* 所属企业ID
|
||||
*/
|
||||
enterpriseId?: number | string;
|
||||
|
||||
/**
|
||||
* 岗位名称
|
||||
*/
|
||||
positionName?: string;
|
||||
|
||||
/**
|
||||
* 工作地址
|
||||
*/
|
||||
workAddress?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 是否永久有效
|
||||
*/
|
||||
isPermanent?: number;
|
||||
|
||||
/**
|
||||
* 创建时间范围
|
||||
*/
|
||||
params?: {
|
||||
beginCreateTime?: string;
|
||||
endCreateTime?: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 招聘海报VO对象
|
||||
*/
|
||||
export interface RecruitmentPosterVO {
|
||||
/**
|
||||
* 海报ID
|
||||
*/
|
||||
id: number | string;
|
||||
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
enterpriseId: number | string;
|
||||
|
||||
/**
|
||||
* 企业名称(关联字段)
|
||||
*/
|
||||
enterpriseName?: string;
|
||||
|
||||
/**
|
||||
* 岗位ID(为空表示企业整体海报)
|
||||
*/
|
||||
positionId?: number | string;
|
||||
|
||||
/**
|
||||
* 岗位名称(关联字段)
|
||||
*/
|
||||
positionName?: string;
|
||||
|
||||
/**
|
||||
* 海报文件路径
|
||||
*/
|
||||
posterPath: string;
|
||||
|
||||
/**
|
||||
* 海报类型(1企业海报 2岗位海报)
|
||||
*/
|
||||
posterType: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
tenantId?: string;
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
createDept?: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: number;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 招聘海报Form对象
|
||||
*/
|
||||
export interface RecruitmentPosterForm extends BaseEntity {
|
||||
/**
|
||||
* 海报ID
|
||||
*/
|
||||
id?: number | string;
|
||||
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
enterpriseId: number | string;
|
||||
|
||||
/**
|
||||
* 岗位ID(为空表示企业整体海报)
|
||||
*/
|
||||
positionId?: number | string;
|
||||
|
||||
/**
|
||||
* 海报文件路径
|
||||
*/
|
||||
posterPath: string;
|
||||
|
||||
/**
|
||||
* 海报类型(1企业海报 2岗位海报)
|
||||
*/
|
||||
posterType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 招聘海报Query对象
|
||||
*/
|
||||
export interface RecruitmentPosterQuery extends PageQuery {
|
||||
/**
|
||||
* 企业ID
|
||||
*/
|
||||
enterpriseId?: number | string;
|
||||
|
||||
/**
|
||||
* 岗位ID
|
||||
*/
|
||||
positionId?: number | string;
|
||||
|
||||
/**
|
||||
* 海报类型(1企业海报 2岗位海报)
|
||||
*/
|
||||
posterType?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页响应数据
|
||||
*/
|
||||
export interface TableDataInfo<T> {
|
||||
total: number;
|
||||
rows: T[];
|
||||
code?: number;
|
||||
msg?: string;
|
||||
}
|
||||
+1
-47
@@ -89,56 +89,10 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/xljk',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: 'evaluation/detail/:id',
|
||||
component: () => import('@/views/xljk/evaluation/detail.vue'),
|
||||
name: 'XljkEvaluationDetail',
|
||||
meta: { title: '心理健康测评详情', icon: 'form', activeMenu: '/xljk/evaluation' }
|
||||
},
|
||||
{
|
||||
path: 'evaluation/add',
|
||||
component: () => import('@/views/xljk/evaluation/add.vue'),
|
||||
name: 'XljkEvaluationAdd',
|
||||
meta: { title: '新增心理健康测评', icon: 'form', activeMenu: '/xljk/evaluation' }
|
||||
},
|
||||
{
|
||||
path: 'evaluation/edit/:id',
|
||||
component: () => import('@/views/xljk/evaluation/edit.vue'),
|
||||
name: 'XljkEvaluationEdit',
|
||||
meta: { title: '编辑心理健康测评', icon: 'form', activeMenu: '/xljk/evaluation' }
|
||||
},
|
||||
{
|
||||
path: 'evaluation/fill/:id',
|
||||
component: () => import('@/views/xljk/evaluation/fill.vue'),
|
||||
name: 'XljkEvaluationFill',
|
||||
meta: { title: '填写心理健康测评', icon: 'form', activeMenu: '/xljk/evaluation' }
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
// 动态路由,基于用户权限动态去加载
|
||||
export const dynamicRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/xljk',
|
||||
component: Layout,
|
||||
name: 'Xljk',
|
||||
meta: { title: '学工管理', icon: 'education' },
|
||||
children: [
|
||||
{
|
||||
path: 'evaluation',
|
||||
component: () => import('@/views/xljk/evaluation/index.vue'),
|
||||
name: 'XljkEvaluation',
|
||||
meta: { title: '心理健康测评', icon: 'heart', permissions: ['xljk:evaluation:list'] }
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
export const dynamicRoutes: RouteRecordRaw[] = [];
|
||||
|
||||
/**
|
||||
* 创建路由
|
||||
|
||||
@@ -0,0 +1,517 @@
|
||||
<template>
|
||||
<div class="p-2 page-container">
|
||||
<!-- 搜索表单 -->
|
||||
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
||||
<div v-show="showSearch" class="mb-[10px]">
|
||||
<el-card shadow="hover">
|
||||
<el-form ref="queryFormRef" :model="queryParams" label-width="100px">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="企业名称" prop="enterpriseName">
|
||||
<el-input v-model="queryParams.enterpriseName" placeholder="请输入企业名称" clearable @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="所属行业" prop="industry">
|
||||
<el-select v-model="queryParams.industry" placeholder="请选择所属行业" clearable style="width: 100%">
|
||||
<el-option v-for="dict in zsjy_enterprise_industry" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="企业规模" prop="enterpriseScale">
|
||||
<el-select v-model="queryParams.enterpriseScale" placeholder="请选择企业规模" clearable style="width: 100%">
|
||||
<el-option v-for="dict in zsjy_enterprise_scale" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="企业状态" prop="status">
|
||||
<el-select v-model="queryParams.status" placeholder="请选择企业状态" clearable style="width: 100%">
|
||||
<el-option v-for="dict in sys_normal_disable" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="24" class="search-btn-container">
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-card>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<!-- 操作按钮和表格 -->
|
||||
<el-card shadow="never" class="button-card table-card">
|
||||
<template #header>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['zsjy:enterprise:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['zsjy:enterprise:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['zsjy:enterprise:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button icon="Download" @click="handleExport" v-hasPermi="['zsjy:enterprise:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<!-- 数据表格 -->
|
||||
<el-table v-loading="loading" border :data="enterpriseList" @selection-change="handleSelectionChange" @row-dblclick="handleView">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="企业名称" align="center" prop="enterpriseName" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="所属行业" align="center" prop="industry" width="120">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="zsjy_enterprise_industry" :value="scope.row.industry" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="企业规模" align="center" prop="enterpriseScale" width="120">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="zsjy_enterprise_scale" :value="scope.row.enterpriseScale" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="联系人" align="center" prop="contactName" width="100" show-overflow-tooltip />
|
||||
<el-table-column label="联系电话" align="center" prop="contactPhone" width="120" show-overflow-tooltip />
|
||||
<el-table-column label="企业邮箱" align="center" prop="email" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="企业地址" align="center" prop="address" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column label="状态" align="center" prop="status" width="80">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="sys_normal_disable" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="160" show-overflow-tooltip />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="查看" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="View"
|
||||
size="default"
|
||||
style="font-size: 16px; margin-right: 8px; color: blue"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['zsjy:enterprise:query']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="修改" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
size="default"
|
||||
style="font-size: 16px; margin-right: 8px"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['zsjy:enterprise:edit']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
icon="Delete"
|
||||
size="default"
|
||||
style="font-size: 16px"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['zsjy:enterprise:remove']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<!-- 分页组件 -->
|
||||
<div class="pagination-container">
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<!-- 添加或修改企业信息对话框 -->
|
||||
<el-dialog :title="dialog.title" v-model="dialog.visible" width="1000px" append-to-body>
|
||||
<el-form ref="enterpriseFormRef" :model="form" :rules="rules" label-width="120px">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="企业名称" prop="enterpriseName">
|
||||
<el-input v-model="form.enterpriseName" placeholder="请输入企业名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="所属行业" prop="industry">
|
||||
<el-select v-model="form.industry" placeholder="请选择所属行业" style="width: 100%">
|
||||
<el-option v-for="dict in zsjy_enterprise_industry" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="企业规模" prop="enterpriseScale">
|
||||
<el-select v-model="form.enterpriseScale" placeholder="请选择企业规模" style="width: 100%">
|
||||
<el-option v-for="dict in zsjy_enterprise_scale" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人姓名" prop="contactName">
|
||||
<el-input v-model="form.contactName" placeholder="请输入联系人姓名" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系电话" prop="contactPhone">
|
||||
<el-input v-model="form.contactPhone" placeholder="请输入联系电话" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="企业邮箱" prop="email">
|
||||
<el-input v-model="form.email" placeholder="请输入企业邮箱" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-radio-group v-model="form.status">
|
||||
<el-radio v-for="dict in sys_normal_disable" :key="dict.value" :value="dict.value">{{ dict.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="企业地址" prop="address">
|
||||
<el-input v-model="form.address" placeholder="请输入企业地址" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="主营业务" prop="mainBusiness">
|
||||
<el-input
|
||||
v-model="form.mainBusiness"
|
||||
type="textarea"
|
||||
placeholder="请输入主营业务"
|
||||
:autosize="{ minRows: 3, maxRows: 5 }"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input
|
||||
v-model="form.remark"
|
||||
type="textarea"
|
||||
placeholder="请输入备注信息"
|
||||
:autosize="{ minRows: 2, maxRows: 4 }"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 查看企业信息对话框 -->
|
||||
<el-dialog title="企业信息详情" v-model="viewDialog.visible" width="1000px" append-to-body>
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="企业名称">{{ viewForm.enterpriseName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="所属行业">
|
||||
<dict-tag :options="zsjy_enterprise_industry" :value="viewForm.industry" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="企业规模">
|
||||
<dict-tag :options="zsjy_enterprise_scale" :value="viewForm.enterpriseScale" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="联系人姓名">{{ viewForm.contactName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="联系电话">{{ viewForm.contactPhone }}</el-descriptions-item>
|
||||
<el-descriptions-item label="企业邮箱">{{ viewForm.email }}</el-descriptions-item>
|
||||
<el-descriptions-item label="企业地址" span="2">{{ viewForm.address }}</el-descriptions-item>
|
||||
<el-descriptions-item label="主营业务" span="2">{{ viewForm.mainBusiness }}</el-descriptions-item>
|
||||
<el-descriptions-item label="状态">
|
||||
<dict-tag :options="sys_normal_disable" :value="viewForm.status" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="创建时间">{{ viewForm.createTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="备注" span="2">{{ viewForm.remark || '-' }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="viewDialog.visible = false">关 闭</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Enterprise" lang="ts">
|
||||
import { listEnterprise, getEnterprise, delEnterprise, addEnterprise, updateEnterprise } from '@/api/zsjy/enterprise'
|
||||
import { EnterpriseVO, EnterpriseForm, EnterpriseQuery } from '@/api/zsjy/types'
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance
|
||||
|
||||
const enterpriseList = ref<EnterpriseVO[]>([])
|
||||
const buttonLoading = ref(false)
|
||||
const loading = ref(true)
|
||||
const showSearch = ref(true)
|
||||
const ids = ref<Array<string | number>>([])
|
||||
const single = ref(true)
|
||||
const multiple = ref(true)
|
||||
const total = ref(0)
|
||||
|
||||
const queryFormRef = ref<ElFormInstance>()
|
||||
const enterpriseFormRef = ref<ElFormInstance>()
|
||||
|
||||
// 字典数据
|
||||
const { sys_normal_disable } = toRefs<any>(proxy?.useDict('sys_normal_disable'))
|
||||
const { zsjy_enterprise_industry } = toRefs<any>(proxy?.useDict('zsjy_enterprise_industry'))
|
||||
const { zsjy_enterprise_scale } = toRefs<any>(proxy?.useDict('zsjy_enterprise_scale'))
|
||||
|
||||
const initFormData: EnterpriseForm = {
|
||||
id: undefined,
|
||||
enterpriseName: '',
|
||||
industry: '',
|
||||
mainBusiness: '',
|
||||
enterpriseScale: '',
|
||||
contactName: '',
|
||||
contactPhone: '',
|
||||
email: '',
|
||||
address: '',
|
||||
status: '0',
|
||||
remark: ''
|
||||
}
|
||||
|
||||
const data = reactive<PageData<EnterpriseForm, EnterpriseQuery>>({
|
||||
form: { ...initFormData },
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
enterpriseName: '',
|
||||
industry: '',
|
||||
enterpriseScale: '',
|
||||
status: ''
|
||||
},
|
||||
rules: {
|
||||
enterpriseName: [{ required: true, message: '企业名称不能为空', trigger: 'blur' }],
|
||||
industry: [{ required: true, message: '所属行业不能为空', trigger: 'change' }],
|
||||
mainBusiness: [{ required: true, message: '主营业务不能为空', trigger: 'blur' }],
|
||||
enterpriseScale: [{ required: true, message: '企业规模不能为空', trigger: 'change' }],
|
||||
contactName: [{ required: true, message: '联系人姓名不能为空', trigger: 'blur' }],
|
||||
contactPhone: [
|
||||
{ required: true, message: '联系电话不能为空', trigger: 'blur' },
|
||||
{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码', trigger: 'blur' }
|
||||
],
|
||||
email: [
|
||||
{ required: true, message: '企业邮箱不能为空', trigger: 'blur' },
|
||||
{ type: 'email', message: '请输入正确的邮箱地址', trigger: 'blur' }
|
||||
],
|
||||
address: [{ required: true, message: '企业地址不能为空', trigger: 'blur' }],
|
||||
status: [{ required: true, message: '状态不能为空', trigger: 'change' }]
|
||||
}
|
||||
})
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data)
|
||||
|
||||
// 对话框相关
|
||||
const dialog = reactive<DialogOption>({
|
||||
visible: false,
|
||||
title: ''
|
||||
})
|
||||
|
||||
const viewDialog = reactive<DialogOption>({
|
||||
visible: false,
|
||||
title: ''
|
||||
})
|
||||
|
||||
const viewForm = ref<EnterpriseVO>({} as EnterpriseVO)
|
||||
|
||||
/** 查询企业信息列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
const res = await listEnterprise(queryParams.value)
|
||||
enterpriseList.value = res.rows
|
||||
total.value = res.total
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
/** 取消按钮 */
|
||||
const cancel = () => {
|
||||
reset()
|
||||
dialog.visible = false
|
||||
}
|
||||
|
||||
/** 表单重置 */
|
||||
const reset = () => {
|
||||
form.value = { ...initFormData }
|
||||
enterpriseFormRef.value?.resetFields()
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
const handleQuery = () => {
|
||||
queryParams.value.pageNum = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
const resetQuery = () => {
|
||||
queryFormRef.value?.resetFields()
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
/** 多选框选中数据 */
|
||||
const handleSelectionChange = (selection: EnterpriseVO[]) => {
|
||||
ids.value = selection.map(item => item.id)
|
||||
single.value = selection.length !== 1
|
||||
multiple.value = !selection.length
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
const handleAdd = () => {
|
||||
reset()
|
||||
dialog.visible = true
|
||||
dialog.title = '添加企业信息'
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (row?: EnterpriseVO) => {
|
||||
reset()
|
||||
const id = row?.id || ids.value[0]
|
||||
const res = await getEnterprise(id)
|
||||
Object.assign(form.value, res.data)
|
||||
dialog.visible = true
|
||||
dialog.title = '修改企业信息'
|
||||
}
|
||||
|
||||
/** 查看详情 */
|
||||
const handleView = async (row: EnterpriseVO) => {
|
||||
const res = await getEnterprise(row.id)
|
||||
viewForm.value = res.data
|
||||
viewDialog.visible = true
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
const submitForm = () => {
|
||||
enterpriseFormRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
buttonLoading.value = true
|
||||
if (form.value.id) {
|
||||
await updateEnterprise(form.value).finally(() => (buttonLoading.value = false))
|
||||
} else {
|
||||
await addEnterprise(form.value).finally(() => (buttonLoading.value = false))
|
||||
}
|
||||
proxy?.$modal.msgSuccess('操作成功')
|
||||
dialog.visible = false
|
||||
await getList()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: EnterpriseVO) => {
|
||||
const idList = row?.id || ids.value
|
||||
await proxy?.$modal.confirm('是否确认删除企业信息编号为"' + idList + '"的数据项?')
|
||||
await delEnterprise(idList)
|
||||
proxy?.$modal.msgSuccess('删除成功')
|
||||
await getList()
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = () => {
|
||||
proxy?.download(
|
||||
'zsjy/enterprise/export',
|
||||
{
|
||||
...queryParams.value
|
||||
},
|
||||
`enterprise_${new Date().getTime()}.xlsx`
|
||||
)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
// 继承后勤管理的样式
|
||||
.page-container {
|
||||
.search-btn-container {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.button-card {
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.table-card {
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.pagination-container {
|
||||
text-align: right;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// 表格适应性样式
|
||||
:deep(.el-table) {
|
||||
.el-table__cell {
|
||||
padding: 8px 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式表格
|
||||
:deep(.el-table__body-wrapper) {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
// 表格列宽自适应
|
||||
.el-table {
|
||||
width: 100%;
|
||||
table-layout: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// 描述列表样式优化
|
||||
:deep(.el-descriptions) {
|
||||
.el-descriptions__label {
|
||||
font-weight: 600;
|
||||
color: #606266;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.el-descriptions__content {
|
||||
color: #303133;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,615 @@
|
||||
<template>
|
||||
<div class="p-2 page-container">
|
||||
<!-- 搜索区域 -->
|
||||
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
||||
<div v-show="showSearch" class="mb-[10px]">
|
||||
<el-card shadow="hover">
|
||||
<el-form ref="queryFormRef" :model="queryParams" label-width="100px">
|
||||
<!-- 搜索条件 -->
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="所属企业" prop="enterpriseId">
|
||||
<el-select
|
||||
v-model="queryParams.enterpriseId"
|
||||
placeholder="请选择所属企业"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
@change="handleQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in enterpriseOptions"
|
||||
:key="item.id"
|
||||
:label="item.enterpriseName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="岗位名称" prop="positionName">
|
||||
<el-input v-model="queryParams.positionName" placeholder="请输入岗位名称" clearable @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="工作地址" prop="workAddress">
|
||||
<el-input v-model="queryParams.workAddress" placeholder="请输入工作地址" clearable @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable style="width: 100%">
|
||||
<el-option v-for="dict in sys_normal_disable" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<!-- 操作按钮行 -->
|
||||
<el-row>
|
||||
<el-col :span="24" class="search-btn-container">
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-card>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<!-- 操作按钮栏 -->
|
||||
<el-card shadow="hover" class="button-card">
|
||||
<template #header>
|
||||
<div class="card-header-vertical">
|
||||
<div class="toolbar-title">招聘岗位列表</div>
|
||||
<div class="button-group">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['zsjy:position:add']">新增</el-button>
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['zsjy:position:edit']">修改</el-button>
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['zsjy:position:remove']">删除</el-button>
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['zsjy:position:export']">导出</el-button>
|
||||
<el-button type="info" plain icon="Fold" @click="toggleSearch">
|
||||
<span v-if="showSearch">隐藏</span>
|
||||
<span v-else>展开</span>
|
||||
搜索
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-card>
|
||||
|
||||
<!-- 表格区域 -->
|
||||
<el-card shadow="hover" class="table-card">
|
||||
<div class="table-container">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="jobPositionList"
|
||||
@selection-change="handleSelectionChange"
|
||||
class="scroll-table"
|
||||
stripe
|
||||
border
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" fixed="left" />
|
||||
<el-table-column label="企业名称" align="center" prop="enterpriseName" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="岗位名称" align="center" prop="positionName" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="工作地址" align="center" prop="workAddress" min-width="180" show-overflow-tooltip />
|
||||
<el-table-column label="工作时间" align="center" prop="workTime" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column label="薪资" align="center" prop="salary" min-width="120" />
|
||||
<el-table-column label="有效期" align="center" min-width="180">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.isPermanent === 1">永久有效</span>
|
||||
<span v-else>{{ scope.row.startDate }} ~ {{ scope.row.endDate }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" align="center" prop="status" width="100">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="sys_normal_disable" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="查看" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="View"
|
||||
size="default"
|
||||
style="font-size: 16px; margin-right: 8px; color: blue"
|
||||
@click="handleDetail(scope.row)"
|
||||
v-hasPermi="['zsjy:position:query']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="修改" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
size="default"
|
||||
style="font-size: 16px; margin-right: 8px"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['zsjy:position:edit']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
icon="Delete"
|
||||
size="default"
|
||||
style="font-size: 16px"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['zsjy:position:remove']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<!-- 分页 -->
|
||||
<div class="pagination-container">
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<!-- 新增/修改对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="800px" append-to-body>
|
||||
<el-form ref="jobPositionFormRef" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="所属企业" prop="enterpriseId">
|
||||
<el-select
|
||||
v-model="form.enterpriseId"
|
||||
placeholder="请选择所属企业"
|
||||
style="width: 100%"
|
||||
:disabled="form.id"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in enterpriseOptions"
|
||||
:key="item.id"
|
||||
:label="item.enterpriseName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="岗位名称" prop="positionName">
|
||||
<el-input v-model="form.positionName" placeholder="请输入岗位名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="工作地址" prop="workAddress">
|
||||
<el-input v-model="form.workAddress" placeholder="请输入工作地址" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="工作时间" prop="workTime">
|
||||
<el-input v-model="form.workTime" placeholder="例如:周一至周五 9:00-18:00" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="薪资" prop="salary">
|
||||
<el-input v-model="form.salary" placeholder="例如:5000-8000元/月" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-radio-group v-model="form.status">
|
||||
<el-radio v-for="dict in sys_normal_disable" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="永久有效" prop="isPermanent">
|
||||
<el-switch
|
||||
v-model="form.isPermanent"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
@change="handlePermanentChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="form.isPermanent === 0">
|
||||
<el-form-item label="有效期" prop="dateRange">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
value-format="YYYY-MM-DD"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="所需技能" prop="requiredSkills">
|
||||
<el-input
|
||||
v-model="form.requiredSkills"
|
||||
type="textarea"
|
||||
placeholder="请输入所需技能"
|
||||
:rows="3"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" :rows="3" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 详情对话框 -->
|
||||
<el-dialog title="岗位详情" v-model="detailOpen" width="800px" append-to-body>
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="所属企业">{{ detailData.enterpriseName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="岗位名称">{{ detailData.positionName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="工作地址">{{ detailData.workAddress }}</el-descriptions-item>
|
||||
<el-descriptions-item label="工作时间">{{ detailData.workTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="薪资">{{ detailData.salary }}</el-descriptions-item>
|
||||
<el-descriptions-item label="状态">
|
||||
<dict-tag :options="sys_normal_disable" :value="detailData.status" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="有效期" :span="2">
|
||||
<span v-if="detailData.isPermanent === 1">永久有效</span>
|
||||
<span v-else>{{ detailData.startDate }} ~ {{ detailData.endDate }}</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="所需技能" :span="2">{{ detailData.requiredSkills || '无' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="备注" :span="2">{{ detailData.remark || '无' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="创建时间">{{ detailData.createTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="更新时间">{{ detailData.updateTime }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="detailOpen = false">关 闭</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="JobPosition" lang="ts">
|
||||
import { getCurrentInstance, ComponentInternalInstance, ref, reactive, toRefs, onMounted } from 'vue'
|
||||
import { FormInstance } from 'element-plus'
|
||||
import { listJobPosition, getJobPosition, delJobPosition, addJobPosition, updateJobPosition, exportJobPosition, listEnterpriseOptions } from '@/api/zsjy/jobPosition'
|
||||
import { JobPositionVO, JobPositionForm, JobPositionQuery } from '@/api/zsjy/types'
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance
|
||||
|
||||
// 字典数据
|
||||
const { sys_normal_disable } = toRefs<any>(proxy?.useDict('sys_normal_disable'))
|
||||
|
||||
// 表格数据
|
||||
const jobPositionList = ref<JobPositionVO[]>([])
|
||||
const total = ref(0)
|
||||
const loading = ref(false)
|
||||
const showSearch = ref(true)
|
||||
const ids = ref<Array<string | number>>([])
|
||||
const single = ref(true)
|
||||
const multiple = ref(true)
|
||||
|
||||
// 表单相关
|
||||
const open = ref(false)
|
||||
const title = ref('')
|
||||
const jobPositionFormRef = ref<FormInstance>()
|
||||
const queryFormRef = ref<FormInstance>()
|
||||
|
||||
// 企业选项
|
||||
const enterpriseOptions = ref<any[]>([])
|
||||
|
||||
// 日期范围
|
||||
const dateRange = ref<[string, string]>([])
|
||||
|
||||
// 查询参数
|
||||
const queryParams = ref<JobPositionQuery>({
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
enterpriseId: undefined,
|
||||
positionName: undefined,
|
||||
workAddress: undefined,
|
||||
status: undefined,
|
||||
isPermanent: undefined
|
||||
})
|
||||
|
||||
// 表单参数
|
||||
const form = ref<JobPositionForm>({
|
||||
id: undefined,
|
||||
enterpriseId: '',
|
||||
positionName: '',
|
||||
workAddress: '',
|
||||
workTime: '',
|
||||
salary: '',
|
||||
requiredSkills: '',
|
||||
startDate: '',
|
||||
endDate: '',
|
||||
isPermanent: 0,
|
||||
status: '0',
|
||||
remark: ''
|
||||
})
|
||||
|
||||
// 表单校验规则
|
||||
const rules = {
|
||||
enterpriseId: [{ required: true, message: '请选择所属企业', trigger: 'change' }],
|
||||
positionName: [{ required: true, message: '岗位名称不能为空', trigger: 'blur' }],
|
||||
workAddress: [{ required: true, message: '工作地址不能为空', trigger: 'blur' }],
|
||||
workTime: [{ required: true, message: '工作时间不能为空', trigger: 'blur' }],
|
||||
salary: [{ required: true, message: '薪资不能为空', trigger: 'blur' }],
|
||||
status: [{ required: true, message: '状态不能为空', trigger: 'change' }]
|
||||
}
|
||||
|
||||
// 详情数据
|
||||
const detailOpen = ref(false)
|
||||
const detailData = ref<JobPositionVO>({} as JobPositionVO)
|
||||
|
||||
/** 查询招聘岗位列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
const res = await listJobPosition(queryParams.value)
|
||||
jobPositionList.value = res.rows
|
||||
total.value = res.total
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
/** 查询企业下拉选项 */
|
||||
const getEnterpriseOptions = async () => {
|
||||
const res = await listEnterpriseOptions()
|
||||
enterpriseOptions.value = res.data || []
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
const handleQuery = () => {
|
||||
queryParams.value.pageNum = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
const resetQuery = () => {
|
||||
queryFormRef.value?.resetFields()
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
/** 切换搜索显示 */
|
||||
const toggleSearch = () => {
|
||||
showSearch.value = !showSearch.value
|
||||
}
|
||||
|
||||
/** 多选框选中数据 */
|
||||
const handleSelectionChange = (selection: JobPositionVO[]) => {
|
||||
ids.value = selection.map(item => item.id)
|
||||
single.value = selection.length !== 1
|
||||
multiple.value = !selection.length
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
const handleAdd = () => {
|
||||
resetForm()
|
||||
open.value = true
|
||||
title.value = '添加招聘岗位'
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (row?: JobPositionVO) => {
|
||||
resetForm()
|
||||
const id = row?.id || ids.value[0]
|
||||
const res = await getJobPosition(id)
|
||||
Object.assign(form.value, res.data)
|
||||
if (!form.value.isPermanent) {
|
||||
dateRange.value = [form.value.startDate, form.value.endDate]
|
||||
}
|
||||
open.value = true
|
||||
title.value = '修改招聘岗位'
|
||||
}
|
||||
|
||||
/** 详情按钮操作 */
|
||||
const handleDetail = async (row: JobPositionVO) => {
|
||||
const res = await getJobPosition(row.id)
|
||||
detailData.value = res.data
|
||||
detailOpen.value = true
|
||||
}
|
||||
|
||||
/** 永久有效切换 */
|
||||
const handlePermanentChange = (val: number) => {
|
||||
if (val === 1) {
|
||||
dateRange.value = []
|
||||
form.value.startDate = ''
|
||||
form.value.endDate = ''
|
||||
}
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
const submitForm = () => {
|
||||
jobPositionFormRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
// 处理日期范围
|
||||
if (form.value.isPermanent === 0 && dateRange.value && dateRange.value.length === 2) {
|
||||
form.value.startDate = dateRange.value[0]
|
||||
form.value.endDate = dateRange.value[1]
|
||||
}
|
||||
|
||||
if (form.value.id) {
|
||||
await updateJobPosition(form.value)
|
||||
proxy?.$modal.msgSuccess('修改成功')
|
||||
} else {
|
||||
await addJobPosition(form.value)
|
||||
proxy?.$modal.msgSuccess('新增成功')
|
||||
}
|
||||
open.value = false
|
||||
getList()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: JobPositionVO) => {
|
||||
const jobIds = row?.id || ids.value
|
||||
await proxy?.$modal.confirm('是否确认删除选中的招聘岗位?')
|
||||
await delJobPosition(jobIds)
|
||||
proxy?.$modal.msgSuccess('删除成功')
|
||||
getList()
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = async () => {
|
||||
await proxy?.$modal.confirm('是否确认导出所有招聘岗位数据?')
|
||||
await exportJobPosition(queryParams.value)
|
||||
proxy?.$modal.msgSuccess('导出成功')
|
||||
}
|
||||
|
||||
/** 取消按钮 */
|
||||
const cancel = () => {
|
||||
open.value = false
|
||||
resetForm()
|
||||
}
|
||||
|
||||
/** 表单重置 */
|
||||
const resetForm = () => {
|
||||
form.value = {
|
||||
id: undefined,
|
||||
enterpriseId: '',
|
||||
positionName: '',
|
||||
workAddress: '',
|
||||
workTime: '',
|
||||
salary: '',
|
||||
requiredSkills: '',
|
||||
startDate: '',
|
||||
endDate: '',
|
||||
isPermanent: 0,
|
||||
status: '0',
|
||||
remark: ''
|
||||
}
|
||||
dateRange.value = []
|
||||
jobPositionFormRef.value?.resetFields()
|
||||
}
|
||||
|
||||
/** 初始化 */
|
||||
onMounted(() => {
|
||||
getList()
|
||||
getEnterpriseOptions()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
// 继承后勤管理的样式
|
||||
.page-container {
|
||||
.search-btn-container {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.button-card {
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.card-header-vertical {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.toolbar-title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #303133;
|
||||
}
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.table-card {
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.table-container {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.scroll-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pagination-container {
|
||||
text-align: right;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// 表格适应性样式
|
||||
:deep(.el-table) {
|
||||
.el-table__cell {
|
||||
padding: 8px 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式表格
|
||||
:deep(.el-table__body-wrapper) {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
// 表格列宽自适应
|
||||
.el-table {
|
||||
width: 100%;
|
||||
table-layout: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// 操作按钮样式
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// 描述列表样式优化
|
||||
:deep(.el-descriptions) {
|
||||
.el-descriptions__label {
|
||||
font-weight: 600;
|
||||
color: #606266;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.el-descriptions__content {
|
||||
color: #303133;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 320 KiB |
@@ -0,0 +1,614 @@
|
||||
<template>
|
||||
<div class="p-2 page-container">
|
||||
<!-- 搜索区域 -->
|
||||
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
||||
<div v-show="showSearch" class="mb-[10px]">
|
||||
<el-card shadow="hover">
|
||||
<el-form ref="queryFormRef" :model="queryParams" label-width="100px">
|
||||
<!-- 搜索条件 -->
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="所属企业" prop="enterpriseId">
|
||||
<el-select
|
||||
v-model="queryParams.enterpriseId"
|
||||
placeholder="请选择所属企业"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
@change="handleEnterpriseChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in enterpriseOptions"
|
||||
:key="item.id"
|
||||
:label="item.enterpriseName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="关联岗位" prop="positionId">
|
||||
<el-select
|
||||
v-model="queryParams.positionId"
|
||||
placeholder="请选择关联岗位"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
:disabled="!queryParams.enterpriseId"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in positionOptions"
|
||||
:key="item.id"
|
||||
:label="item.positionName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="海报类型" prop="posterType">
|
||||
<el-select v-model="queryParams.posterType" placeholder="请选择海报类型" clearable style="width: 100%">
|
||||
<el-option v-for="dict in zsjy_poster_type" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-card>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<!-- 操作按钮栏 -->
|
||||
<el-card shadow="hover" class="button-card">
|
||||
<template #header>
|
||||
<div class="card-header-vertical">
|
||||
<div class="toolbar-title">招聘海报列表</div>
|
||||
<div class="button-group">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['zsjy:poster:add']">新增</el-button>
|
||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate" v-hasPermi="['zsjy:poster:edit']">修改</el-button>
|
||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete" v-hasPermi="['zsjy:poster:remove']">删除</el-button>
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['zsjy:poster:export']">导出</el-button>
|
||||
<el-button type="info" plain icon="Fold" @click="toggleSearch">
|
||||
<span v-if="showSearch">隐藏</span>
|
||||
<span v-else>展开</span>
|
||||
搜索
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-card>
|
||||
|
||||
<!-- 表格区域 -->
|
||||
<el-card shadow="hover" class="table-card">
|
||||
<div class="table-container">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="posterList"
|
||||
@selection-change="handleSelectionChange"
|
||||
class="scroll-table"
|
||||
stripe
|
||||
border
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" fixed="left" />
|
||||
<el-table-column label="企业名称" align="center" prop="enterpriseName" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="海报类型" align="center" prop="posterType" width="120">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="zsjy_poster_type" :value="scope.row.posterType" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="关联岗位" align="center" prop="positionName" min-width="150" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
{{ scope.row.positionName || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="海报预览" align="center" width="120">
|
||||
<template #default="scope">
|
||||
<el-image
|
||||
v-if="scope.row.posterPath"
|
||||
:src="scope.row.posterPath"
|
||||
:preview-src-list="[scope.row.posterPath]"
|
||||
:preview-teleported="true"
|
||||
fit="cover"
|
||||
style="width: 80px; height: 80px; cursor: pointer"
|
||||
>
|
||||
<template #error>
|
||||
<div style="width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: #f5f7fa; color: #909399; font-size: 12px;">
|
||||
加载失败
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="预览" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="View"
|
||||
size="default"
|
||||
style="font-size: 16px; margin-right: 8px; color: blue"
|
||||
@click="handlePreview(scope.row)"
|
||||
v-hasPermi="['zsjy:poster:query']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="修改" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
size="default"
|
||||
style="font-size: 16px; margin-right: 8px"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['zsjy:poster:edit']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
icon="Delete"
|
||||
size="default"
|
||||
style="font-size: 16px"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['zsjy:poster:remove']"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<!-- 分页 -->
|
||||
<div class="pagination-container">
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<!-- 新增/修改对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
||||
<el-form ref="posterFormRef" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="所属企业" prop="enterpriseId">
|
||||
<el-select
|
||||
v-model="form.enterpriseId"
|
||||
placeholder="请选择所属企业"
|
||||
style="width: 100%"
|
||||
@change="handleFormEnterpriseChange"
|
||||
:disabled="form.id"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in enterpriseOptions"
|
||||
:key="item.id"
|
||||
:label="item.enterpriseName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="海报类型" prop="posterType">
|
||||
<el-radio-group v-model="form.posterType" @change="handlePosterTypeChange">
|
||||
<el-radio v-for="dict in zsjy_poster_type" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联岗位" prop="positionId" v-if="form.posterType === '2'">
|
||||
<el-select
|
||||
v-model="form.positionId"
|
||||
placeholder="请选择关联岗位"
|
||||
style="width: 100%"
|
||||
:disabled="!form.enterpriseId"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in formPositionOptions"
|
||||
:key="item.id"
|
||||
:label="item.positionName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="海报图片" prop="posterPath">
|
||||
<image-upload
|
||||
v-model="form.posterPath"
|
||||
:limit="1"
|
||||
:fileSize="5"
|
||||
:fileType="['jpg', 'jpeg', 'png', 'gif']"
|
||||
:isShowTip="true"
|
||||
>
|
||||
<template #tip>
|
||||
<div style="font-size: 12px; color: #909399;">
|
||||
只能上传jpg/jpeg/png/gif文件,且不超过5MB
|
||||
</div>
|
||||
</template>
|
||||
</image-upload>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 预览对话框 -->
|
||||
<el-dialog title="海报预览" v-model="previewOpen" width="800px" append-to-body>
|
||||
<div style="text-align: center; padding: 20px;">
|
||||
<el-image
|
||||
v-if="previewData.posterPath"
|
||||
:src="previewData.posterPath"
|
||||
fit="contain"
|
||||
style="max-width: 100%; max-height: 600px;"
|
||||
>
|
||||
<template #error>
|
||||
<div style="width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; background: #f5f7fa; color: #909399;">
|
||||
<el-icon size="60"><Picture /></el-icon>
|
||||
<div style="margin-top: 10px;">图片加载失败</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
</div>
|
||||
<el-descriptions :column="2" border style="margin-top: 20px;">
|
||||
<el-descriptions-item label="所属企业">{{ previewData.enterpriseName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="海报类型">
|
||||
<dict-tag :options="zsjy_poster_type" :value="previewData.posterType" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="关联岗位" :span="2">{{ previewData.positionName || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="创建时间">{{ previewData.createTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="更新时间">{{ previewData.updateTime }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="previewOpen = false">关 闭</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="RecruitmentPoster" lang="ts">
|
||||
import { getCurrentInstance, ComponentInternalInstance, ref, reactive, toRefs } from 'vue'
|
||||
import { ElFormInstance } from 'element-plus'
|
||||
import { listRecruitmentPoster, getRecruitmentPoster, delRecruitmentPoster, addRecruitmentPoster, updateRecruitmentPoster, exportRecruitmentPoster, listPositionOptions } from '@/api/zsjy/recruitmentPoster'
|
||||
import { listEnterpriseOptions } from '@/api/zsjy/jobPosition'
|
||||
import { RecruitmentPosterVO, RecruitmentPosterForm, RecruitmentPosterQuery } from '@/api/zsjy/types'
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance
|
||||
|
||||
// 字典数据 - 定义海报类型字典
|
||||
const zsjy_poster_type = ref([
|
||||
{ label: '企业海报', value: '1' },
|
||||
{ label: '岗位海报', value: '2' }
|
||||
])
|
||||
|
||||
// 表格数据
|
||||
const posterList = ref<RecruitmentPosterVO[]>([])
|
||||
const total = ref(0)
|
||||
const loading = ref(false)
|
||||
const showSearch = ref(true)
|
||||
const ids = ref<Array<string | number>>([])
|
||||
const single = ref(true)
|
||||
const multiple = ref(true)
|
||||
|
||||
// 表单相关
|
||||
const open = ref(false)
|
||||
const title = ref('')
|
||||
const posterFormRef = ref<ElFormInstance>()
|
||||
const queryFormRef = ref<ElFormInstance>()
|
||||
|
||||
// 选项数据
|
||||
const enterpriseOptions = ref<any[]>([])
|
||||
const positionOptions = ref<any[]>([])
|
||||
const formPositionOptions = ref<any[]>([])
|
||||
|
||||
// 查询参数
|
||||
const queryParams = ref<RecruitmentPosterQuery>({
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
enterpriseId: undefined,
|
||||
positionId: undefined,
|
||||
posterType: undefined
|
||||
})
|
||||
|
||||
// 表单参数
|
||||
const form = ref<RecruitmentPosterForm>({
|
||||
id: undefined,
|
||||
enterpriseId: '',
|
||||
positionId: undefined,
|
||||
posterPath: '',
|
||||
posterType: '1'
|
||||
})
|
||||
|
||||
// 表单校验规则
|
||||
const rules = {
|
||||
enterpriseId: [{ required: true, message: '请选择所属企业', trigger: 'change' }],
|
||||
posterType: [{ required: true, message: '请选择海报类型', trigger: 'change' }],
|
||||
posterPath: [{ required: true, message: '请上传海报图片', trigger: 'change' }]
|
||||
}
|
||||
|
||||
// 预览数据
|
||||
const previewOpen = ref(false)
|
||||
const previewData = ref<RecruitmentPosterVO>({} as RecruitmentPosterVO)
|
||||
|
||||
/** 查询招聘海报列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
const res = await listRecruitmentPoster(queryParams.value)
|
||||
posterList.value = res.rows
|
||||
total.value = res.total
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
/** 查询企业下拉选项 */
|
||||
const getEnterpriseOptions = async () => {
|
||||
const res = await listEnterpriseOptions()
|
||||
enterpriseOptions.value = res.data || []
|
||||
}
|
||||
|
||||
/** 查询岗位下拉选项 */
|
||||
const getPositionOptions = async (enterpriseId?: number | string) => {
|
||||
if (!enterpriseId) {
|
||||
positionOptions.value = []
|
||||
return
|
||||
}
|
||||
const res = await listPositionOptions(enterpriseId)
|
||||
positionOptions.value = res.data || []
|
||||
}
|
||||
|
||||
/** 查询表单岗位下拉选项 */
|
||||
const getFormPositionOptions = async (enterpriseId?: number | string) => {
|
||||
if (!enterpriseId) {
|
||||
formPositionOptions.value = []
|
||||
return
|
||||
}
|
||||
const res = await listPositionOptions(enterpriseId)
|
||||
formPositionOptions.value = res.data || []
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
const handleQuery = () => {
|
||||
queryParams.value.pageNum = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
const resetQuery = () => {
|
||||
queryFormRef.value?.resetFields()
|
||||
positionOptions.value = []
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
/** 切换搜索显示 */
|
||||
const toggleSearch = () => {
|
||||
showSearch.value = !showSearch.value
|
||||
}
|
||||
|
||||
/** 企业选择改变 */
|
||||
const handleEnterpriseChange = (val: number | string) => {
|
||||
queryParams.value.positionId = undefined
|
||||
if (val) {
|
||||
getPositionOptions(val)
|
||||
} else {
|
||||
positionOptions.value = []
|
||||
}
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
/** 表单企业选择改变 */
|
||||
const handleFormEnterpriseChange = (val: number | string) => {
|
||||
form.value.positionId = undefined
|
||||
if (val) {
|
||||
getFormPositionOptions(val)
|
||||
} else {
|
||||
formPositionOptions.value = []
|
||||
}
|
||||
}
|
||||
|
||||
/** 海报类型改变 */
|
||||
const handlePosterTypeChange = (val: string) => {
|
||||
if (val === '1') {
|
||||
form.value.positionId = undefined
|
||||
}
|
||||
}
|
||||
|
||||
/** 多选框选中数据 */
|
||||
const handleSelectionChange = (selection: RecruitmentPosterVO[]) => {
|
||||
ids.value = selection.map(item => item.id)
|
||||
single.value = selection.length !== 1
|
||||
multiple.value = !selection.length
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
const handleAdd = () => {
|
||||
resetForm()
|
||||
open.value = true
|
||||
title.value = '添加招聘海报'
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (row?: RecruitmentPosterVO) => {
|
||||
resetForm()
|
||||
const id = row?.id || ids.value[0]
|
||||
const res = await getRecruitmentPoster(id)
|
||||
Object.assign(form.value, res.data)
|
||||
if (form.value.enterpriseId) {
|
||||
await getFormPositionOptions(form.value.enterpriseId)
|
||||
}
|
||||
open.value = true
|
||||
title.value = '修改招聘海报'
|
||||
}
|
||||
|
||||
/** 预览按钮操作 */
|
||||
const handlePreview = async (row: RecruitmentPosterVO) => {
|
||||
const res = await getRecruitmentPoster(row.id)
|
||||
previewData.value = res.data
|
||||
previewOpen.value = true
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
const submitForm = () => {
|
||||
posterFormRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
if (form.value.id) {
|
||||
await updateRecruitmentPoster(form.value)
|
||||
proxy?.$modal.msgSuccess('修改成功')
|
||||
} else {
|
||||
await addRecruitmentPoster(form.value)
|
||||
proxy?.$modal.msgSuccess('新增成功')
|
||||
}
|
||||
open.value = false
|
||||
getList()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: RecruitmentPosterVO) => {
|
||||
const posterIds = row?.id || ids.value
|
||||
await proxy?.$modal.confirm('是否确认删除选中的招聘海报?')
|
||||
await delRecruitmentPoster(posterIds)
|
||||
proxy?.$modal.msgSuccess('删除成功')
|
||||
getList()
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = async () => {
|
||||
await proxy?.$modal.confirm('是否确认导出所有招聘海报数据?')
|
||||
await exportRecruitmentPoster(queryParams.value)
|
||||
proxy?.$modal.msgSuccess('导出成功')
|
||||
}
|
||||
|
||||
/** 取消按钮 */
|
||||
const cancel = () => {
|
||||
open.value = false
|
||||
resetForm()
|
||||
}
|
||||
|
||||
/** 表单重置 */
|
||||
const resetForm = () => {
|
||||
form.value = {
|
||||
id: undefined,
|
||||
enterpriseId: '',
|
||||
positionId: undefined,
|
||||
posterPath: '',
|
||||
posterType: '1'
|
||||
}
|
||||
formPositionOptions.value = []
|
||||
posterFormRef.value?.resetFields()
|
||||
}
|
||||
|
||||
/** 初始化 */
|
||||
onMounted(() => {
|
||||
getList()
|
||||
getEnterpriseOptions()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
// 继承后勤管理的样式
|
||||
.page-container {
|
||||
.search-btn-container {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.button-card {
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.card-header-vertical {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.toolbar-title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #303133;
|
||||
}
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.table-card {
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.table-container {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.scroll-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pagination-container {
|
||||
text-align: right;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// 表格适应性样式
|
||||
:deep(.el-table) {
|
||||
.el-table__cell {
|
||||
padding: 8px 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式表格
|
||||
:deep(.el-table__body-wrapper) {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
// 表格列宽自适应
|
||||
.el-table {
|
||||
width: 100%;
|
||||
table-layout: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// 操作按钮样式
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// 描述列表样式优化
|
||||
:deep(.el-descriptions) {
|
||||
.el-descriptions__label {
|
||||
font-weight: 600;
|
||||
color: #606266;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.el-descriptions__content {
|
||||
color: #303133;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user