Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cxsfjx_project_echarts
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
cxsfjx_project_echarts
Commits
828fc014
提交
828fc014
authored
12月 09, 2022
作者:
苏帅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(创新示范分保大屏)请求接口逻辑修改
上级
77e5eaa7
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
55 行增加
和
33 行删除
+55
-33
index.html
index.html
+9
-4
config.js
public/config.js
+6
-5
head.vue
src/layout/head.vue
+16
-7
index.vue
src/views/dataCenter/map/index.vue
+24
-17
没有找到文件。
index.html
浏览文件 @
828fc014
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
href=
"/favicon.ico"
/>
<link
rel=
"icon"
href=
"/favicon.ico"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
创新示范平台
</title>
<title>
创新示范平台
</title>
<script
src=
"./public/config.js"
></script>
<script
src=
"./public/config.js"
></script>
</head>
<script
src=
"./config.js"
></script>
<body>
</head>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<script
type=
"module"
src=
"/src/main.ts"
></script>
<script
type=
"module"
src=
"/src/main.ts"
></script>
</body>
</body>
</html>
</html>
\ No newline at end of file
public/config.js
浏览文件 @
828fc014
window
.
baseURL
=
{
window
.
baseURL
=
{
prodUrl
:
"/api"
,
prodUrl
:
"/api"
,
devUrl
:
"http://192.168.10
2.153:909
5"
,
devUrl
:
"http://192.168.10
0.220:908
5"
,
qyxypj
:
"http://192.168.10
2.153
:9098"
,
//获取token接口
qyxypj
:
"http://192.168.10
0.220
:9098"
,
//获取token接口
// devUrl: "http://192.168.102.183:9095",
// devUrl: "http://192.168.102.183:9095",
// devUrl: "http://192.168.102.220:9095",
// devUrl: "http://192.168.102.220:9095",
xypjUrl
:
"http://222.75.116.235:9020/#/
"
,
//信用评价线上地址
// xypjUrl: "http://222.75.116.235:9020
", //信用评价线上地址
// xypjUrl: "http://192.168.100.220:99/#/
",
xypjUrl
:
"http://192.168.100.220:99
"
,
// xypjUrl: "http://192.168.101.243:81
/#/
",
// xypjUrl: "http://192.168.101.243:81",
api
:
''
api
:
''
}
}
\ No newline at end of file
src/layout/head.vue
浏览文件 @
828fc014
...
@@ -160,17 +160,21 @@ export default defineComponent({
...
@@ -160,17 +160,21 @@ export default defineComponent({
],
],
curYearIndex
:
5
,
curYearIndex
:
5
,
token
:
''
,
token
:
''
,
username
:
''
,
password
:
''
};
};
},
},
created
()
{
created
()
{
// 获取token
// 获取token
this
.
getXypjToken
()
const
url
=
window
.
location
.
href
;
const
url
=
window
.
location
.
href
;
const
str
=
url
.
split
(
'?token='
)[
1
]
||
''
;
const
str
=
url
.
split
(
'?token='
)[
1
]
||
''
;
const
token
=
str
.
split
(
this
.
$route
.
href
)[
0
];
const
token
=
str
.
split
(
'&name='
)[
0
];
const
nameStr
=
str
.
split
(
'&name='
)[
1
].
split
(
'&'
)[
0
]
const
passStr
=
str
.
split
(
'&pass='
)[
1
].
split
(
'#'
)[
0
]
this
.
username
=
decodeURI
(
nameStr
)
this
.
password
=
passStr
this
.
token
=
token
;
this
.
token
=
token
;
sessionStorage
.
setItem
(
"cxsf_echarts_token"
,
token
)
sessionStorage
.
setItem
(
"cxsf_echarts_token"
,
token
)
console
.
log
(
this
.
years
,
'years'
);
this
.
years
.
map
((
item
,
index
)
=>
{
this
.
years
.
map
((
item
,
index
)
=>
{
if
(
index
==
this
.
curYearIndex
)
{
if
(
index
==
this
.
curYearIndex
)
{
this
.
$store
.
commit
(
"SET_CUR_DATA_TYPE"
,
item
.
value
);
this
.
$store
.
commit
(
"SET_CUR_DATA_TYPE"
,
item
.
value
);
...
@@ -178,6 +182,7 @@ export default defineComponent({
...
@@ -178,6 +182,7 @@ export default defineComponent({
this
.
$store
.
commit
(
"SET_CUR_DATA"
,
{
year
:
item
.
year
,
quarter
:
item
.
quarter
});
this
.
$store
.
commit
(
"SET_CUR_DATA"
,
{
year
:
item
.
year
,
quarter
:
item
.
quarter
});
}
}
})
})
this
.
getXypjToken
()
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
@@ -225,17 +230,21 @@ export default defineComponent({
...
@@ -225,17 +230,21 @@ export default defineComponent({
const
xypjUrl
=
window
.
baseURL
.
xypjUrl
const
xypjUrl
=
window
.
baseURL
.
xypjUrl
// const xypjUrl = "http://192.168.101.243:81/#/"
// const xypjUrl = "http://192.168.101.243:81/#/"
const
token
=
localStorage
.
getItem
(
"xypjToken"
)
const
token
=
localStorage
.
getItem
(
"xypjToken"
)
const
qyxypj
=
xypjUrl
+
'sso?token='
+
token
+
'&route=bigData'
const
qyxypj
=
xypjUrl
+
'
/#/
sso?token='
+
token
+
'&route=bigData'
if
(
qyxypj
)
{
if
(
qyxypj
)
{
//
window.location.href = qyxypj;
window
.
location
.
href
=
qyxypj
;
window
.
open
(
qyxypj
,
"_blank"
);
//
window.open(qyxypj, "_blank");
}
}
},
},
getXypjToken
(){
getXypjToken
(){
// const loginForm = this.loginForm;
const
loginForm
=
{
username
:
this
.
username
,
password
:
this
.
password
,
}
axios
({
axios
({
url
:
window
.
baseURL
.
qyxypj
+
"/login/external"
,
url
:
window
.
baseURL
.
qyxypj
+
"/login/external"
,
method
:
"POST"
,
method
:
"POST"
,
data
:
loginForm
,
headers
:
{
'Authorization'
:
'Bearer '
+
this
.
token
}
headers
:
{
'Authorization'
:
'Bearer '
+
this
.
token
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
token
}
=
res
.
data
;
const
{
token
}
=
res
.
data
;
...
...
src/views/dataCenter/map/index.vue
浏览文件 @
828fc014
...
@@ -3,32 +3,32 @@
...
@@ -3,32 +3,32 @@
<el-col
class=
"map-left"
:span=
"8"
>
<el-col
class=
"map-left"
:span=
"8"
>
<div
class=
"performance-com card-item"
>
<div
class=
"performance-com card-item"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort == 1 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort
Index
== 1 && item.isView == '1')"
>
<Performance
/>
<Performance
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort == 1 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort
Index
== 1 && item.isView == '1')"
>
<RankList
/>
<RankList
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort == 1 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort
Index
== 1 && item.isView == '1')"
>
<InvestmentProgress
/>
<InvestmentProgress
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort == 1 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort
Index
== 1 && item.isView == '1')"
>
<IndicatorWarning
/>
<IndicatorWarning
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"performance-com card-item"
>
<div
class=
"performance-com card-item"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort == 3 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort
Index
== 3 && item.isView == '1')"
>
<Performance
/>
<Performance
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort == 3 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort
Index
== 3 && item.isView == '1')"
>
<RankList
/>
<RankList
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort == 3 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort
Index
== 3 && item.isView == '1')"
>
<InvestmentProgress
/>
<InvestmentProgress
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort == 3 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort
Index
== 3 && item.isView == '1')"
>
<IndicatorWarning
/>
<IndicatorWarning
/>
</div>
</div>
</div>
</div>
...
@@ -54,16 +54,16 @@
...
@@ -54,16 +54,16 @@
<div
class=
"map-right"
>
<div
class=
"map-right"
>
<div
class=
"card-item rank-list"
>
<div
class=
"card-item rank-list"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort == 2 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort
Index
== 2 && item.isView == '1')"
>
<Performance
/>
<Performance
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort == 2 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort
Index
== 2 && item.isView == '1')"
>
<RankList
/>
<RankList
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort == 2 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort
Index
== 2 && item.isView == '1')"
>
<InvestmentProgress
/>
<InvestmentProgress
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort == 2 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort
Index
== 2 && item.isView == '1')"
>
<IndicatorWarning
/>
<IndicatorWarning
/>
</div>
</div>
</div>
</div>
...
@@ -71,16 +71,16 @@
...
@@ -71,16 +71,16 @@
</div>
</div>
<div
class=
"card-item incom-graphic"
>
<div
class=
"card-item incom-graphic"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-for=
"item in tableData"
:key=
"item.id"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort == 4 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '全省军民融合创新示范绩效评价情况' && item.sort
Index
== 4 && item.isView == '1')"
>
<Performance
/>
<Performance
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort == 4 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '创新示范区县(市、区)排名' && item.sort
Index
== 4 && item.isView == '1')"
>
<RankList
/>
<RankList
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort == 4 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '红榜' && item.sort
Index
== 4 && item.isView == '1')"
>
<InvestmentProgress
/>
<InvestmentProgress
/>
</div>
</div>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort == 4 && item.isView == '1')"
>
<div
v-if=
"(item.dictLabel == '指标预警' && item.sort
Index
== 4 && item.isView == '1')"
>
<IndicatorWarning
/>
<IndicatorWarning
/>
</div>
</div>
</div>
</div>
...
@@ -187,7 +187,14 @@ export default defineComponent({
...
@@ -187,7 +187,14 @@ export default defineComponent({
method
:
"GET"
,
method
:
"GET"
,
headers
:
{
'Authorization'
:
'Bearer '
+
sessionStorage
.
getItem
(
"cxsf_echarts_token"
)
}
headers
:
{
'Authorization'
:
'Bearer '
+
sessionStorage
.
getItem
(
"cxsf_echarts_token"
)
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
data
// this.tableData = res.data.data
let
data
=
res
.
data
.
data
.
sort
(
function
(
a
,
b
){
return
a
.
sort
-
b
.
sort
})
this
.
tableData
=
data
.
map
((
item
,
index
)
=>
{
item
.
sortIndex
=
index
+
1
return
item
})
})
})
},
},
// getModule(label){
// getModule(label){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论