Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng_code
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanxiao
mancheng_code
Commits
7f05541f
Commit
7f05541f
authored
Mar 12, 2024
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 假数据修改后端返回
parent
aa769808
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
165 additions
and
182 deletions
+165
-182
src/views/assess/pages/map.vue
+51
-64
src/views/resources/page/overview.vue
+3
-5
src/views/resources/page/page/chartType0.vue
+30
-30
src/views/resources/page/page/chartType1.vue
+28
-28
src/views/resources/page/page/chartType2.vue
+28
-29
src/views/resources/page/page/chartType3.vue
+24
-25
src/views/resources/page/project.vue
+1
-1
No files found.
src/views/assess/pages/map.vue
View file @
7f05541f
This diff is collapsed.
Click to expand it.
src/views/resources/page/overview.vue
View file @
7f05541f
...
@@ -278,8 +278,8 @@ export default {
...
@@ -278,8 +278,8 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
initChartMap
();
this
.
initChartMap
();
//
this.getOverview();
this
.
getOverview
();
//
this.getData();
this
.
getData
();
},
},
methods
:
{
methods
:
{
changeDistrict
()
{
changeDistrict
()
{
...
@@ -308,17 +308,15 @@ export default {
...
@@ -308,17 +308,15 @@ export default {
},
},
changeActiveType
(
val
)
{
changeActiveType
(
val
)
{
this
.
activeType
=
val
;
this
.
activeType
=
val
;
//
this.getData();
this
.
getData
();
},
},
async
getData
()
{
async
getData
()
{
let
res
=
await
api
.
GetData
({
data_time
:
""
,
flag
:
this
.
activeType
});
let
res
=
await
api
.
GetData
({
data_time
:
""
,
flag
:
this
.
activeType
});
console
.
log
(
res
);
this
.
data_time
=
res
.
data_time
;
this
.
data_time
=
res
.
data_time
;
this
.
scoreList
=
res
.
target_data_li
;
this
.
scoreList
=
res
.
target_data_li
;
},
},
async
getOverview
()
{
async
getOverview
()
{
let
res
=
await
api
.
Overview
({
district_name
:
""
});
let
res
=
await
api
.
Overview
({
district_name
:
""
});
console
.
log
(
res
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
}
else
{
}
else
{
this
.
nums
=
res
;
this
.
nums
=
res
;
...
...
src/views/resources/page/page/chartType0.vue
View file @
7f05541f
...
@@ -69,22 +69,22 @@ export default {
...
@@ -69,22 +69,22 @@ export default {
project_source
:
""
,
project_source
:
""
,
industry_name
:
""
,
industry_name
:
""
,
list
:
[
list
:
[
{
//
{
index
:
0
,
//
index: 0,
project_name
:
"生活用纸1"
,
//
project_name: "生活用纸1",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"北京"
,
//
investor_district: "北京",
investment_volume
:
"88"
,
//
investment_volume: "88",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
{
//
{
index
:
1
,
//
index: 1,
project_name
:
"生活用纸2"
,
//
project_name: "生活用纸2",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"南京"
,
//
investor_district: "南京",
investment_volume
:
"18"
,
//
investment_volume: "18",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
],
],
id_list
:
[],
id_list
:
[],
page
:
1
,
page
:
1
,
...
@@ -138,11 +138,11 @@ export default {
...
@@ -138,11 +138,11 @@ export default {
industry_name
:
""
,
industry_name
:
""
,
project_source
:
this
.
project_source
,
project_source
:
this
.
project_source
,
});
});
//
this.chartPie.setOption({
this
.
chartPie
.
setOption
({
//
series: {
series
:
{
//
data: res,
data
:
res
,
//
},
},
//
});
});
},
},
async
getList
()
{
async
getList
()
{
let
res
=
await
api
.
ArealProject
({
let
res
=
await
api
.
ArealProject
({
...
@@ -159,17 +159,17 @@ export default {
...
@@ -159,17 +159,17 @@ export default {
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
success
==
0
)
{
if
(
res
.
success
==
0
)
{
this
.
id_list
=
[];
this
.
id_list
=
[];
//
this.data_time = "";
this
.
data_time
=
""
;
//
this.list = [];
this
.
list
=
[];
this
.
total
=
0
;
this
.
total
=
0
;
}
else
{
}
else
{
//
this.list = res.data.map((item, index) => {
this
.
list
=
res
.
data
.
map
((
item
,
index
)
=>
{
//
item.index = index + 1;
item
.
index
=
index
+
1
;
//
return item;
return
item
;
//
});
});
//
this.id_list = res.id_list;
this
.
id_list
=
res
.
id_list
;
//
this.data_time = res.data_time;
this
.
data_time
=
res
.
data_time
;
//
this.total = res.size;
this
.
total
=
res
.
size
;
}
}
},
},
goProjectInfo
(
item
)
{
goProjectInfo
(
item
)
{
...
...
src/views/resources/page/page/chartType1.vue
View file @
7f05541f
...
@@ -68,22 +68,22 @@ export default {
...
@@ -68,22 +68,22 @@ export default {
data_time
:
"2023-11-10"
,
data_time
:
"2023-11-10"
,
chartBar
:
null
,
chartBar
:
null
,
list
:
[
list
:
[
{
//
{
index
:
0
,
//
index: 0,
project_name
:
"生活用纸1"
,
//
project_name: "生活用纸1",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"北京"
,
//
investor_district: "北京",
investment_volume
:
"88"
,
//
investment_volume: "88",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
{
//
{
index
:
1
,
//
index: 1,
project_name
:
"生活用纸2"
,
//
project_name: "生活用纸2",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"南京"
,
//
investor_district: "南京",
investment_volume
:
"18"
,
//
investment_volume: "18",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
],
],
id_list
:
[],
id_list
:
[],
page
:
1
,
page
:
1
,
...
@@ -146,11 +146,11 @@ export default {
...
@@ -146,11 +146,11 @@ export default {
industry_name
:
""
,
industry_name
:
""
,
project_source
:
""
,
project_source
:
""
,
});
});
//
this.chartBar.setOption({
this
.
chartBar
.
setOption
({
//
series: {
series
:
{
//
data: res,
data
:
res
,
//
},
},
//
});
});
},
},
async
getList
()
{
async
getList
()
{
let
res
=
await
api
.
ArealProject
({
let
res
=
await
api
.
ArealProject
({
...
@@ -166,16 +166,16 @@ export default {
...
@@ -166,16 +166,16 @@ export default {
});
});
if
(
res
.
success
==
0
)
{
if
(
res
.
success
==
0
)
{
this
.
id_list
=
[];
this
.
id_list
=
[];
//
this.data_time = "";
this
.
data_time
=
""
;
//
this.list = [];
this
.
list
=
[];
this
.
total
=
0
;
this
.
total
=
0
;
}
else
{
}
else
{
//
this.list = res.data.map((item, index) => {
this
.
list
=
res
.
data
.
map
((
item
,
index
)
=>
{
//
item.index = index + 1;
item
.
index
=
index
+
1
;
//
return item;
return
item
;
//
});
});
this
.
id_list
=
res
.
id_list
;
this
.
id_list
=
res
.
id_list
;
//
this.data_time = res.data_time;
this
.
data_time
=
res
.
data_time
;
this
.
total
=
res
.
size
;
this
.
total
=
res
.
size
;
}
}
},
},
...
...
src/views/resources/page/page/chartType2.vue
View file @
7f05541f
...
@@ -67,22 +67,22 @@ export default {
...
@@ -67,22 +67,22 @@ export default {
data_time
:
"2023-11-10"
,
data_time
:
"2023-11-10"
,
chartPie
:
null
,
chartPie
:
null
,
list
:
[
list
:
[
{
//
{
index
:
0
,
//
index: 0,
project_name
:
"生活用纸1"
,
//
project_name: "生活用纸1",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"北京"
,
//
investor_district: "北京",
investment_volume
:
"88"
,
//
investment_volume: "88",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
{
//
{
index
:
1
,
//
index: 1,
project_name
:
"生活用纸2"
,
//
project_name: "生活用纸2",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"南京"
,
//
investor_district: "南京",
investment_volume
:
"18"
,
//
investment_volume: "18",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
],
],
id_list
:
[],
id_list
:
[],
page
:
1
,
page
:
1
,
...
@@ -143,11 +143,11 @@ export default {
...
@@ -143,11 +143,11 @@ export default {
industry_name
:
""
,
industry_name
:
""
,
project_source
:
""
,
project_source
:
""
,
});
});
//
this.chartPie.setOption({
this
.
chartPie
.
setOption
({
//
series: {
series
:
{
//
data: res,
data
:
res
,
//
},
},
//
});
});
},
},
async
getList
()
{
async
getList
()
{
let
res
=
await
api
.
ArealProject
({
let
res
=
await
api
.
ArealProject
({
...
@@ -161,20 +161,19 @@ export default {
...
@@ -161,20 +161,19 @@ export default {
page
:
this
.
page
,
page
:
this
.
page
,
per_page
:
this
.
per_page
,
per_page
:
this
.
per_page
,
});
});
console
.
log
(
res
);
if
(
res
.
success
==
0
)
{
if
(
res
.
success
==
0
)
{
this
.
id_list
=
[];
this
.
id_list
=
[];
//
this.data_time = "";
this
.
data_time
=
""
;
//
this.list = [];
this
.
list
=
[];
this
.
total
=
0
;
this
.
total
=
0
;
}
else
{
}
else
{
//
this.list = res.data.map((item, index) => {
this
.
list
=
res
.
data
.
map
((
item
,
index
)
=>
{
//
item.index = index + 1;
item
.
index
=
index
+
1
;
//
return item;
return
item
;
//
});
});
this
.
id_list
=
res
.
id_list
;
this
.
id_list
=
res
.
id_list
;
//
this.data_time = res.data_time;
this
.
data_time
=
res
.
data_time
;
this
.
total
=
res
.
size
;
this
.
total
=
res
.
size
;
}
}
},
},
...
...
src/views/resources/page/page/chartType3.vue
View file @
7f05541f
...
@@ -69,22 +69,22 @@ export default {
...
@@ -69,22 +69,22 @@ export default {
chartPie
:
null
,
chartPie
:
null
,
chartBar
:
null
,
chartBar
:
null
,
list
:
[
list
:
[
{
//
{
index
:
0
,
//
index: 0,
project_name
:
"生活用纸1"
,
//
project_name: "生活用纸1",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"北京"
,
//
investor_district: "北京",
investment_volume
:
"88"
,
//
investment_volume: "88",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
{
//
{
index
:
1
,
//
index: 1,
project_name
:
"生活用纸2"
,
//
project_name: "生活用纸2",
industry
:
"生活用纸"
,
//
industry: "生活用纸",
investor_district
:
"南京"
,
//
investor_district: "南京",
investment_volume
:
"18"
,
//
investment_volume: "18",
project_type
:
"生活用纸"
,
//
project_type: "生活用纸",
},
//
},
],
],
id_list
:
[],
id_list
:
[],
flag
:
4
,
flag
:
4
,
...
@@ -99,20 +99,20 @@ export default {
...
@@ -99,20 +99,20 @@ export default {
watch
:
{
watch
:
{
district
(
newV
,
oldV
)
{
district
(
newV
,
oldV
)
{
console
.
log
(
newV
);
console
.
log
(
newV
);
//
this.getData();
this
.
getData
();
//
this.getList();
this
.
getList
();
},
},
time1
(
newV
,
oldV
)
{
time1
(
newV
,
oldV
)
{
console
.
log
(
newV
);
console
.
log
(
newV
);
if
(
newV
&&
this
.
time2
!=
""
)
{
if
(
newV
&&
this
.
time2
!=
""
)
{
//
this.getData();
this
.
getData
();
//
this.getList();
this
.
getList
();
}
}
},
},
time2
(
newV
,
oldV
)
{
time2
(
newV
,
oldV
)
{
if
(
newV
&&
this
.
time1
!=
""
)
{
if
(
newV
&&
this
.
time1
!=
""
)
{
//
this.getData();
this
.
getData
();
//
this.getList();
this
.
getList
();
}
}
},
},
},
},
...
@@ -120,8 +120,8 @@ export default {
...
@@ -120,8 +120,8 @@ export default {
console
.
log
(
this
.
cycle
);
console
.
log
(
this
.
cycle
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
initChartBar
();
this
.
initChartBar
();
//
this.getData();
this
.
getData
();
//
this.getList();
this
.
getList
();
});
});
},
},
methods
:
{
methods
:
{
...
@@ -145,7 +145,6 @@ export default {
...
@@ -145,7 +145,6 @@ export default {
industry_name
:
this
.
industry_name
,
industry_name
:
this
.
industry_name
,
project_source
:
""
,
project_source
:
""
,
});
});
console
.
log
(
res
);
if
(
this
.
flag
==
4
)
{
if
(
this
.
flag
==
4
)
{
let
yAxis
=
res
.
map
((
item
)
=>
{
let
yAxis
=
res
.
map
((
item
)
=>
{
return
item
.
name
;
return
item
.
name
;
...
...
src/views/resources/page/project.vue
View file @
7f05541f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-tab-pane
label=
"对接库"
name=
"onLine"
>
</el-tab-pane>
<el-tab-pane
label=
"对接库"
name=
"onLine"
>
</el-tab-pane>
<el-tab-pane
label=
"签约库"
name=
"contract"
></el-tab-pane>
<el-tab-pane
label=
"签约库"
name=
"contract"
></el-tab-pane>
<el-tab-pane
label=
"开工库"
name=
"suspend"
></el-tab-pane>
<el-tab-pane
label=
"开工库"
name=
"suspend"
></el-tab-pane>
<div
>
<div>
<ul
class=
"option"
>
<ul
class=
"option"
>
<li>
<li>
<label
for=
""
class=
"five"
>
项目名称 :
</label>
<label
for=
""
class=
"five"
>
项目名称 :
</label>
...
...
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