<template>
    <div class="app-container">
        <el-dialog title="查询" :visible.sync="query" width="60%" append-to-body>
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
                label-width="130px">
                <el-form-item label="学年" prop="schoolYear">
                    <el-select v-model="queryParams.schoolYear" clearable placeholder="请选择" style="width: 100%;">
                        <el-option v-for="dict in dict.type.yearda" :key="dict.value" :label="dict.label"
                            :value="dict.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="学期" prop="semester">
                    <el-select v-model="queryParams.semester" clearable placeholder="请选择" style="width: 100%;">
                        <el-option v-for="dict in dict.type.semester_jsdzda" :key="dict.value" :label="dict.label"
                            :value="dict.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="届别" prop="year">
                    <el-select v-model="queryParams.year" clearable placeholder="请选择" style="width: 100%;">
                        <el-option v-for="dict in dict.type.rankda" :key="dict.value" :label="dict.label"
                            :value="dict.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="年级" prop="grade">
                    <el-select v-model="queryParams.grade" clearable placeholder="请选择" style="width: 100%;">
                        <el-option v-for="dict in dict.type.grade_da" :key="dict.value" :label="dict.label"
                            :value="dict.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="姓名" prop="name">
                    <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable @keyup.enter.native="handleQuery" />
                </el-form-item>
                <el-form-item label="开始时间" prop="startTime">
                    <el-date-picker clearable v-model="queryParams.startTime" type="date" value-format="yyyy-MM-dd"
                        placeholder="请选择" :style="{ width: '100%' }">
                    </el-date-picker>
                </el-form-item>
                <el-form-item label="结束时间" prop="endTime">
                    <el-date-picker clearable v-model="queryParams.endTime" type="date" value-format="yyyy-MM-dd"
                        placeholder="请选择" :style="{ width: '100%' }">
                    </el-date-picker>
                </el-form-item>
                <el-row>
                    <div style="display: flex; justify-content: center;">
                        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
                        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
                    </div>
                </el-row>


            </el-form>
        </el-dialog>
        <el-row :gutter="10" class="mb8">
            <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-search" size="mini" @click="handleQuerycx">查询</el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
                    v-hasPermi="['school:youthTeacher:add']">新增</el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
                    v-hasPermi="['school:youthTeacher:edit']">修改</el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
                    v-hasPermi="['school:youthTeacher:remove']">删除</el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
                    v-hasPermi="['school:youthTeacher:export']">导出</el-button>
            </el-col>
            <el-col :span="1.5">
                <el-button type="warning" plain icon="el-icon-upload" size="mini" @click="handleImport"
                    v-hasPermi="['school:youthTeacher:export']">导入</el-button>
            </el-col>
            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
        </el-row>

        <el-table v-loading="loading" :data="youthTeacherList" @selection-change="handleSelectionChange"
            :row-style="{ height: '1px' }" :cell-style="{ padding: '0px' }"
            :header-cell-style="{ height: '0px', fontSize: '12px', padding: '0 0' }">
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column label="学年" align="center" prop="schoolYear" />
            <el-table-column label="学期" align="center" prop="semester">
                <template slot-scope="scope">
                    <dict-tag :options="dict.type.semester_jsdzda" :value="scope.row.semester" />
                </template>
            </el-table-column>
            <el-table-column label="年级" align="center" prop="grade" />
            <el-table-column label="姓名" align="center" prop="name" />
            <el-table-column label="青年教师培养期" align="center" prop="incubationPeriod" />
            <el-table-column label="师生同考成绩" align="center" prop="sameExamResults" />
            <el-table-column label="研做高考题情况" align="center" prop="situation" />
            <el-table-column label="操作" width="180px" align="center" class-name="small-padding fixed-width">
                <template slot-scope="scope">
                    <el-button size="mini" type="text" icon="el-icon-edit" @click="handleLook(scope.row)"
                        v-hasPermi="['school:youthTeacher:edit']">详情</el-button>
                    <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
                        v-hasPermi="['school:youthTeacher:edit']">修改</el-button>
                    <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
                        v-hasPermi="['school:youthTeacher:remove']">删除</el-button>
                </template>
            </el-table-column>
        </el-table>

        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
            @pagination="getList" />

        <!-- 添加或修改青年教师成长档案对话框 -->
        <el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
            <el-form ref="form" :model="form" :rules="rules" label-width="120px">
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="学年" prop="schoolYear">
                            <el-select v-model="form.schoolYear" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.yearda" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="学期" prop="semester">
                            <el-select v-model="form.semester" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.semester_jsdzda" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="届别" prop="year">
                            <el-select v-model="form.year" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.rankda" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="年级" prop="grade">
                            <el-select v-model="form.grade" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.grade_da" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="学科" prop="sub">
                            <el-select v-model="form.sub" clearable placeholder="请选择" style="width: 100%">
                                <el-option v-for="dict in dict.type.teaching_subjects" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="班级" prop="className">
                            <el-input v-model="form.className" placeholder="请输入班级" />
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="姓名" prop="name">
                            <el-input v-model="form.name" placeholder="请输入姓名" />
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="身份证号" prop="idCard">
                            <el-input v-model="form.idCard" placeholder="请输入身份证号" />
                        </el-form-item>
                    </el-col>
                </el-row>

                <el-row>
                    <el-col :span="12">
                        <el-form-item label="青年教师培养期" prop="incubationPeriod">
                            <el-input v-model="form.incubationPeriod" placeholder="请输入青年教师培养期" />
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="师生同考成绩" prop="sameExamResults">
                            <el-input v-model="form.sameExamResults" placeholder="请输入师生同考成绩" />
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="研做高考题情况" prop="situation">
                            <el-input  v-model="form.situation" placeholder="请输入研做高考题情况" />
                        </el-form-item>
                    </el-col>

                </el-row>
                <el-row>
                    <el-col :span="24">
                        <el-form-item label="优质课比赛:" prop="classCompetitionName">
                            <FileUploadNewstu @input="getFileList" :limit="1" :value="fileList"></FileUploadNewstu>
                        </el-form-item>

                    </el-col>
                </el-row>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitForm">确 定</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>
        <!-- 查看青年教师成长档案对话框 -->
        <el-dialog :title="title" :visible.sync="look" width="900px" append-to-body>
            <el-form ref="form" :model="form" label-width="120px">
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="学年" prop="schoolYear">
                            <el-select v-model="form.schoolYear" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.yearda" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="学期" prop="semester">
                            <el-select v-model="form.semester" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.semester_jsdzda" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="届别" prop="year">
                            <el-select v-model="form.year" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.rankda" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="年级" prop="grade">
                            <el-select v-model="form.grade" clearable placeholder="请选择" style="width: 100%;">
                                <el-option v-for="dict in dict.type.grade_da" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="学科" prop="sub">
                            <el-select v-model="form.sub" clearable placeholder="请选择" style="width: 100%">
                                <el-option v-for="dict in dict.type.teaching_subjects" :key="dict.value" :label="dict.label"
                                    :value="dict.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="班级" prop="className">
                            <el-input v-model="form.className" placeholder="请输入班级" />
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="姓名" prop="name">
                            <el-input v-model="form.name" placeholder="请输入姓名" />
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="身份证号" prop="idCard">
                            <el-input v-model="form.idCard" placeholder="请输入身份证号" />
                        </el-form-item>
                    </el-col>
                </el-row>

                <el-row>
                    <el-col :span="12">
                        <el-form-item label="青年教师培养期" prop="incubationPeriod">
                            <el-input v-model="form.incubationPeriod" placeholder="请输入青年教师培养期" />
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="师生同考成绩" prop="sameExamResults">
                            <el-input v-model="form.sameExamResults" placeholder="请输入师生同考成绩" />
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="研做高考题情况" prop="situation">
                            <el-input  v-model="form.situation" placeholder="请输入研做高考题情况" />
                        </el-form-item>
                    </el-col>

                </el-row>
                <el-row>
                    <el-col :span="24">
                        <el-form-item label="优质课比赛:">
                            <li class="el-upload-list__item ele-upload-list__item-content">
                                <el-link :href="`${baseUrl}${form.classCompetitionUrl}`" :underline="false" target="_blank">
                                    <span class="el-icon-document"> {{ form.classCompetitionName }} </span>
                                </el-link>
                            </li>
                        </el-form-item>
                    </el-col>
                </el-row>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitForm">确 定</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>
        <!-- 导入对话框 -->
        <el-dialog :title="title" :visible.sync="uploadOpen" width="520px" append-to-body inline @close="cancel">
            <el-form ref="uploadForm" :model="uploadForm" :rules="rules" label-width="70px">
                <el-form-item prop="dataUrl">
                    <el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers"
                        :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading"
                        :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag>
                        <i class="el-icon-upload"></i>
                        <div class="el-upload__text">
                            将文件拖到此处，或<em>点击上传</em>
                        </div>
                        <div class="el-upload__tip text-center" slot="tip">
                            <span>仅允许导入xls、xlsx格式文件。</span>
                            <el-link type="primary" :underline="false" style="font-size: 12px; vertical-align: baseline"
                                @click="importTemplate">下载模板
                            </el-link>
                        </div>
                    </el-upload>
                </el-form-item>
            </el-form>
            <div class="mask" v-if="importing">
                <div class="mask-content">
                    <i class="el-icon-loading"></i>
                    <span>正在导入，请稍候...</span>
                </div>
            </div>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitFileForm">确 定</el-button>
                <el-button @click="cancelFile">取 消</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>

