<template>
    <div class="OKRList">
        <!-- <div class="topBox"> </div> -->
        <div class="title">
            我可见的目标
        </div>
        <div class="OKRBody">
            <div class="top-opt">
                <span class="year">
                    <el-select v-model="yearValue" clearable placeholder="年份" @change="yearChange">
                        <el-option
                        v-for="item in yearsOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"                       
                        >
                        </el-option>
                    </el-select>
                </span>
                 <span class="cycle">
                     <el-select v-model="cycleValue" clearable placeholder="周期" @change="cycleChange">
                        <el-option
                        v-for="item in cycleOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"                       
                        >
                        </el-option>
                    </el-select>
                 </span>
                 <span class="nameSearch">
                     <el-input
                        placeholder="请输入搜索的名字"
                        v-model="nameValue"
                        clearable>
                        <el-button slot="append" icon="el-icon-search" @click="searchName"></el-button>
                    </el-input>

                 </span>
                 <!-- <span class="search">
                     <el-button type="warning" round @click="search">搜索</el-button>
                 </span> -->
            </div>
            <div class="listBody" v-if="list.length>0">
                <div class="itemBody" @click="getThisOKR(item)" v-for="(item,index) in list" :key="index" >
                    <div class="item">
                        <div class="item-top">
                            <span class="jidu">第{{item.object.quarter}}季度</span>
                            <div class="targetName">
                                <span class="name">{{item.object.objectInfo}}</span>
                                <span class="progress">{{item.object.completion}}%</span>
                            </div>
                            <div class="krlist">
                                <span class="tip">KR</span>
                                <span class="num">关键成果<span style="width:10px;display:inline-block"></span> <span class="nums"> {{item.krList.length}}</span> </span>
                            </div>
                        </div>
                        <div class="item-bottom">
                            <span>负责人：{{item.name}}</span>
                        </div>
                    </div>
                </div>
            </div>
            <div v-else>
               <div class="noListData">
                   <img src="../assets/image/nodata.png" alt="" class="nodata">
                   <p class="tip">周几了，快喊人给你同步OKR吧</p>
               </div>
            </div>
        </div>
        <!-- okr 四象限 -->
        <el-dialog
            
            :visible.sync="dialogVisible"
            :width="isCurrentQuarter==1? '65%' : '40%'" 
                     
            >
            <div class="justOKRBody" v-if="isCurrentQuarter==0">              
                  <div class="taskBody targetBody editKRBody" >
                    <div class="targetO">
                        <span class="target-tip">O</span>
                        <span class="target-input">
                            <div class="currentO">{{currentData.object.objectInfo}}</div>
                        </span>    
                       
                    </div>                   
                    <div class="task-item">                      
                        <div class="targetKR" v-for="(item,index) in currentData.krList" :key="index">
                            <span class="tip"><span class="sc-bQduHL kArEgh"></span> KR</span>
                            <span class="info">
                                {{item.krInfo}}
                            </span>
                           
                            <span class="progress">
                                <span class="progressBar">
                                    <span class="krtitle">KR的完成进度：{{item.completion}}</span>
                                    
                                </span>
                            </span>
                        </div>                       
                    </div>
                </div>
            </div>
            <div class="fourBoxBody okrPage" v-if="isCurrentQuarter==1">
                <div class="title" >
                    {{time.year}}年第{{time.quarter}}季度OKR
                </div>      
                <div class="okrBody" v-if="okr.length>0">
                    <div class="okrBox first">
                        <div class="okrBox-title">
                            <p class="top-title">本周工作</p>
                        </div>
                        <div class="okrbox-list">
                            <ul>
                                <li v-for="(item) in taskInfoList" :key='item.id'>                           
                                    <el-popover
                                        placement="top-start"
                                        :title="'标题：'+item.taskTitle"
                                        width="300"
                                        trigger="hover"
                                        :content="'详细描述：'+item.taskInfo">  
                                        
                                        <span slot="reference" class="content">
                                            <span class="taskGrade">
                                                P{{item.priority}}
                                            </span> 
                                            {{item.taskTitle}}
                                        </span>                            
                                    </el-popover>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="okrBox second">
                        <div class="okrBox-title">
                            <p class="top-title">OKR</p>
                        </div>
                        <div class="objectList" v-for="(item,index) in okr" :key="index">
                            <div class="OBox">
                                <span class="O-tip">目标</span>
                                <span class="O-content">{{item.objectInfo.objectInfo}}</span>
                                <span class="O-opt">
                                    <el-progress type="circle" :width='60' :height='60' :percentage="item.objectInfo.completion" :color="colors"></el-progress>                          
                                </span>
                            </div>
                            <div class="KRBox">
                                <ul>
                                    <li v-for="(ele,index) in item.krList" :key="index">
                                        <span class="KR-tip">KR{{index+1}}</span>
                                        <span class="KR-content">{{ele.krInfo}}</span>
                                        <span class="KR-opt"> 
                                            <span style="width:80%">
                                                <el-progress :percentage="ele.completion"  color='#cc9966'></el-progress>
                                            </span>                                
                                            
                                        </span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="okrBox third">
                        <div class="okrBox-title">
                            <p class="top-title">未来四周计划</p>
                            
                        </div>
                        <div class="okrbox-list">
                            <ul>
                                <li v-for="(item) in taskFourWeek" :key='item.id'>                           
                                    <el-popover
                                        placement="top-start"
                                        :title="'标题：'+item.taskTitle"
                                        width="300"
                                        trigger="hover"
                                        :content="'详细描述：'+item.taskInfo">   
                                        <span slot="reference">
                                            <span class="taskGrade">
                                                P{{item.priority}}
                                            </span> 
                                            
                                            {{item.taskTitle}}
                                        </span>                            
                                    </el-popover>
                                    
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="okrBox four">
                        <div class="okrBox-title">
                            <p class="top-title">状态指标</p>
                        </div>
                        <div class="status-list">                  
                            <li v-for="item in status" :key='item.id' class="status">
                                <span class="itemStatus"  :style="'background-color:'+item.color"  >{{item.content}}</span>
                            </li>
                        </div>
                        <!-- <div class="status-list">
                        
                        <span v-for="item in status" :key='item.id' :style="'background-color:'+item.color" class="status" @click="editSatus(item)">
                            {{item.content}}
                        </span>
                        </div> -->
                    </div>
                </div>
            </div>
        </el-dialog>
    </div>
