| | |
| | | <span |
| | | class="fontStyle" |
| | | v-if="data.baseInfo[initialIndex].labels" |
| | | >/ {{ data.baseInfo[initialIndex].labels.split("/")[1] }}</span> |
| | | >/ {{ data.baseInfo[initialIndex].labels | idCard}}</span> |
| | | <span |
| | | class="fontStyle" |
| | | v-if="data.baseInfo[initialIndex].monitorLevel" |
| | |
| | | <span |
| | | class="fontStyle" |
| | | v-if="data.baseInfo[initialIndex].labels" |
| | | >/ {{ data.baseInfo[initialIndex].labels.split("/")[1] }}</span> |
| | | >/ {{ data.baseInfo[initialIndex].labels | idCard}}</span> |
| | | <span |
| | | class="fontStyle" |
| | | v-if="data.baseInfo[initialIndex].monitorLevel" |
| | |
| | | <span>{{ data.baseInfo[0].targetName }}</span> |
| | | <span |
| | | v-if="data.baseInfo[0].labels" |
| | | >/ {{ data.baseInfo[0].labels.split("/")[1] }}</span> |
| | | >/ {{ data.baseInfo[0].labels | idCard}}</span> |
| | | </p> |
| | | </div> |
| | | <div class="card-icon-box"> |
| | |
| | | <div slot="content"> |
| | | <p v-for="(item,index) in data.baseInfo" :key="index+'base1'"> |
| | | <span class="fontStyle">{{item.tableName}}</span> |
| | | <span class="fontStyle" v-if="item.targetName !== ''">/ {{item.targetName}}</span> |
| | | <span class="fontStyle" v-if="item.targetName.length">/ {{item.targetName}}</span> |
| | | <span |
| | | class="fontStyle" |
| | | v-if="item.labels !== '' && item.labels.split('/')[1] !== ''" |
| | | >/ {{item.labels.split("/")[1]}}</span> |
| | | <span |
| | | class="fontStyle" |
| | | v-if="item.labels !== '' && item.labels.split('/')[0] !== ''" |
| | | >/ {{item.labels.split("/")[0]}}</span> |
| | | v-if="item.labels.length" |
| | | >/ {{item.labels | idCard}}</span> |
| | | <span class="fontStyle" v-if="item.labels.length">/ {{item.labels | sex}}</span> |
| | | </p> |
| | | </div> |
| | | <el-button |
| | |
| | | :style="item.bwType == '1' ? 'color:red;font-size:12px;line-height:20px':'font-size:12px;line-height:20px'" |
| | | > |
| | | <span class="fontStyle">{{item.tableName}}</span> |
| | | <span class="fontStyle" v-if="item.targetName !== ''">/ {{item.targetName}}</span> |
| | | <span class="fontStyle" v-if="item.targetName.length">/ {{item.targetName}}</span> |
| | | <span |
| | | class="fontStyle" |
| | | v-if="item.labels !== '' && item.labels.split('/')[1] !== ''" |
| | | >/ {{item.labels.split("/")[1]}}</span> |
| | | <span |
| | | class="fontStyle" |
| | | v-if="item.labels !== '' && item.labels.split('/')[0] !== ''" |
| | | >/ {{item.labels.split("/")[0]}}</span> |
| | | v-if="item.labels.length" |
| | | >/ {{item.labels | idCard}}</span> |
| | | <span class="fontStyle" v-if="item.labels.length">/ {{item.labels |sex }}</span> |
| | | </span> |
| | | </el-button> |
| | | </el-tooltip> |
| | |
| | | }, |
| | | percentage(score) { |
| | | return score.toFixed(2) + "%" |
| | | }, |
| | | idCard(v) { |
| | | try { |
| | | let obj = JSON.parse(v) |
| | | return obj.idCard |
| | | } catch (error) { |
| | | return v.split("/")[1] |
| | | } |
| | | }, |
| | | sex(v) { |
| | | try { |
| | | let obj = JSON.parse(v) |
| | | return obj.sex |
| | | } catch (error) { |
| | | return v.split("/")[0] |
| | | } |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | tempShowType: true, |