import {
    listYouthTeacher, getYouthTeacher, delYouthTeacher, addYouthTeacher, updateYouthTeacher
} from "@/api/smartSchool/electronicArchives/electronicRecords";
import FileUploadNewstu from "@/components/FileUploadNewstu";
import { commonUpload } from "@/api/common";
import { getToken } from '@/utils/auth'
import { checkIdcard } from '@/utils/utilLibrary/validate'
export default {
    name: "YouthTeacher",
    components: {
        FileUploadNewstu,
    },
    dicts: ["teaching_subjects", 'semester_jsdzda', 'exam_typeda', 'grade_da', 'class_type', 'yearda', 'rankda', 'appointment_situation', 'appointment_positions', 'class_num', 'audit_states'],
    data() {
        return {
            uploadOpen: false,
            upload: {
                // 是否显示弹出层（用户导入）
                open: false,
                // 弹出层标题（用户导入）
                title: "",
                // 是否禁用上传
                isUploading: false,
                // 是否更新已经存在的用户数据
                updateSupport: 0,
                // 设置上传的请求头部
                headers: { Authorization: "Bearer " + getToken() },
                // 上传的地址
                url:
                    process.env.VUE_APP_BASE_API + "/school/youthTeacher/importData",
            },
            uploadForm: {},
            baseUrl: [process.env.VUE_APP_BASE_API],
            uploadLoading: false,
            uploadFileLoading: false,
            importing: false,
            isUpload: false,
            baseUrl: process.env.VUE_APP_BASE_API,
            query: false,
            // 遮罩层
            loading: true,
            // 选中数组
            ids: [],
            // 非单个禁用
            single: true,
            // 非多个禁用
            multiple: true,
            // 显示搜索条件
            showSearch: true,
            // 总条数
            total: 0,
            fileList: [],
            // 青年教师成长档案表格数据
            youthTeacherList: [],
            // 弹出层标题
            title: "",
            // 是否显示弹出层
            open: false,
            look: false,
            // 查询参数
            queryParams: {
                pageNum: 1,
                pageSize: 10,
                schoolYear: null,
                semester: null,
                year: null,
                grade: null,
                sub: null,
                className: null,
                name: null,
                idCard: null,
                incubationPeriod: null,
                sameExamResults: null,
                situation: null,
                highQuality: null,
                classCompetition: null,
            },
            // 是否显示附件名称
            isShow: true,
            // 表单参数
            form: {},
            // 表单校验
            rules: {
                schoolYear: [
                    { required: true, message: "学年不能为空", trigger: "blur" }
                ],
                semester: [
                    { required: true, message: "学期不能为空", trigger: "blur" }
                ],
                year: [
                    { required: true, message: "界别不能为空", trigger: "blur" }
                ],
                grade: [
                    { required: true, message: "年级不能为空", trigger: "blur" }
                ],
                sub: [
                    { required: true, message: "学科不能为空", trigger: "blur" }
                ],
                className: [
                    { required: true, message: "班级不能为空", trigger: "blur" }
                ],
                name: [
                    { required: true, message: "姓名不能为空", trigger: "blur" }
                ],
                idCard: [{ required: true, validator: checkIdcard, trigger: 'blur' }],
                incubationPeriod: [
                    { required: true, message: "青年教师培养期不能为空", trigger: "blur" }
                ],

            }
        };
    },
    created() {
        this.getList();
    },
    methods: {
        /** 导入按钮操作 */
        handleImport(row) {
            this.reset();
            this.title = "导入"
            this.uploadOpen = true
        },
        handleFileUploadProgress(event, file, fileList) {
            this.upload.isUploading = true;
            this.importing = true;
            // console.log(event, file, fileList);
        },

        // 文件上传成功处理
        handleFileSuccess(response, file, fileList) {
            this.uploadOpen = false
            this.upload.isUploading = false
            this.importing = false;
            this.$refs.upload.clearFiles()
            this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + '</div>', '导入结果', { dangerouslyUseHTMLString: true })
            this.getList()
        },
        // 提交上传文件
        submitFileForm() {
            this.$refs.upload.submit()
        },
        //下载模版
        importTemplate() {
            this.download(
                "/school/youthTeacher/download",
                {},
                `青年教师成长档案_${Date.now()}.xlsx`
            );
        },
        cancelFile() {
            this.uploadOpen = false
            this.upload.isUploading = false
            this.$refs.upload.clearFiles()
        },
        /** 搜索按钮操作 */
        handleQuerycx() {
            this.query = true;
        },
        /** 查询青年教师成长档案列表 */
        getList() {
            this.loading = true;
            listYouthTeacher(this.queryParams).then(response => {
                this.youthTeacherList = response.rows;
                this.total = response.total;
                this.loading = false;
            });
        },
        /** 查看按钮操作 */
        handleLook(row) {
            this.reset();
            const id = row.id || this.ids
            getYouthTeacher(id).then(response => {
                this.form = response.data;
                this.form.classCompetitionUrl = response.data.classCompetitionUrl;
                console.log(this.form.classCompetitionUrl, 'this.form.classCompetitionUrl');
                this.form.classCompetitionName = response.data.classCompetitionName;
                console.log(this.form.classCompetitionName, 'this.form.classCompetitionName');
                this.look = true;
                this.title = "查看青年教师成长档案";
            });
        },

        // 取消按钮
        cancel() {
            this.open = false;
            this.look = false;
            this.reset();
        },
        // 表单重置
        reset() {
            this.form = {
                id: null,
                schoolYear: null,
                semester: null,
                year: null,
                grade: null,
                sub: null,
                className: null,
                name: null,
                idCard: null,
                incubationPeriod: null,
                sameExamResults: null,
                situation: null,
                highQuality: null,
                classCompetition: null,
                createBy: null,
                createTime: null,
                updateBy: null,
                updateTime: null,
                delFlag: null
            };
            this.fileList = []; // 清空附件列表
            this.resetForm("form");
        },
        // 附件上传回调函数
        getFileList(data) {
            console.log('data', data);
            this.fileList = data;
            if (this.fileList.length != 0) {
                this.form.classCompetitionUrl = data[0].url;
                console.log(this.form.classCompetitionUrl, 'this.form.classCompetitionUrl');
                this.form.classCompetitionName = data[0].name;
                console.log(this.form.classCompetitionName, 'this.form.classCompetitionName');
            } else {
                this.form.classCompetitionUrl = '';
                this.form.classCompetitionName = '';


            }
        },


        /** 搜索按钮操作 */
        handleQuery() {
            this.queryParams.pageNum = 1;
            this.getList();
            this.query = false;
        },
        /** 重置按钮操作 */
        resetQuery() {
            this.resetForm("queryForm");
            this.handleQuery();
        },
        // 多选框选中数据
        handleSelectionChange(selection) {
            this.ids = selection.map(item => item.id)
            this.single = selection.length !== 1
            this.multiple = !selection.length
        },
        /** 新增按钮操作 */
        handleAdd() {
            this.reset();
            this.open = true;
            this.title = "添加青年教师成长档案";
        },
        /** 修改按钮操作 */
        handleUpdate(row) {
            const id = row.id || this.ids;
            getYouthTeacher(id).then(response => {
                this.form = response.data;
                if (this.form.classCompetitionUrl == '' || this.form.classCompetitionUrl == undefined || this.form.classCompetitionUrl == null) {
                    this.fileList = [];
                } else {
                    this.fileList = [{
                        url: this.form.classCompetitionUrl,
                        name: this.form.classCompetitionName,
                    }];
                }
                this.open = true;
                this.title = "修改青年教师成长档案";
            });
        },

        /** 提交按钮 */
        submitForm() {
            this.$refs["form"].validate(valid => {
                if (valid) {
                    // this.fileList.classCompetitionName = this.form.classCompetitionName;
                    // this.fileList.classCompetitionUrl = this.form.classCompetitionUrl;
                    // console.log(this.form.fileList, 'this.form.fileList');
                    if (this.form.id != null) {
                        updateYouthTeacher(this.form).then(response => {
                            this.$modal.msgSuccess("修改成功");
                            this.open = false;
                            this.getList();
                        });
                    } else {
                        addYouthTeacher(this.form).then(response => {
                            this.$modal.msgSuccess("新增成功");
                            this.open = false;
                            this.getList();
                        });
                    }
                }
            });
        },
        /** 删除按钮操作 */
        handleDelete(row) {
            const ids = row.id || this.ids;
            this.$modal.confirm('是否确认删除青年教师成长档案编号为"' + ids + '"的数据项？').then(function () {
                return delYouthTeacher(ids);
            }).then(() => {
                this.getList();
                this.$modal.msgSuccess("删除成功");
            }).catch(() => { });
        },
        /** 导出按钮操作 */
        handleExport() {
            this.download('/school/youthTeacher/export', {
                ...this.queryParams
            }, `青年教师成长档案_${new Date().getTime()}.xlsx`)
        }
    }
};
</script>
<style lang="scss" scoped>
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mask-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a74be;
    font-size: 16px;
}

.search ::v-deep .el-form-item__content {
    width: 200px
}

::v-deep .el-form-item {
    margin-bottom: 0px;
}

::v-deep .el-input--medium .el-input__inner {
    height: 26px;
    line-height: 26px;
}

::v-deep .el-dialog__body {
    padding: 10px 20px
}

::v-deep .el-dialog:not(.is-fullscreen) {
    margin-top: 4vh !important;
}

.search ::v-deep .el-form-item__content {
    width: 200px
}
</style>