Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6107e6d9
authored
Dec 14, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复第一轮bug
1 parent
fa8d3994
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
16 deletions
src/views/home/index.vue
src/views/user/assign.vue
src/views/user/import.vue
src/views/user/index.vue
src/views/home/index.vue
View file @
6107e6d
...
@@ -308,8 +308,8 @@ export default {
...
@@ -308,8 +308,8 @@ export default {
// 离线率
// 离线率
let
n
=
[];
let
n
=
[];
n
.
push
({
value
:
this
.
accSub
(
100
,
obj
.
offlineRate
),
name
:
""
});
n
.
push
({
value
:
obj
.
offlineRate
,
name
:
""
});
n
.
push
({
value
:
obj
.
offlineRate
,
name
:
""
});
n
.
push
({
value
:
this
.
accSub
(
100
,
obj
.
offlineRate
),
name
:
""
});
if
(
this
.
hasPermission
(
'data_doard_offLine'
))
{
if
(
this
.
hasPermission
(
'data_doard_offLine'
))
{
n
=
[]
n
=
[]
...
@@ -317,7 +317,7 @@ export default {
...
@@ -317,7 +317,7 @@ export default {
n
.
push
({
value
:
this
.
accSub
(
obj
.
offlineRate
,
obj
.
fakeOfflineRate
),
name
:
""
});
n
.
push
({
value
:
this
.
accSub
(
obj
.
offlineRate
,
obj
.
fakeOfflineRate
),
name
:
""
});
n
.
push
({
value
:
this
.
addSub
(
b
,
obj
.
fakeOfflineRate
),
name
:
""
});
n
.
push
({
value
:
this
.
addSub
(
b
,
obj
.
fakeOfflineRate
),
name
:
""
});
}
}
this
.
create
Bind
Chart
(
"offlineChart"
,
n
);
this
.
createChart
(
"offlineChart"
,
n
);
// 假性离线率
// 假性离线率
let
x
=
[]
let
x
=
[]
...
@@ -430,12 +430,43 @@ export default {
...
@@ -430,12 +430,43 @@ export default {
show
:
false
,
show
:
false
,
},
},
data
:
data
,
data
:
data
,
// minAngle: 20
minAngle
:
11
},
],
});
},
createChart
(
id
,
data
)
{
var
aChart
=
echarts
.
init
(
document
.
getElementById
(
id
));
aChart
.
setOption
({
tooltip
:
{
show
:
true
,
formatter
:
"{c0}%"
,
},
legendHoverLink
:
false
,
color
:
[
"#F6B06F"
,
"#c0c0c0"
,
"#fac858"
,
"#ee6666"
,
"#73c0de"
,
"#3ba272"
,
"#fc8452"
,
"#9a60b4"
,
"#ea7ccc"
,
],
series
:
[
{
type
:
"pie"
,
radius
:
[
"40%"
,
"70%"
],
labelLine
:
{
show
:
false
,
},
data
:
data
,
minAngle
:
11
},
},
],
],
});
});
},
},
// 页面跳转
// 页面跳转
linkToPage
(
path
,
start
,
end
)
{
linkToPage
(
path
,
start
,
end
)
{
let
row
=
{
alarmStatus
:
1
};
let
row
=
{
alarmStatus
:
1
};
...
...
src/views/user/assign.vue
View file @
6107e6d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<select-info
ref=
"selectInfoCom"
:id=
"id"
:key=
"id"
></select-info>
<select-info
ref=
"selectInfoCom"
:id=
"id"
:key=
"id"
></select-info>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"导入数据"
name=
"2"
>
<el-tab-pane
label=
"导入数据"
name=
"2"
>
<import-vehicle
ref=
"importVehicleCom"
:id=
"id"
:key=
"id"
></import-vehicle>
<import-vehicle
ref=
"importVehicleCom"
:id=
"id"
:key=
"id"
@
monitorFlag=
"monitorFlag"
@
monitorChangeFlag=
"monitorChangeFlag"
></import-vehicle>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"按组织授权"
name=
"3"
>
<el-tab-pane
label=
"按组织授权"
name=
"3"
>
<authorization-info
ref=
"authorizationInfoCom"
:id=
"id"
:key=
"id"
></authorization-info>
<authorization-info
ref=
"authorizationInfoCom"
:id=
"id"
:key=
"id"
></authorization-info>
...
@@ -35,7 +35,8 @@ export default {
...
@@ -35,7 +35,8 @@ export default {
activeTabs
:
"1"
,
activeTabs
:
"1"
,
userId
:
""
,
userId
:
""
,
randomKey
:
""
,
randomKey
:
""
,
monitorFlags
:
false
monitorFlags
:
false
,
showBtnFlag
:
true
};
};
},
},
watch
:
{
watch
:
{
...
@@ -63,8 +64,20 @@ export default {
...
@@ -63,8 +64,20 @@ export default {
return
false
;
return
false
;
}
}
this
.
$refs
.
importVehicleCom
.
saveInfo
();
this
.
$refs
.
importVehicleCom
.
saveInfo
();
this
.
monitorFlags
=
this
.
$refs
.
importVehicleCom
.
monitorFlag
;
},
},
monitorFlag
(
val
)
{
this
.
monitorFlags
=
val
},
monitorChangeFlag
(
val
)
{
if
(
val
&&
!
this
.
monitorFlags
)
{
this
.
showBtnFlag
=
true
}
if
(
this
.
monitorFlags
)
{
this
.
showBtnFlag
=
false
this
.
monitorFlags
=
!
this
.
monitorFlags
}
this
.
$emit
(
'showBtnFlags'
,
this
.
showBtnFlag
)
}
},
},
};
};
</
script
>
</
script
>
...
...
src/views/user/import.vue
View file @
6107e6d
...
@@ -66,8 +66,7 @@ export default {
...
@@ -66,8 +66,7 @@ export default {
uploadParams
:
{},
uploadParams
:
{},
uploadResult
:
{},
uploadResult
:
{},
acceptFile
:
".xlsx,.xls"
,
acceptFile
:
".xlsx,.xls"
,
fileList
:
[],
fileList
:
[]
monitorFlag
:
false
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -87,6 +86,7 @@ export default {
...
@@ -87,6 +86,7 @@ export default {
this
.
uploadFile
=
file
;
this
.
uploadFile
=
file
;
this
.
fileList
=
[
file
];
this
.
fileList
=
[
file
];
}
}
this
.
$emit
(
'monitorChangeFlag'
,
true
)
},
},
// 下载失败文件
// 下载失败文件
...
@@ -98,7 +98,6 @@ export default {
...
@@ -98,7 +98,6 @@ export default {
// 文件上传前
// 文件上传前
beforeUpload
()
{
beforeUpload
()
{
this
.
uploadResult
=
{};
this
.
uploadResult
=
{};
this
.
monitorFlag
=
false
;
},
},
// 文件上传失败
// 文件上传失败
...
@@ -109,7 +108,7 @@ export default {
...
@@ -109,7 +108,7 @@ export default {
// 监听文件上传成功
// 监听文件上传成功
onSuccess
(
response
,
file
,
fileList
)
{
onSuccess
(
response
,
file
,
fileList
)
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
monitorFlag
=
true
;
this
.
$emit
(
'monitorFlag'
,
true
)
let
_this
=
this
;
let
_this
=
this
;
broadcast
(
"cancel-loading"
);
broadcast
(
"cancel-loading"
);
_this
.
$refs
.
uploadBox
.
clearFiles
();
_this
.
$refs
.
uploadBox
.
clearFiles
();
...
...
src/views/user/index.vue
View file @
6107e6d
...
@@ -59,11 +59,11 @@
...
@@ -59,11 +59,11 @@
<!-- 指定数据弹框 开始 -->
<!-- 指定数据弹框 开始 -->
<glsx-dialog
:show=
"showDialog"
title=
"指定数据"
@
close=
"closeDialog()"
width=
"900px"
>
<glsx-dialog
:show=
"showDialog"
title=
"指定数据"
@
close=
"closeDialog()"
width=
"900px"
>
<div>
<div>
<assign-info
ref=
"assignInfo"
v-if=
"showDialog"
:id=
"currentUserId"
></assign-info>
<assign-info
ref=
"assignInfo"
v-if=
"showDialog"
:id=
"currentUserId"
@
showBtnFlags=
"showBtnFlags"
></assign-info>
</div>
</div>
<template
slot=
"footer"
>
<template
slot=
"footer"
>
<el-button
type=
"default"
size=
"small"
@
click=
"closeDialog"
>
取消
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"closeDialog"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
:loading=
"loading"
@
click=
"saveInfo"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"small"
:loading=
"loading"
@
click=
"saveInfo"
v-show=
"showFlags"
>
确定
</el-button>
</
template
>
</
template
>
</glsx-dialog>
</glsx-dialog>
<!-- 指定数据弹框 end -->
<!-- 指定数据弹框 end -->
...
@@ -314,6 +314,7 @@ export default {
...
@@ -314,6 +314,7 @@ export default {
showDialog
:
false
,
showDialog
:
false
,
loading
:
false
,
loading
:
false
,
currentUserId
:
""
,
currentUserId
:
""
,
showFlags
:
true
};
};
},
},
watch
:
{
watch
:
{
...
@@ -336,6 +337,9 @@ export default {
...
@@ -336,6 +337,9 @@ export default {
this
.
init
();
this
.
init
();
},
},
methods
:
{
methods
:
{
showBtnFlags
(
val
)
{
this
.
showFlags
=
val
},
init
()
{
init
()
{
this
.
getTreeOrg
();
this
.
getTreeOrg
();
// this.getRoleList();
// this.getRoleList();
...
@@ -731,15 +735,13 @@ export default {
...
@@ -731,15 +735,13 @@ export default {
// 关闭弹框
// 关闭弹框
closeDialog
()
{
closeDialog
()
{
this
.
showDialog
=
false
;
this
.
showDialog
=
false
;
this
.
showFlags
=
true
;
},
},
// 保存数据
// 保存数据
saveInfo
()
{
saveInfo
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
$refs
.
assignInfo
.
saveInfo
();
this
.
$refs
.
assignInfo
.
saveInfo
();
if
(
this
.
$refs
.
assignInfo
.
monitorFlags
)
{
this
.
loading
=
false
;
}
},
},
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment