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
fde2bf54
Commit
fde2bf54
authored
Apr 23, 2019
by
zhangboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
f24d55d3
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
180 additions
and
210 deletions
+180
-210
package-lock.json
FTT.Board.VueUI/package-lock.json
+21
-7
detail.vue
FTT.Board.VueUI/src/views/board/boardlist/detail.vue
+128
-111
Table1.vue
FTT.Board.VueUI/src/views/chart/Table1.vue
+1
-0
foot.vue
FTT.Board.VueUI/src/views/chart/foot.vue
+12
-3
head.vue
FTT.Board.VueUI/src/views/chart/head.vue
+5
-1
.suo
FTT.Board/.vs/FTT.Board/v14/.suo
+0
-0
applicationhost.config
FTT.Board/.vs/config/applicationhost.config
+1
-1
CFG_BoardController.cs
.../FTT.Board.Api/Controllers/API/CFG/CFG_BoardController.cs
+2
-28
CFG_BoardDetailController.cs
...oard.Api/Controllers/API/CFG/CFG_BoardDetailController.cs
+5
-57
ChartController.cs
FTT.Board/FTT.Board.Api/Controllers/ChartController.cs
+4
-1
FTT.Board.csproj.user
FTT.Board/FTT.Board.Api/FTT.Board.csproj.user
+1
-1
No files found.
FTT.Board.VueUI/package-lock.json
View file @
fde2bf54
...
...
@@ -3488,12 +3488,14 @@
"balanced-match"
:
{
"version"
:
"1.0.0"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"brace-expansion"
:
{
"version"
:
"1.1.11"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"balanced-match"
:
"^1.0.0"
,
"concat-map"
:
"0.0.1"
...
...
@@ -3508,17 +3510,20 @@
"code-point-at"
:
{
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"concat-map"
:
{
"version"
:
"0.0.1"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"console-control-strings"
:
{
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"core-util-is"
:
{
"version"
:
"1.0.2"
,
...
...
@@ -3635,7 +3640,8 @@
"inherits"
:
{
"version"
:
"2.0.3"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"ini"
:
{
"version"
:
"1.3.5"
,
...
...
@@ -3647,6 +3653,7 @@
"version"
:
"1.0.0"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"number-is-nan"
:
"^1.0.0"
}
...
...
@@ -3661,6 +3668,7 @@
"version"
:
"3.0.4"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"brace-expansion"
:
"^1.1.7"
}
...
...
@@ -3668,12 +3676,14 @@
"minimist"
:
{
"version"
:
"0.0.8"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"minipass"
:
{
"version"
:
"2.3.5"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"safe-buffer"
:
"^5.1.2"
,
"yallist"
:
"^3.0.0"
...
...
@@ -3692,6 +3702,7 @@
"version"
:
"0.5.1"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"minimist"
:
"0.0.8"
}
...
...
@@ -3772,7 +3783,8 @@
"number-is-nan"
:
{
"version"
:
"1.0.1"
,
"bundled"
:
true
,
"dev"
:
true
"dev"
:
true
,
"optional"
:
true
},
"object-assign"
:
{
"version"
:
"4.1.1"
,
...
...
@@ -3784,6 +3796,7 @@
"version"
:
"1.4.0"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"wrappy"
:
"1"
}
...
...
@@ -3905,6 +3918,7 @@
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"code-point-at"
:
"^1.0.0"
,
"is-fullwidth-code-point"
:
"^1.0.0"
,
...
...
FTT.Board.VueUI/src/views/board/boardlist/detail.vue
View file @
fde2bf54
This diff is collapsed.
Click to expand it.
FTT.Board.VueUI/src/views/chart/Table1.vue
View file @
fde2bf54
...
...
@@ -136,6 +136,7 @@ export default {
}).
then
(
res
=>
{
if
(
res
.
success
)
{
var
titlename
=
new
Array
();
for
(
var
name
in
res
.
rows
[
0
])
{
if
(
name
.
indexOf
(
"_"
)
>
0
)
{
var
arr
=
name
.
split
(
"_"
);
...
...
FTT.Board.VueUI/src/views/chart/foot.vue
View file @
fde2bf54
...
...
@@ -4,7 +4,12 @@
class=
"footerclass"
:style=
"
{backgroundColor: boardstore.FooterBackgroundColor,fontSize:boardstore.FooterFontSize+'px'}"
>
<marquee
:style=
"
{lineHeight:boardstore.FotterHeight+'px'}" scrollamount="5" direction="left" class="footerclass">
<marquee
:style=
"
{lineHeight:boardstore.FotterHeight+'px'}"
scrollamount="5"
direction="left"
class="footerclass"
>
<font
:color=
"(chart.FontColor1!=null)?(chart.FontColor1):'red'"
:style=
"
{fontSize:chart.FontSize1!=0?chart.FontSize1: '40px'}"
...
...
@@ -59,8 +64,12 @@ export default {
},
methods
:
{
loadData
()
{
if
(
!
this
.
chart
.
IsShow
)
{
return
;
}
var
me
=
this
;
var
url
=
me
.
Api
.
url
;
var
url
=
me
.
Api
.
url
;
var
data
=
{
ProcName
:
me
.
boardstore
.
ProcName
,
PageSize
:
me
.
chart
.
PageSize
,
...
...
@@ -89,7 +98,7 @@ export default {
}
},
created
()
{
this
.
loadData
();
this
.
loadData
();
}
};
</
script
>
...
...
FTT.Board.VueUI/src/views/chart/head.vue
View file @
fde2bf54
...
...
@@ -46,8 +46,12 @@ export default {
return
moment
(
new
Date
()).
format
(
"YYYY-MM-DD HH:mm:ss"
);
},
loadData
()
{
if
(
!
this
.
chart
.
IsShow
)
{
return
;
}
var
me
=
this
;
var
url
=
me
.
Api
.
url
;
var
data
=
{
ProcName
:
me
.
boardstore
.
ProcName
,
PageSize
:
me
.
chart
.
PageSize
,
...
...
@@ -71,7 +75,7 @@ export default {
var
title
=
res
.
rows
[
0
];
this
.
text
=
title
.
Title
||
title
;
}
else
{
console
.
log
(
res
.
message
);
console
.
log
(
res
.
message
);
}
});
}
...
...
FTT.Board/.vs/FTT.Board/v14/.suo
View file @
fde2bf54
No preview for this file type
FTT.Board/.vs/config/applicationhost.config
View file @
fde2bf54
...
...
@@ -165,7 +165,7 @@
<
virtualDirectory
path
=
"/"
physicalPath
=
"C:\Users\Administrator\Documents\My Web Sites\FTT.Board-Site1"
/>
</
application
>
<
application
path
=
"/FTT.Board"
applicationPool
=
"Clr4IntegratedAppPool"
>
<
virtualDirectory
path
=
"/"
physicalPath
=
"
C:\GIT\FTT.
Board\FTT.Board\FTT.Board.Api"
/>
<
virtualDirectory
path
=
"/"
physicalPath
=
"
D:\git\FTT_
Board\FTT.Board\FTT.Board.Api"
/>
</
application
>
<
bindings
>
<
binding
protocol
=
"http"
bindingInformation
=
"*:80:localhost"
/>
...
...
FTT.Board/FTT.Board.Api/Controllers/API/CFG/CFG_BoardController.cs
View file @
fde2bf54
...
...
@@ -24,14 +24,7 @@ namespace FTT.Board.Controllers.API.CFG
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
int
rowid
=
db
.
Insert
(
"CFG_Board"
,
entity
)
.
Column
(
"BoardCode"
,
entity
.
BoardCode
)
.
Column
(
"BackgroundColor"
,
entity
.
BackgroundColor
)
.
Column
(
"BoardName"
,
entity
.
BoardName
)
.
Column
(
"ConnectionString"
,
entity
.
ConnectionString
)
.
Column
(
"LayoutID"
,
entity
.
LayoutID
)
.
Column
(
"PageRefreshTime"
,
entity
.
PageRefreshTime
)
.
Column
(
"ProcName"
,
entity
.
ProcName
)
.
Column
(
"RefreshTime"
,
entity
.
RefreshTime
)
.
AutoMap
(
x
=>
x
.
ID
,
x
=>
x
.
CFG_BoardDetail
)
.
Execute
();
}
...
...
@@ -52,19 +45,9 @@ namespace FTT.Board.Controllers.API.CFG
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
int
rowid
=
db
.
Update
(
"CFG_Board"
,
entity
)
//.Column("BoardCode", entity.BoardCode)
//.Column("BackgroundColor", entity.BackgroundColor)
//.Column("BoardName", entity.BoardName)
//.Column("ConnectionString", entity.ConnectionString)
//.Column("LayoutID", entity.LayoutID)
//.Column("PageRefreshTime", entity.PageRefreshTime)
//.Column("ProcName", entity.ProcName)
//.Column("RefreshTime", entity.RefreshTime)
.
AutoMap
(
x
=>
x
.
ID
,
x
=>
x
.
CFG_BoardDetail
)
.
Where
(
"ID"
,
entity
.
ID
)
.
Execute
();
// db.Update("CFG_Board", entity).AutoMap(x => x.ID).Where(x => x.ID).Execute();
}
return
jh
.
Result
();
}
...
...
@@ -73,17 +56,8 @@ namespace FTT.Board.Controllers.API.CFG
var
jh
=
new
ReturnInfo
();
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
//int rowid = db.Insert("CFG_Board", entity).Execute();
int
rowid
=
db
.
Insert
(
"CFG_Board"
,
entity
)
.
Column
(
"BoardCode"
,
entity
.
BoardCode
)
.
Column
(
"BackgroundColor"
,
entity
.
BackgroundColor
)
.
Column
(
"BoardName"
,
entity
.
BoardName
)
.
Column
(
"ConnectionString"
,
entity
.
ConnectionString
)
.
Column
(
"LayoutID"
,
entity
.
LayoutID
)
.
Column
(
"PageRefreshTime"
,
entity
.
PageRefreshTime
)
.
Column
(
"ProcName"
,
entity
.
ProcName
)
.
Column
(
"RefreshTime"
,
entity
.
RefreshTime
)
.
AutoMap
(
x
=>
x
.
ID
,
x
=>
x
.
CFG_BoardDetail
)
.
Execute
();
}
...
...
FTT.Board/FTT.Board.Api/Controllers/API/CFG/CFG_BoardDetailController.cs
View file @
fde2bf54
...
...
@@ -28,26 +28,9 @@ namespace FTT.Board.Controllers.API.CFG
var
jh
=
new
ReturnInfo
();
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
int
rowid
=
db
.
Insert
(
"CFG_BoardDetail"
,
entity
)
.
Column
(
"BackgroundColor"
,
entity
.
BackgroundColor
)
.
Column
(
"BoardID"
,
entity
.
BoardID
)
.
Column
(
"ChartType"
,
entity
.
ChartType
)
.
Column
(
"Flag"
,
entity
.
Flag
)
.
Column
(
"FontColor1"
,
entity
.
FontColor1
)
.
Column
(
"FontColor2"
,
entity
.
FontColor2
)
.
Column
(
"FontSize1"
,
entity
.
FontSize1
)
.
Column
(
"FontSize2"
,
entity
.
FontSize2
)
.
Column
(
"Height"
,
entity
.
Height
)
.
Column
(
"IsShow"
,
entity
.
IsShow
)
.
Column
(
"IsTimeShow"
,
entity
.
IsTimeShow
)
.
Column
(
"PageIndex"
,
entity
.
PageIndex
)
.
Column
(
"PageSize"
,
entity
.
PageSize
)
.
Column
(
"PositionIndex"
,
entity
.
PositionIndex
)
.
Column
(
"RefreshTime"
,
entity
.
RefreshTime
)
.
Column
(
"RefreshType"
,
entity
.
RefreshType
)
.
Column
(
"Width"
,
entity
.
Width
)
.
Column
(
"WorkTeamID"
,
entity
.
WorkTeamID
)
.
AutoMap
(
x
=>
x
.
ID
)
.
Execute
();
}
return
jh
.
Result
();
...
...
@@ -57,7 +40,7 @@ namespace FTT.Board.Controllers.API.CFG
var
jh
=
new
ReturnInfo
();
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
int
rowid
=
db
.
Delete
(
"CFG_BoardDetail"
,
entity
).
Where
(
"ID"
,
entity
.
ID
).
Execute
();
int
rowid
=
db
.
Delete
(
"CFG_BoardDetail"
,
entity
).
Where
(
"ID"
,
entity
.
ID
).
Execute
();
}
return
jh
.
Result
();
}
...
...
@@ -67,24 +50,7 @@ namespace FTT.Board.Controllers.API.CFG
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
int
rowid
=
db
.
Update
(
"CFG_BoardDetail"
,
entity
)
.
Column
(
"BackgroundColor"
,
entity
.
BackgroundColor
)
.
Column
(
"BoardID"
,
entity
.
BoardID
)
.
Column
(
"ChartType"
,
entity
.
ChartType
)
.
Column
(
"Flag"
,
entity
.
Flag
)
.
Column
(
"FontColor1"
,
entity
.
FontColor1
)
.
Column
(
"FontColor2"
,
entity
.
FontColor2
)
.
Column
(
"FontSize1"
,
entity
.
FontSize1
)
.
Column
(
"FontSize2"
,
entity
.
FontSize2
)
.
Column
(
"Height"
,
entity
.
Height
)
.
Column
(
"IsShow"
,
entity
.
IsShow
)
.
Column
(
"IsTimeShow"
,
entity
.
IsTimeShow
)
.
Column
(
"PageIndex"
,
entity
.
PageIndex
)
.
Column
(
"PageSize"
,
entity
.
PageSize
)
.
Column
(
"PositionIndex"
,
entity
.
PositionIndex
)
.
Column
(
"RefreshTime"
,
entity
.
RefreshTime
)
.
Column
(
"RefreshType"
,
entity
.
RefreshType
)
.
Column
(
"Width"
,
entity
.
Width
)
.
Column
(
"WorkTeamID"
,
entity
.
WorkTeamID
)
.
AutoMap
(
x
=>
x
.
ID
)
.
Where
(
"ID"
,
entity
.
ID
)
.
Execute
();
}
...
...
@@ -95,26 +61,8 @@ namespace FTT.Board.Controllers.API.CFG
var
jh
=
new
ReturnInfo
();
using
(
var
db
=
MsSqlDbContextWraper
.
NewContext
())
{
//var index = entity.ChartType != ChartTypeEnums.Header && entity.ChartType != ChartTypeEnums.Footer ? entity.PositionIndex++ : 0;
int
rowid
=
db
.
Insert
(
"CFG_BoardDetail"
,
entity
)
.
Column
(
"BackgroundColor"
,
entity
.
BackgroundColor
)
.
Column
(
"BoardID"
,
entity
.
BoardID
)
.
Column
(
"ChartType"
,
entity
.
ChartType
)
.
Column
(
"Flag"
,
entity
.
Flag
)
.
Column
(
"FontColor1"
,
entity
.
FontColor1
)
.
Column
(
"FontColor2"
,
entity
.
FontColor2
)
.
Column
(
"FontSize1"
,
entity
.
FontSize1
)
.
Column
(
"FontSize2"
,
entity
.
FontSize2
)
.
Column
(
"Height"
,
entity
.
Height
)
.
Column
(
"IsShow"
,
entity
.
IsShow
)
.
Column
(
"IsTimeShow"
,
entity
.
IsTimeShow
)
.
Column
(
"PageIndex"
,
entity
.
PageIndex
)
.
Column
(
"PageSize"
,
entity
.
PageSize
)
.
Column
(
"PositionIndex"
,
entity
.
PositionIndex
)
.
Column
(
"RefreshTime"
,
entity
.
RefreshTime
)
.
Column
(
"RefreshType"
,
entity
.
RefreshType
)
.
Column
(
"Width"
,
entity
.
Width
)
.
Column
(
"WorkTeamID"
,
entity
.
WorkTeamID
)
.
AutoMap
(
x
=>
x
.
ID
)
.
Execute
();
}
return
jh
.
Result
();
...
...
FTT.Board/FTT.Board.Api/Controllers/ChartController.cs
View file @
fde2bf54
...
...
@@ -25,7 +25,10 @@ namespace FTT.Board.Controllers
jh
.
_rows
.
Add
(
getString
(
dto
));
break
;
case
EF
.
Enums
.
ChartTypeEnums
.
TableGrid
:
jh
.
_rows
.
Add
(
getTable
(
dto
));
foreach
(
var
item
in
getTable
(
dto
))
{
jh
.
_rows
.
Add
(
item
);
}
break
;
case
EF
.
Enums
.
ChartTypeEnums
.
Panle1
:
case
EF
.
Enums
.
ChartTypeEnums
.
Panle2
:
...
...
FTT.Board/FTT.Board.Api/FTT.Board.csproj.user
View file @
fde2bf54
...
...
@@ -18,7 +18,7 @@
<WebStackScaffolding_LayoutPageFile
/>
<WebStackScaffolding_IsAsyncSelected>
False
</WebStackScaffolding_IsAsyncSelected>
<NameOfLastUsedPublishProfile>
FolderProfile
</NameOfLastUsedPublishProfile>
<ProjectView>
ShowAll
Files
</ProjectView>
<ProjectView>
Project
Files
</ProjectView>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
...
...
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