feat 优化代码
This commit is contained in:
@@ -5,10 +5,6 @@
|
||||
"ComputedRef": true,
|
||||
"DirectiveBinding": true,
|
||||
"EffectScope": true,
|
||||
"ElLoading": true,
|
||||
"ElMessage": true,
|
||||
"ElMessageBox": true,
|
||||
"ElNotification": true,
|
||||
"ExtractDefaultPropTypes": true,
|
||||
"ExtractPropTypes": true,
|
||||
"ExtractPublicPropTypes": true,
|
||||
|
||||
@@ -76,7 +76,8 @@
|
||||
<el-tag v-if="scope.row.batteryLevel2" :style="scope.row.batteryLevel1 && scope.row.batteryLevel2 ? 'margin-left: 10px' : ''">
|
||||
{{ scope.row.batteryLevel2 + '%' }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="info"> 未获取 </el-tag>
|
||||
<!-- <el-tag v-else type="info"> 未获取 </el-tag> -->
|
||||
<el-tag v-if="!scope.row.batteryLevel1 && !scope.row.batteryLevel2"> 未获取 </el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备型号" align="center" prop="model" />
|
||||
|
||||
Reference in New Issue
Block a user