</template>

<script>
let cycleOptions=[
    // {
    //     label:'全部',
    //     value:0
    // },
    {
        label:'第一季度',
        value:1
    },
    {
        label:'第二季度',
        value:2
    },
    {
        label:'第三季度',
        value:3
    },
    {
        label:'第四季度',
        value:4
    },
]
import {postAction , getAction} from '@/utils/api/http.js'
export default {
    data() {
        return {
            yearValue:undefined,
            yearsOptions:[],
            cycleValue:undefined,
            cycleOptions,
            nameValue:undefined,
            dialogVisible:false,
            isCurrentQuarter:2,
            list:[],
            currentData:{
                object:{},
                krLiat:[]
            },


            okr:[],
            okrList:[],
            okrObject:{},
            taskInfoList:[],
            taskFourWeek:[],
            status:[],
            time:{},

            percentage: 0,
            colors: [
                {color: '#f56c6c', percentage: 30},
                {color: '#e6a23c', percentage: 60},
                {color: '#5cb87a', percentage: 80},
                {color: '#5cb87a', percentage: 100}
            ],
        }
    },
    // watch: {
    //     currentData:{
    //         deep:true
    //     }
    // },
    methods: {
        handleClose(done) {
            this.$confirm('确认关闭？')
            .then(_ => {
                done();
            })
            .catch(_ => {});
        },
        searchName(){
            // console.log(this.nameValue)
            this.getList()
        },
        yearChange(){
            console.log(this.yearValue,this.isCurrentQuarter)
            // this.getList()
            this.cycleValue=undefined
        },
        cycleChange(){
            console.log(this.cycleValue,this.isCurrentQuarter)
            if(this.yearValue=='' || this.yearValue==undefined){
                this.$message({
                    type:'warning',
                    message:'记得先选择年份哟~'
                });
                this.cycleValue=undefined
            }else{

                this.getList()
            }
            
        },

        getList(){
            this.isCurrentQuarter=2;
            this.list=[];
            postAction('/okr/okr/getSyncUserListByMemberId',{
                year:this.yearValue,
                quarter:this.cycleValue,
                name:this.nameValue
            }).then((res)=>{
                console.log(res);
                this.isCurrentQuarter=res.result.isCurrentQuarter;
                this.list=res.result.list
            })
        },
        getThisOKR(item){
            this.currentData={
                object:{},
                krLiat:[]
            },
            this.dialogVisible=true;
            console.log(item,this.isCurrentQuarter);
            if(this.isCurrentQuarter!=1){
                this.currentData=item
            }else{
                postAction('/okr/okr/getOkrInfo',{
                    userId:item.object.userId
                }
                ).then((res)=>{
                    console.log(res);
                    if(res.success){
                        this.okr=res.result.okr;
                        this.taskInfoList=res.result.taskInfoList;
                        this.taskFourWeek=res.result.taskFourWeekList;
                        
                        this.time=res.result.time
                        res.result.status.forEach((item,index)=>{
                            if(item.type=='1'){
                                item.color='#CC3300';
                            }else if(item.type=='2'){
                                item.color='#FFCC33';
                            }else{
                                item.color='#99CC99';
                            }
                        })
                        this.status=res.result.status;
                        this.okrObject=res.result.okr[0].objectInfo;
                    }
                })
            }
            
        },
    },
    mounted() {
        postAction('/okr/okr/getSyncUserListByMemberId',{
            
        }).then((res)=>{
            console.log(res);
            this.isCurrentQuarter=res.result.isCurrentQuarter;
            this.list=res.result.list;
            this.yearValue=res.result.year;
            this.cycleValue=res.result.quarter
        })
        postAction('/okr/okr/getObjectYear ',{           
        }).then((res)=>{
            console.log(res);
            this.yearsOptions=[]
            res.result.forEach((item)=>{
                this.yearsOptions.push({
                    label: `${item}`,
                    value:item
                })
            })
        })
    },
}
</script>

