Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
0cfb379a
Commit
0cfb379a
authored
Jan 21, 2022
by
刘玉帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
柱形图的子u该
parent
5d9d4a81
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
src/components/Person_Echarts.vue
+4
-4
src/components/SearchForm.vue
+1
-1
src/utils/echarts.js
+6
-4
src/views/Home.vue
+6
-1
src/views/sjsb/index.vue
+1
-1
No files found.
src/components/Person_Echarts.vue
View file @
0cfb379a
<!--
* @Author: your name
* @Date: 2021-08-10 16:05:23
* @LastEditTime: 202
1-08-16 17:22:45
* @LastEditors:
Please set LastEditors
* @LastEditTime: 202
2-01-21 16:16:24
* @LastEditors:
LYS
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\tjfx\rkzjfx.vue
-->
...
...
@@ -60,7 +60,7 @@ export default {
}
else
if
(
i
.
type
==
"bar"
)
{
let
x
=
i
.
data
.
map
((
i
)
=>
i
.
name
);
let
data
=
i
.
data
.
map
((
i
)
=>
i
.
value
);
setBarDiagram
(
this
.
$refs
[
i
.
res
][
0
],
x
,
data
);
setBarDiagram
(
this
.
$refs
[
i
.
res
][
0
],
x
,
data
,
''
,
-
40
);
}
});
},
...
...
@@ -74,7 +74,7 @@ export default {
>
div
{
display
:
inline-block
;
background-color
:
#fff
;
height
:
3
5
0px
;
height
:
3
8
0px
;
margin-left
:
10px
;
margin-bottom
:
10px
;
vertical-align
:
middle
;
...
...
src/components/SearchForm.vue
View file @
0cfb379a
...
...
@@ -6,7 +6,7 @@
:label-width=
"sceneType == 'form' ? '100px' : '140px'"
ref=
"queryForm"
:model=
"formData"
:class=
"propQueryField.length
<
3
?
'
inlineBtn
'
:
''"
:class=
"propQueryField.length
<
2
?
'
inlineBtn
'
:
''"
:disabled=
"type == 'view'"
>
<div
class=
"zdyLine"
>
...
...
src/utils/echarts.js
View file @
0cfb379a
/*
* @Author: your name
* @Date: 2021-08-10 17:53:10
* @LastEditTime: 202
1-08-13 14:04
:16
* @LastEditors:
Please set LastEditors
* @LastEditTime: 202
2-01-21 16:17
:16
* @LastEditors:
LYS
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\utils\echarts.js
*/
...
...
@@ -78,6 +78,7 @@ export function setPieDiagram(dom, data, colorList) {
}
//柱图
export
function
setBarDiagram
(
dom
,
x
,
data
,
barColor
,
rotate
)
{
debugger
if
(
!
rotate
)
rotate
=
0
;
if
(
!
barColor
)
barColor
=
"#247FDC"
;
let
myChart
=
echarts
.
init
(
dom
);
...
...
@@ -91,10 +92,10 @@ export function setBarDiagram(dom, x, data, barColor, rotate) {
},
},
grid
:
{
top
:
"
20
%"
,
top
:
"
15
%"
,
left
:
"15%"
,
right
:
"10%"
,
bottom
:
"
22
%"
,
bottom
:
"
35
%"
,
},
xAxis
:
[
{
...
...
@@ -106,6 +107,7 @@ export function setBarDiagram(dom, x, data, barColor, rotate) {
axisLabel
:
{
color
:
"#000"
,
width
:
100
,
interval
:
0
,
rotate
:
rotate
,
},
splitLine
:
{
...
...
src/views/Home.vue
View file @
0cfb379a
...
...
@@ -85,7 +85,12 @@ export default {
};
},
created
()
{
sessionStorage
.
setItem
(
"userid"
,
'qgdsqzz01'
);
debugger
// if(this.$route.params.userid){
// sessionStorage.setItem("userid", this.$route.params.userid);
// }else{
// sessionStorage.setItem("userid", 'qgdsqzz01');
// }
},
computed
:
{
...
mapGetters
([
"defaultGoodsImage"
,
"userAuth"
]),
...
...
src/views/sjsb/index.vue
View file @
0cfb379a
...
...
@@ -148,7 +148,7 @@ export default {
key
:
1
,
pieDateList
:
""
,
//多少条数据
tableDataLength
:
99
,
tableDataLength
:
0
,
//范围显示的数据
positionList
:
[],
// 表单 子传父的数据 按顺序进行展示
...
...
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