Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
0687daf2
Commit
0687daf2
authored
Jul 21, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
66605ce5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
18 deletions
+55
-18
skeleton.vue
dsk-operate-ui/src/views/macro/component/skeleton.vue
+29
-0
index.vue
dsk-operate-ui/src/views/macro/enterprises/index.vue
+8
-5
qgjjdq.vue
...ui/src/views/macro/nationalEconomies/component/qgjjdq.vue
+9
-7
index.vue
dsk-operate-ui/src/views/macro/urban/index.vue
+9
-6
No files found.
dsk-operate-ui/src/views/macro/component/skeleton.vue
0 → 100644
View file @
0687daf2
<
template
>
<el-skeleton
animated
>
<template
slot=
"template"
>
<el-skeleton-item
variant=
"text"
style=
"width: 60%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 60%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
</
template
>
</el-skeleton>
</template>
<
script
>
export
default
{
name
:
'skeleton'
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-skeleton__item
{
height
:
20px
;
border-radius
:
0
;
margin
:
9px
0
;
background
:
#f0f0f0
;
}
</
style
>
dsk-operate-ui/src/views/macro/enterprises/index.vue
View file @
0687daf2
...
...
@@ -24,16 +24,16 @@
</el-input>
<span
class=
"total"
>
共
{{
tableDataTotal
}}
条
</span>
</div>
<skeleton
v-if=
"isSkeleton"
style=
"padding: 16px"
></skeleton>
<div
class=
"table-item"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
element-loading-text=
"Loading"
border
fit
@
sort-change=
"sortChange"
highlight-current-row
v-if=
"tableDataTotal > 0"
v-if=
"tableDataTotal > 0
&& !isSkeleton
"
:default-sort =
"
{prop: 'skyCount', order: 'descending'}"
>
<el-table-column
label=
"序号"
width=
"60"
align=
"left"
fixed
>
...
...
@@ -69,7 +69,7 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"empty"
v-if=
"tableDataTotal === 0"
>
<div
class=
"empty"
v-if=
"tableDataTotal === 0
&& !isSkeleton
"
>
<img
class=
"img"
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
...
...
@@ -92,10 +92,10 @@
import
aptitudeCode
from
'@/assets/json/aptitudeCode'
import
{
enterprise
,
location
,
getUipIdByCid
}
from
'@/api/macro/macro'
import
Region
from
'../component/region'
import
skeleton
from
'../component/skeleton'
export
default
{
name
:
'Enterprises'
,
components
:
{
Region
},
components
:
{
Region
,
skeleton
},
data
()
{
return
{
encodeStr
,
...
...
@@ -124,6 +124,7 @@ export default {
provinceId
:
''
,
show_page
:
true
,
MaxPage
:
500
,
isSkeleton
:
true
}
},
created
()
{
...
...
@@ -166,6 +167,7 @@ export default {
this
.
aptitudeCodeList
=
aptitudeCode
},
async
querySubmit
(){
this
.
isSkeleton
=
true
;
const
params
=
{
pageNum
:
this
.
pageIndex
,
pageSize
:
this
.
pageSize
}
if
(
this
.
queryParams
.
field
){
params
.
field
=
this
.
queryParams
.
field
...
...
@@ -192,6 +194,7 @@ export default {
params
.
aptitudeQueryDto
.
aptitudeDtoList
=
aptitudeType
}
enterprise
(
params
).
then
(
res
=>
{
this
.
isSkeleton
=
false
if
(
res
.
code
===
200
){
this
.
tableData
=
res
.
data
.
list
;
this
.
tableDataTotal
=
res
.
data
.
total
;
...
...
dsk-operate-ui/src/views/macro/nationalEconomies/component/qgjjdq.vue
View file @
0687daf2
...
...
@@ -28,16 +28,16 @@
<span
class=
"flex-box"
@
click=
"handleMessage"
><img
src=
"@/assets/images/ability_excel.png"
>
导出EXCEL
</span>
</div>
</div>
<skeleton
v-if=
"isSkeleton"
style=
"padding: 16px"
></skeleton>
<div
class=
"table-item"
>
<el-table
v-loading=
"tableLoading"
class=
"fixed-table"
:data=
"tableData"
element-loading-text=
"Loading"
@
sort-change=
"sortChange"
border
highlight-current-row
v-if=
"tableDataTotal > 0"
v-if=
"tableDataTotal > 0
&& !isSkeleton
"
:default-sort =
"
{prop: 'gdp', order: 'descending'}"
>
<el-table-column
label=
"序号"
width=
"60"
align=
"left"
fixed
>
...
...
@@ -96,7 +96,7 @@
<el-table-column
label=
"社会消费品零售总额(亿元)"
prop=
"trscg"
:formatter=
"formatStatus"
width=
"160"
align=
"right"
></el-table-column>
<el-table-column
label=
"城镇居民人均可支配收入(元)"
prop=
"urbanPcdi"
:formatter=
"formatStatus"
width=
"160"
align=
"right"
></el-table-column>
</el-table>
<div
class=
"empty"
v-if=
"tableDataTotal === 0"
>
<div
class=
"empty"
v-if=
"tableDataTotal === 0
&& !isSkeleton
"
>
<img
class=
"img"
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
...
...
@@ -117,11 +117,12 @@
import
{
nationalPage
,
getYears
}
from
'@/api/macro/macro'
import
dataRegion
from
'@/assets/json/dataRegion'
import
economiesDetail
from
'./economies-detail'
import
skeleton
from
'../../component/skeleton'
import
axios
from
'axios'
export
default
{
name
:
'NationalEconomies'
,
components
:
{
economiesDetail
economiesDetail
,
skeleton
},
data
()
{
return
{
...
...
@@ -142,7 +143,8 @@
pageSize
:
20
,
tableDataTotal
:
null
,
show_page
:
true
,
MaxPage
:
500
MaxPage
:
500
,
isSkeleton
:
true
}
},
created
()
{
...
...
@@ -227,7 +229,7 @@
},
// 查询提交
async
querySubmit
()
{
this
.
tableLoading
=
true
this
.
isSkeleton
=
true
const
params
=
{
pageNum
:
this
.
pageIndex
,
pageSize
:
this
.
pageSize
,
year
:
this
.
queryParams
.
year
,
type
:
1
}
if
(
this
.
queryParams
.
address
){
let
arr
=
this
.
$refs
.
address
.
getCheckedNodes
();
...
...
@@ -272,7 +274,7 @@
}
nationalPage
(
params
).
then
(
res
=>
{
this
.
tableLoading
=
false
this
.
isSkeleton
=
false
this
.
tableData
=
res
.
data
.
list
;
this
.
tableDataTotal
=
res
.
data
.
totalCount
})
...
...
dsk-operate-ui/src/views/macro/urban/index.vue
View file @
0687daf2
...
...
@@ -144,8 +144,9 @@
<span
class=
"flex-box"
@
click=
"handleMessage"
><img
src=
"@/assets/images/ability_excel.png"
>
导出EXCEL
</span>
</div>
</div>
<skeleton
v-if=
"isSkeleton"
style=
"padding: 16px"
></skeleton>
<div
class=
"table-item"
>
<div
v-if=
"tableDataTotal > 0"
>
<div
v-if=
"tableDataTotal > 0
&& !isSkeleton
"
>
<el-table
v-loading=
"tableLoading"
:data=
"tableData"
...
...
@@ -234,7 +235,7 @@
<!--<el-table-column prop="bl" label="开发区类别" width="160" />-->
</el-table>
</div>
<div
class=
"empty"
v-if=
"tableDataTotal === 0"
>
<div
class=
"empty"
v-if=
"tableDataTotal === 0
&& !isSkeleton
"
>
<img
class=
"img"
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
...
...
@@ -282,6 +283,7 @@
<
script
>
import
{
encodeStr
}
from
"@/assets/js/common.js"
import
skeleton
from
'../component/skeleton'
import
dataRegion
from
'@/assets/json/dataRegion'
import
api
from
'@/api/enterpriseData/enterpriseData.js'
;
import
elementResizeDetectorMaker
from
"element-resize-detector"
...
...
@@ -291,7 +293,7 @@
export
default
{
name
:
'Urban'
,
components
:
{
Region
Region
,
skeleton
},
data
()
{
return
{
...
...
@@ -336,7 +338,7 @@ export default {
dataQuery
:{},
province
:
''
,
provinceId
:[],
fixed
:
false
,
isSkeleton
:
true
}
},
watch
:{
...
...
@@ -452,7 +454,8 @@ export default {
},
// 查询提交
async
querySubmit
()
{
this
.
tableLoading
=
true
// this.tableLoading = true;
this
.
isSkeleton
=
true
const
params
=
{
pageNum
:
this
.
pageIndex
,
pageSize
:
this
.
pageSize
,
type
:
Number
(
this
.
queryParams
.
radio
)}
const
param
=
{}
// if(this.queryParams.address.length > 0){
...
...
@@ -529,7 +532,7 @@ export default {
}
urbanInvestmentPage
(
params
).
then
(
res
=>
{
this
.
tableLoading
=
false
this
.
isSkeleton
=
false
this
.
tableData
=
res
.
data
.
list
;
this
.
tableDataTotal
=
res
.
data
.
totalCount
})
...
...
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