Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FTT_Board
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
Administrator
FTT_Board
Commits
8702fdc1
Commit
8702fdc1
authored
Sep 04, 2019
by
王文琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加看板模板
parent
22e394e6
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
301 additions
and
109 deletions
+301
-109
index.js
FTT.Board.VueUI/config/index.js
+2
-1
package-lock.json
FTT.Board.VueUI/package-lock.json
+101
-55
package.json
FTT.Board.VueUI/package.json
+6
-2
comboxstore.js
FTT.Board.VueUI/src/config/comboxstore.js
+5
-0
index.js
FTT.Board.VueUI/src/router/index.js
+122
-33
detail.vue
FTT.Board.VueUI/src/views/board/boardlist/detail.vue
+1
-0
index.vue
FTT.Board.VueUI/src/views/board/boardlist/index.vue
+4
-1
index.vue
FTT.Board.VueUI/src/views/board/index.vue
+38
-13
head.vue
FTT.Board.VueUI/src/views/chart/head.vue
+1
-0
menutree.vue
FTT.Board.VueUI/src/views/home/menutree.vue
+21
-4
No files found.
FTT.Board.VueUI/config/index.js
View file @
8702fdc1
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
var
configjson
=
require
(
"../static/config.json"
)
var
configjson
=
require
(
"../static/config.json"
)
var
baseurl
=
process
.
env
.
IsNeedConfig
?
configjson
.
config
.
ProjectName
+
"/"
:
"FTT.Board/"
;
var
baseurl
=
process
.
env
.
IsNeedConfig
?
configjson
.
config
.
ProjectName
+
"/"
:
"FTT.Board/"
;
console
.
log
(
baseurl
);
module
.
exports
=
{
module
.
exports
=
{
dev
:
{
dev
:
{
...
@@ -13,7 +14,7 @@ module.exports = {
...
@@ -13,7 +14,7 @@ module.exports = {
assetsPublicPath
:
'/'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{
proxyTable
:
{
"/api"
:{
"/api"
:{
target
:
"http://localhost/"
+
baseurl
,
target
:
"http://192.168.1.201:8000/Board/"
,
//+baseurl
// target:'http://jhdsoft.gicp.net:9201/fd_board/',
// target:'http://jhdsoft.gicp.net:9201/fd_board/',
changOrigin
:
true
,
changOrigin
:
true
,
pathRewrite
:{
pathRewrite
:{
...
...
FTT.Board.VueUI/package-lock.json
View file @
8702fdc1
This diff is collapsed.
Click to expand it.
FTT.Board.VueUI/package.json
View file @
8702fdc1
...
@@ -10,10 +10,12 @@
...
@@ -10,10 +10,12 @@
"build"
:
"node build/build.js"
"build"
:
"node build/build.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"axios"
:
"^0.19.0"
,
"element-ui"
:
"^2.7.2"
,
"echarts"
:
"^4.2.1"
,
"element-ui"
:
"^2.11.1"
,
"moment"
:
"^2.24.0"
,
"moment"
:
"^2.24.0"
,
"vue"
:
"^2.5.2"
,
"vue"
:
"^2.5.2"
,
"vue-drag-resize"
:
"^1.3.2"
,
"vue-router"
:
"^3.0.1"
,
"vue-router"
:
"^3.0.1"
,
"vue-seamless-scroll"
:
"^1.1.16"
"vue-seamless-scroll"
:
"^1.1.16"
},
},
...
@@ -37,6 +39,7 @@
...
@@ -37,6 +39,7 @@
"friendly-errors-webpack-plugin"
:
"^1.6.1"
,
"friendly-errors-webpack-plugin"
:
"^1.6.1"
,
"html-webpack-plugin"
:
"^2.30.1"
,
"html-webpack-plugin"
:
"^2.30.1"
,
"node-notifier"
:
"^5.1.2"
,
"node-notifier"
:
"^5.1.2"
,
"node-sass"
:
"^4.12.0"
,
"optimize-css-assets-webpack-plugin"
:
"^3.2.0"
,
"optimize-css-assets-webpack-plugin"
:
"^3.2.0"
,
"ora"
:
"^1.2.0"
,
"ora"
:
"^1.2.0"
,
"portfinder"
:
"^1.0.13"
,
"portfinder"
:
"^1.0.13"
,
...
@@ -44,6 +47,7 @@
...
@@ -44,6 +47,7 @@
"postcss-loader"
:
"^2.0.8"
,
"postcss-loader"
:
"^2.0.8"
,
"postcss-url"
:
"^7.2.1"
,
"postcss-url"
:
"^7.2.1"
,
"rimraf"
:
"^2.6.0"
,
"rimraf"
:
"^2.6.0"
,
"sass-loader"
:
"^7.2.0"
,
"semver"
:
"^5.3.0"
,
"semver"
:
"^5.3.0"
,
"shelljs"
:
"^0.7.6"
,
"shelljs"
:
"^0.7.6"
,
"uglifyjs-webpack-plugin"
:
"^1.1.1"
,
"uglifyjs-webpack-plugin"
:
"^1.1.1"
,
...
...
FTT.Board.VueUI/src/config/comboxstore.js
View file @
8702fdc1
...
@@ -46,6 +46,11 @@ export default {
...
@@ -46,6 +46,11 @@ export default {
{
ID
:
3
,
Text
:
"Panle1"
,
name
:
"panle1"
,
src
:
require
(
"@/assets/image/panle1.jpg"
)},
{
ID
:
3
,
Text
:
"Panle1"
,
name
:
"panle1"
,
src
:
require
(
"@/assets/image/panle1.jpg"
)},
{
ID
:
4
,
Text
:
"Panle2"
,
name
:
"panle2"
,
src
:
require
(
"@/assets/image/panle2.jpg"
)},
{
ID
:
4
,
Text
:
"Panle2"
,
name
:
"panle2"
,
src
:
require
(
"@/assets/image/panle2.jpg"
)},
{
ID
:
5
,
Text
:
"Table1"
,
name
:
"table1"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
{
ID
:
5
,
Text
:
"Table1"
,
name
:
"table1"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
{
ID
:
6
,
Text
:
"pie"
,
name
:
"pie"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
{
ID
:
7
,
Text
:
"radar"
,
name
:
"雷达图"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
{
ID
:
8
,
Text
:
"bar"
,
name
:
"柱状图"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
{
ID
:
9
,
Text
:
"scatter"
,
name
:
"散点图"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
{
ID
:
10
,
Text
:
"chartLine"
,
name
:
"折线图"
,
src
:
require
(
"@/assets/image/table1.jpg"
)},
],
],
RefreshTypeCombox
:
[
RefreshTypeCombox
:
[
...
...
FTT.Board.VueUI/src/router/index.js
View file @
8702fdc1
import
Vue
from
'vue'
import
Vue
from
'vue'
import
Router
from
'vue-router'
import
Router
from
'vue-router'
const
home
=
r
=>
{
require
.
ensure
([
'../views/home/index.vue'
],
()
=>
{
r
(
require
(
'../views/home/index.vue'
))
})
}
// board
import
home
from
'../views/home/index.vue'
//boardlist
import
boardlist
from
'../views/board/boardlist/index.vue'
const
boardlist
=
r
=>
{
require
.
ensure
([
'../views/board/boardlist/index.vue'
],
()
=>
{
r
(
require
(
'../views/board/boardlist/index.vue'
))
})
}
import
chartList
from
'../views/board/chartList/index.vue'
const
board
=
r
=>
{
require
.
ensure
([
'../views/board/index.vue'
],
()
=>
{
r
(
require
(
'../views/board/index.vue'
))
})
}
import
board
from
'../views/board/index'
import
chartPie
from
'../views/chart/echarts/pie'
import
chartRadar
from
'../views/chart/echarts/radar'
import
chartBar
from
'../views/chart/echarts/bar'
import
chartScatter
from
'../views/chart/echarts/scatter'
import
chartLine
from
'../views/chart/echarts/line'
import
chartDemo
from
'../views/board/chartDemo'
import
chartDemo1
from
'../views/board/chartDemo1'
import
test
from
'../views/test/index'
import
chartDemoList
from
'../views/board/chartdemoList'
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
export
default
new
Router
({
export
default
new
Router
({
...
@@ -25,6 +35,22 @@ export default new Router({
...
@@ -25,6 +35,22 @@ export default new Router({
},
},
component
:
boardlist
,
component
:
boardlist
,
},
},
{
path
:
'/chartlist'
,
name
:
'chartlist'
,
meta
:
{
title
:
'图表列表'
,
},
component
:
chartList
,
},
{
path
:
'/chartdemoList'
,
name
:
'chartDemoList'
,
meta
:
{
title
:
'图表列表2'
,
},
component
:
chartDemoList
,
},
]
]
},
},
...
@@ -36,6 +62,69 @@ export default new Router({
...
@@ -36,6 +62,69 @@ export default new Router({
},
},
component
:
board
,
component
:
board
,
},
},
{
path
:
'/pie'
,
name
:
'pie'
,
meta
:
{
title
:
'饼图'
,
},
component
:
chartPie
,
},
{
path
:
'/bar'
,
name
:
'bar'
,
meta
:
{
title
:
'柱状图'
,
},
component
:
chartBar
,
},
{
path
:
'/radar'
,
name
:
'radar'
,
meta
:
{
title
:
'雷达图'
,
},
component
:
chartRadar
,
},
{
path
:
'/test'
,
name
:
'test'
,
meta
:
{
title
:
'测试'
,
},
component
:
test
,
},
{
path
:
'/scatter'
,
name
:
'scatter'
,
meta
:
{
title
:
'散点图'
,
},
component
:
chartScatter
,
},
{
path
:
'/line'
,
name
:
'line'
,
meta
:
{
title
:
'折线图'
,
},
component
:
chartLine
,
},
{
path
:
'/chartdemo'
,
name
:
'chartdemo'
,
meta
:
{
title
:
'图表模板'
,
},
component
:
chartDemo
,
},{
path
:
'/chartdemo1'
,
name
:
'chartdemo1'
,
meta
:
{
title
:
'图表模板1'
,
},
component
:
chartDemo1
,
},
],
],
})
})
FTT.Board.VueUI/src/views/board/boardlist/detail.vue
View file @
8702fdc1
...
@@ -441,6 +441,7 @@ export default {
...
@@ -441,6 +441,7 @@ export default {
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
valid
);
this
.
Action
(
this
.
ActionBtn
);
this
.
Action
(
this
.
ActionBtn
);
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
...
...
FTT.Board.VueUI/src/views/board/boardlist/index.vue
View file @
8702fdc1
...
@@ -220,6 +220,7 @@ export default {
...
@@ -220,6 +220,7 @@ export default {
return
name
;
return
name
;
},
},
load
()
{
load
()
{
console
.
log
(
"请求数据11。。。"
)
var
me
=
this
;
var
me
=
this
;
me
.
Loading
=
true
;
me
.
Loading
=
true
;
var
url
=
me
.
Api
.
get
.
url
;
var
url
=
me
.
Api
.
get
.
url
;
...
@@ -234,6 +235,8 @@ export default {
...
@@ -234,6 +235,8 @@ export default {
me
.
DataList
=
res
.
rows
;
me
.
DataList
=
res
.
rows
;
}
}
me
.
Loading
=
false
;
me
.
Loading
=
false
;
}).
catch
((
res
)
=>
{
console
.
log
(
res
)
});
});
},
},
currentPageChange
(
val
)
{
currentPageChange
(
val
)
{
...
...
FTT.Board.VueUI/src/views/board/index.vue
View file @
8702fdc1
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
>
>
<template
v-if=
"item.length>0"
>
<template
v-if=
"item.length>0"
>
<div
<div
class=
"allContent"
v-for=
"(rows,index1) in item"
v-for=
"(rows,index1) in item"
:key=
"rows+'row'"
:key=
"rows+'row'"
:style=
"
{height:getRowHeight(item,index1)+'%'}"
:style=
"
{height:getRowHeight(item,index1)+'%'}"
...
@@ -41,6 +42,7 @@
...
@@ -41,6 +42,7 @@
<div
<div
:key=
"index2+'column'"
:key=
"index2+'column'"
class=
"columndiv"
class=
"columndiv"
:style=
"
{width:getChartWidth(GetChartStore(column),rows),height:100+'%',borderColor:ruleForm.BorderColor==null?'red':ruleForm.BorderColor}"
:style=
"
{width:getChartWidth(GetChartStore(column),rows),height:100+'%',borderColor:ruleForm.BorderColor==null?'red':ruleForm.BorderColor}"
>
>
<component
<component
...
@@ -48,6 +50,7 @@
...
@@ -48,6 +50,7 @@
:boardstore=
"ruleForm"
:boardstore=
"ruleForm"
:chart=
"GetChartStore(column)"
:chart=
"GetChartStore(column)"
:Api=
"Api.charapi"
:Api=
"Api.charapi"
:id=
"id1+index2"
v-if=
"GetChartStore(column).IsShow"
v-if=
"GetChartStore(column).IsShow"
></component>
></component>
</div>
</div>
...
@@ -80,6 +83,11 @@ import comFoot from "@/views/chart/foot";
...
@@ -80,6 +83,11 @@ import comFoot from "@/views/chart/foot";
import
Panle1
from
"@/views/chart/Panle1"
;
import
Panle1
from
"@/views/chart/Panle1"
;
import
Panle2
from
"@/views/chart/Panle2"
;
import
Panle2
from
"@/views/chart/Panle2"
;
import
Table1
from
"@/views/chart/Table1"
;
import
Table1
from
"@/views/chart/Table1"
;
import
pie
from
"@/views/chart/echarts/pie/index"
;
import
radar
from
"@/views/chart/echarts/radar/index"
;
import
bar
from
"@/views/chart/echarts/bar/index"
;
import
scatter
from
"@/views/chart/echarts/scatter/index"
;
import
chartLine
from
"@/views/chart/echarts/line/index"
;
export
default
{
export
default
{
name
:
"board"
,
name
:
"board"
,
components
:
{
components
:
{
...
@@ -87,7 +95,12 @@ export default {
...
@@ -87,7 +95,12 @@ export default {
comFoot
,
comFoot
,
Panle1
,
Panle1
,
Panle2
,
Panle2
,
Table1
Table1
,
pie
,
radar
,
bar
,
scatter
,
chartLine
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -99,7 +112,11 @@ export default {
...
@@ -99,7 +112,11 @@ export default {
comboxstore
:
comBox
,
comboxstore
:
comBox
,
ruleForm
:
null
,
ruleForm
:
null
,
timer1
:
null
,
timer1
:
null
,
pageindex
:
0
pageindex
:
0
,
id1
:
'pie1'
,
// columWidth:0,
// columHeight:0
};
};
},
},
watch
:
{
watch
:
{
...
@@ -121,29 +138,34 @@ export default {
...
@@ -121,29 +138,34 @@ export default {
}
}
}
}
},
},
created
()
{
var
boardid
=
this
.
$route
.
query
.
BoardID
;
this
.
pageindex
=
this
.
$route
.
query
.
PageIndex
;
this
.
Load
(
boardid
);
},
mounted
()
{
mounted
()
{
var
id
=
this
.
$route
.
query
.
BoardID
;
var
id
=
this
.
$route
.
query
.
BoardID
;
var
me
=
this
;
//声明一个变量指向vue实例this,保证作用域一致
var
me
=
this
;
//声明一个变量指向vue实例this,保证作用域一致
this
.
timer
=
setInterval
(
function
()
{
this
.
timer
=
setInterval
(
function
()
{
me
.
Load
(
id
);
//修改数据date
me
.
Load
(
id
);
//修改数据date
},
3000
);
},
3000
);
// this.$nextTick(() => {
// setInterval(() => {
// console.log("下一页");
// me.setActiveItem("page1");
// }, me.time);
// });
},
},
methods
:
{
methods
:
{
Load
(
id
)
{
Load
(
id
)
{
console
.
log
(
"请求数据。。。"
)
var
me
=
this
;
var
me
=
this
;
Axios
({
Axios
({
method
:
"get"
,
method
:
"get"
,
url
:
me
.
Api
.
get
.
url
,
url
:
me
.
Api
.
get
.
url
,
params
:
{
MID
:
id
}
params
:
{
MID
:
id
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
me
.
ruleForm
=
res
.
rows
[
0
];
me
.
ruleForm
=
res
.
rows
[
0
];
console
.
log
(
JSON
.
stringify
(
me
.
ruleForm
))
}
else
{
}
else
{
me
.
$message
.
error
(
res
.
message
);
me
.
$message
.
error
(
res
.
message
);
}
}
...
@@ -200,6 +222,7 @@ export default {
...
@@ -200,6 +222,7 @@ export default {
"ID"
,
"ID"
,
chartstore
.
ChartType
chartstore
.
ChartType
);
);
console
.
log
(
chart
.
Text
)
return
chart
.
Text
;
return
chart
.
Text
;
},
},
getChartWidth
(
chart
,
rows
)
{
getChartWidth
(
chart
,
rows
)
{
...
@@ -295,11 +318,7 @@ export default {
...
@@ -295,11 +318,7 @@ export default {
clearInterval
(
this
.
timer1
);
//在vue实例销毁钱,清除我们的定时器
clearInterval
(
this
.
timer1
);
//在vue实例销毁钱,清除我们的定时器
}
}
},
},
created
()
{
var
boardid
=
this
.
$route
.
query
.
BoardID
;
this
.
pageindex
=
this
.
$route
.
query
.
PageIndex
;
this
.
Load
(
boardid
);
}
};
};
</
script
>
</
script
>
<
style
>
<
style
>
...
@@ -307,6 +326,12 @@ export default {
...
@@ -307,6 +326,12 @@ export default {
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
}
}
.allContent
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
flex-direction
:
row
;
}
.columndiv
{
.columndiv
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border
:
1px
solid
;
border
:
1px
solid
;
...
...
FTT.Board.VueUI/src/views/chart/head.vue
View file @
8702fdc1
...
@@ -72,6 +72,7 @@ export default {
...
@@ -72,6 +72,7 @@ export default {
data
:
data
data
:
data
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
console
.
log
(
res
)
var
title
=
res
.
rows
[
0
];
var
title
=
res
.
rows
[
0
];
this
.
text
=
title
.
Title
||
title
;
this
.
text
=
title
.
Title
||
title
;
}
else
{
}
else
{
...
...
FTT.Board.VueUI/src/views/home/menutree.vue
View file @
8702fdc1
...
@@ -47,11 +47,28 @@ export default {
...
@@ -47,11 +47,28 @@ export default {
path
:
"boardlist"
path
:
"boardlist"
},
},
// {
// {
// text: "
看板
",
// text: "
图表列表
",
// name: "
board
",
// name: "
chartlist
",
// path: "
board
"
// path: "
chartlist
"
// },
// },
]
]
},
{
text
:
"图表"
,
iconCls
:
"el-icon-share"
,
children
:
[
{
text
:
"方案一"
,
name
:
"chartlist"
,
path
:
"chartlist"
},
{
text
:
"方案二"
,
name
:
"chartDemoList"
,
path
:
"chartDemoList"
},
]
}
}
]
]
};
};
...
...
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