<template>
  <div class="app-container">
<!--    <div>
      <div style="display: flex;align-items: center;">
        <div class="btsz">标题</div><el-input v-model="setData.title" placeholder="请输入标题名称" style="width: 300px;" disabled/>
      </div>

      <div style="margin: 10px 30px; padding: 10px; border-left: 1px solid #eee">

        <div style="display: flex;align-items: center;">
          <div class="btsz">标题</div>
          <el-input v-model="setData.title1" placeholder="请输入标题名称" style="width: 300px;margin-right: 20px;" disabled/>
          <div style="display: flex;align-items: center;margin-top: 10px;margin-right: 20px;">
            <div class="btsz">是否占比</div>
            <el-radio v-model="setData.radiot1" label="1" disabled>是</el-radio>
            <el-radio v-model="setData.radiot1" label="2" disabled>否</el-radio>
          </div>
          <div style="display: flex;align-items: center; margin-top: 10px;" v-if="setData.radiot1==='1'">
            <div class="btsz">评分占比</div>
            <el-input-number v-model="setData.zbt1" :precision="2" :step="0.01" :max="1" disabled></el-input-number>
          </div>
        </div>

        <div style="margin: 10px 30px; padding: 10px; border-left: 1px solid #eee">
          <div style="display: flex;align-items: center; margin-top: 10px;">
            <div style="display: flex;align-items: center; margin-top: 10px;margin-right: 20px;">
              <div class="btsz">引用考核任务</div>
              <el-select v-model="setData.khrwValue1" placeholder="请选择" disabled>
                <el-option
                  v-for="itemOpt in options"
                  :key="itemOpt.value"
                  :label="itemOpt.label"
                  :value="itemOpt.value">
                </el-option>
              </el-select>
            </div>
            <div style="display: flex;align-items: center;margin-top: 10px;margin-right: 20px;">
              <div class="btsz">是否占比</div>
              <el-radio v-model="setData.radio1" label="1" disabled>是</el-radio>
              <el-radio v-model="setData.radio1" label="2" disabled>否</el-radio>
            </div>
            <div style="display: flex;align-items: center; margin-top: 10px;" v-if="setData.radio1==='1'">
              <div class="btsz">评分占比</div>
              <el-input-number v-model="setData.zb1" :precision="2" :step="0.01" :max="1" disabled></el-input-number>
            </div>
          </div>
          <div style="display: flex;align-items: center; margin-top: 10px;">
            <div style="display: flex;align-items: center; margin-top: 10px;margin-right: 20px;">
              <div class="btsz">引用考核任务</div>
              <el-select v-model="setData.khrwValue2" placeholder="请选择" disabled>
                <el-option
                  v-for="itemOpt in options"
                  :key="itemOpt.value"
                  :label="itemOpt.label"
                  :value="itemOpt.value">
                </el-option>
              </el-select>
            </div>
            <div style="display: flex;align-items: center;margin-top: 10px;margin-right: 20px;">
              <div class="btsz">是否占比</div>
              <el-radio v-model="setData.radio2" label="1" disabled>是</el-radio>
              <el-radio v-model="setData.radio2" label="2" disabled>否</el-radio>
            </div>
            <div style="display: flex;align-items: center; margin-top: 10px;" v-if="setData.radio2==='1'">
              <div class="btsz">评分占比</div>
              <el-input-number v-model="setData.zb2" :precision="2" :step="0.01" :max="1" disabled></el-input-number>
            </div>
          </div>
        </div>

        <div style="margin-top: 20px;">
          <el-button size="small" disabled>添加下级标题</el-button>
          <el-button size="small" disabled>添加考核任务</el-button>
        </div>
      </div>

      <div style="display: flex;align-items: center;margin: 10px 30px; padding: 10px; border-left: 1px solid #eee">
        <div style="display: flex;align-items: center; margin-top: 10px;margin-right: 20px;">
          <div class="btsz">引用考核任务</div>
          <el-select v-model="setData.khrwValue3" placeholder="请选择" disabled>
            <el-option
              v-for="itemOpt in options"
              :key="itemOpt.value"
              :label="itemOpt.label"
              :value="itemOpt.value">
            </el-option>
          </el-select>
        </div>
        <div style="display: flex;align-items: center;margin-top: 10px;margin-right: 20px;">
          <div class="btsz">是否占比</div>
          <el-radio v-model="setData.radio3" label="1" disabled>是</el-radio>
          <el-radio v-model="setData.radio3" label="2" disabled>否</el-radio>
        </div>
        <div style="display: flex;align-items: center; margin-top: 10px;" v-if="setData.radio3==='1'">
          <div class="btsz">评分占比</div>
          <el-input-number v-model="setData.zb3" :precision="2" :step="0.01" :max="1" disabled></el-input-number>
        </div>
      </div>

      <div style="display: flex;align-items: center;margin: 10px 30px; padding: 10px; border-left: 1px solid #eee">
        <div style="display: flex;align-items: center; margin-top: 10px;margin-right: 20px;">
          <div class="btsz">引用考核任务</div>
          <el-select v-model="setData.khrwValue4" placeholder="请选择" disabled>
            <el-option
              v-for="itemOpt in options"
              :key="itemOpt.value"
              :label="itemOpt.label"
              :value="itemOpt.value">
            </el-option>
          </el-select>
        </div>
        <div style="display: flex;align-items: center;margin-top: 10px;margin-right: 20px;">
          <div class="btsz">是否占比</div>
          <el-radio v-model="setData.radio4" label="1" disabled>是</el-radio>
          <el-radio v-model="setData.radio4" label="2" disabled>否</el-radio>
        </div>
        <div style="display: flex;align-items: center; margin-top: 10px;" v-if="setData.radio4==='1'">
          <div class="btsz">评分占比</div>
          <el-input-number v-model="setData.zb4" :precision="2" :step="0.01" :max="1" disabled></el-input-number>
        </div>
      </div>

      <div style="display: flex;align-items: center;margin: 10px 30px; padding: 10px; border-left: 1px solid #eee">
        <div style="display: flex;align-items: center; margin-top: 10px;margin-right: 20px;">
          <div class="btsz">引用考核任务</div>
          <el-select v-model="setData.khrwValue5" placeholder="请选择" disabled>
            <el-option
              v-for="itemOpt in options"
              :key="itemOpt.value"
              :label="itemOpt.label"
              :value="itemOpt.value">
            </el-option>
          </el-select>
        </div>
        <div style="display: flex;align-items: center;margin-top: 10px;margin-right: 20px;">
          <div class="btsz">是否占比</div>
          <el-radio v-model="setData.radio5" label="1" disabled>是</el-radio>
          <el-radio v-model="setData.radio5" label="2" disabled>否</el-radio>
        </div>
        <div style="display: flex;align-items: center; margin-top: 10px;" v-if="setData.radio5==='1'">
          <div class="btsz">评分占比</div>
          <el-input-number v-model="setData.zb5" :precision="2" :step="0.01" :max="1"></el-input-number>
        </div>
      </div>

      <div style="margin-top: 20px;">
        <el-button size="small" disabled>添加下级标题</el-button>
        <el-button size="small" disabled>添加考核任务</el-button>
      </div>
    </div>-->

    <div style="padding: 50px 0;">
      <el-button type="primary" @click="khdf.open=true">生成汇总表格</el-button>
    </div>

    <!-- 考核得分 -->
    <el-dialog title="考核得分" :visible.sync="khdf.open" width="99%">
      <div style="padding-bottom: 10px;">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
        >导出</el-button>
      </div>
      <el-table border :data="khdf.list">
        <el-table-column label="教学单位领导班子考核总分" header-align="center">
          <el-table-column header-align="center" prop="pm" label="排名"></el-table-column>
          <el-table-column header-align="center" prop="bumen" label="部门"></el-table-column>

          <el-table-column header-align="center" prop="ejdw" label="二级单位目标管理与绩效考核成绩">

            <el-table-column label="党建与行政目标任务" prop="ejdw.djyxz" header-align="center">
              <el-table-column align="center" prop="ejdw.djyxz.khx1" label="政治建设"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb1" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx2" label="宣传与思想政治工作" width="140px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb2" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx3" label="作风纪律"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb3" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx4" label="安全稳定"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb4" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx5" label="师资队伍与师德师风" width="140px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb5" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx6" label="财务工作"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb6" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx7" label="依法治校与综合治理" width="140px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb7" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx8" label="国有资产管理" width="120px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb8" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx9" label="实验室管理" width="120px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb9" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx10" label="招生就业与创新创业工作" width="170px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb10" label="占比" width="55px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.khx11" label="对外交流与合作" width="120px"></el-table-column>
              <el-table-column align="center" prop="ejdw.djyxz.zb11" label="占比" width="55px"></el-table-column>
            </el-table-column>
            <el-table-column align="center" prop="ejdw.djyxzdf" label="得分" ></el-table-column>
            <el-table-column align="center" prop="ejdw.djyxzzb" label="占比" ></el-table-column>
            <el-table-column align="center" prop="ejdw.djyxzzsfs" label="折算分数" ></el-table-column>

            <el-table-column label="事业发展" prop="ejdw.syfz" header-align="center">
              <el-table-column align="center" prop="ejdw.syfz.khx1" label="教学工作"></el-table-column>
              <el-table-column align="center" prop="ejdw.syfz.zb1" label="占比"></el-table-column>
              <el-table-column align="center" prop="ejdw.syfz.khx2" label="科研工作"></el-table-column>
              <el-table-column align="center" prop="ejdw.syfz.zb2" label="占比"></el-table-column>
              <el-table-column align="center" prop="ejdw.syfz.khx3" label="学生工作"></el-table-column>
              <el-table-column align="center" prop="ejdw.syfz.zb3" label="占比"></el-table-column>
            </el-table-column>
            <el-table-column align="center" prop="ejdw.syfzdf" label="得分" ></el-table-column>
            <el-table-column align="center" prop="ejdw.syfzzb" label="占比" ></el-table-column>
            <el-table-column align="center" prop="ejdw.syfzzsfs" label="折算分数" ></el-table-column>

          </el-table-column>
          <el-table-column align="center" prop="ejdwdf" label="得分" ></el-table-column>
          <el-table-column align="center" prop="ejdwzb" label="占比" ></el-table-column>
          <el-table-column align="center" prop="ejdwzsfs" label="折算分数" ></el-table-column>

          <el-table-column label="民主测评" prop="mzcp" header-align="center">


            <el-table-column header-align="center" prop="mzcp.syldbz" label="师院领导班子">
              <el-table-column align="center" prop="mzcp.syldbz.yx" label="优秀"></el-table-column>
              <el-table-column align="center" prop="mzcp.syldbz.hg" label="合格"></el-table-column>
              <el-table-column align="center" prop="mzcp.syldbz.jbhg" label="基本合格"></el-table-column>
              <el-table-column align="center" prop="mzcp.syldbz.bhg" label="不合格"></el-table-column>
            </el-table-column>
            <el-table-column align="center" prop="mzcp.syldbzdf" label="得分"></el-table-column>
            <el-table-column align="center" prop="mzcp.syldbzzb" label="占比"></el-table-column>


            <el-table-column header-align="center" prop="mzcp.sycjldgb" label="师院处级领导干部">
              <el-table-column align="center" prop="mzcp.sycjldgb.yx" label="优秀"></el-table-column>
              <el-table-column align="center" prop="mzcp.sycjldgb.hg" label="合格"></el-table-column>
              <el-table-column align="center" prop="mzcp.sycjldgb.jbhg" label="基本合格"></el-table-column>
              <el-table-column align="center" prop="mzcp.sycjldgb.bhg" label="不合格"></el-table-column>
            </el-table-column>
            <el-table-column align="center" prop="mzcp.sycjldgbdf" label="得分"></el-table-column>
            <el-table-column align="center" prop="mzcp.sycjldgbzd" label="占比"></el-table-column>


            <el-table-column header-align="center" label="服务对象代表">
              <el-table-column align="center" prop="mzcp.fwdxdb.yx" label="优秀"></el-table-column>
              <el-table-column align="center" prop="mzcp.fwdxdb.hg" label="合格"></el-table-column>
              <el-table-column align="center" prop="mzcp.fwdxdb.jbhg" label="基本合格"></el-table-column>
              <el-table-column align="center" prop="mzcp.fwdxdb.bhg" label="不合格"></el-table-column>
            </el-table-column>
            <el-table-column align="center" prop="mzcp.fwdxdbdf" label="得分"></el-table-column>
            <el-table-column align="center" prop="mzcp.fwdxdbzb" label="占比"></el-table-column>
          </el-table-column>
          <el-table-column align="center" prop="mzcpdf" label="得分"></el-table-column>
          <el-table-column align="center" prop="mzcpzb" label="占比" ></el-table-column>
          <el-table-column align="center" prop="mzcpzsfs" label="折算分数" ></el-table-column>

          <el-table-column label="特色创新" prop="tscx" header-align="center">
            <el-table-column align="center" prop="tscx.ddx" label="分数（满分10分）"></el-table-column>
          </el-table-column>

          <el-table-column label="综合评价" prop="zhpj" header-align="center">
            <el-table-column align="center" prop="zhpj.ddx" label="分数（加减分项，值域可以为负）"></el-table-column>
          </el-table-column>

          <el-table-column align="center" prop="zf" label="总分" ></el-table-column>

        </el-table-column>
      </el-table>

      <div slot="footer" class="dialog-footer">
        <el-button @click="khdf.open=false">取 消</el-button>
      </div>
    </el-dialog>


    <el-table border :data="list1">
      <template v-for="column in btTabel">
        <table-column :key="column.label" :column="column" />
      </template>
    </el-table>

  </div>