<style lang="less" scoped>
.OKRList{
     max-height: 300px;
    .topBox{
        height: 41px;
    }
    .title{
        background-color: #f4f6f9;
        padding-left: 20px;
        height: 80px;
        line-height: 80px;
        text-align: left;
    }
    .OKRBody{
        min-height: calc(100% - 121px);
        background: #fff;
        .top-opt{
            padding: 10px 20px;
            text-align: left;
            position: relative;
            .year,.cycle{
                width: 100px;
                display: inline-block;
                margin-right: 15px;
                // height: 20px;
                border-right: 1px solid #DCDFE6;
            }
            .nameSearch{
                width: 200px;
                display: inline-block;
                margin-right: 15px;
                padding-right: 15px;
                border-right: 1px solid #DCDFE6;
            }
            .search{
                display: inline-block;
                position: absolute;
                top: 10px;
                right: 20px;
            }
        }
        .listBody{
            display: flex;
            flex-wrap: wrap;
            .itemBody{
                width: 25%;                
                padding: 20px 0;
                box-sizing: border-box;
                
                .item{
                    width: 80%;
                    margin: 0 auto;
                    text-align: left;                   
                    box-sizing: border-box;
                    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 8px 0px;
                    .item-top{
                        background-color:#CC9966;
                        padding:15px 20px;
                        span{
                            display: inline-block;
                        }
                        .jidu{
                            display: inline-block;
                            // height: 20px;
                            // width: 60px;
                            padding: 5px 20px;
                            background: rgb(255, 255, 255);
                            border-radius: 20px;
                            font-size: 12px;
                            margin-bottom: 5px;
                        }
                        .targetName{
                            height: 40px;
                            margin: 10px 0;
                            display: flex;  
                            color: #fff;                   
                            .name{
                                height: 40px;
                                width: 80%;
                                line-height: 20px;
                                display: inline-block;
                                padding: 0 5px 0 0;
                                text-overflow: -o-ellipsis-lastline;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                display: -webkit-box;
                                -webkit-line-clamp: 2;
                                line-clamp: 2;
                                -webkit-box-orient: vertical;
                                font-size: 14px;
                            }
                            .progress{
                                width: 30%;
                                font-size: 30px;
                                font-weight: 500;
                                line-height: 40px;
                                color: #fff;
                                text-align: center;
                            }
                        }
                        .krlist{
                            .tip{
                                height: 17px;
                                width: 34px;
                                font-size: 12px;
                                color: #999;
                                margin-right: 10px;
                                text-align: center;
                                line-height: 18px;
                                background: rgba(255, 255, 255, 0.4);
                                border-radius: 11px;
                            }
                            .num{
                                font-size: 12px;
                                .nums{
                                    color:rgb(204, 51, 0);
                                    font-size: 14px;
                                }
                            }
                        }
                    }
                    .item-bottom{
                        padding:10px 20px;
                        height: 30px;
                        line-height: 30px;
                        background-color: #fff;
                        font-size: 12px;
                    }
                }
                .item:hover{
                    transform: scale(1.03);
                }
            }
        }
    }
    .noListData{
        width: 30%;
        margin:50px auto ;
        // background-color: rgb(141, 200, 234);
        box-sizing: border-box;
        .nodata{
            width: 60%;
        }
        .tip{
            font-size: 16px;
            color: #999;
            margin: 0 auto;
        }
    }
     .taskBody{
        padding: 0 20px;
        .task-item{
            margin-bottom: 15px;
            .item-name{
                font-size: 12px;
                color: #CC9966;
                margin-bottom: 5px;
                display:inline-block;
                margin-right: 15px;
            }
        }
    }
    .targetBody{
        .targetO{
            display: flex;
            -webkit-box-align: center;
            align-items: center;
            flex-wrap: wrap;
            align-self: normal;
            padding: 10px;
            border-radius: 5px;
            background: rgb(29, 134, 240);
            margin-bottom: 30px;
            font-size: 18px;
            span{
                display: inline-block;
                font-size: 18px;
            }
            .target-tip{
                width: 35px;
                height: 35px;
                text-align: center;
                line-height: 36px;
                background-color: rgb(141, 200, 234);
                color: rgb(255, 255, 255);
                font-size: 12px;
                border-radius: 50%;
                font-size: 18px;
            }
            .target-input{
                width:90%;
                font-size: 18px;
            }
        }
        .addKR{
            padding: 0 80px;
            box-sizing: border-box;
        }
        .targetKR{
            display: flex;
            flex-wrap:  wrap;
            -webkit-box-align: center;
            align-items: center;
            align-self: normal;
            // padding: 10px;
            border-radius: 5px;
            // background: rgb(29, 134, 240);
            margin-bottom: 10px;
            .tip{
                width: 10%;
                text-align: left;
                // background-color: tomato;
                font-family: sans-serif;
                text-shadow: rgb(14, 17, 20) 0px 0px 0px;
                .kArEgh {
                    display: inline-block;
                    width: 6px;
                    height: 6px;
                    margin-right: 5px;
                    position: relative;
                    top: -3px;
                    background: rgb(29, 134, 240);
                }
            }
            .info{
                width: 90%;
                font-size: 16px;
                font-weight: 500;
                color: rgb(131, 137, 143);
                padding: 6px 0px 6px 0px;
                border-radius: 5px;
                background: rgb(245, 246, 250);
                text-align: left;
                padding: 20px;
                box-sizing: border-box;
            }
            .progress{
                margin-top: 5px;
                display: flex;
                padding-left: 80px;
                box-sizing: border-box;
                width: 100%;
                font-size: 12px;
                position: relative;
                span{
                    display: inline-block;
                    line-height: 40px;
                }

                .progressBar{
                    width: 70%;
                    display: flex;
                }
                .delete{
                    // width: 25px;
                    // height: 25px;
                    // font-size: 12px;
                    position:absolute;
                    right: 5px;
                }
            }
        }
        
    }
    .editKRBody{
        .targetO{
            background-color:#CC9966 ;
            .target-tip{
                background-color: #99CC99	;
            }
            .target-input{
                color: #FFF;    
            }
        }
        .targetKR .progress{
            .progressBar{
                width: 90%;
                display: flex;
                .krtitle{
                    line-height: 40px;
                    display: inline-block;
                    width: 80%;
                    text-align: left;
                }
            }
        }
        
        .currentO{    
            color: #fff;
            font-size: 16px;
            line-height: 40px;
            padding-left: 15px;
            text-align: left;
        }
    }
}

