Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
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
lihuizhen
ec-report-refactor
Commits
59e5be80
Commit
59e5be80
authored
May 05, 2022
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update table
parent
a34ad6a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
http.api.js
common/http.api.js
+2
-2
Table.vue
components/Table/Table.vue
+7
-7
No files found.
common/http.api.js
View file @
59e5be80
// 请求的本域名
// 请求的本域名
const
baseUrl
=
'https://api.charleskeith.cn/api'
// 正式环境
const
baseUrl
=
'https://api.charleskeith.cn/api'
// 正式环境
const
reportUrl
=
'http://192.168.138.55:8081/api'
// 测试环境
//
const reportUrl = 'http://192.168.138.55:8081/api' // 测试环境
//
const reportUrl = 'http://47.101.191.49:8083/api' // 外网测试环境
const
reportUrl
=
'http://47.101.191.49:8083/api'
// 外网测试环境
const
install
=
(
Vue
,
vm
)
=>
{
const
install
=
(
Vue
,
vm
)
=>
{
let
getHttp
=
(
url
,
params
,
config
)
=>
vm
.
$http
.
get
(
url
,
{
params
},
config
)
let
getHttp
=
(
url
,
params
,
config
)
=>
vm
.
$http
.
get
(
url
,
{
params
},
config
)
let
postHttp
=
(
url
,
params
,
config
)
=>
vm
.
$http
.
post
(
url
,
params
,
config
)
let
postHttp
=
(
url
,
params
,
config
)
=>
vm
.
$http
.
post
(
url
,
params
,
config
)
...
...
components/Table/Table.vue
View file @
59e5be80
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
const
{
frameStyle
,
frameWidth
,
frameColor
,
bordered
}
=
this
.
elementInfo
.
table
const
{
frameStyle
,
frameWidth
,
frameColor
,
bordered
}
=
this
.
elementInfo
.
table
const
{
backgroundColor
}
=
this
.
elementInfo
.
table
.
tableCell
const
{
backgroundColor
}
=
this
.
elementInfo
.
table
.
tableCell
return
{
return
{
'width'
:
`${
24
0 * this.elementInfo.table.column.length
}
rpx`
,
'width'
:
`${
12
0 * this.elementInfo.table.column.length
}
rpx`
,
'border-left'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-left'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-top'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-top'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'background-color'
:
backgroundColor
'background-color'
:
backgroundColor
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
'font-size'
:
`${this.$u.common.pxToRpx(titleFontSize)
}
rpx`
,
'font-size'
:
`${this.$u.common.pxToRpx(titleFontSize)
}
rpx`
,
'text-align'
:
titlePostion
||
'center'
,
'text-align'
:
titlePostion
||
'center'
,
'border-bottom'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-bottom'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-right'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
'border-right'
:
'none'
}
}
}
,
}
,
tdStyle
()
{
tdStyle
()
{
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
'lineHeight'
:
`${cellRowHeight || 30
}
px`
,
'lineHeight'
:
`${cellRowHeight || 30
}
px`
,
'color'
:
titleColor
,
'color'
:
titleColor
,
'border-bottom'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-bottom'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
,
'border-right'
:
bordered
?
`${frameStyle || 'solid'
}
${frameWidth || 1
}
px ${frameColor || '#e4e7ed'
}
`
:
'none'
'border-right'
:
'none'
}
}
}
}
}
,
}
,
...
@@ -184,17 +184,17 @@
...
@@ -184,17 +184,17 @@
flex
-
direction
:
row
;
flex
-
direction
:
row
;
}
}
.
th
{
.
th
{
flex
:
0
0
24
0
rpx
;
flex
:
0
0
12
0
rpx
;
font
-
size
:
28
rpx
;
font
-
size
:
28
rpx
;
color
:
$u
-
main
-
color
;
color
:
$u
-
main
-
color
;
font
-
weight
:
bold
;
font
-
weight
:
bold
;
padding
:
10
px
;
padding
:
10
px
0
px
;
background
-
color
:
rgb
(
245
,
246
,
248
);
background
-
color
:
rgb
(
245
,
246
,
248
);
}
}
.
td
{
.
td
{
flex
:
0
0
24
0
rpx
;
flex
:
0
0
12
0
rpx
;
align
-
self
:
stretch
;
align
-
self
:
stretch
;
padding
:
10
px
;
padding
:
10
px
0
px
;
font
-
size
:
28
rpx
;
font
-
size
:
28
rpx
;
color
:
$u
-
content
-
color
;
color
:
$u
-
content
-
color
;
display
:
flex
;
display
:
flex
;
...
...
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