<template>
  <div class="risk-container">
    <a-spin :spinning="loading">
      <!-- 改善前 Start -->
      <a-card :title="$t('functional-analysis.top-btn.before-improvement')" class="text-center">
        <a-row :gutter="24">
          <a-col :span="8">
            <a-card size="small">
              <div slot="title">
                {{ $t('functional-analysis.top-btn.sxo-matrix') + '\xa0(\xa0' }}
                <i class="iconfont icondantupailie red-color"></i>
                {{ ':\xa0' + totalSoBeforeRed }}
                <i class="iconfont icondantupailie yellow-color"></i>
                {{ ':\xa0' + totalSoBeforeYellow }}
                <i class="iconfont icondantupailie green-color"></i>
                {{ ':\xa0' + totalSoBeforeGreen + '\xa0)' }}
              </div>
              <div class="risk-table">
                <table>
                  <tbody class="text-center">
                  <tr>
                    <td rowspan="11" class="risk-table-th">O</td>
                    <td>10</td>
                    <td class="yellow">{{ soBeOptimizeMap['1-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['2-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['3-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['4-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['5-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['6-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-10'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-10'] }}</td>
                  </tr>
                  <tr>
                    <td>9</td>
                    <td class="yellow">{{ soBeOptimizeMap['1-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['2-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['3-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['4-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['5-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['6-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-9'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-9'] }}</td>
                  </tr>
                  <tr>
                    <td>8</td>
                    <td class="yellow">{{ soBeOptimizeMap['1-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['2-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['3-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['4-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['5-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['6-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-8'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-8'] }}</td>
                  </tr>
                  <tr>
                    <td>7</td>
                    <td class="yellow">{{ soBeOptimizeMap['1-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['2-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['3-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['4-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['5-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['6-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-7'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-7'] }}</td>
                  </tr>
                  <tr>
                    <td>6</td>
                    <td class="yellow">{{ soBeOptimizeMap['1-6'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['2-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['3-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['4-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['5-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['6-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-6'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-6'] }}</td>
                  </tr>
                  <tr>
                    <td>5</td>
                    <td class="yellow">{{ soBeOptimizeMap['1-5'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['2-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['3-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['4-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['5-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['6-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-5'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-5'] }}</td>
                  </tr>
                  <tr>
                    <td>4</td>
                    <td class="green">{{ soBeOptimizeMap['1-4'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['2-4'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['3-4'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['4-4'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['5-4'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['6-4'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['7-4'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['8-4'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-4'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-4'] }}</td>
                  </tr>
                  <tr>
                    <td>3</td>
                    <td class="green">{{ soBeOptimizeMap['1-3'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['2-3'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['3-3'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['4-3'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['5-3'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['6-3'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['7-3'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['8-3'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['9-3'] }}</td>
                    <td class="red">{{ soBeOptimizeMap['10-3'] }}</td>
                  </tr>
                  <tr>
                    <td>2</td>
                    <td class="green">{{ soBeOptimizeMap['1-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['2-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['3-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['4-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['5-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['6-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['7-2'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['8-2'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['9-2'] }}</td>
                    <td class="yellow">{{ soBeOptimizeMap['10-2'] }}</td>
                  </tr>
                  <tr>
                    <td>1</td>
                    <td class="green">{{ soBeOptimizeMap['1-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['2-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['3-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['4-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['5-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['6-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['7-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['8-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['9-1'] }}</td>
                    <td class="green">{{ soBeOptimizeMap['10-1'] }}</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td>1</td>
                    <td>2</td>
                    <td>3</td>
                    <td>4</td>
                    <td>5</td>
                    <td>6</td>
                    <td>7</td>
                    <td>8</td>
                    <td>9</td>
                    <td>10</td>
                  </tr>
                  <tr class="risk-table-th">
                    <td>O/S</td>
                    <td colspan="11">S</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <a-row class="mt2 text-center">
                {{ $t('functional-analysis.top-btn.o-s') }}
              </a-row>
            </a-card>
          </a-col>
          <a-col :span="8">
            <a-card size="small">
              <div slot="title">
                {{ $t('functional-analysis.top-btn.sxd-matrix') + '\xa0(\xa0' }}
                <i class="iconfont icondantupailie red-color"></i>
                {{ ':\xa0' + totalSdBeforeRed }}
                <i class="iconfont icondantupailie yellow-color"></i>
                {{ ':\xa0' + totalSdBeforeYellow }}
                <i class="iconfont icondantupailie green-color"></i>
                {{ ':\xa0' + totalSdBeforeGreen + '\xa0)' }}
              </div>
              <div class="risk-table">
                <table>
                  <tbody class="text-center">
                  <tr>
                    <td rowspan="11" class="risk-table-th">D</td>
                    <td>10</td>
                    <td class="yellow">{{ sdBeOptimizeMap['1-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['2-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['3-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['4-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['5-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['6-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-10'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-10'] }}</td>
                  </tr>
                  <tr>
                    <td>9</td>
                    <td class="yellow">{{ sdBeOptimizeMap['1-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['2-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['3-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['4-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['5-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['6-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-9'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-9'] }}</td>
                  </tr>
                  <tr>
                    <td>8</td>
                    <td class="yellow">{{ sdBeOptimizeMap['1-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['2-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['3-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['4-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['5-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['6-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-8'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-8'] }}</td>
                  </tr>
                  <tr>
                    <td>7</td>
                    <td class="yellow">{{ sdBeOptimizeMap['1-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['2-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['3-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['4-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['5-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['6-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-7'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-7'] }}</td>
                  </tr>
                  <tr>
                    <td>6</td>
                    <td class="yellow">{{ sdBeOptimizeMap['1-6'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['2-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['3-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['4-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['5-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['6-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-6'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-6'] }}</td>
                  </tr>
                  <tr>
                    <td>5</td>
                    <td class="yellow">{{ sdBeOptimizeMap['1-5'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['2-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['3-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['4-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['5-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['6-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-5'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-5'] }}</td>
                  </tr>
                  <tr>
                    <td>4</td>
                    <td class="green">{{ sdBeOptimizeMap['1-4'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['2-4'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['3-4'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['4-4'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['5-4'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['6-4'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['7-4'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['8-4'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-4'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-4'] }}</td>
                  </tr>
                  <tr>
                    <td>3</td>
                    <td class="green">{{ sdBeOptimizeMap['1-3'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['2-3'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['3-3'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['4-3'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['5-3'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['6-3'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['7-3'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['8-3'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['9-3'] }}</td>
                    <td class="red">{{ sdBeOptimizeMap['10-3'] }}</td>
                  </tr>
                  <tr>
                    <td>2</td>
                    <td class="green">{{ sdBeOptimizeMap['1-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['2-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['3-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['4-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['5-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['6-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['7-2'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['8-2'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['9-2'] }}</td>
                    <td class="yellow">{{ sdBeOptimizeMap['10-2'] }}</td>
                  </tr>
                  <tr>
                    <td>1</td>
                    <td class="green">{{ sdBeOptimizeMap['1-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['2-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['3-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['4-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['5-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['6-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['7-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['8-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['9-1'] }}</td>
                    <td class="green">{{ sdBeOptimizeMap['10-1'] }}</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td>1</td>
                    <td>2</td>
                    <td>3</td>
                    <td>4</td>
                    <td>5</td>
                    <td>6</td>
                    <td>7</td>
                    <td>8</td>
                    <td>9</td>
                    <td>10</td>
                  </tr>
                  <tr class="risk-table-th">
                    <td>D/S</td>
                    <td colspan="11">S</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <a-row class="mt2 text-center">
                {{ $t('functional-analysis.top-btn.d-s') }}
              </a-row>
            </a-card>
          </a-col>
          <a-col :span="8">
            <a-card size="small">
              <div slot="title">
                {{ $t('functional-analysis.top-btn.dxo-matrix') + '\xa0(\xa0' }}
                <i class="iconfont icondantupailie red-color"></i>
                {{ ':\xa0' + totalDoBeforeRed }}
                <i class="iconfont icondantupailie yellow-color"></i>
                {{ ':\xa0' + totalDoBeforeYellow }}
                <i class="iconfont icondantupailie green-color"></i>
                {{ ':\xa0' + totalDoBeforeGreen + '\xa0)' }}
              </div>
              <div class="risk-table">
                <table>
                  <tbody class="text-center">
                  <tr>
                    <td rowspan="11" class="risk-table-th">O</td>
                    <td>10</td>
                    <td class="yellow">{{ odBeOptimizeMap['1-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['2-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['3-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['4-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['5-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['6-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-10'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-10'] }}</td>
                  </tr>
                  <tr>
                    <td>9</td>
                    <td class="yellow">{{ odBeOptimizeMap['1-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['2-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['3-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['4-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['5-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['6-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-9'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-9'] }}</td>
                  </tr>
                  <tr>
                    <td>8</td>
                    <td class="yellow">{{ odBeOptimizeMap['1-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['2-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['3-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['4-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['5-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['6-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-8'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-8'] }}</td>
                  </tr>
                  <tr>
                    <td>7</td>
                    <td class="yellow">{{ odBeOptimizeMap['1-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['2-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['3-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['4-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['5-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['6-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-7'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-7'] }}</td>
                  </tr>
                  <tr>
                    <td>6</td>
                    <td class="yellow">{{ odBeOptimizeMap['1-6'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['2-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['3-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['4-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['5-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['6-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-6'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-6'] }}</td>
                  </tr>
                  <tr>
                    <td>5</td>
                    <td class="yellow">{{ odBeOptimizeMap['1-5'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['2-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['3-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['4-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['5-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['6-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-5'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-5'] }}</td>
                  </tr>
                  <tr>
                    <td>4</td>
                    <td class="green">{{ odBeOptimizeMap['1-4'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['2-4'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['3-4'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['4-4'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['5-4'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['6-4'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['7-4'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['8-4'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-4'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-4'] }}</td>
                  </tr>
                  <tr>
                    <td>3</td>
                    <td class="green">{{ odBeOptimizeMap['1-3'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['2-3'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['3-3'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['4-3'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['5-3'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['6-3'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['7-3'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['8-3'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['9-3'] }}</td>
                    <td class="red">{{ odBeOptimizeMap['10-3'] }}</td>
                  </tr>
                  <tr>
                    <td>2</td>
                    <td class="green">{{ odBeOptimizeMap['1-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['2-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['3-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['4-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['5-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['6-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['7-2'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['8-2'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['9-2'] }}</td>
                    <td class="yellow">{{ odBeOptimizeMap['10-2'] }}</td>
                  </tr>
                  <tr>
                    <td>1</td>
                    <td class="green">{{ odBeOptimizeMap['1-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['2-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['3-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['4-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['5-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['6-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['7-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['8-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['9-1'] }}</td>
                    <td class="green">{{ odBeOptimizeMap['10-1'] }}</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td>1</td>
                    <td>2</td>
                    <td>3</td>
                    <td>4</td>
                    <td>5</td>
                    <td>6</td>
                    <td>7</td>
                    <td>8</td>
                    <td>9</td>
                    <td>10</td>
                  </tr>
                  <tr class="risk-table-th">
                    <td>O/D</td>
                    <td colspan="11">D</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <a-row class="mt2 text-center">
                {{ $t('functional-analysis.top-btn.o-d') }}
              </a-row>
            </a-card>
          </a-col>
        </a-row>
        <a-row class="mt10">
          <a-card size="small">
            <div slot="title">
              {{ 'RMR' + '\xa0(\xa0' }}
              <i class="iconfont icondantupailie red-color"></i>
              {{ ':\xa0' + (rmrBeOptimizeMap['RMR-RED-BE'] || 0) }}
              <i class="iconfont icondantupailie yellow-color"></i>
              {{ ':\xa0' + (rmrBeOptimizeMap['RMR-YELLOW-BE'] || 0) }}
              <i class="iconfont icondantupailie green-color"></i>
              {{ ':\xa0' + (rmrBeOptimizeMap['RMR-GREEN-BE'] || 0) + '\xa0)' }}
            </div>
            <div class="risk-table">
              <table>
                <tbody class="text-center">
                <tr>
                  <td class="risk-table-th">SXO</td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                </tr>
                <tr>
                  <td class="risk-table-th">SXD</td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                </tr>
                <tr>
                  <td class="risk-table-th">DXO</td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                </tr>
                <tr>
                  <td class="risk-table-th">RMR</td>
                  <td class="red">{{ rmrBeOptimizeMap['RRR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RRY'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RYR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['YRR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RRG'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RGR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['GRR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RYY'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['YRY'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['YYR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RYG'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RGY'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['YRG'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['GRY'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['YGR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['GYR'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['RGG'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['GRG'] }}</td>
                  <td class="red">{{ rmrBeOptimizeMap['GGR'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['YYY'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['YYG'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['YGY'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['GYY'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['YGG'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['GYG'] }}</td>
                  <td class="yellow">{{ rmrBeOptimizeMap['GGY'] }}</td>
                  <td class="green">{{ rmrBeOptimizeMap['GGG'] }}</td>
                </tr>
                </tbody>
              </table>
            </div>
          </a-card>
        </a-row>
      </a-card>
      <!-- 改善前 End -->

      <!-- 改善后 Start -->
      <a-card :title="$t('functional-analysis.top-btn.after-improvement')" class="text-center">
        <a-row :gutter="24">
          <a-col :span="8">
            <a-card size="small">
              <div slot="title">
                {{ $t('functional-analysis.top-btn.sxo-matrix') + '\xa0(\xa0' }}
                <i class="iconfont icondantupailie red-color"></i>
                {{ ':\xa0' + totalSoAfterRed }}
                <i class="iconfont icondantupailie yellow-color"></i>
                {{ ':\xa0' + totalSoAfterYellow }}
                <i class="iconfont icondantupailie green-color"></i>
                {{ ':\xa0' + totalSoAfterGreen + '\xa0)' }}
              </div>
              <div class="risk-table">
                <table>
                  <tbody class="text-center">
                  <tr>
                    <td rowspan="11" class="risk-table-th">O</td>
                    <td>10</td>
                    <td class="yellow">{{ soAfOptimizeMap['1-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['2-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['3-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['4-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['5-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['6-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-10'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-10'] }}</td>
                  </tr>
                  <tr>
                    <td>9</td>
                    <td class="yellow">{{ soAfOptimizeMap['1-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['2-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['3-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['4-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['5-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['6-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-9'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-9'] }}</td>
                  </tr>
                  <tr>
                    <td>8</td>
                    <td class="yellow">{{ soAfOptimizeMap['1-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['2-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['3-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['4-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['5-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['6-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-8'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-8'] }}</td>
                  </tr>
                  <tr>
                    <td>7</td>
                    <td class="yellow">{{ soAfOptimizeMap['1-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['2-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['3-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['4-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['5-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['6-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-7'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-7'] }}</td>
                  </tr>
                  <tr>
                    <td>6</td>
                    <td class="yellow">{{ soAfOptimizeMap['1-6'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['2-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['3-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['4-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['5-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['6-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-6'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-6'] }}</td>
                  </tr>
                  <tr>
                    <td>5</td>
                    <td class="yellow">{{ soAfOptimizeMap['1-5'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['2-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['3-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['4-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['5-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['6-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-5'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-5'] }}</td>
                  </tr>
                  <tr>
                    <td>4</td>
                    <td class="green">{{ soAfOptimizeMap['1-4'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['2-4'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['3-4'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['4-4'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['5-4'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['6-4'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['7-4'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['8-4'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-4'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-4'] }}</td>
                  </tr>
                  <tr>
                    <td>3</td>
                    <td class="green">{{ soAfOptimizeMap['1-3'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['2-3'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['3-3'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['4-3'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['5-3'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['6-3'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['7-3'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['8-3'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['9-3'] }}</td>
                    <td class="red">{{ soAfOptimizeMap['10-3'] }}</td>
                  </tr>
                  <tr>
                    <td>2</td>
                    <td class="green">{{ soAfOptimizeMap['1-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['2-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['3-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['4-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['5-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['6-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['7-2'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['8-2'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['9-2'] }}</td>
                    <td class="yellow">{{ soAfOptimizeMap['10-2'] }}</td>
                  </tr>
                  <tr>
                    <td>1</td>
                    <td class="green">{{ soAfOptimizeMap['1-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['2-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['3-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['4-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['5-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['6-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['7-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['8-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['9-1'] }}</td>
                    <td class="green">{{ soAfOptimizeMap['10-1'] }}</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td>1</td>
                    <td>2</td>
                    <td>3</td>
                    <td>4</td>
                    <td>5</td>
                    <td>6</td>
                    <td>7</td>
                    <td>8</td>
                    <td>9</td>
                    <td>10</td>
                  </tr>
                  <tr class="risk-table-th">
                    <td>O/S</td>
                    <td colspan="11">S</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <a-row class="mt2 text-center">
                {{ $t('functional-analysis.top-btn.o-s') }}
              </a-row>
            </a-card>
          </a-col>
          <a-col :span="8">
            <a-card size="small">
              <div slot="title">
                {{ $t('functional-analysis.top-btn.sxd-matrix') + '\xa0(\xa0' }}
                <i class="iconfont icondantupailie red-color"></i>
                {{ ':\xa0' + totalSdAfterRed }}
                <i class="iconfont icondantupailie yellow-color"></i>
                {{ ':\xa0' + totalSdAfterYellow }}
                <i class="iconfont icondantupailie green-color"></i>
                {{ ':\xa0' + totalSdAfterGreen + '\xa0)' }}
              </div>
              <div class="risk-table">
                <table>
                  <tbody class="text-center">
                  <tr>
                    <td rowspan="11" class="risk-table-th">D</td>
                    <td>10</td>
                    <td class="yellow">{{ sdAfOptimizeMap['1-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['2-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['3-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['4-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['5-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['6-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-10'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-10'] }}</td>
                  </tr>
                  <tr>
                    <td>9</td>
                    <td class="yellow">{{ sdAfOptimizeMap['1-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['2-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['3-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['4-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['5-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['6-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-9'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-9'] }}</td>
                  </tr>
                  <tr>
                    <td>8</td>
                    <td class="yellow">{{ sdAfOptimizeMap['1-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['2-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['3-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['4-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['5-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['6-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-8'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-8'] }}</td>
                  </tr>
                  <tr>
                    <td>7</td>
                    <td class="yellow">{{ sdAfOptimizeMap['1-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['2-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['3-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['4-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['5-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['6-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-7'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-7'] }}</td>
                  </tr>
                  <tr>
                    <td>6</td>
                    <td class="yellow">{{ sdAfOptimizeMap['1-6'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['2-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['3-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['4-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['5-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['6-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-6'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-6'] }}</td>
                  </tr>
                  <tr>
                    <td>5</td>
                    <td class="yellow">{{ sdAfOptimizeMap['1-5'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['2-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['3-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['4-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['5-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['6-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-5'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-5'] }}</td>
                  </tr>
                  <tr>
                    <td>4</td>
                    <td class="green">{{ sdAfOptimizeMap['1-4'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['2-4'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['3-4'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['4-4'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['5-4'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['6-4'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['7-4'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['8-4'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-4'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-4'] }}</td>
                  </tr>
                  <tr>
                    <td>3</td>
                    <td class="green">{{ sdAfOptimizeMap['1-3'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['2-3'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['3-3'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['4-3'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['5-3'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['6-3'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['7-3'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['8-3'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['9-3'] }}</td>
                    <td class="red">{{ sdAfOptimizeMap['10-3'] }}</td>
                  </tr>
                  <tr>
                    <td>2</td>
                    <td class="green">{{ sdAfOptimizeMap['1-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['2-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['3-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['4-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['5-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['6-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['7-2'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['8-2'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['9-2'] }}</td>
                    <td class="yellow">{{ sdAfOptimizeMap['10-2'] }}</td>
                  </tr>
                  <tr>
                    <td>1</td>
                    <td class="green">{{ sdAfOptimizeMap['1-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['2-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['3-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['4-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['5-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['6-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['7-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['8-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['9-1'] }}</td>
                    <td class="green">{{ sdAfOptimizeMap['10-1'] }}</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td>1</td>
                    <td>2</td>
                    <td>3</td>
                    <td>4</td>
                    <td>5</td>
                    <td>6</td>
                    <td>7</td>
                    <td>8</td>
                    <td>9</td>
                    <td>10</td>
                  </tr>
                  <tr class="risk-table-th">
                    <td>D/S</td>
                    <td colspan="11">S</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <a-row class="mt2 text-center">
                {{ $t('functional-analysis.top-btn.d-s') }}
              </a-row>
            </a-card>
          </a-col>
          <a-col :span="8">
            <a-card size="small">
              <div slot="title">
                {{ $t('functional-analysis.top-btn.dxo-matrix') + '\xa0(\xa0' }}
                <i class="iconfont icondantupailie red-color"></i>
                {{ ':\xa0' + totalDoAfterRed }}
                <i class="iconfont icondantupailie yellow-color"></i>
                {{ ':\xa0' + totalDoAfterYellow }}
                <i class="iconfont icondantupailie green-color"></i>
                {{ ':\xa0' + totalDoAfterGreen + '\xa0)' }}
              </div>
              <div class="risk-table">
                <table>
                  <tbody class="text-center">
                  <tr>
                    <td rowspan="11" class="risk-table-th">O</td>
                    <td>10</td>
                    <td class="yellow">{{ odAfOptimizeMap['1-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['2-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['3-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['4-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['5-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['6-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-10'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-10'] }}</td>
                  </tr>
                  <tr>
                    <td>9</td>
                    <td class="yellow">{{ odAfOptimizeMap['1-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['2-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['3-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['4-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['5-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['6-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-9'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-9'] }}</td>
                  </tr>
                  <tr>
                    <td>8</td>
                    <td class="yellow">{{ odAfOptimizeMap['1-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['2-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['3-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['4-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['5-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['6-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-8'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-8'] }}</td>
                  </tr>
                  <tr>
                    <td>7</td>
                    <td class="yellow">{{ odAfOptimizeMap['1-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['2-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['3-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['4-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['5-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['6-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-7'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-7'] }}</td>
                  </tr>
                  <tr>
                    <td>6</td>
                    <td class="yellow">{{ odAfOptimizeMap['1-6'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['2-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['3-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['4-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['5-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['6-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-6'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-6'] }}</td>
                  </tr>
                  <tr>
                    <td>5</td>
                    <td class="yellow">{{ odAfOptimizeMap['1-5'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['2-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['3-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['4-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['5-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['6-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-5'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-5'] }}</td>
                  </tr>
                  <tr>
                    <td>4</td>
                    <td class="green">{{ odAfOptimizeMap['1-4'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['2-4'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['3-4'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['4-4'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['5-4'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['6-4'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['7-4'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['8-4'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-4'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-4'] }}</td>
                  </tr>
                  <tr>
                    <td>3</td>
                    <td class="green">{{ odAfOptimizeMap['1-3'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['2-3'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['3-3'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['4-3'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['5-3'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['6-3'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['7-3'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['8-3'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['9-3'] }}</td>
                    <td class="red">{{ odAfOptimizeMap['10-3'] }}</td>
                  </tr>
                  <tr>
                    <td>2</td>
                    <td class="green">{{ odAfOptimizeMap['1-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['2-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['3-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['4-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['5-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['6-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['7-2'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['8-2'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['9-2'] }}</td>
                    <td class="yellow">{{ odAfOptimizeMap['10-2'] }}</td>
                  </tr>
                  <tr>
                    <td>1</td>
                    <td class="green">{{ odAfOptimizeMap['1-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['2-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['3-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['4-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['5-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['6-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['7-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['8-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['9-1'] }}</td>
                    <td class="green">{{ odAfOptimizeMap['10-1'] }}</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td>1</td>
                    <td>2</td>
                    <td>3</td>
                    <td>4</td>
                    <td>5</td>
                    <td>6</td>
                    <td>7</td>
                    <td>8</td>
                    <td>9</td>
                    <td>10</td>
                  </tr>
                  <tr class="risk-table-th">
                    <td>O/D</td>
                    <td colspan="11">D</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <a-row class="mt2 text-center">
                {{ $t('functional-analysis.top-btn.o-d') }}
              </a-row>
            </a-card>
          </a-col>
        </a-row>
        <a-row class="mt10">
          <a-card size="small">
            <div slot="title">
              {{ 'RMR' + '\xa0(\xa0' }}
              <i class="iconfont icondantupailie red-color"></i>
              {{ ':\xa0' + (rmrAfOptimizeMap['RMR-RED-AF'] || 0) }}
              <i class="iconfont icondantupailie yellow-color"></i>
              {{ ':\xa0' + (rmrAfOptimizeMap['RMR-YELLOW-AF'] || 0) }}
              <i class="iconfont icondantupailie green-color"></i>
              {{ ':\xa0' + (rmrAfOptimizeMap['RMR-GREEN-AF'] || 0) + '\xa0)' }}
            </div>
            <div class="risk-table">
              <table>
                <tbody class="text-center">
                <tr>
                  <td class="risk-table-th">SXO</td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                </tr>
                <tr>
                  <td class="risk-table-th">SXD</td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                </tr>
                <tr>
                  <td class="risk-table-th">DXO</td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="red"></td>
                  <td class="red"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="red"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                  <td class="green"></td>
                  <td class="yellow"></td>
                  <td class="green"></td>
                </tr>
                <tr>
                  <td class="risk-table-th">RMR</td>
                  <td class="red">{{ rmrAfOptimizeMap['RRR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RRY'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RYR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['YRR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RRG'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RGR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['GRR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RYY'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['YRY'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['YYR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RYG'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RGY'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['YRG'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['GRY'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['YGR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['GYR'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['RGG'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['GRG'] }}</td>
                  <td class="red">{{ rmrAfOptimizeMap['GGR'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['YYY'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['YYG'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['YGY'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['GYY'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['YGG'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['GYG'] }}</td>
                  <td class="yellow">{{ rmrAfOptimizeMap['GGY'] }}</td>
                  <td class="green">{{ rmrAfOptimizeMap['GGG'] }}</td>
                </tr>
                </tbody>
              </table>
            </div>
          </a-card>
        </a-row>
      </a-card>
      <!-- 改善后 End -->
    </a-spin>
  </div>
</template>
<script>

export default {
  name: "RiskMatrix",
  data() {
    return {
      /** 改善前/SXO矩阵 */
      soBeOptimizeMap: {},
      totalSoBeforeRed: 0,
      totalSoBeforeYellow: 0,
      totalSoBeforeGreen: 0,

      /** 改善前/SXD矩阵 */
      sdBeOptimizeMap: {},
      totalSdBeforeRed: 0,
      totalSdBeforeYellow: 0,
      totalSdBeforeGreen: 0,

      /** 改善前/DXO矩阵 */
      odBeOptimizeMap: {},
      totalDoBeforeRed: 0,
      totalDoBeforeYellow: 0,
      totalDoBeforeGreen: 0,

      /** 改善前/RMR矩阵 */
      rmrBeOptimizeMap: {},

      /** 改善后/SXO矩阵 */
      soAfOptimizeMap: {},
      totalSoAfterRed: 0,
      totalSoAfterYellow: 0,
      totalSoAfterGreen: 0,

      /** 改善后/SXD矩阵 */
      sdAfOptimizeMap: {},
      totalSdAfterRed: 0,
      totalSdAfterYellow: 0,
      totalSdAfterGreen: 0,

      /** 改善后/DXO矩阵 */
      odAfOptimizeMap: {},
      totalDoAfterRed: 0,
      totalDoAfterYellow: 0,
      totalDoAfterGreen: 0,

      /** 改善后/RMR矩阵 */
      rmrAfOptimizeMap: {},

      /** Loading */
      loading: false
    };
  },
  mounted() {
    this.list();
  },
  methods: {
    /**
     * 列表
     */
    list(struId = undefined) {
      let _that = this;
      _that.loading = true;
      _that.$api.getRiskMatrix({
        fmeaId: _that.$store.getters.rfmeaId,
        struId: struId
      }).then(res => {
        if (res.flag) {
          _that.soBeOptimizeMap = res.data.soBeOptimizeMap;
          _that.sdBeOptimizeMap = res.data.sdBeOptimizeMap;
          _that.odBeOptimizeMap = res.data.odBeOptimizeMap;
          _that.rmrBeOptimizeMap = res.data.rmrBeOptimizeMap;
          _that.soAfOptimizeMap = res.data.soAfOptimizeMap;
          _that.sdAfOptimizeMap = res.data.sdAfOptimizeMap;
          _that.odAfOptimizeMap = res.data.odAfOptimizeMap;
          _that.rmrAfOptimizeMap = res.data.rmrAfOptimizeMap;
          _that.totalSoBeforeRed = res.data.totalSoBeforeRed;
          _that.totalSoBeforeYellow = res.data.totalSoBeforeYellow;
          _that.totalSoBeforeGreen = res.data.totalSoBeforeGreen;
          _that.totalSdBeforeRed = res.data.totalSdBeforeRed;
          _that.totalSdBeforeYellow = res.data.totalSdBeforeYellow;
          _that.totalSdBeforeGreen = res.data.totalSdBeforeGreen;
          _that.totalDoBeforeRed = res.data.totalDoBeforeRed;
          _that.totalDoBeforeYellow = res.data.totalDoBeforeYellow;
          _that.totalDoBeforeGreen = res.data.totalDoBeforeGreen;
          _that.totalSoAfterRed = res.data.totalSoAfterRed;
          _that.totalSoAfterYellow = res.data.totalSoAfterYellow;
          _that.totalSoAfterGreen = res.data.totalSoAfterGreen;
          _that.totalSdAfterRed = res.data.totalSdAfterRed;
          _that.totalSdAfterYellow = res.data.totalSdAfterYellow;
          _that.totalSdAfterGreen = res.data.totalSdAfterGreen;
          _that.totalDoAfterRed = res.data.totalDoAfterRed;
          _that.totalDoAfterYellow = res.data.totalDoAfterYellow;
          _that.totalDoAfterGreen = res.data.totalDoAfterGreen;
        } else {
          _that.$message.error(res.message, 1);
        }
      }).finally(() => {
        _that.loading = false;
      });
    },
  },
};
</script>
<style lang="less" scoped>
/** 表格头部自动换行 */
/deep/ .ant-table-thead {
  .ant-table-row-cell-ellipsis .ant-table-column-title {
    white-space: normal;
  }
}

.risk-container {
  height: calc(100vh - 400px);
  overflow-y: auto;
}

.red {
  background-color: #c84d3c;
}

.red-color {
  color: #c84d3c;
}

.yellow {
  background-color: #FF8C00;
}

.yellow-color {
  color: #FF8C00;
}

.green {
  background-color: #42a75e;
}

.green-color {
  color: #42a75e;
}

/deep/ .ant-card-body {
  padding: 10px;
}

/deep/ .risk-table {
  table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .risk-table-th {
    background-color: #fafafa;
  }


  tr td:not(:last-child) {
    border-right: 1px solid #e8e8e8;
  }

  tr:not(:last-child) td {
    border-bottom: 1px solid #e8e8e8;
  }

  tr:first-child {
    border-top-left-radius: 4px;
  }

  tbody > tr:first-child > td:first-child {
    border-top-left-radius: 4px;
  }

  tbody > tr:first-child > td:last-child {
    border-top-right-radius: 4px;
  }

  tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: 4px;
  }

  tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: 4px;
  }
}


/deep/ .risk-table td {
  width: 30px;
}

/*/deep/ .ant-table-fixed-header > .ant-table-content > .ant-table-scroll > .ant-table-body {
  overflow-y: auto !important;
}*/

</style>

