<template>
    <div class="startFrom">
        <el-dialog title="任务详情" v-model="dialogVisible" :fullscreen="true" :close-on-click-modal="false">
            <div class="startDetail">
                <p class="starttitleSty">单据信息：</p>
                <el-row class="danjuMsg">
                    <el-col :span="6">
                        <div class="danjuMsg_data">
                            <span class="data_tit">业务编号:</span>
                            <span>{{receiptMsg.code}}</span>
                        </div>
                        <div class="danjuMsg_data">
                            <span class="data_tit">创建日期:</span>
                            <span>{{receiptMsg.createDate}}</span>
                        </div>
                    </el-col>
                    <el-col :span="6">
                        <div class="danjuMsg_data">
                            <span class="data_tit">业务简述:</span>
                            <span>{{receiptMsg.des}}</span>
                        </div>
                        <div class="danjuMsg_data">
                            <span class="data_tit">业务类别:</span>
                            <span>{{receiptMsg.type}}</span>
                        </div>
                    </el-col>
                    <el-col :span="6">
                        <div class="danjuMsg_data">
                            <span class="data_tit">流程状态:</span>
                            <span>{{receiptMsg.stage}}</span>
                        </div>
                        <div class="danjuMsg_data">
                            <span class="data_tit">年度:</span>
                            <span>{{receiptMsg.year}}</span>
                        </div>
                    </el-col>
                    <el-col :span="6">
                        <div class="danjuMsg_data">
                            <span class="data_tit">创建人:</span>
                            <span>{{receiptMsg.creator}}</span>
                        </div>
                        <div class="danjuMsg_data">
                            <span class="data_tit">单据状态:</span>
                            <span>{{receiptMsg.recStage}}</span>
                        </div>
                    </el-col>
                </el-row>
                <div class="detaTableBtns">
                    <div class="tableBtn add" @click="addTableDetail" v-if="activeName === 'second'">
                        <img :src="addIcon" alt="">
                        <span>新增</span>
                    </div>
                    <div class="tableBtn save" @click="saveDetail">
                        <img :src="saveIcon" alt="">
                        <span>保存</span>
                    </div>
                    <!-- <div class="tableBtn edit">
                        <img :src="editIcon" alt="">
                        <span>新增</span>
                    </div> -->
                    <!-- <div class="tableBtn delete">
                        <img :src="deleteIcon" alt="">
                        <span>删除</span>
                    </div> -->
                    <div class="tableBtn import" @click="handleImport">
                        <img :src="importIcon" alt="">
                        <span>导入</span>
                    </div>
                    <div class="tableBtn export" @click="handleExport">
                        <img :src="exportIcon" alt="">
                        <span>导出</span>
                    </div>
                </div>
                <el-tabs v-model="activeName" class="tasktabs" @tab-click="handleClick">
                    <el-tab-pane label="考评指标项内容" name="first">
                        <el-table :data="quantifiedList.slice((pageLeft.currentPage-1)*pageLeft.pagesize, pageLeft.currentPage*pageLeft.pagesize)" style="width: 100%">
                            <el-table-column type="index" label="序号" width="80" />
                            <el-table-column label="业务类别" prop="stageName" />
                            <el-table-column label="所属板块" prop="sectionName" />
                            <el-table-column label="单位名称" prop="organizationShortName" width="300" />
                            <el-table-column label="填报部门"  prop="deptName" width="260" />
                            <el-table-column label="指标分类" prop="typeName" />
                            <el-table-column label="指标名称" prop="childName" v-if="instanceChild.defKey === 'yddwkplc' || instanceChild.defKey === 'jddwkplc'" />
                            <el-table-column label="指标项" prop="optionName" v-if="instanceChild.defKey === 'yddwkplc' || instanceChild.defKey === 'jddwkplc'" />
                            <el-table-column label="计划值" width="150">
                                <template #default="scope">
                                    <el-input-number v-model="scope.row.quantifiedValue"
                                     :precision="2" :step="0.1" :disabled="!scope.row.updateMark"/>
                                </template>
                            </el-table-column>
                            <el-table-column label="单位" prop="unit" />
                             <el-table-column label="审核状态">
                                <template #default="scope">
                                    <el-select v-model="scope.row.state" placeholder="请选择审核状态" :disabled="!scope.row.updateMark">
                                        <el-option
                                        v-for="item in statusData"
                                        :key="item.id"
                                        :label="item.name"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                        </el-table>
                        <el-pagination
                            @current-change="handleCurrentChangeLeft"
                            :current-page="pageLeft.currentPage"
                            :page-size="pageLeft.pagesize"
                            layout="total, prev, pager, next, jumper"
                            :total="pageLeft.total">
                        </el-pagination>
                    </el-tab-pane>
                    <el-tab-pane label="考评评价指标内容" name="second">
                        <el-table :data="nonQuantifiedList.slice((pageRight.currentPage-1)*pageRight.pagesize, pageRight.currentPage*pageRight.pagesize)" style="width: 100%">
                            <el-table-column type="index" label="序号" width="80" />
                            <el-table-column label="单位名称" prop="organizationShortName" width="300">
                                <template #default="scope">
                                    <el-select v-model="scope.row.organizationShortName" placeholder="请选择单位名称"
                                    :disabled="!scope.row.showInput"
                                     @change="changeOrgZa">
                                        <el-option
                                        v-for="item in orgruleData"
                                        :key="item.id"
                                        :label="item.shortName"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                            <el-table-column label="指标分类" prop="typeName">
                                <template #default="scope">
                                    <el-select v-model="scope.row.typeName" :disabled="!scope.row.showInput" placeholder="请选择指标分类">
                                        <el-option
                                        v-for="item in indicatorTypeData"
                                        :key="item.id"
                                        :label="item.typeName"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                            <el-table-column label="业务阶段" prop="stageName">
                                <template #default="scope">
                                    <el-select v-model="scope.row.stageName" placeholder="请选择业务阶段"
                                    :disabled="!scope.row.showInput"
                                     @change="(val)=>changeIndic(val, scope.row)">
                                        <el-option
                                        v-for="item in stageData"
                                        :key="item.id"
                                        :label="item.stageName"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                            <el-table-column label="业务属性" prop="sectionName">
                                <template #default="scope">
                                    <el-select v-model="scope.row.sectionName" placeholder="请选择业务阶段"
                                    :disabled="!scope.row.showInput"
                                     @change="(val)=>changeIndic(val, scope.row)">
                                        <el-option
                                        v-for="item in sectionNameArr"
                                        :key="item.id"
                                        :label="item.secName"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                            <el-table-column label="指标名称" prop="childName">
                                <template #default="scope">
                                    <el-select v-model="scope.row.childName" placeholder="请选择业务阶段"
                                    :disabled="!scope.row.showInput"
                                     @change="changeDept">
                                        <el-option
                                        v-for="item in indicItemoptions"
                                        :key="item.id"
                                        :label="item.indicatorName"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                            <el-table-column label="填报部门" prop="deptName" width="260">
                                <template #default="scope">
                                    <el-select v-model="scope.row.deptName" placeholder="请选择业务阶段" :disabled="!scope.row.showInput">
                                        <el-option
                                        v-for="item in deptNameArr"
                                        :key="item.id"
                                        :label="item.deptName"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                            <el-table-column label="指标项" prop="optionName">
                                <template #default="scope">
                                    <el-input v-model="scope.row.optionName" disabled />
                                </template>
                            </el-table-column>
                            <el-table-column label="值">
                                <template #default="scope">
                                    <el-input v-model="scope.row.nonQuantifiedValue"
                                     :disabled="(taskDefKey === 'nddwkplc' && scope.row.showInput) || !scope.row.updateMark" />
                                </template>
                            </el-table-column>
                            <el-table-column label="审核状态">
                                <template #default="scope">
                                    <el-select v-model="scope.row.state" placeholder="请选择审核状态" :disabled="!scope.row.updateMark">
                                        <el-option
                                        v-for="item in statusData"
                                        :key="item.id"
                                        :label="item.name"
                                        :value="item.id">
                                        </el-option>
                                    </el-select>
                                </template>
                            </el-table-column>
                        </el-table>
                        <el-pagination
                            @current-change="handleCurrentChangeRight"
                            :current-page="pageRight.currentPage"
                            :page-size="pageRight.pagesize"
                            layout="total, prev, pager, next, jumper"
                            :total="pageRight.total">
                        </el-pagination>
                    </el-tab-pane>
                    <!-- $utils.havePurview('taskList:twoLevel:see') -->
                    <el-tab-pane label="查看得分" name="three">
                        <el-table :data="pointList" style="width: 100%">
                            <el-table-column type="index" label="序号" width="80" />
                            <el-table-column label="单位名称" prop="organizationShortName" width="300" />
                            <el-table-column label="部门名称" prop="keyName" />
                            <el-table-column label="指标名称" prop="indicatorName" />
                            <el-table-column label="业务类别"  prop="stageName" width="260" />
                            <el-table-column label="所属板块" prop="sectionName" />
                            <el-table-column label="计算得分" prop="score" />
                            <el-table-column label="折算得分" prop="obversionScore" >
                                <template #default="scope">
                                    <el-input-number v-model="scope.row.obversionScore" :precision="2" :step="0.1" :min="0" />
                                </template>
                            </el-table-column>
                        </el-table>
                    </el-tab-pane>
                </el-tabs>
                <div>
                    <p class="starttitleSty">审批意见：</p>
                    <el-input v-model="descMsg" :rows="3" type="textarea" placeholder="请输入审批意见"></el-input>
                </div>
            </div>
            <template #footer>
                <span class="dialog-footer">
                    <el-button type="primary" @click="examineAndApprove('agree')">同 意</el-button>
                    <el-button @click="examineAndApprove('reject')">拒 绝</el-button>
                </span>
            </template>
        </el-dialog>
        <import-dailog ref="importPage" @successImport="successImport" @importLoading="importLoading"></import-dailog>
    </div>
