<template>
    <div class="notification">
        <div class="notificationBtn">
            <div class="collectSeach" :style="$utils.collectSeachSty()">
                <div class="PeriodBtn">
                    <btns
                    :showImport="false"
                    :showExport="false"
                    :showRelease="true"
                    :showCancelRelease="true"
                    :addName="'新建通告'"
                    :disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
                    :disDelete="changeDateSelect.length === 0"
                    :disImport="false"
                    :disExport="false"
                    @handleAdd="handleAdd"
                    @handleEdit="handleEdit"
                    @handleDelete="handleDelete"
                    @handleRelease="handleRelease"
                    @handleCancelRelease="handleCancelRelease"
                    ></btns>
                </div>
                <div style="display: flex;">
                    <div class="exceed">
                        <!-- <span class="exceedSpan">通告标题：</span> -->
                        <el-input v-model="noticeTitle" placeholder="请输入通告标题"></el-input>
                    </div>
                    <seachs :showRest="false" @handleSeach="getSeachData" @handleRest="resetSeach"></seachs>
                </div>
            </div>
            
            <div class="notificationTableData">
                <el-table :data="notificationData" style="width: 100%" @select="rowClick" @select-all="rowClick" :class="notificationTableSty()">
                    <el-table-column type="selection" label="操作" align="center"></el-table-column>
                    <!-- <el-table-column label="序号" prop="serialNumber" align="center" width="80"></el-table-column> -->
                    <el-table-column label="发布状态" prop="releaseState" width="100" align="center">
                        <template #default="scope">
                            <span class="statusSty"
                             :style="scope.row.releaseState === '已发布'?'background:#61C760':scope.row.releaseState === '未发布'?'background:#5093E1':'background:#9DA5BE'">
                             {{scope.row.releaseState}}
                             </span>
                        </template>
                    </el-table-column>
                    <el-table-column label="通告标题" width="200">
                        <template #default="scope">
                            <el-tooltip
                                class="box-item"
                                effect="customized"
                                :content="scope.row.noticeTitle"
                                placement="right"
                            >
                                <span class="tooltipCCDes">{{scope.row.noticeTitle}}</span>
                            </el-tooltip>
                        </template>
                    </el-table-column>
                    <el-table-column label="通告内容" width="400">
                        <template #default="scope">
                            <el-tooltip
                                class="box-item"
                                effect="customized"
                                :content="scope.row.noticeContent"
                                placement="right"
                            >
                                <span class="tooltipCC">{{scope.row.noticeContent}}</span>
                            </el-tooltip>
                        </template>
                    </el-table-column>
                    <el-table-column label="发布部门" prop="releaseDeptName" width="200" />
                    <el-table-column label="发布至" prop="sendTo" />
                    <el-table-column label="发布人" prop="releasePeopleName" />
                    <el-table-column label="发布时间" prop="createTime" />
                    <el-table-column label="发布" width="80" align="center">
                        <template #default="scope">
                            <img :src="cancelW" style="cursor:pointer" v-if="scope.row.releaseState === '已发布'" @click="changeStatus(scope.row, '未发布')">
                            <img :src="fabuW" style="cursor:pointer" v-else @click="changeStatus(scope.row, '已发布')">
                        </template>
                    </el-table-column>
                    <el-table-column label="修改" width="80" align="center">
                        <template #default="scope">
                            <img :src="editW" style="cursor:pointer" @click="handleEdit(scope.row)">
                        </template>
                    </el-table-column>
                    <el-table-column label="删除" width="80" align="center">
                        <template #default="scope">
                            <img :src="deleteW" style="cursor:pointer" @click="handleDelete(scope.row)">
                        </template>
                    </el-table-column>
                </el-table>
                <el-pagination
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="page.currentPage"
                    :page-size="page.pagesize"
                    layout="total, prev, pager, next, jumper"
                    :total="page.total">
                </el-pagination>
            </div>
            <el-dialog :title="title" custom-class="startToDia" v-model="dialogVisible" width="900px" :close-on-click-modal="false">
                <div class="notifcaFrom">
                    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">      
                        <el-form-item label="公告标题" prop="noticeTitle">
                            <el-input v-model="ruleForm.noticeTitle" :disabled="isDisable"  placeholder="请输入公告标题" />
                        </el-form-item>
                        <el-form-item label="公告内容" prop="noticeContent">
                            <!-- <pre v-if="isSave">{{ruleForm.noticeContent}}</pre> -->
                            <el-input v-model="ruleForm.noticeContent" :disabled="isDisable"
                            type="textarea" :rows="10" placeholder="请输入公告内容"></el-input>
                            
                        </el-form-item>
                        <el-form-item label="发布对象" prop="sendTo">
                            <el-select v-model="ruleForm.sendTo" :disabled="isDisable" placeholder="请选择发布对象">
                                <el-option
                                v-for="item in sendToData"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-row>
                            <el-col :span="12" v-if="ruleForm.sendTo === '个别部门'">
                                <el-form-item label="个别部门" prop="sendToContent">
                                    <el-select v-model="ruleForm.sendToContent" :disabled="isDisable" multiple collapse-tags placeholder="请选择部门">
                                        <el-option
                                        v-for="item in departData"
                                        :key="item.id"
                                        :label="item.name"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item label="排序">
                                    <el-input-number v-model="ruleForm.serialNumber" :disabled="isDisable" :min="1" />
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-form-item label="">
                            <div class="uploadFiles">
                                <el-upload
                                    :file-list="filesList"
                                    multiple
                                    limit="3"
                                    :auto-upload="false"
                                    :show-file-list="false"
                                    >
                                    <el-button
                                        color="#3B7AD1"
                                        size="mini"
                                        :disabled="isDisable"
                                        >
                                        <img :src="fileW" style="margin-right: 10px">
                                        <span>添加附件</span>
                                    </el-button>
                                    <template #tip>
                                        <div class="el-upload__tip">
                                            最多上传3个文件
                                        </div>
                                    </template>
                                </el-upload>
                            </div>
                            <!-- <notic-upload></notic-upload> -->
                        </el-form-item>
                        <el-form-item label="">
                            <div class="fliesHeader">
                                <span>附件名</span>
                                <span>发送单位</span>
                                <span>操作</span>
                            </div>
                            <div v-for="it in filesList" :key="it.uid">
                                <div class="fliesMain">
                                    <div>
                                        <img :src="file" style="margin-right: 10px" >
                                        <span class="fliesMainSpan spanOne">{{it.name}}</span>
                                    </div>
                                    <span class="fliesMainSpan spanTwo">{{!isSave ? userMes.unitName : it.releaseDeptName}}</span>
                                    <div class="removeDiv">
                                        <!-- <div @click="previewFile(it)" style="cursor:pointer">
                                            <img :src="yulan" style="margin-right: 10px;" >
                                            <span>预览</span>
                                        </div> -->
                                        <div @click="removeFile(it)" style="cursor:pointer">
                                            <img :src="fileDelete" class="removeImg">
                                            <span>删除</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <template  v-if="isSave">
                                <div v-for="it in filesListEdit" :key="it">
                                    <div class="fliesMain">
                                        <div>
                                            <img :src="file" style="margin-right: 10px" >
                                            <span class="fliesMainSpan spanOne">{{it.fileName}}</span>
                                        </div>
                                        <span class="fliesMainSpan spanTwo">{{it.releaseDept}}</span>
                                        <div class="fileOperate">
                                            <div @click="previewFile(it)" style="cursor:pointer">
                                                <img :src="yulan" style="margin-right: 10px;" >
                                                <span>预览</span>
                                            </div>
                                            <div @click="removeFileFn(it)" style="cursor:pointer">
                                                <img :src="fileDelete" class="removeImg">
                                                <span>删除</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </template>
                        </el-form-item>
                    </el-form>
                </div>
                <template #footer v-if="!isDisable">
                    <span class="notificationFooter">
                        <el-button type="primary" size="mini" @click="saveevaluaStart('ruleForm', '发布')" :disabled="showButton">
                            <img :src="release" style="margin-right: 10px">
                            <span>发布公告</span>
                        </el-button>
                        <el-button type="warning" size="mini" @click="saveevaluaStart('ruleForm', '草稿')" :disabled="showButton">
                            <img :src="draft" style="margin-right: 10px">
                            <span>保存草稿</span>
                        </el-button>
                        <!-- <el-button @click="saveevaluaStart('ruleForm', '取消')">取 消</el-button> -->
                    </span>
                </template>
            </el-dialog>
        </div>
    </div>