</template>

<script>
import TableColumn from '@/components/TableColumn'

export default {
  name: "index",
  components: { TableColumn },
  data() {
    return {
      btTabel:[{
        "name": null,
        "label": "民主测评",
        "children": [{
          "name": "khdxName",
          "label": "单位"
        },
          {
            "name": "mzcp",
            "label": "民主测评",
            "children": [{
              "name": "syldbz",
              "label": "师院领导班子",
              "children": [{
                "name": "optionA",
                "label": "优秀"
              },
                {
                  "name": "optionB",
                  "label": "合格"
                },
                {
                  "name": "optionC",
                  "label": "基本合格"
                },
                {
                  "name": "optionD",
                  "label": "不合格"
                },
                {
                  "name": "avgScore",
                  "label": "得分"
                },
                {
                  "name": "percentage",
                  "label": "占比"
                }
              ]
            },
              {
                "name": "sycjldgb",
                "label": "师院处级领导干部",
                "children": [{
                  "name": "optionA",
                  "label": "优秀"
                },
                  {
                    "name": "optionB",
                    "label": "合格"
                  },
                  {
                    "name": "optionC",
                    "label": "基本合格"
                  },
                  {
                    "name": "optionD",
                    "label": "不合格"
                  },
                  {
                    "name": "avgScore",
                    "label": "得分"
                  },
                  {
                    "name": "percentage",
                    "label": "占比"
                  }
                ]
              },
              {
                "name": "fwdxdb",
                "label": "服务对象代表",
                "children": [{
                  "name": "optionA",
                  "label": "优秀"
                },
                  {
                    "name": "optionB",
                    "label": "合格"
                  },
                  {
                    "name": "optionC",
                    "label": "基本合格"
                  },
                  {
                    "name": "optionD",
                    "label": "不合格"
                  },
                  {
                    "name": "avgScore",
                    "label": "得分"
                  },
                  {
                    "name": "percentage",
                    "label": "占比"
                  }
                ]
              }
            ]
          },
          {
            "name": "df",
            "label": "得分"
          }
        ]
      }],
      list1:[
        {
          "khdxName": "生命科学系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "海洋学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "历史文化与法学系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "物理科学与技术学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "教育学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "资源管理系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "马克思主义学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "美术学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "计算机科学技术系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "化学系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "数学与计算科学学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "继续教育学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "外国语学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "体育系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "文学院",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        },
        {
          "khdxName": "音乐系",
          "mzcp": {
            "syldbz": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "sycjldgb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.3
            },
            "fwdxdb": {
              "optionA": 0,
              "optionB": 0,
              "optionC": 0,
              "optionD": 0,
              "avgScore": 0,
              "percentage": 0.4
            }
          },
          "df": 0
        }
      ],
      "data": [
        {
          "name": null,
          "label": "教学单位领导班子考核总分",
          "children": [
            {
              "name": "pm",
              "label": "排名",
            },
            {
              "name": "bumen",
              "label": "部门",
            },
            {
              "name": "ejdw",
              "label": "二级单位目标管理与绩效考核成绩",
              "children": [
                {
                  "name": "djyxz",
                  "label": "党建与行政目标任务",
                  "children": [
                    {
                      "name": "khx1",
                      "label": "政治建设",
                    },
                    {
                      "name": "zb1",
                      "label": "占比",
                    },
                    {
                      "name": "khx2",
                      "label": "宣传与思想政治工作",
                    },
                    {
                      "name": "zb2",
                      "label": "占比",
                    },
                    {
                      "name": "khx3",
                      "label": "作风纪律",
                    },
                    {
                      "name": "zb3",
                      "label": "占比",
                    },
                    {
                      "name": "khx4",
                      "label": "安全稳定",
                    },
                    {
                      "name": "zb4",
                      "label": "占比",
                    },
                    {
                      "name": "khx5",
                      "label": "师资队伍与师德师风",
                    },
                    {
                      "name": "zb5",
                      "label": "占比",
                    },
                    {
                      "name": "khx6",
                      "label": "财务工作",
                    },
                    {
                      "name": "zb6",
                      "label": "占比",
                    },
                    {
                      "name": "khx7",
                      "label": "依法治校与综合治理",
                    },
                    {
                      "name": "zb7",
                      "label": "占比",
                    },
                    {
                      "name": "khx8",
                      "label": "国有资产管理",
                    },
                    {
                      "name": "zb8",
                      "label": "占比",
                    },
                    {
                      "name": "khx9",
                      "label": "实验室管理",
                    },
                    {
                      "name": "zb9",
                      "label": "占比",
                    },
                    {
                      "name": "khx10",
                      "label": "招生就业与创新创业工作",
                    },
                    {
                      "name": "zb10",
                      "label": "占比",
                    },
                    {
                      "name": "khx11",
                      "label": "对外交流与合作",
                    },
                    {
                      "name": "zb11",
                      "label": "占比",
                    }
                  ]
                },
                {
                  "name": "djyxzdf",
                  "label": "得分",
                },
                {
                  "name": "djyxzzb",
                  "label": "占比",
                },
                {
                  "name": "djyxzzsfs",
                  "label": "折算分数",
                },
                {
                  "name": "syfz",
                  "label": "事业发展",
                  "children": [
                    {
                      "name": "khx1",
                      "label": "教学工作",
                    },
                    {
                      "name": "zb1",
                      "label": "占比",
                    },
                    {
                      "name": "khx2",
                      "label": "科研工作",
                    },
                    {
                      "name": "zb2",
                      "label": "占比",
                    },
                    {
                      "name": "khx3",
                      "label": "学生工作",
                    },
                    {
                      "name": "zb3",
                      "label": "占比",
                    },
                  ]
                },
                {
                  "name": "syfzdf",
                  "label": "得分",
                },
                {
                  "name": "syfzzb",
                  "label": "占比",
                },
                {
                  "name": "syfzzsfs",
                  "label": "折算分数",
                }
              ]
            },
            {
              "name": "ejdwdf",
              "label": "得分",
            },
            {
              "name": "ejdwzb",
              "label": "占比",
            },
            {
              "name": "ejdwzsfs",
              "label": "折算分数",
            },
            {
              "name": "mzcp",
              "label": "民主测评",
              "children": [
                {
                  "name": "syldbz",
                  "label": "师院领导班子",
                  "children": [
                    {
                      "name": "yx",
                      "label": "优秀",
                    },
                    {
                      "name": "hg",
                      "label": "合格",
                    },
                    {
                      "name": "jbhg",
                      "label": "基本合格",
                    },
                    {
                      "name": "bhg",
                      "label": "不合格",
                    }
                  ]
                },
                {
                  "name": "syldbzdf",
                  "label": "得分",
                },
                {
                  "name": "syldbzzb",
                  "label": "占比",
                },
                {
                  "name": "sycjldgb",
                  "label": "师院处级领导干部",
                  "children": [
                    {
                      "name": "yx",
                      "label": "优秀",
                    },
                    {
                      "name": "hg",
                      "label": "合格",
                    },
                    {
                      "name": "jbhg",
                      "label": "基本合格",
                    },
                    {
                      "name": "bhg",
                      "label": "不合格",
                    }
                  ]
                },
                {
                  "name": "sycjldgbdf",
                  "label": "得分",
                },
                {
                  "name": "sycjldgbzd",
                  "label": "占比",
                },
                {
                  "name": "fwdxdb",
                  "label": "服务对象代表",
                  "children": [
                    {
                      "name": "yx",
                      "label": "优秀",
                    },
                    {
                      "name": "hg",
                      "label": "合格",
                    },
                    {
                      "name": "jbhg",
                      "label": "基本合格",
                    },
                    {
                      "name": "bhg",
                      "label": "不合格",
                    }
                  ]
                },
                {
                  "name": "fwdxdbdf",
                  "label": "得分",
                },
                {
                  "name": "fwdxdbzb",
                  "label": "占比",
                }
              ]
            },
            {
              "name": "mzcpdf",
              "label": "得分",
            },
            {
              "name": "mzcpzb",
              "label": "占比",
            },
            {
              "name": "mzcpzsfs",
              "label": "折算分数",
            },
            {
              "name": "tscx",
              "label": "特色创新",
              "children": [
                {
                  "name": "ddx",
                  "label": "分数（满分10分）",
                }
              ]
            },
            {
              "name": "zhpj",
              "label": "综合评价",
              "children": [
                {
                  "name": "ddx",
                  "label": "分数（加减分项，值域可以为负）",
                }
              ]
            },
            {
              "name": "zf",
              "label": "总分",
            },
          ]
        }
      ],
      khdf:{
        open: false,
        idRw: null,
        list:[
          {
            pm: 1,
            bumen: '生命科学系',
            ejdw:{
              djyxz:{
                khx1: '90',
                zb1: '0.2',
                khx2: '95',
                zb2: '0.1',
                khx3: '90',
                zb3: '0.1',
                khx4: '85',
                zb4: '0.1',
                khx5: '98',
                zb5: '0.1',
                khx6: '95',
                zb6: '0.1',
                khx7: '97',
                zb7: '0.05',
                khx8: '98',
                zb8: '0.02',
                khx9: '95',
                zb9: '0.03',
                khx10: '96',
                zb10: '0.1',
                khx11: '95',
                zb11: '0.1',
              },
              djyxzdf: '93.06',
              djyxzzb: '0.1',
              djyxzzsfs: '9.306',
              syfz:{
                khx1: '98',
                zb1: '0.5',
                khx2: '95',
                zb2: '0.28',
                khx3: '98',
                zb3: '0.22',
              },
              syfzdf: '97.16',
              syfzzb: '0.9',
              syfzzsfs: '87.444',
            },
            ejdwdf: '96.75',
            ejdwzb: '0.7',
            ejdwzsfs: '67.73',
            mzcp:{
              syldbz:{
                yx: 5,
                hg: 1,
                jbhg: 0,
                bhg: 0,
              },
              syldbzdf: '96.66666667',
              syldbzzb: '0.3',
              sycjldgb:{
                yx: 110,
                hg: 2,
                jbhg: 1,
                bhg: 1,
              },
              sycjldgbdf: '98.77192982',
              sycjldgbzb: '0.3',
              fwdxdb:{
                yx: 30,
                hg: 5,
                jbhg: 5,
                bhg: 1,
              },
              fwdxdbdf: '91.2195122',
              fwdxdbzb: '0.4',
            },
            mzcpdf: '95.12',
            mzcpzb: '0.3',
            mzcpzsfs: '28.53581515',
            tscx: {
              ddx: '8',
            },
            zhpj: {
              ddx: '-3',
            },
            zf: '101.2608151'
          },
        ]
      },
      setData: {
        title: '教学单位领导班子考核总分',
        title1:'二级单位目标管理与绩效考核成绩',
        radiot1: '1',
        zbt1: 0.7,
        khrwValue1: '1',
        radio1: '1',
        zb1: 0.1,
        khrwValue2: '2',
        radio2: '1',
        zb2: 0.9,
        khrwValue3: '3',
        radio3: '1',
        zb3: 0.4,
        khrwValue4: '4',
        radio4: '2',
        zb4: 0,
        khrwValue5: '5',
        radio5: '2',
        zb5: 0
      },
      options: [{
        value: '1',
        label: '党建与行政目标任务'
      }, {
        value: '2',
        label: '事业发展'
      }, {
        value: '3',
        label: '民主测评'
      }, {
        value: '4',
        label: '特色创新'
      }, {
        value: '5',
        label: '综合评价'
      }],
    }
  },
  created() {
    this.setTreeData();
  },
  methods:{
    setTreeData(){
      let btTabelTree = this.btTabel;
      btTabelTree.forEach(item => {
        if(item.prop){
          item.prop = item.name;
        }
        if(item.children && item.children.length>0){
          this.setProp(item.children, item.prop)
        }
      })

      this.btTabel = btTabelTree;

      console.log(btTabelTree,999999999999);
    },
    setProp(list, prop){
      console.log(list,88888);
      list.forEach(item=>{
        if(prop){
          item.prop = prop+'.'+item.name;
        }else {
          item.prop = item.name;
        }
        if(item.children && item.children.length>0){
          this.setProp(item.children, item.prop)
        }
      })
    }
  }
}
</script>

<style scoped lang="scss">
.btsz{
  margin-right: 10px;
  color:#333;
  font-size: 14px;
}
</style>