</template>

<script>
import importDailog from '../importPage/importDailog.vue'
import {apiGettaskevalStartDetail,apiGettaskmothAyearDetail,apiGetindicatorsaveBatchDto, 
apiPostIsdoAction, apiPostgetInstanceAndChildren, apiGetindicatorListAll,apiGetscoreCountList,apiPostScoreCountSave,
 apiGetOrganizationRule, apiGetbinstageList, apiGetIndicatorTypeList, apiGetOrgEvaInfoBatchDto} from '../../api/api'
import addIcon from '../../assets/btnIcon/add.png'
import saveIcon from '../../assets/btnIcon/save.png'
import editIcon from '../../assets/btnIcon/edit.png'
import deleteIcon from '../../assets/btnIcon/delete.png'
export default {
    components: {
        importDailog
    },
    data() {
        return {
            dialogVisible: false,
            activeName: 'first',
            quantifiedList: [],
            nonQuantifiedList: [],
            pointList: [],
            changeDateSelect: [],
            receiptMsg: {
                code: '',
                des: '',
                stage: '',
                creator: '',
                createDate: '',
                type: '',
                year: '',
                recStage: ''
            },
            pageLeft:{
                pagesize: 15,
                currentPage: 1,
                total: 0
            },
            pageRight:{
                pagesize: 15,
                currentPage: 1,
                total: 0
            },
            addIcon: addIcon,
            saveIcon: saveIcon,
            editIcon: editIcon,
            deleteIcon: deleteIcon,
            rowMsg: {},
            descMsg: '',
            instanceChild: {},
            orgruleData: [],
            indicatorTypeData: [],
            stageData: [],
            sectionNameArr: [],
            indicItemoptions: [],
            deptNameArr: [],
            statusData: [],
            taskDefKey: '',
            tastbizKey: ''
        }
    },
    created() {
        this.statusData = [
            {
                name: '已完成',
                id: '1'
            },
            {
                name: '待审核',
                id: '0'
            },
            {
                name: '未开始',
                id: '-1'
            }
        ]
    },
    methods: {
        init(row) {
            this.dialogVisible = true
            this.activeName = 'first'
            this.instanceChild = {}
            this.descMsg = ''
            this.getTaskId(row)
            this.getindList()
            this.rowMsg = row
        },
        handleClick() {
            this.changeDateSelect = []
        },
        // 获取得分数据
        getPointData(id) {
            let that = this
            let params = {
                organizationEvaluationId: id
            }
            apiGetscoreCountList(params).then(datas =>{
                if (datas && datas.data) {
                    that.pointList = datas.data
                }
            })
        },
        // 根据流程ID获取业务ID
        getTaskId(row) {
            let that = this
            let params = {
                id: row.instId,
                iamCode: window.localStorage.getItem('code')
            }
            apiPostgetInstanceAndChildren(params).then(datas =>{
                if (datas && datas.data) {
                    that.instanceChild = datas.data.data.bpmInstance
                    let keyId = datas.data.data.bpmInstance.bizKey
                    that.tastbizKey = datas.data.data.bpmInstance.bizKey
                    that.taskDefKey = datas.data.data.bpmInstance.defKey
                    that.getevalStartDetails(keyId, that.instanceChild.defKey)
                    that.getOrgRule(keyId, that.instanceChild.defKey)
                }
            })
        },
        //获取详情
        getevalStartDetails(id, defKey) {
            let that = this
            let params = {
                id: id
            }
            if (defKey === 'yddwkplc' || defKey === 'jddwkplc') {
                apiGettaskmothAyearDetail(params).then(datas =>{
                    that.getDataMsg(defKey, datas)
                })
            } else if(defKey === 'dwkpmbqd') {
                apiGettaskevalStartDetail(params).then(datas =>{
                    that.getDataMsg('dwkpmbqd', datas)
                })
            }
            that.getPointData(id)
        },
        getindList() {
            let that = this
            let params = {
                type: 2
            }
            apiGetbinstageList(params).then(datas =>{
                if (datas && datas.data) {
                    that.stageData = datas.data
                }
            })
            apiGetIndicatorTypeList(params).then(datas =>{
                if (datas && datas.data) {
                    that.indicatorTypeData = datas.data
                }
            })
        },
        // 考评评价指标内容
        getOrgRule(id, type) {
            let that = this
            let params = {
                id: id,
                type: type === 'dwkpmbqd' ? 'mb' :  'kp'
            }
            apiGetOrganizationRule(params).then(datas =>{
                if (datas && datas.data) {
                    that.orgruleData = datas.data
                }
            })
        },
        getDataMsg(types, datas) {
            if (datas && datas.data) {
                let item = datas.data
                this.receiptMsg = {
                    code: types === 'dwkpmbqd'?item.responsibilityCode:item.organizationEvaluationCode,
                    des: item.des,
                    stage: item.stage,
                    creator: item.createBy,
                    createDate: item.createTime,
                    type: item.checkCycle === 'YDKP'?'月度考评':item.checkCycle === 'JDKP'?'季度考评':'年度考评',
                    year: item.year,
                    recStage: '有效'
                }
                this.quantifiedList = item.map.quantifiedList
                this.pageLeft.total = item.map.quantifiedList.length
                this.nonQuantifiedList = item.map.nonQuantifiedList
                this.pageRight.total = item.map.nonQuantifiedList.length
            }
        },
        changeOrgZa(val) {
            this.sectionNameArr = []
            this.orgruleData.forEach(item =>{
                if (item.id === val) {
                    let obj = {
                        id: item.binSection,
                        secName: item.binSectionName
                    }
                    this.sectionNameArr.push(obj)
                }
            })
        },
        changeIndic(val, row) {
            if (row.stageName !== '' && row.sectionName !== '') {
                this.getIndListAll(row)
            }
        },
        changeDept(val) {
            this.deptNameArr = []
            this.indicItemoptions.forEach(item =>{
                if (item.id === val) {
                    let obj = {
                        id: item.dept,
                        deptName: item.deptName
                    }
                    this.deptNameArr.push(obj)
                }
            })
        },
        getIndListAll(row) {
            let that = this
            let params = {
                binSection: row.sectionName,
                binStage: row.stageName
            }
            apiGetindicatorListAll(params).then(datas =>{
                if (datas && datas.data) {
                    that.indicItemoptions = datas.data
                }
            })
        },
        addTableDetail() {
            let obj = {
                showInput: true,
                stageName: '',
                sectionName: '',
                organizationName: '',
                deptName: '',
                typeName: '',
                optionName: '',
                nonQuantifiedValue: ''
            }
            this.nonQuantifiedList.unshift(obj)
        },
        saveDetail() {
            let that = this
            let params = []
            if (that.activeName === 'first') {
                that.quantifiedList.forEach(item =>{
                    let obj = {
                        id: item.id,
                        isQuantified: '是',
                        quantifiedValue: item.quantifiedValue,
                        state: item.state
                    }
                    params.push(obj)
                })
            } else if(that.activeName === 'second') {
                that.nonQuantifiedList.forEach(item =>{
                    let obj = {
                        isQuantified: '否',
                        quantifiedValue: 0.0,
                        optionCode: 'ZRMB', // 指标项
                        nonQuantifiedValue: item.nonQuantifiedValue,
                        state: item.state
                    }
                    if (that.taskDefKey === 'dwkpmbqd') {
                        obj.deptResponsibilityId = that.tastbizKey
                    } else  {
                        obj.organizationEvaluationId = that.tastbizKey
                    }
                    if (item.showInput) {
                        obj.organizationEvaluationRuleId = item.organizationName //单位id
                        obj.indicatorId = item.childName //指标id
                        
                    } else {
                        obj.id = item.id
                        obj.organizationEvaluationRuleId = item.organizationEvaluationRuleId
                        obj.indicatorId = item.indicatorId
                    }
                    params.push(obj)
                })
            } else {
                that.pointList.forEach(item =>{
                    let obj = {
                        id: item.id,
                        obversionScore: item.obversionScore
                    }
                    params.push(obj)
                })
            }
            if (that.activeName === 'first' || that.activeName === 'second') {
                if (that.taskDefKey === 'dwkpmbqd') {
                    apiGetindicatorsaveBatchDto(params).then(datas =>{
                        that.getsaveDataMsg(datas)
                    })
                } else {
                    apiGetOrgEvaInfoBatchDto(params).then(datas =>{
                        that.getsaveDataMsg(datas)
                    })
                }
            } else {
                apiPostScoreCountSave(params).then(datas =>{
                    that.getsaveDataMsg(datas)
                })
            }
        },
        getsaveDataMsg(datas) {
            if (datas) {
                if (datas.success) {
                    this.$message({
                        message: '保存成功',
                        type: 'success'
                    });
                    this.getevalStartDetails(this.tastbizKey, this.taskDefKey)
                } else {
                    this.$message({
                        message: datas.data,
                        type: 'error'
                    })
                }
            }
        },
        examineAndApprove(type) {
            let that = this
            let actionCS = ''
            if (type === 'agree') {
                if (that.rowMsg.taskType === 'SIGN') {
                    actionCS = 'signAgree'
                } else if (that.rowMsg.taskType === 'NORMAL') {
                    actionCS = 'agree'
                }
            } else {
                if (that.rowMsg.taskType === 'SIGN') {
                    actionCS = 'signReject'
                } else if (that.rowMsg.taskType === 'NORMAL') {
                    actionCS = 'reject'
                }
            }
            let params = {
                taskId: that.rowMsg.id, //任务ID
                nodeId: that.rowMsg.nodeId, //节点ID
                action: actionCS, //固定值
                instanceId: that.rowMsg.instId, //流程实例ID
                opinion: that.descMsg, //审批意见
                iamCode: window.localStorage.getItem('code'), //认证后code值
                taskName: that.rowMsg.name,
                defKey: that.instanceChild.defKey,
                bizKey: that.instanceChild.bizKey
            }
            apiPostIsdoAction(params).then(datas =>{
                if (datas && datas.data) {
                    if (datas.data.isOk) {
                        that.$message({
                            message: datas.data.data,
                            type: 'success'
                        })
                        that.dialogVisible = false
                        that.$emit('approveMsg', datas.data.isOk)
                    } else {
                        that.$message({
                            message: datas.data.msg,
                            type: 'error'
                        })
                    }
                }
            })
        },
        handleImport() {
            let title = ''
            let url = ''
            if (that.instanceChild.defKey === 'yddwkplc' || that.instanceChild.defKey === 'jddwkplc') {
                title = '月/季度单位信息导入'
                url = '/organization-evaluation-info/import'
            } else {
                title = '考评目标信息导入'
                url = '/responsibility-indicator-info/import'
            }
            this.$refs.importPage.upload.title = title
            this.$refs.importPage.upload.open = true
            this.$refs.importPage.upload.url = url
        },
        successImport(val) {
            this.getevalStartDetails(this.rowMsg.id, this.instanceChild.defKey)
        },
        handleExport() {
            let data = []  //接口返回数据
            const workbook = new ExcelJS.Workbook()
            const worksheet = workbook.addWorksheet('Sheet1')
            //根据数据自己调整
            let colums = []
            colums = [
                { header: 'ID', key: 'id', width: 26 },
                { header: '单位名称', key: 'organizationShortName', width: 26 },
                { header: '指标分类', key: 'typeName', width: 18 },
                { header: '业务阶段', key: 'stageName', width: 18 },
                { header: '业务属性', key: 'sectionName', width: 18 },
                { header: '指标名称', key: 'childName', width: 18 },
                { header: '填报部门', key: 'deptName', width: 26 },
            ]
            if (this.activeName === 'first') {
                colums.push(
                    { header: '目标值', key: 'quantifiedValue', width: 18 },
                    { header: '单位', key: 'unit', width: 18 },
                    { header: '审核状态', key: 'state', width: 18 }
                )
                this.quantifiedList.forEach(item =>{
                    if (item.updateMark) {
                        data.push(item)
                    }
                })
            } else {
                colums.push(
                    { header: '值', key: 'nonQuantifiedValue', width: 18 },
                    { header: '审核状态', key: 'state', width: 18 }
                )
                this.nonQuantifiedList.forEach(item =>{
                    if (item.updateMark) {
                        data.push(item)
                    }
                })
            }
            worksheet.columns = colums
            worksheet.getRow(1).font = {
                size: 12,
                bold: true
            }
            worksheet.addRows(data)

            workbook.xlsx.writeBuffer().then(buffer => {
                //这里为type
                const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' })
                fileSave(blob, `数据导出.xlsx`)
            })
        },
        handleCurrentChangeLeft(val) {
            this.pageLeft.currentPage = val
        },
        handleCurrentChangeRight(val) {
            this.pageRight.currentPage = val
        },
    }
}
</script>