</template>

<script>
import btns from '../elbuttonS.vue'
import seachs from '../seachGroup.vue'
import fabuW from '../../assets/btnIcon/fabuW.png'
import cancelW from '../../assets/btnIcon/cancelW.png'
import editW from '../../assets/btnIcon/edit.png'
import deleteW from '../../assets/btnIcon/delete.png'
import fileW from '../../assets/btnIcon/fileW.png'
import file from '../../assets/btnIcon/file.png'
import yulan from '../../assets/btnIcon/yulan.png'
import fileDelete from '../../assets/btnIcon/fileDelete.png'
import draft from '../../assets/btnIcon/draft.png'
import release from '../../assets/btnIcon/release.png'
import {apiGetevaluationdeptnoticeList, apiGetevaluationdeptnoticeSave,apievaluationdeptnoticeDelete,apiGetuploadAttachment,
apiGetorganizationstructureFromTree, apiPostevaluationdeptnoticeDelete, apiPostevaluationdeptnoticeModifiedState,
apiGetevaluationdeptnoticeFilePreview} from '../../api/api'

// import noticUpload from './notificaUpload.vue'
export default {
    components: {
        btns,
        seachs,
        // noticUpload
    },
    data() {
        return {
            winPix: window.devicePixelRatio,
            innerWidth: window.innerWidth,
            dialogVisible: false,
            isSave: false,
            isDisable: false,
            showButton: false,
            title: '',
            evalradio: {},
            changeDateSelect: [],
            notificationData:[],
            filesData: [],
            departData: [],
            sendToData: [],
            fabuW: fabuW,
            cancelW: cancelW,
            editW: editW,
            deleteW: deleteW,
            draft: draft,
            release: release,
            fileW: fileW,
            file: file,
            yulan: yulan,
            fileDelete: fileDelete,
            page:{
                pagesize: 12,
                currentPage: 1,
                total: 0
            },
            ruleForm: {
                serialNumber: 1,
                noticeTitle: '',
                noticeContent: '',
                sendTo: '',
                sendToContent: [],
                releaseDept: '',
                releasePeople: '',
            },
            filesList: [],
            filesListEdit: [],
            filesConcent: '',
            filesUrl: '',
            rules: {
                noticeTitle: [
                    { required: true, message: '请输入通告标题', trigger: 'blur' }
                ],
                noticeContent: [
                    { required: true, message: '请输入通告内容', trigger: 'blur' }
                ],
                sendTo: [
                    { required: true, message: '请选择通告对象', trigger: 'change' }
                ],
                sendToContent: [
                    { required: true, message: '请选择个别部门', trigger: 'change' }
                ]
            },
            noticeTitle: '',
            userMes: {},
            headers: { "Content-Type": "multipart/form-data" },
            fileType: [ "pdf", "doc", "docx", "xls", "xlsx","txt","png","jpg", "bmp", "jpeg"]
        }
    },
    created() {
        this.userMes = JSON.parse(window.sessionStorage.getItem('user'))
        this.sendToData = [
            {
                label: '所有单位',
                value: '所有单位'
            },
            {
                label: '本部部门',
                value: '本部部门'
            },
            {
                label: '个别部门',
                value: '个别部门'
            }
        ]
        this.getevalunotificationList()
        this.getDepartmentFromTreeData()
    },
    methods:{
        // 查询列表页面
        getevalunotificationList() {
            let that = this
            let params = {
                pageNum: that.page.currentPage,
                pageSize: that.page.pagesize,
                noticeTitle: that.noticeTitle
            }
            apiGetevaluationdeptnoticeList(params).then(datas =>{
                if (datas && datas.data) {
                    that.notificationData = datas.data.records
                    that.page.total = datas.data.total
                }
            })
        },
        // 查询部门
        getDepartmentFromTreeData() {
            let that = this
            let params = {
                id: '23031001',
                num: 1,
                type: 140
            }
            apiGetorganizationstructureFromTree(params).then(datas =>{
                if (datas && datas.data) {
                    that.departData = datas.data[0].children
                }
            })
        },
        notificationTableSty() {
            if (this.winPix === 1.25 || this.innerWidth < 1800) {
                return 'notification125Table'
            } else {
                return 'notification100Table'
            }
        },
        notificationFn() {
            if (this.notificationData.length>0) {
                notificationData.slice((page.currentPage-1)*page.pagesize, page.currentPage*page.pagesize)
            }
        },
        //修改状态
        changeStatus(row, type) {
            let that = this
            let params = {
                ids: row.id,
                releaseState: type
            }
            apiPostevaluationdeptnoticeModifiedState(params).then(datas =>{
                if (datas.success) {
                    that.getevalunotificationList()
                }
            })
        },
        handleRelease() {
            this.changeDataRelease('已发布')
        },
        handleCancelRelease() {
            this.changeDataRelease('未发布')
        },
        //多个数据发布或取消发布
        changeDataRelease(type) {
            let that = this
            let idsArr = []
            that.changeDateSelect.forEach(item =>{
                idsArr.push(item.id)
            })
            let params = {
                ids: idsArr.join(','),
                releaseState: type
            }
            apiPostevaluationdeptnoticeModifiedState(params).then(datas =>{
                if (datas.success) {
                    that.getevalunotificationList()
                }
            })
        },
        saveevaluaStart(formName, type) {
            let that = this
            that.$refs[formName].validate((valid) => {
                if (valid) {
                    that.saveAndEditnotificationData(type)
                }
            });
        },
        //新增/修改考评启动数据
        saveAndEditnotificationData(type) {
            let that = this
            that.showButton = true
            let params = {
                serialNumber: that.ruleForm.serialNumber,
                noticeTitle: that.ruleForm.noticeTitle,
                noticeContent: that.ruleForm.noticeContent,
                sendTo: that.ruleForm.sendTo,
                sendToContent: that.ruleForm.sendToContent.join(','),
                releaseState: type === '草稿'? '草稿': type === '发布'?'已发布':'未发布',
                releaseDept: that.userMes.deptId,
                releaseDeptName: that.userMes.deptName,
                releasePeople: that.userMes.id,
                releasePeopleName: that.userMes.name
            }
            if (type === '发布') {
                params.releaseDate = that.$utils.getAllTime(new Date())
            }
            if (that.isSave) {
                params.id = that.evalradio.id
            }
            // formData.append('deptNames', 'deptNames')
            apiGetevaluationdeptnoticeSave(params).then(datas =>{
                if (!datas.success) {
                    that.$message({
                        message: datas.message,
                        type: 'error'
                    });
                    that.showButton = false
                } else {
                    const formData = new FormData()
                    if (that.filesList.length>0) {
                        that.filesList.forEach(item =>{
                            formData.append('files', item.raw)
                        })
                        apiGetuploadAttachment({id: datas.data}, formData).then(request =>{
                            if (request.success) {
                                if (!that.isSave) {
                                    that.$message({
                                        message: '通告新增成功',
                                        type: 'success'
                                    });
                                } else {
                                    that.$message({
                                        message: '通告修改成功',
                                        type: 'success'
                                    });
                                }
                                that.showButton = false
                                that.dialogVisible = false
                                that.changeDateSelect = []
                                that.getevalunotificationList()
                            }
                        })
                    } else {
                        if (!that.isSave) {
                            that.$message({
                                message: '通告新增成功',
                                type: 'success'
                            });
                        } else {
                            that.$message({
                                message: '通告修改成功',
                                type: 'success'
                            });
                        }
                        that.showButton = false
                        that.dialogVisible = false
                        that.changeDateSelect = []
                        that.getevalunotificationList()
                    }
                }
            })
        },
        getSeachData() {
            this.page.currentPage = 1
            this.getevalunotificationList()
        },
        resetSeach() {
            this.page.currentPage = 1
            this.noticeTitle = ''
            this.getevalunotificationList()
        },
        handleSizeChange(val){
            this.page.pagesize = val
            this.getevalunotificationList()
        },
        handleCurrentChange(val){
            this.page.currentPage =val
            this.getevalunotificationList()
        },
        rowClick(selection, row) {
            this.changeDateSelect = selection
        },
        handleAdd() {
            this.dialogVisible = true
            this.isSave = false
            this.isDisable = false
            this.title = '公告发布'
            this.$nextTick(() =>{
                this.$refs['ruleForm'].resetFields()
                this.filesList = []
                this.ruleForm = {
                    serialNumber: 1,
                    noticeTitle: '',
                    noticeContent: '',
                    sendTo: '',
                    sendToContent: [],
                    releaseDept: '',
                    releasePeople: ''
                }
            })
        },
        handleEdit(row) {
            this.dialogVisible = true
            this.isSave = true
            this.isDisable = false
            this.title = '公告发布'
            this.filesList = []
            this.filesListEdit = []
            if (row) {
                this.evalradio = row
            } else {
                this.evalradio = this.changeDateSelect[0]
            }
            if (this.evalradio.releaseState === '已发布') {
                this.isDisable = true
            }
            // let conStr = ''
            // for(let i in this.evalradio.noticeContent) {
            //     let it = this.evalradio.noticeContent[i]
            //     if (it === ' ' && i !== 0 && this.evalradio.noticeContent[i-1] !== ' ') {
            //         it = it+'\n'
            //     }
            //     conStr += it 
            // }
            this.ruleForm = {
                serialNumber: this.evalradio.serialNumber*1,
                noticeTitle: this.evalradio.noticeTitle,
                noticeContent: this.evalradio.noticeContent,
                sendTo: this.evalradio.sendTo,
                sendToContent: this.evalradio.sendToContent.split(','),
                releaseDept: this.evalradio.releaseDept,
                releasePeople: this.evalradio.releasePeople
            }
            if (this.evalradio.memo4 !== '') {
                let filesNameArr = this.evalradio.memo4.split(',')
                let filesUrlArr = this.evalradio.noticeAnnex.split(',')
                let filesArr = []
                filesNameArr.forEach((iv, index) =>{
                    let obj = {
                        releaseDept: this.evalradio.releaseDeptName,
                        fileName: iv,
                        fileUrl: filesUrlArr[index]
                    }
                    filesArr.push(obj)
                })
                this.filesListEdit = filesArr
            }
        },
        //删除
        handleDelete(row) {
            this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                let that = this
                let paramsStr = ''
                if (row) {
                    paramsStr = row.id
                } else {
                    let paramsArr = []
                    that.changeDateSelect.forEach(it =>{
                        paramsArr.push(it.id)
                    })
                    paramsStr = paramsArr.join(',')
                }
                apiPostevaluationdeptnoticeDelete(paramsStr).then(datas =>{
                    that.$message({
                        type: 'success',
                        message: '删除成功!'
                    });
                    that.getevalunotificationList()
                    that.changeDateSelect = []
                })
            })
        },
        //上传文件之前验证文件类型和大小
        beforeUpload(file) {
            // this.ruleForm.files = []
            if (file.type != "" || file.type != null || file.type != undefined){
                //截取文件的后缀，判断文件类型
                const FileExt = file.name.replace(/.+\./, "").toLowerCase();
                //计算文件的大小
                const isLt5M = file.size / 1024 / 1024 < 5; //这里做文件大小限制
                //如果大于5M
                if (!isLt5M) {
                    this.$message({
                    message: '上传文件大小不能超过 5MB!',
                    type: 'info'
                    });
                    return false;
                }
                //如果文件类型不在允许上传的范围内
                if(this.fileType.includes(FileExt)){
                    return true;
                }
                else {
                    this.$message.error("上传文件格式不正确!");
                    return false;
                }
            }
        },
        previewFile(it) {
            let downipcc = ''
            let previewipcc = ''
            if (window.location.hostname === '10.65.78.81') {
                downipcc = 'http://10.65.79.83:86'
                previewipcc = 'http://10.65.79.83:8012'
            } else {
                downipcc = 'http://10.65.78.23:18600'
                previewipcc = 'http://10.65.78.23:8012'
            }
            let downUrl = `${downipcc}/f-center/hadoop/hdfs/download?path=${it.fileUrl}`
            let previewUrl = `${previewipcc}/onlinePreview?hdfs=true&url=${encodeURIComponent(downUrl)}`
            window.open(previewUrl)
        },
        //移除文件
        removeFile(item) {
            for (var i in this.filesList) {
                if (item.name == this.filesList[i].name) {
                    this.filesList.splice(i, 1)
                }
            }
        },
        removeFileFn(item) {
            this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                let that = this
                let params = {
                    id: that.evalradio.id,
                    docPath: item.fileUrl
                }
                apievaluationdeptnoticeDelete(params).then(datas =>{
                    if (datas.success) {
                        that.filesListEdit.forEach((it, index) =>{
                            if (it.fileName === item.fileName) {
                                that.filesListEdit.splice(index, 1)
                            }
                        })
                    } else {
                        this.$message({
                            message: datas.message,
                            type: 'error'
                        });
                    }
                })
            })
        }
    }
}
</script>