ul,li{
    margin: 0;
    padding: 0;
    list-style: none;
}
.okrPage{
    width: 100%;
    height: 100%;   
    background:#CC9966;
    box-sizing: border-box;
    position: relative;
    
    .title{
        height: 50px;        
        padding: 10px 0;
        margin-bottom: 20px;
        color:#fff;
        box-sizing: border-box;
        background:#CC9966;
        line-height: 50px;
        font-size: 20px;
        text-align: center;
    }
   
    .okrBody{
        background: rgb(247,247,247);
        border-radius: 30px 30px 0 0;
        height: 93%;
        display: flex;
        flex-wrap:wrap;
        color: #000;
        .okrBox{
            width: 49.5%;
            // height: 49%;
            height: 320px;
            min-height: 280px;
            margin-right: 1%;
            background: #fff;
            box-sizing: border-box;
            // overflow: auto;
            .okrBox-title{
                 text-align: left;
                 max-height: 20%;
                .top-title{
                    font-size: 20px;
                    margin: 8px 0;
                    padding:  0 20px;
                    // text-align: left;
                }
                .createTask{
                    font-size: 12px;
                    margin: 5px 0;
                    padding:  0 20px;
                    text-align: left;
                }
            }
            .okrbox-list{
                overflow: auto;
                max-height: 250px;
                // margin-top: 10px;
                text-align: left;
                font-size: 14px;
                color: #333;
                box-sizing: border-box;
                ul{
                    height: 100%;
                    overflow: auto
                }
                li{
                    height: 20px;
                    padding: 10px 15px 10px;
                    line-height: 20px;
                    border-bottom: 1px solid rgb(240, 242, 245);
                    cursor: pointer;
                    position: relative;
                    .list-opt{
                        display: none;
                        width: 50%;
                        position: absolute;
                        right: 10px;
                        top: 5px;
                        // display: flex;
                        justify-content:flex-end;
                        align-items:center
                    }
                    // .taskprogress{
                    //     width:10px;
                    //     height: 10px;
                    // }
                    .content{
                        display: inline-block;

                    }
                    .taskGrade{
                        display: inline-block;
                        width: 25px;
                        height: 25px;
                        border-radius: 50%;
                        text-align: center;
                        box-sizing: border-box;
                        background-color: turquoise;
                        margin-right: 10px;
                    }
                }
                li:hover .list-opt{
                    display: flex;
                }
            }
           .status-list{
                overflow: auto;
                max-height: 250px;
                // margin-top: 10px;
                text-align: left;
                font-size: 14px;
                color: #333;
                box-sizing: border-box;
                // align-content: center;
                .status{
                    display: block;
                    // width: 20%;
                    width: auto;
                    min-width: 120px;
                    height: 60px; 
                    // padding: 10px 10px;
                    box-sizing: border-box;
                    justify-content: center;
                    display: flex;
                    
                    // margin-bottom: 10px;
                    .itemStatus{
                        display: inline-block;
                        height: 40px;
                        line-height: 40px;
                        padding: 0 15px;
                        border-radius: 10px;
                        margin: 0 auto;
                        cursor: pointer;
                    }
                }
            }
            .objectList{              
                text-align: left;
                overflow: auto;
                max-height: 85%;
                height: 80%;
                
                .OBox{
                    background: #fafbfc;
                    height: 62px;
                    margin-bottom: 8px;
                    line-height: 62px;
                    padding: 5px 20px;
                    // padding-bottom: 10px;
                    position: relative;
                    span{
                        display: inline-block;
                    }
                    .O-tip{
                        width: 36px;
                        height: 20px;
                        background: #50e3c2;
                        border-radius: 22px;
                        color: #fff;
                        margin-right: 8px;
                        font-size: 12px;
                        display: inline-block;
                        line-height: 20px;
                        text-align: center;
                        position: absolute;
                        top: 25px;
                    }
                    .O-content{
                        width: 60%;
                        white-space:nowrap;
                        overflow:hidden;
                        text-overflow:ellipsis;
                        position: absolute;
                        top: 5px;
                        left: 70px;
                        cursor: pointer;
                    }
                    .O-opt{
                        position: absolute;
                        top: 5px;
                        right: 20px;
                    }
                }
                .KRBox{
                    background: #fafbfc;
                    font-size: 14px;
                    ul{
                       li{
                            width: 100%;
                            height: 40px;
                            padding: 5px 20px;
                            position: relative;
                            box-sizing:border-box;
                            line-height: 40px;
                            position: relative;
                            .KR-tip{
                                height: 20px;
                                line-height: 20px;
                                font-size: 12px;
                                color: rgb(46, 156, 255);
                                margin-right: 10px;
                                background: rgba(46, 156, 255, 0.1);
                                border-radius: 11.5px;
                                padding: 3px 9px;
                                position: absolute;
                                top: 8px;
                            }
                            .KR-content{
                                width:60% ;
                                display: inline-block;
                                overflow:hidden;
                                white-space:nowrap;
                                text-overflow:ellipsis;
                                height:100%;
                                line-height: 30px;
                                padding-left: 45px;
                            }
                            .KR-opt{
                                position: absolute;                              
                                right: 20px;
                                top:5px;
                                display: flex;
                                // display: none;
                                width: 30%;
                                position: absolute;
                                justify-content:flex-end;
                                align-items:center
                            }
                        }
                        li:hover .list-opt{
                            display: flex;
                        }
                    }
                }
            }
        }
        .first{
            border-radius:  30px 0 0 0;
            margin-bottom: 0.5%;
            .okrBox-title{
                border-bottom: 1px solid rgb(240, 242, 245);
            }
        }
        .second{
            margin-right: 0;
            border-radius: 0 30px 0 0;
            margin-bottom: 0.5%;            
        }
        .third{
            .okrBox-title{
                border-bottom: 1px solid rgb(240, 242, 245);
            }
        }
        .four{
            margin-right: 0
        }
    }
}

