Commit 153b6270 authored by 张伯涛's avatar 张伯涛

去掉没用的用户头像

parent 7a5a0917
......@@ -62,7 +62,8 @@ const user = {
return new Promise((resolve, reject) => {
getInfo(state.token).then(res => {
const user = res.data.user
const avatar = user.avatar === null ? require('@/assets/image/profile.jpg') : user.avatar
const avatar = user.avatar
// const avatar = user.avatar === null ? require('@/assets/image/profile.jpg') : user.avatar
if (res.data.roles && res.data.roles.length > 0) { // 验证返回的roles是否是一个非空数组
commit('SET_ROLES', res.data.roles)
} else {
......
......@@ -152,23 +152,11 @@
</el-table-column>
<el-table-column align="center" prop="failureProportion" :show-overflow-tooltip="true">
<template #header>
<!-- <div v-if="choseType === 'day'|| choseType === 'week'|| choseType === 'month' ">-->
<div>不良占比</div>
<div>FailureProportion</div>
<!-- </div>-->
<!-- <div v-else>-->
<!-- <div>误测次数</div>-->
<!-- <div>errorNum</div>-->
<!-- </div>-->
</template>
<template slot-scope="scope">
<span v-if="choseType === 'day'|| choseType === 'week'|| choseType === 'month' ">
<span v-if="scope.row.failureProportion"> {{ scope.row.failureProportion }}%</span>
<span v-else>-</span>
</span>
<span v-else>
{{ scope.row.errorNum || '-' }}
</span>
{{ scope.row.failureProportion + '%' || '-' }}
</template>
</el-table-column>
</el-table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment