|
|
@@ -1,15 +1,13 @@
|
|
|
<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]">
|
|
|
+ <div ref="searchRef" 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-select v-model="queryParams.enterpriseId" placeholder="请选择所属企业" clearable>
|
|
|
<el-option v-for="item in enterpriseOptions" :key="item.id" :label="item.enterpriseName" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -26,14 +24,46 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="状态" prop="status">
|
|
|
- <el-select v-model="queryParams.status" placeholder="请选择状态" clearable style="width: 100%">
|
|
|
+ <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
|
|
|
<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 :gutter="20">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="是否永久" prop="isPermanent">
|
|
|
+ <el-select v-model="queryParams.isPermanent" placeholder="请选择是否永久" clearable>
|
|
|
+ <el-option label="是" :value="1" />
|
|
|
+ <el-option label="否" :value="0" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="开始时间" prop="startDate">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ v-model="queryParams.startDate"
|
|
|
+ type="date"
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
+ placeholder="请选择开始时间"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="结束时间" prop="endDate">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ v-model="queryParams.endDate"
|
|
|
+ type="date"
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
+ placeholder="请选择结束时间"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="search-btn-container">
|
|
|
<el-form-item>
|
|
|
@@ -47,39 +77,42 @@
|
|
|
</div>
|
|
|
</transition>
|
|
|
|
|
|
- <!-- 操作按钮栏 -->
|
|
|
- <el-card shadow="hover" class="button-card">
|
|
|
+ <el-card shadow="never" class="button-card table-card">
|
|
|
<template #header>
|
|
|
- <div class="card-header-vertical">
|
|
|
- <div class="toolbar-title">招聘岗位列表</div>
|
|
|
- <div class="button-group">
|
|
|
+ <el-row ref="toolbarRef" :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
<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-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['zsjy:position:edit']">修改</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['zsjy:position:remove']">删除</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
<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>
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
</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
|
|
|
+ v-loading="loading"
|
|
|
+ border
|
|
|
+ :data="jobPositionList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ style="width: 100%"
|
|
|
+ :scroll-x="true"
|
|
|
+ class="scroll-table"
|
|
|
+ >
|
|
|
<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="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">
|
|
|
+ <el-table-column label="工作地址" align="center" prop="workAddress" min-width="200" show-overflow-tooltip />
|
|
|
+ <el-table-column label="工作时间" align="center" prop="workTime" width="180" show-overflow-tooltip />
|
|
|
+ <el-table-column label="薪资" align="center" prop="salary" width="150" show-overflow-tooltip />
|
|
|
+ <el-table-column label="有效期" align="center" width="200">
|
|
|
<template #default="scope">
|
|
|
<span v-if="scope.row.isPermanent === 1">永久有效</span>
|
|
|
<span v-else>{{ scope.row.startDate }} ~ {{ scope.row.endDate }}</span>
|
|
|
@@ -91,54 +124,28 @@
|
|
|
</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">
|
|
|
+ <el-table-column label="操作" align="center" width="280" fixed="right" class-name="small-padding fixed-width">
|
|
|
<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-button link type="info" icon="View" @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-button link type="primary" icon="Edit" @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-button link type="danger" icon="Delete" @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-dialog :title="dialog.title" v-model="dialog.visible" width="800px" append-to-body>
|
|
|
<el-form ref="jobPositionFormRef" :model="form" :rules="rules" label-width="100px">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
@@ -217,7 +224,7 @@
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -253,58 +260,30 @@
|
|
|
</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 { 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 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 open = ref(false);
|
|
|
-const title = ref('');
|
|
|
-const jobPositionFormRef = ref<FormInstance>();
|
|
|
-const queryFormRef = ref<FormInstance>();
|
|
|
-
|
|
|
-// 企业选项
|
|
|
-const enterpriseOptions = ref<any[]>([]);
|
|
|
+const queryFormRef = ref<ElFormInstance>();
|
|
|
+const jobPositionFormRef = ref<ElFormInstance>();
|
|
|
|
|
|
-// 日期范围
|
|
|
-const dateRange = ref<[string, string]>([]);
|
|
|
-
|
|
|
-// 查询参数
|
|
|
-const queryParams = ref<JobPositionQuery>({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
- enterpriseId: undefined,
|
|
|
- positionName: undefined,
|
|
|
- workAddress: undefined,
|
|
|
- status: undefined,
|
|
|
- isPermanent: undefined
|
|
|
+const dialog = reactive<DialogOption>({
|
|
|
+ visible: false,
|
|
|
+ title: ''
|
|
|
});
|
|
|
|
|
|
-// 表单参数
|
|
|
-const form = ref<JobPositionForm>({
|
|
|
+const initFormData: JobPositionForm = {
|
|
|
id: undefined,
|
|
|
enterpriseId: '',
|
|
|
positionName: '',
|
|
|
@@ -317,17 +296,37 @@ const form = ref<JobPositionForm>({
|
|
|
isPermanent: 0,
|
|
|
status: '0',
|
|
|
remark: ''
|
|
|
+};
|
|
|
+
|
|
|
+const data = reactive<PageData<JobPositionForm, JobPositionQuery>>({
|
|
|
+ form: { ...initFormData },
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ enterpriseId: undefined,
|
|
|
+ positionName: undefined,
|
|
|
+ workAddress: undefined,
|
|
|
+ status: undefined,
|
|
|
+ isPermanent: undefined,
|
|
|
+ params: {}
|
|
|
+ },
|
|
|
+ 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 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 { queryParams, form, rules } = toRefs(data);
|
|
|
+
|
|
|
+// 企业选项
|
|
|
+const enterpriseOptions = ref<any[]>([]);
|
|
|
+
|
|
|
+// 日期范围
|
|
|
+const dateRange = ref<[string, string] | []>([]);
|
|
|
|
|
|
// 详情数据
|
|
|
const detailOpen = ref(false);
|
|
|
@@ -360,11 +359,6 @@ const resetQuery = () => {
|
|
|
handleQuery();
|
|
|
};
|
|
|
|
|
|
-/** 切换搜索显示 */
|
|
|
-const toggleSearch = () => {
|
|
|
- showSearch.value = !showSearch.value;
|
|
|
-};
|
|
|
-
|
|
|
/** 多选框选中数据 */
|
|
|
const handleSelectionChange = (selection: JobPositionVO[]) => {
|
|
|
ids.value = selection.map((item) => item.id);
|
|
|
@@ -374,22 +368,22 @@ const handleSelectionChange = (selection: JobPositionVO[]) => {
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
const handleAdd = () => {
|
|
|
- resetForm();
|
|
|
- open.value = true;
|
|
|
- title.value = '添加招聘岗位';
|
|
|
+ reset();
|
|
|
+ dialog.visible = true;
|
|
|
+ dialog.title = '添加招聘岗位';
|
|
|
};
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
const handleUpdate = async (row?: JobPositionVO) => {
|
|
|
- resetForm();
|
|
|
+ reset();
|
|
|
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 = '修改招聘岗位';
|
|
|
+ dialog.visible = true;
|
|
|
+ dialog.title = '修改招聘岗位';
|
|
|
};
|
|
|
|
|
|
/** 详情按钮操作 */
|
|
|
@@ -412,6 +406,8 @@ const handlePermanentChange = (val: number) => {
|
|
|
const submitForm = () => {
|
|
|
jobPositionFormRef.value?.validate(async (valid: boolean) => {
|
|
|
if (valid) {
|
|
|
+ buttonLoading.value = true;
|
|
|
+
|
|
|
// 处理日期范围
|
|
|
if (form.value.isPermanent === 0 && dateRange.value && dateRange.value.length === 2) {
|
|
|
form.value.startDate = dateRange.value[0];
|
|
|
@@ -419,14 +415,13 @@ const submitForm = () => {
|
|
|
}
|
|
|
|
|
|
if (form.value.id) {
|
|
|
- await updateJobPosition(form.value);
|
|
|
- proxy?.$modal.msgSuccess('修改成功');
|
|
|
+ await updateJobPosition(form.value).finally(() => (buttonLoading.value = false));
|
|
|
} else {
|
|
|
- await addJobPosition(form.value);
|
|
|
- proxy?.$modal.msgSuccess('新增成功');
|
|
|
+ await addJobPosition(form.value).finally(() => (buttonLoading.value = false));
|
|
|
}
|
|
|
- open.value = false;
|
|
|
- getList();
|
|
|
+ proxy?.$modal.msgSuccess('操作成功');
|
|
|
+ dialog.visible = false;
|
|
|
+ await getList();
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
@@ -434,27 +429,31 @@ const submitForm = () => {
|
|
|
/** 删除按钮操作 */
|
|
|
const handleDelete = async (row?: JobPositionVO) => {
|
|
|
const jobIds = row?.id || ids.value;
|
|
|
- await proxy?.$modal.confirm('是否确认删除选中的招聘岗位?');
|
|
|
+ await proxy?.$modal.confirm('是否确认删除选中的招聘岗位?').finally(() => (loading.value = false));
|
|
|
await delJobPosition(jobIds);
|
|
|
proxy?.$modal.msgSuccess('删除成功');
|
|
|
- getList();
|
|
|
+ await getList();
|
|
|
};
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
-const handleExport = async () => {
|
|
|
- await proxy?.$modal.confirm('是否确认导出所有招聘岗位数据?');
|
|
|
- await exportJobPosition(queryParams.value);
|
|
|
- proxy?.$modal.msgSuccess('导出成功');
|
|
|
+const handleExport = () => {
|
|
|
+ proxy?.download(
|
|
|
+ 'zsjy/position/export',
|
|
|
+ {
|
|
|
+ ...queryParams.value
|
|
|
+ },
|
|
|
+ `jobPosition_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
};
|
|
|
|
|
|
/** 取消按钮 */
|
|
|
const cancel = () => {
|
|
|
- open.value = false;
|
|
|
- resetForm();
|
|
|
+ reset();
|
|
|
+ dialog.visible = false;
|
|
|
};
|
|
|
|
|
|
/** 表单重置 */
|
|
|
-const resetForm = () => {
|
|
|
+const reset = () => {
|
|
|
form.value = {
|
|
|
id: undefined,
|
|
|
enterpriseId: '',
|
|
|
@@ -480,102 +479,107 @@ onMounted(() => {
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
-// 继承后勤管理的样式
|
|
|
+<style scoped>
|
|
|
.page-container {
|
|
|
- .search-btn-container {
|
|
|
- text-align: right;
|
|
|
- }
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ min-height: 100vh;
|
|
|
+}
|
|
|
|
|
|
- .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);
|
|
|
- }
|
|
|
+.search-btn-container {
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
|
|
|
- .card-header-vertical {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
+.button-card {
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
|
|
|
- .toolbar-title {
|
|
|
- font-size: 18px;
|
|
|
- font-weight: bold;
|
|
|
- color: #303133;
|
|
|
- }
|
|
|
+.table-card {
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
|
|
|
- .button-group {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 10px;
|
|
|
- }
|
|
|
+.table-container {
|
|
|
+ overflow-x: auto;
|
|
|
+}
|
|
|
|
|
|
- .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);
|
|
|
- }
|
|
|
+.scroll-table {
|
|
|
+ min-width: 100%;
|
|
|
+}
|
|
|
|
|
|
- .table-container {
|
|
|
- overflow-x: auto;
|
|
|
- }
|
|
|
+.pagination-container {
|
|
|
+ margin-top: 20px;
|
|
|
+ text-align: right;
|
|
|
+}
|
|
|
|
|
|
- .scroll-table {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
+.dialog-footer {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
|
|
|
- .pagination-container {
|
|
|
- text-align: right;
|
|
|
- padding-top: 20px;
|
|
|
- }
|
|
|
+:deep(.el-card__header) {
|
|
|
+ padding: 15px 20px;
|
|
|
+ border-bottom: 1px solid #ebeef5;
|
|
|
+ background-color: #fafafa;
|
|
|
+}
|
|
|
|
|
|
- .dialog-footer {
|
|
|
- text-align: right;
|
|
|
- }
|
|
|
+:deep(.el-table) {
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
|
|
|
- // 表格适应性样式
|
|
|
- :deep(.el-table) {
|
|
|
- .el-table__cell {
|
|
|
- padding: 8px 0;
|
|
|
- }
|
|
|
- }
|
|
|
+:deep(.el-table th) {
|
|
|
+ background-color: #fafafa;
|
|
|
+ color: #606266;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
|
|
|
- // 响应式表格
|
|
|
- :deep(.el-table__body-wrapper) {
|
|
|
- overflow-x: auto;
|
|
|
- }
|
|
|
+:deep(.el-button--plain) {
|
|
|
+ border-color: #dcdfe6;
|
|
|
+ color: #606266;
|
|
|
+}
|
|
|
|
|
|
- // 表格列宽自适应
|
|
|
- .el-table {
|
|
|
- width: 100%;
|
|
|
- table-layout: auto;
|
|
|
- }
|
|
|
+:deep(.el-button--plain:hover) {
|
|
|
+ border-color: #409eff;
|
|
|
+ color: #409eff;
|
|
|
}
|
|
|
|
|
|
-// 操作按钮样式
|
|
|
-.action-buttons {
|
|
|
- display: flex;
|
|
|
- gap: 8px;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- white-space: nowrap;
|
|
|
+:deep(.el-button--primary.is-plain) {
|
|
|
+ border-color: #409eff;
|
|
|
+ color: #409eff;
|
|
|
}
|
|
|
|
|
|
-// 描述列表样式优化
|
|
|
-:deep(.el-descriptions) {
|
|
|
- .el-descriptions__label {
|
|
|
- font-weight: 600;
|
|
|
- color: #606266;
|
|
|
- width: 120px;
|
|
|
- }
|
|
|
+:deep(.el-button--success.is-plain) {
|
|
|
+ border-color: #67c23a;
|
|
|
+ color: #67c23a;
|
|
|
+}
|
|
|
|
|
|
- .el-descriptions__content {
|
|
|
- color: #303133;
|
|
|
- }
|
|
|
+:deep(.el-button--danger.is-plain) {
|
|
|
+ border-color: #f56c6c;
|
|
|
+ color: #f56c6c;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-button--warning.is-plain) {
|
|
|
+ border-color: #e6a23c;
|
|
|
+ color: #e6a23c;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-form-item__label) {
|
|
|
+ color: #606266;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-input__wrapper) {
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-select .el-input__wrapper) {
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-date-editor .el-input__wrapper) {
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
+.exclusive-relation-text {
|
|
|
+ color: #909399;
|
|
|
+ line-height: 1.2;
|
|
|
+ word-break: break-word;
|
|
|
}
|
|
|
</style>
|