<style lang="less">
.startFrom{
    .el-overlay{
        .el-dialog{
            .el-dialog__body{
                padding: 0 20px !important;
                .startDetail{
                    .starttitleSty{
                        font-size: 18px;
                        font-family: Microsoft YaHei;
                        font-weight: bold;
                        color: #3B7AD1;
                        // line-height: 12px;
                        margin: 20px 0 20px 10px;
                    }
                    .danjuMsg{
                        border: 1px solid #D6DBEA;
                        padding: 10px 20px;
                        border-radius: 10px;
                        margin-bottom: 20px;
                        .danjuMsg_data{
                            padding: 5px 0 10px 0;
                            .data_tit{
                                margin-right: 10px;
                                font-weight: bold;
                                font-size: 14px;
                                font-family: Microsoft YaHei;
                                color: #8991B0;
                            }
                            .data_tit_wd{
                                display: inline-block;
                                width: 90px;
                            }
                            .el-form-item--small{
                                .el-input{
                                    height: 25px;
                                    width: 160px;
                                }
                                margin-bottom: 0;
                                .el-input-number{
                                    height: 25px;
                                    .el-input-number__decrease, .el-input-number__increase{
                                        right: -39px;
                                    }
                                }
                            }
                        }
                    }
                    .el-select, .el-input{
                        width: 100%;
                    }
                    .detaTableBtns{
                        display: flex;
                        width: 340px;
                        position: relative;
                        top: 32px;
                        left: 80vw;
                        z-index: 11111;
                        .tableBtn {
                            display: flex;
                            margin-right: 30px;
                            width: 13%;
                            img{
                                margin-right: 5px;
                                margin-top: 1px;
                            }
                            span{
                                font-size: 14px;
                                font-family: Microsoft YaHei;
                                font-weight: 400;
                            }
                        }
                        .add{
                            cursor: pointer;
                            span{
                                color: #3B7AD1;
                            }
                        }
                        .save{
                            cursor: pointer;
                            span{
                                color: #50C14E;
                            }
                        }
                        .edit{
                            span{
                                color: #F5A623;
                            }
                        }
                        .delete{
                            cursor: no-drop;
                            span{
                                color: #F65177;
                            }
                        }
                        .export{
                            cursor: pointer;
                            span{
                                color: #2baa8a;
                            }
                        }
                        .import{
                            cursor: pointer;
                            span{
                                color: #ce1e78;
                            }
                        }
                    }
                    .tasktabs{
                        .el-tabs__header{
                            .el-tabs__nav{
                                .el-tabs__item{
                                    font-size: 18px;
                                    font-family: Microsoft YaHei;
                                    font-weight: bold;
                                    margin: 0 10px;                                    
                                    color: #8991B0;
                                }
                                .is-active{
                                    font-size: 18px;
                                    font-family: Microsoft YaHei;
                                    font-weight: bold;
                                    color: #3B7AD1;
                                    margin: 0 10px;
                                }
                            }
                        }
                        
                        .el-table{
                            margin-bottom: 10px;
                            .el-table__body-wrapper{
                                height: 38vh !important;
                            }
                            .el-table__row{
                                .cell{
                                    .el-input{
                                        height: 24px;
                                        .el-input__inner{
                                            height: 24px;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .el-dialog__footer{
                .dialog-footer{
                    display: flex;
                    justify-content: center;
                    .el-button{
                        width: 180px !important;
                        height: 40px !important;
                    }
                }
            }
        }
    }
    
}
</style>