<style lang="less">
.notification{
    .notificationBtn{
        .collectSeach{
            display: flex;
            padding: 24px 20px 24px 0;
            border-bottom: 1px solid#D6DBEA;
            justify-content: space-between;
            .exceed{
                display: flex;
                .exceedSpan{
                    width: 100px;
                    height: 12px;
                    font-size: 14px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #8991B0;
                    line-height: 12px;
                    margin-top: 14px;
                }
                .el-input{
                    margin-right:10px;
                    height: 40px;
                    .el-input__inner{
                        height:40px;
                    }
                    .el-input__suffix{
                        .el-select__caret{
                            line-height:30px;
                        }
                    }
                }
            }
            .el-select{
                margin-right:10px;
                .el-input__inner{
                    height:30px;
                }
                .el-input__suffix{
                    .el-select__caret{
                        line-height:30px;
                    }
                }
            }
        }
        span{
            font-size:14px;
        }
        .PeriodBtn{
            display: flex;
            justify-content: flex-end;
        }
        .el-button{
            height: 30px;
            // width:100px;
            padding: 0 20px ;
            // padding-top: 8px;
            span{
                margin:0;
            }
        }
        .notificationTableData{
            margin-top: 20px;
            .notification125Table{
                .el-table__body-wrapper{
                    height: 60vh !important;
                }
            }
            .notification100Table{
                .el-table__body-wrapper{
                    height: 65vh !important;
                }
            }
            .el-table{
                .el-input__inner{
                    height: 30px !important;
                }
                .el-radio__label{
                    display: none;
                }
                .statusSty{
                    width: 52px;
                    height: 21px;
                    line-height: 21px;
                    display: inline-block;
                    border-radius: 3px;
                    color: #fff;
                }
                .tooltipCC{
                    width: 300px !important;
                    display: inline-block;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                .tooltipCCDes{
                    width: 200px;
                    display: inline-block;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                .indicitem{
                    color: #409EFF;
                    font-size: 12px;
                    margin-right: 20px;
                    cursor:pointer;
                    &:hover{
                        text-decoration: underline;
                    }
                }
            }
            .el-pagination{
                margin-top: 20px;
                text-align: end;
                position: relative;
            }
        }
        .el-overlay{
            .startToDia{
                margin-top: 3vh;
                background: #EDEFF5;
                .el-dialog__body{
                    padding: 30px 60px 30px 20px !important;
                    .notifcaFrom{
                        .el-select, .el-input{
                            width: 100%;
                        }
                        .el-input{
                            height: 30px;
                        }
                        .uploadFiles{
                            .el-button{
                                height: 25px !important;
                            }
                        }
                        .fliesHeader{
                            width: 100%;
                            display: flex;
                            justify-content: space-around;
                        }
                        .fliesMain{
                            width: 100%;
                            display: flex;
                            .fliesMainSpan{
                                display: inline-block;
                                width: 260px;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                white-space: nowrap;
                            }
                            .spanOne{
                                color: #1063CB;
                            }
                            .spanTwo{
                                text-align: center;
                            }
                            .fileOperate{
                                width: 160px;
                                display: flex;
                                justify-content: space-around;
                                .removeImg{
                                    margin-right: 10px;
                                    position: relative;
                                    top: 2px;
                                }
                            }
                            .removeDiv{
                                width: 160px;
                                .removeImg{
                                    margin: 0 10px 0 20px;
                                    position: relative;
                                    top: 3px;
                                }
                            }
                        }
                    }
                    .flowSty{
                        width: 100%;
                        height: 70vh;
                    }
                }
                .el-dialog__footer{
                    background: #fff;
                    border-radius: 0 0 10px 10px;
                    text-align: left;
                    padding-top: 20px !important;
                    .notificationFooter{
                        margin-left: 20px;
                        .el-button{
                            height: 40px !important;
                        }
                    }
                }
            }
        }
    }
    
}
</style>