</style>
<style lang="less">
.el-dialog__body {
    padding: 5px 20px 30px;
    color: #606266;
    font-size: 14px;
    word-break: break-all;
}
    .top-opt{
        .el-input__inner{
            border: none;
        }
        .nameSearch{
            .el-input__inner{
                border-bottom: 1px solid #DCDFE6;
                border-radius: 0;
            }
            .el-input-group__append, .el-input-group__prepend{
                border: none;
                 border-bottom: 1px solid #DCDFE6;
                 background-color: transparent;
            }
        }
        .search{
            .el-button{
                border: 1px solid transparent;
            }
        }
    }
</style>
<style lang="less">
    .taskBody{
        .el-radio.is-bordered.is-checked {
            border-color: #CC9966;
        }
        .el-radio__input.is-checked .el-radio__inner {
            border-color: #CC9966;
            background: #CC9966;
        }
        .el-radio__input.is-checked+.el-radio__label {
            color: #CC9966;
        }
        .el-input.is-active .el-input__inner, .el-input__inner:focus {
            border-color: #CC9966;
            outline: 0;
        }
        .el-textarea__inner:focus {
            outline: 0;
            border-color: #CC9966;
        }
        .number__increase:hover {
            color: #CC9966;
        }
        .el-input-number__decrease:hover, .el-input-number__increase:hover {
            color: #CC9966;
        }
        .el-slider__input:hover,.el-input-number:hover,.el-input-number--small:hover{
            border-color: #CC9966;
            outline: 0;
        }
        .el-slider__button {
            width: 16px;
            height: 16px;
            border: 2px solid #CC9966;
            background-color: #FFF;
            border-radius: 50%;
            transition: .2s;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        .el-slider__bar {
            height: 6px;
            background-color: #CC9966;
            border-top-left-radius: 3px;
            border-bottom-left-radius: 3px;
            position: absolute;
        }
    }
    .StatusBody{
        .second.el-radio.is-bordered.is-checked {
            border-color: #FFCC33;
        }
        .second .el-radio__input.is-checked .el-radio__inner {
            border-color: #FFCC33;
            background: #FFCC33;
        }
        .second .el-radio__input.is-checked+.el-radio__label {
            color: #FFCC33;
        }
        .first.el-radio.is-bordered.is-checked {
            border-color: #CC3300;
        }
        .first .el-radio__input.is-checked .el-radio__inner {
            border-color: #CC3300;
            background: #CC3300;
        }
        .first .el-radio__input.is-checked+.el-radio__label {
            color: #CC3300;
        }
        .third.el-radio.is-bordered.is-checked {
            border-color: #99CC99;
        }
        .third .el-radio__input.is-checked .el-radio__inner {
            border-color: #99CC99;
            background: #99CC99;
        }
        .third .el-radio__input.is-checked+.el-radio__label {
            color: #99CC99;
        }
    }
    .targetBody{
        .el-input__inner{
            border: none;
            background-color:transparent;
            color: #fff;
        }
        .el-input .el-input__count .el-input__count-inner {
            background-color: transparent;
            line-height: initial;
            display: inline-block;
            padding: 0 5px;
            color:#FFF
        }
        
        .targetKR{
           .el-input__inner{
            border: none;
            background-color:transparent;
            color: rgb(131, 137, 143);
            }
            .el-input .el-input__count .el-input__count-inner {
                background-color: transparent;
                line-height: initial;
                display: inline-block;
                padding: 0 5px;
                color:rgb(131, 137, 143);
            } 
            .progress{
                .el-input-number__decrease{                  
                    border-right: none; 
                }
                .el-input-number__increase{
                    border-left: none;
                }
                .el-input-number__decrease,.el-input-number__increase {
                    background: none;
                }
            }
            .el-input--suffix .el-input__inner {
                padding-right: 66px;
            }
           
        }
        .el-input--suffix .el-input__inner {
            padding-right: 50px;
        }
    }
    .editKRBody{
        .progress{
            .el-input-number__decrease{                  
                border-right: none; 
            }
             .el-input-number__increase{
                 border-left: none;
             }
            .el-input-number__decrease, .el-input-number__increase {
                background: none;
            }
            .el-input__inner{
                border: none;
                background-color:transparent;
                color: rgb(131, 137, 143);
            }
            .el-input .el-input__count .el-input__count-inner {
                background-color: transparent;
                line-height: initial;
                display: inline-block;
                padding: 0 5px;
                // color:rgb(131, 137, 143);
            } 
        }
        .el-input__inner{
            border: none;
            background-color:transparent;
            // color: rgb(131, 137, 143);
        }
        .el-input .el-input__count .el-input__count-inner {
            background-color: transparent;
            line-height: initial;
            display: inline-block;
            padding: 0 5px;
            // color:rgb(131, 137, 143);
        } 
        .el-input_icon .el-iocn-circle-close .el-input_clear{
            color:#fff
        }
    }
   
</style>