Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
NLT-e-cigarette
Commits
153b6270
Commit
153b6270
authored
Aug 15, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉没用的用户头像
parent
7a5a0917
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
14 deletions
+3
-14
profile.jpg
src/assets/image/profile.jpg
+0
-0
user.js
src/store/modules/user.js
+2
-1
repairStatistics.vue
src/views/productionStatis/repairStatistics.vue
+1
-13
No files found.
src/assets/image/profile.jpg
deleted
100644 → 0
View file @
7a5a0917
79.2 KB
src/store/modules/user.js
View file @
153b6270
...
...
@@ -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
{
...
...
src/views/productionStatis/repairStatistics.vue
View file @
153b6270
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment