Commit 8bc03492 authored by yanghaitao's avatar yanghaitao

0816

parents d45c7cf3 98156819
File deleted
# Default ignored files
/workspace.xml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/zhengfu.iml" filepath="$PROJECT_DIR$/.idea/zhengfu.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>mobile</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>mobile</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>青田数字政府门户</title>
<script src="https://alidt.alicdn.com/alilog/mlog/aplus_cloud.js"></script>
<script src='https://wpk-gate.zjzwfw.gov.cn/static/wpk-jssdk.1.0.2/wpkReporter.js' crossorigin='true'></script>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<script>
//稳定性监控代码
try {
const config = {
bid: 'syszzfmh_zzdpro',
signkey: '1234567890abcdef',
gateway: 'https://wpk-gate.zjzwfw.gov.cn'
};
const wpk = new wpkReporter(config);
wpk.installAll();
window._wpk = wpk;
} catch (err) {
console.error('WpkReporter init fail', err);
}
// 埋点初始化代码
(function (w, d, s, q, i) {
w[q] = w[q] || [];
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.async = true;
j.id = 'beacon-aplus';
j.src = 'https://alidt.alicdn.com/alilog/mlog/aplus_cloud.js';
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'aplus_queue');
//适配pad
var view_timer = null;
function viewPort(userAgent, pageWidth) {
var oView = document.getElementById('viewport');
if (oView) {
document.head.removeChild(oView);
}
if (!pageWidth) {
pageWidth = 1440;
}
var screen_w = parseInt(window.screen.width),
screen_h = parseInt(window.screen.height),
scale = screen_w / pageWidth;
if (/Android (\d+\.\d+)/.test(userAgent)) {
var creat_meta = document.createElement('meta');
creat_meta.name = 'viewport';
creat_meta.id = 'viewport';
var version = parseFloat(RegExp.$1);
if (version > 2.3) {
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale +
',user-scalable=1, minimum-scale = ' + scale + ', maximum-scale = ' + scale +
', target-densitydpi=device-dpi';
} else {
creat_meta.content = '"width=' + pageWidth + ', target-densitydpi=device-dpi';
}
document.head.appendChild(creat_meta);
} else {
var creat_meta = document.createElement('meta');
creat_meta.name = 'viewport';
creat_meta.id = 'viewport';
if (window.orientation == '-90' || window.orientation == '90') { //判断移动设备横屏竖屏
scale = window.screen.height / pageWidth;
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale * screen_w / screen_h +
' ,minimum-scale = ' + scale * screen_w / screen_h + ', maximum-scale = ' + scale * screen_w / screen_h +
', user-scalable=no, target-densitydpi=device-dpi';
} else {
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale + ' ,minimum-scale = ' + scale +
', maximum-scale = ' + scale + ', user-scalable=no, target-densitydpi=device-dpi';
}
document.head.appendChild(creat_meta);
}
}
viewPort(navigator.userAgent);
window.onresize = function () {
clearTimeout(view_timer);
view_timer = setTimeout(function () {
viewPort(navigator.userAgent);
}, 500);
}
window.addEventListener('message', async function (e, d) {
if (e.data && e.data.accessToken) {
var token = e.data.accessToken;
var url =
'https://portal.lishui.gov.cn:18080/api_2021/public/index.php/index/MicroPortalLogin/getUserInfoByAccessToken?accessToken=' +token;
var user = await fetch(url);
} else {
window.location.replace("./#err");
}
// var data = JSON.parse(e.data);
// alert(data);
// var accessToken = data.accessToken;
// alert(accessToken);
//alert(e.data)
// let data = JSON.parse(e.data);
// let accessToken = data.accessToken;
})
</script>
</html>
<template>
<<<<<<< HEAD
<div class="breadcrumb">
<div class="br-top">
<el-breadcrumb
......@@ -26,6 +27,47 @@
</div>
{{ breadData.annual_target }}
=======
<div class="breadcrumb-t">
<div class="breadcrumb">
<div class="br-top">
<el-breadcrumb
separator="/"
v-if="$route.path != '/index'"
separator-class="el-icon-arrow-right"
>
<el-breadcrumb-item
><a href="https://szzf.qingtian.gov.cn:18080" target="_parent"
>首页</a
></el-breadcrumb-item
>
<el-breadcrumb-item><span style="font-size: 18px !important;font-weight: bold !important;">{{ breadData.page_name }}</span></el-breadcrumb-item>
<el-breadcrumb-item v-if="breadData.child"><span style="font-weight: normal !important;font-size: 16px !important;">{{ breadData.child }}</span></el-breadcrumb-item>
</el-breadcrumb>
<div class="mt12">
<i class="iconfont icon-chengshi"></i>
<span>牵头单位:{{ breadData.leading }}</span>
</div>
</div>
</div>
<div class="line" v-if="show"></div>
<div class="breadcrumb-text" v-if="show">
<div class="breadcrumb-title">
<div class="flex acenter mb12">
<img src="../assets/images/target.png" alt="" />
<span>年度目标</span>
</div>
<!-- <div class="s-line"></div> -->
<div>{{ breadData.annual_target }}</div>
</div>
</div>
<div class="flex acenter jcenter shoez" @click="shows">
<div class="flex acenter jcenter showt">
<div>年度目标</div>
<!-- <img :src="show?'../assets/images/bottom.png': '../assets/images/topArrow.png'" alt="" /> -->
<img src="../assets/images/bottom.png" alt="" v-if="!show">
<img src="../assets/images/topArrow.png" alt="" v-else>
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
</div>
</div>
</div>
......@@ -39,23 +81,39 @@ export default {
type: Object,
},
},
<<<<<<< HEAD
=======
data() {
return {
show: true
};
},
methods: {
shows() {
this.show = ! this.show
}
}
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
};
</script>
<style lang='scss' scoped>
.breadcrumb-t {
position: relative;
background:#fff;
border-radius: 6px;
}
.breadcrumb {
width: 100%;
// width: calc(100% - 40px);
box-sizing: border-box;
background-color: #fff;
border-radius: 4px;
padding: 12px;
margin-bottom: 20px;
>>> .el-breadcrumb {
font-size: 16px;
}
padding: 12px 10px 0;
margin-bottom: 12px;
>>> .el-breadcrumb__inner {
color: #333;
font-weight: bold;
<<<<<<< HEAD
}
.breadcrumb-title {
margin-top: 12px;
......@@ -72,13 +130,77 @@ export default {
.breadcrumb-title img {
width: 28px;
height: 28px;
=======
font-size: 18px !important;
a {
font-weight: 400;
font-size: 16px;
}
}
.br-top {
// display: flex;
justify-content: space-between;
align-items: center;
}
.breadcrumb-title h2 {
font-weight: 600;
font-size: 24px;
margin-right: 20px;
}
.breadcrumb-text {
padding: 12px 10px 0;
}
.breadcrumb-title {
// display: flex;
align-items: center;
color: #333;
span {
color: #1492ff;
margin-right: 8px;
font-size: 18px;
}
.s-line {
width: 1px;
height: 15px;
background: #ddd;
margin-right: 10px;
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
}
}
.breadcrumb-title img {
width: 24px;
height: auto;
}
.breadcrumb-title h2 {
font-weight: 600;
font-size: 24px;
margin-right: 20px;
}
.line {
width: 100%;
height: 1px;
background: #ddd;
transform: scaleY(0.5);
}
.shoet {
width: 150px;
height: 24px;
position: relative;
}
.shoez {
// position: absolute;
bottom: 0;
height: 24px;
}
.showt {
color: #999;
background: #eee;
position: relative;
bottom: -1px;
img {
width: 15px;
height: 15px;
margin-left: 5px;
z-index: 10;
}
}
<<<<<<< HEAD
.icon24 {
width: 24px;
height: 24px;
......@@ -86,4 +208,31 @@ export default {
.shrink {
flex-shrink: 0;
}
</style>
\ No newline at end of file
</style>
=======
.showt:after {
position: absolute;
left: 0;
top: -19px;
width: 0;
height: 0;
margin-left: -20px;
content: " ";
border-bottom: 20px solid #eee;
border-left: 20px solid transparent;
border-top: 20px solid transparent;
}
.showt:before {
position: absolute;
right: 0;
top: -19px;
width: 0;
height: 0;
margin-right: -20px;
content: " ";
border-bottom: 20px solid #eee;
border-right: 20px solid transparent;
border-top: 20px solid transparent;
}
</style>
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
......@@ -87,6 +87,15 @@ var router = new VueRouter({
component: Ctfy
},
{
<<<<<<< HEAD
=======
path: '/cthfy',
name: 'Chhtfy',
meta: { title: '常态防疫' },
component: Ctfy
},
{
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
path: '/stwm',
name: 'Stwm',
meta: { title: '生态文明' },
......@@ -105,7 +114,11 @@ var router = new VueRouter({
component: Szsy
},
{
<<<<<<< HEAD
path: '/err?debug=true',
=======
path: '/err',
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
name: 'Err',
meta: { title: '无权限' },
component: Err
......
<template>
<div class="ecology">
<<<<<<< HEAD
<div>
<Breadcrumb :breadData="breadData"></Breadcrumb>
</div>
<el-row :gutter="20">
=======
<div class="shadow">
<Breadcrumb :breadData="breadData"></Breadcrumb>
</div>
<el-row :gutter="20" class="mt20">
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
<el-col :sm="12" :xs="24">
<div class="clear-water unify-item">
<div class="clear-water unify-item shadow">
<h3 class="module-tit">深化碧水行动</h3>
<ul class="mt12">
<li v-for="(item, index) in clear_water_info" :key="index">
......@@ -34,7 +41,7 @@
</div>
</el-col>
<el-col :sm="12" :xs="24">
<div class="air-quality unify-item">
<div class="air-quality unify-item shadow">
<h3 class="module-tit">空气质量巩固提升行动</h3>
<div class="aq-map mt12">
<img src="../assets/images/sy-map.jpg" alt="" />
......@@ -85,7 +92,7 @@
</el-row>
<el-row :gutter="20">
<el-col :sm="12" :xs="24">
<div class="no-waste unify-item">
<div class="no-waste unify-item shadow">
<h3 class="module-tit">无废城市建设</h3>
<ul class="nw-con">
<li
......@@ -113,7 +120,7 @@
</div>
</el-col>
<el-col :sm="12" :xs="24">
<div class="beautiful-rivers unify-item">
<div class="beautiful-rivers unify-item shadow">
<h3 class="module-tit">美丽河湖库</h3>
<ul class="br-con mt12">
<li v-for="(item, index) in br_info" :key="index">
......@@ -173,7 +180,7 @@
</el-row>
<el-row :gutter="20">
<el-col :sm="12" :xs="24">
<div class="unify-item">
<div class="unify-item shadow">
<h3 class="module-tit mb12">政府工作报告任务落实</h3>
<Tree :treeData="treeData"></Tree>
</div>
......@@ -351,10 +358,18 @@ export default {
],
};
},
mounted() {
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
}
};
</script>
<style lang="scss" scoped>
.shadow {
box-shadow: 0 2px 12px 0 #ccc;
}
//公共样式
.w100 {
width: 100%;
......
This diff is collapsed.
......@@ -3,7 +3,8 @@
<div class="index">
<div class="main">
<div class="minHeader shadow">
<div class="card__header">
<Breadcrumb :breadData="breadData"></Breadcrumb>
<!-- <div class="card__header">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item><a href="https://szzf.qingtian.gov.cn:18080"
>首页</a
......@@ -16,8 +17,8 @@
<i class="el-icon-office-building mr12"></i>
<p class="c3">牵头单位: 县发展和改革局</p>
</div>
</div>
<div class="flex acenter pl12 pr20 pb12">
</div> -->
<!-- <div class="flex acenter pl12 pr20 pb12">
<img src="../assets/images/target.png" class="icon28" />
<div class="flex acenter">
<div class="flex acenter eltxtx">
......@@ -26,7 +27,7 @@
</div>
<div class="c3">暂无数据</div>
</div>
</div>
</div> -->
</div>
<div class="tabtits">
<el-row :gutter="10">
......@@ -59,7 +60,7 @@
</div>
</div>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12">
<el-col :xs="24" :sm="12" :md="12" :lg="12" class="mt20">
<div class="minTop shadow">
<div class="card__header">
<p class="tieaft">本县规上工业增加值(2021年1-4月)</p>
......@@ -83,7 +84,7 @@
</div>
</div>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12">
<el-col :xs="24" :sm="12" :md="12" :lg="12" class="mt20">
<div class="minTop shadow">
<div class="card__header">
<p class="tieaft">区县规上工业利润(2021年1-4月)</p>
......@@ -100,10 +101,16 @@
</template>
<script>
import Breadcrumb from "../components/Breadcrumb.vue";
export default {
components: {},
components: {Breadcrumb},
data() {
return {
breadData: {
page_name: "产业发展",
annual_target: "暂无数据",
leading: "县发展和改革局",
},
industry_tabs: [
{
name: "数字经济",
......@@ -137,6 +144,9 @@ export default {
this.initCharts2();
this.initCharts3();
this.initCharts4();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
//方法集合
methods: {
......
......@@ -252,6 +252,9 @@ export default {
this.initCharts3();
this.initCharts4();
this.initCharts5();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
methods: {
initCharts1() {
......
......@@ -2,7 +2,7 @@
<div class="live">
<div class="main">
<Breadcrumb :breadData="breadData"></Breadcrumb>
<el-row :gutter="20">
<el-row :gutter="20" class="mt20">
<el-col :xs="24" :sm="12" :md="12" :lg="12">
<div class="task">
<div class="task-census">
......@@ -334,6 +334,9 @@ export default {
mounted() {
this.init_bar_1();
this.init_bar_2();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
methods: {
xtab(i) {
......
......@@ -2,7 +2,7 @@
<div class="nu">
<div class="main">
<Breadcrumb :breadData="breadData"></Breadcrumb>
<div class="nu-tabs">
<div class="nu-tabs mt20">
<el-row class="uls" :gutter="10">
<el-col
class="lis"
......@@ -425,6 +425,9 @@ export default {
this.init_bar_2();
this.init_circle_3();
this.init_bar_3();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
methods: {
tableRowClassName({ row }) {
......
......@@ -2,7 +2,7 @@
<div class="region">
<div class="main">
<Breadcrumb :breadData="breadData"></Breadcrumb>
<el-row :gutter="20">
<el-row :gutter="20" class="mt20">
<el-col :xs="24" :sm="12" :md="12" :lg="12">
<div class="unify-item box1_l">
<div class="module-tit">政府工作报告落实情况</div>
......@@ -82,6 +82,9 @@ export default {
this.initGzbgChart();
this.initSq26x1Chart();
this.initSq26x2Chart();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
// let _this =this;
// window.onresize = () => {
// return (() => {
......
......@@ -159,6 +159,9 @@ export default {
},
mounted() {
this.initCharts1();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
methods: {
initCharts1() {
......
......@@ -219,6 +219,12 @@ export default {
},
mounted() {
this.initCharts1();
<<<<<<< HEAD
=======
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
},
//方法集合
methods: {
......
......@@ -156,9 +156,12 @@ export default {
};
},
mounted() {
let _this = this;
// let _this = this;
// this.initChart1();
this.initChart2();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
// window.onresize = () => {
// return (() => {
// _this.initChart1();
......
......@@ -618,7 +618,7 @@
<p class="fs20 c3 b">企业风险普查</p>
<p class="c9">截止到5月底</p>
</div>
<div class="p20 flex between">
<div class="pt20 pb20 p10 flex between">
<el-tabs v-model="activeName1" type="card" @tab-click="handleClick1">
<el-tab-pane label="重点领域安全生产风险普查率" name="first">
<div id="main3" style="max-width: 100%; height: 320px"></div>
......@@ -848,6 +848,9 @@ export default {
this.initCharts5();
this.initCharts6();
this.initCharts7();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
methods: {
handleClick1(tab, event) {
......
<!-- -->
<template>
<<<<<<< HEAD
<div class=''>
无权限访问
=======
<div class='flex acenter jcenter mt20'>
<img src="../assets/images/err.png" alt="">
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
</div>
</template>
......
......@@ -327,6 +327,9 @@ export default {
},
mounted() {
this.initCharts1();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
methods: {
tabRowClassName({ row, rowIndex }) {
......
......@@ -14,7 +14,8 @@
</el-breadcrumb>
</div>
<div class="mt12">
<div class="flex acenter">
<div class="fs16 mt12">牵头单位: 县发展和改革局</div>
<div class="flex acenter mt12">
<p class="b fs24 mr12 c3">营商环境市场活力</p>
<p class="kuai bradius4 c6dd bgf0f flex acenter jcenter h22">
<span
......@@ -23,7 +24,10 @@
<span class="fs12">正常</span>
</p>
</div>
<<<<<<< HEAD
<div class="fs16 mt12">牵头单位: 县发展和改革局</div>
=======
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
</div>
</div>
<div class="mt20 getgov">
......@@ -478,6 +482,9 @@ export default {
this.initCharts3();
this.initCharts4();
this.initCharts5();
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
},
//方法集合
methods: {
......
......@@ -28,3 +28,44 @@ npm test
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
<!-- window.addEventListener('message', async function (e, d) {
if (e.data && e.data.accessToken) {
var token = e.data.accessToken;
var url =
'https://portal.lishui.gov.cn:18080/api_2021/public/index.php/index/MicroPortalLogin/getUserInfoByAccessToken?token=' +token;
var user = await fetch(url);
var contentType = user.headers.get('Content-Type');
console.log(contentType);
console.log("return user");
console.log(user.json());
console.log("finishing");
} else {
window.location.replace("./#err");
} -->
// var data = JSON.parse(e.data);
// alert(data);
// var accessToken = data.accessToken;
// alert(accessToken);
//alert(e.data)
// let data = JSON.parse(e.data);
// let accessToken = data.accessToken;
})
......@@ -31,7 +31,8 @@
// 埋点初始化代码
(function (w, d, s, q, i) {
w[q] = w[q] || [];
var f = d.getElementsByTagName(s)[0], j = d.createElement(s);
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.async = true;
j.id = 'beacon-aplus';
j.src = 'https://alidt.alicdn.com/alilog/mlog/aplus_cloud.js';
......@@ -39,6 +40,7 @@
})(window, document, 'script', 'aplus_queue');
//适配pad
var view_timer = null;
function viewPort(userAgent, pageWidth) {
var oView = document.getElementById('viewport');
if (oView) {
......@@ -48,7 +50,7 @@
pageWidth = 1440;
}
var screen_w = parseInt(window.screen.width),
screen_h =parseInt(window.screen.height),
screen_h = parseInt(window.screen.height),
scale = screen_w / pageWidth;
if (/Android (\d+\.\d+)/.test(userAgent)) {
var creat_meta = document.createElement('meta');
......@@ -56,7 +58,9 @@
creat_meta.id = 'viewport';
var version = parseFloat(RegExp.$1);
if (version > 2.3) {
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale + ',user-scalable=1, minimum-scale = ' + scale + ', maximum-scale = ' + scale + ', target-densitydpi=device-dpi';
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale +
',user-scalable=1, minimum-scale = ' + scale + ', maximum-scale = ' + scale +
', target-densitydpi=device-dpi';
} else {
creat_meta.content = '"width=' + pageWidth + ', target-densitydpi=device-dpi';
}
......@@ -65,12 +69,14 @@
var creat_meta = document.createElement('meta');
creat_meta.name = 'viewport';
creat_meta.id = 'viewport';
if (window.orientation == '-90' || window.orientation == '90') {//判断移动设备横屏竖屏
if (window.orientation == '-90' || window.orientation == '90') { //判断移动设备横屏竖屏
scale = window.screen.height / pageWidth;
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale*screen_w/screen_h + ' ,minimum-scale = ' + scale*screen_w/screen_h + ', maximum-scale = ' + scale*screen_w/screen_h + ', user-scalable=no, target-densitydpi=device-dpi';
}
else {
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale + ' ,minimum-scale = ' + scale + ', maximum-scale = ' + scale + ', user-scalable=no, target-densitydpi=device-dpi';
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale * screen_w / screen_h +
' ,minimum-scale = ' + scale * screen_w / screen_h + ', maximum-scale = ' + scale * screen_w / screen_h +
', user-scalable=no, target-densitydpi=device-dpi';
} else {
creat_meta.content = 'width=' + pageWidth + ', initial-scale = ' + scale + ' ,minimum-scale = ' + scale +
', maximum-scale = ' + scale + ', user-scalable=no, target-densitydpi=device-dpi';
}
document.head.appendChild(creat_meta);
}
......@@ -82,6 +88,7 @@
viewPort(navigator.userAgent);
}, 500);
}
<<<<<<< HEAD
// window.addEventListener("message", function (e) {
// console.log(e);
// // let accessToken = e;
......@@ -89,6 +96,9 @@
// `https://lsszzf.lishui.gov.cn:18082/common/login/getuserinfo.php`
// );
// });
=======
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
</script>
</html>
\ No newline at end of file
</html>
......@@ -42,6 +42,7 @@
"copy-webpack-plugin": "^4.0.1",
"cross-spawn": "^5.0.1",
"css-loader": "^0.28.0",
"element-resize-detector": "^1.2.3",
"eslint": "^4.15.0",
"eslint-config-standard": "^10.2.1",
"eslint-friendly-formatter": "^3.0.0",
......
......@@ -7,6 +7,11 @@
<script>
export default {
name: "App",
methods: {
// qw() {
// this.$router.replace({path: '/err'})
// }
}
};
</script>
......
......@@ -8,11 +8,19 @@
separator-class="el-icon-arrow-right"
>
<el-breadcrumb-item
<<<<<<< HEAD
><a href="https://szzf.qingtian.gov.cn:18080"
>首页</a
></el-breadcrumb-item
>
<el-breadcrumb-item>{{ breadData.page_name }}</el-breadcrumb-item>
=======
><a href="https://szzf.qingtian.gov.cn:18080" target="_parent"
>首页</a
></el-breadcrumb-item>
<el-breadcrumb-item ><span style="font-weight: bold !important;font-size: 18px !important;">{{ breadData.page_name }}</span></el-breadcrumb-item>
<el-breadcrumb-item v-if="breadData.child"><span style="font-weight: normal !important;font-size: 16px !important;">{{ breadData.child }}</span></el-breadcrumb-item>
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
</el-breadcrumb>
<div>
<i class="iconfont icon-chengshi"></i>
......@@ -24,7 +32,11 @@
<div class="breadcrumb-text" v-if="show">
<div class="breadcrumb-title">
<img src="../assets/images/target.png" alt="" />
<<<<<<< HEAD
<span>年度目标</span>
=======
<span style="font-size:16px !important">年度目标</span>
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
<div class="s-line"></div>
{{ breadData.annual_target }}
</div>
......@@ -50,7 +62,11 @@ export default {
},
data() {
return {
<<<<<<< HEAD
show: true
=======
show: false
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
};
},
methods: {
......@@ -65,6 +81,10 @@ export default {
.breadcrumb-t {
position: relative;
background:#fff;
<<<<<<< HEAD
=======
border-radius: 6px;
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
}
.breadcrumb {
width: 100%;
......@@ -75,8 +95,13 @@ export default {
margin-bottom: 16px;
>>> .el-breadcrumb__inner {
color: #333;
<<<<<<< HEAD
font-weight: bold;
font-size: 18px;
=======
font-weight: bold ;
font-size: 18px ;
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
a {
font-weight: 400;
font-size: 16px;
......@@ -88,6 +113,11 @@ export default {
align-items: center;
}
}
<<<<<<< HEAD
=======
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
.breadcrumb-text {
padding: 16px 20px 0;
}
......@@ -98,7 +128,12 @@ export default {
span {
color: #1492ff;
margin-right: 8px;
<<<<<<< HEAD
font-size: 18px;
=======
font-weight: bold !important;
font-size: 18px !important;
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
}
.s-line {
width: 1px;
......@@ -168,4 +203,8 @@ export default {
border-right: 20px solid transparent;
border-top: 20px solid transparent;
}
</style>
\ No newline at end of file
<<<<<<< HEAD
</style>
=======
</style>
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
......@@ -10,6 +10,9 @@ import 'element-ui/lib/theme-chalk/index.css'
import './assets/font/iconfont.css'
import * as echarts from 'echarts'
import 'default-passive-events'
import ElementResizeDetectorMaker from 'element-resize-detector';
Vue.prototype.$erd = ElementResizeDetectorMaker();
Vue.prototype.$echarts = echarts
Vue.use(ElementUI)
Vue.config.productionTip = false
......
......@@ -18,8 +18,7 @@ import Szsy from '../views/Szsy.vue'
import Err from '../views/err.vue'
Vue.use(Router)
var router = new Router({
routes: [
{
routes: [{
path: '/',
name: 'Index',
component: MyIndex
......@@ -27,79 +26,116 @@ var router = new Router({
{
path: '/xxczh',
name: 'NewUrbanization',
meta: { title: '新型城镇化' },
meta: {
title: '新型城镇化'
},
component: Xxczh
},
{
path: '/msbz',
name: 'live',
<<<<<<< HEAD
meta: { title: '民生保障' },
=======
meta: {
title: '民生保障'
},
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
component: Msbz
},
{
path: '/qyxtfz',
name: 'region',
meta: { title: '区域协调发展' },
meta: {
title: '区域协调发展'
},
component: Qyxtfz
},
{
path: '/cyfz',
name: 'Cyfz',
meta: { title: '产业发展' },
meta: {
title: '产业发展'
},
component: Cyfz
},
{
path: '/xczx',
name: 'Xczx',
meta: { title: '乡村振兴' },
meta: {
title: '乡村振兴'
},
component: Xczx
},
{
path: '/aqsc',
name: 'Aqsc',
meta: { title: '安全生产' },
meta: {
title: '安全生产'
},
component: Aqsc
},
{
path: '/sxh',
name: 'Sxh',
meta: { title: '双循环' },
meta: {
title: '双循环'
},
component: Sxh
},
{
path: '/kjcx',
name: 'Kjcx',
meta: { title: '科技创新' },
meta: {
title: '科技创新'
},
component: Kjcx
},
{
path: '/yshj',
name: 'Yshj',
meta: { title: '营商环境' },
meta: {
title: '营商环境'
},
component: Yshj
},
{
path: '/ctfy',
name: 'Ctfy',
meta: { title: '常态防疫' },
meta: {
title: '常态防疫'
},
component: Ctfy
},
{
path: '/cthfy',
name: 'Cthfy',
meta: {
title: '常态防疫'
},
component: Ctfy
},
{
path: '/stwm',
name: 'Stwm',
meta: { title: '生态文明' },
meta: {
title: '生态文明'
},
component: Stwm
},
{
path: '/xxgl',
name: 'Xxgl',
meta: { title: '信息管理' },
meta: {
title: '信息管理'
},
component: Xxgl
},
{
path: '/szsy',
name: 'Szsy',
<<<<<<< HEAD
meta: { title: '双招双引' },
component: Szsy
},
......@@ -107,6 +143,19 @@ var router = new Router({
path: '/err?debug=true',
name: 'Err',
meta: { title: '无权限' },
=======
meta: {
title: '双招双引'
},
component: Szsy
},
{
path: '/err',
name: 'Err',
meta: {
title: '无权限'
},
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
component: Err
}
]
......@@ -122,6 +171,7 @@ router.beforeEach((to, from, next) => {
// if (to.path == "/login"||to.path=="/nopower") {
next()
<<<<<<< HEAD
// if (to.path == '/') {
// next()
// } else if (to.fullPath.indexOf('?') != -1) {
......@@ -136,6 +186,9 @@ router.beforeEach((to, from, next) => {
// } else {
// next({name: 'Err'})
// }
=======
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
// } else {
......@@ -149,16 +202,31 @@ router.beforeEach((to, from, next) => {
/*---------埋点代码开始 (路由切换执行)----------*/
// 单页应用 或 “单个页面”需异步补充PV日志参数还需进行如下埋点:
aplus_queue.push({ action: 'aplus.setMetaInfo', arguments: ['aplus-waiting', 'MAN'] });
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['aplus-waiting', 'MAN']
});
// PV日志接收日志域名,必须按实际情况填写
aplus_queue.push({ action: 'aplus.setMetaInfo', arguments: ['aplus-rhost-v', 'alog.zjzwfw.gov.cn'] });
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['aplus-rhost-v', 'alog.zjzwfw.gov.cn']
});
// 一般日志(如点击和曝光)接收日志域名
aplus_queue.push({ action: 'aplus.setMetaInfo', arguments: ['aplus-rhost-g', 'alog.zjzwfw.gov.cn'] });
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['aplus-rhost-g', 'alog.zjzwfw.gov.cn']
});
// 判单设备设置appId
aplus_queue.push({ action: 'aplus.setMetaInfo', arguments: ['appId', isAndroid ? '28302650' : isIOS ? '28328447' : '47130293'] });
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['appId', isAndroid ? '28302650' : isIOS ? '28328447' : '47130293']
});
// 如采集用户信息是异步行为需要先执行这个BLOCK埋点
aplus_queue.push({ action: 'aplus.setMetaInfo', arguments: ['_hold', 'BLOCK'] });
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['_hold', 'BLOCK']
});
aplus_queue.push({
'action': 'aplus.sendPV',
......@@ -169,16 +237,16 @@ router.beforeEach((to, from, next) => {
sapp_id: '14053',
sapp_name: 'szzf-yh',
// 自定义PV参数key-value键值对(只能是这种平铺的json,不能做多层嵌套),除userName外(考虑安全原因暂时做废弃处理),其他为必填项。
dev_type: devType, // 设备类型
site_type: '101', // 站点类型 数字化改革门户100 数字政府101 党政机关整体智治102 数字社会103 数字经济104 数字法治105
is_digital_reform: '1', // 固定值传1,标识是否为数字化改革相关应用
is_workbench: '1', // 新增字段,标识是否为数字化改革工作台,取值 1或0,1代表是,0代表不是,不填该参数取默认值0
city_code: '331100', // 设区市编码
area_code: '331125', // 区县编码
page_name: '云和数字政府门户', // 页面名称
dev_type: devType, // 设备类型
site_type: '101', // 站点类型 数字化改革门户100 数字政府101 党政机关整体智治102 数字社会103 数字经济104 数字法治105
is_digital_reform: '1', // 固定值传1,标识是否为数字化改革相关应用
is_workbench: '1', // 新增字段,标识是否为数字化改革工作台,取值 1或0,1代表是,0代表不是,不填该参数取默认值0
city_code: '331100', // 设区市编码
area_code: '331125', // 区县编码
page_name: '云和数字政府门户', // 页面名称
page_url: window.location.href,
page_id: window.location.hash,
_user_id: sessionStorage.token ? JSON.parse(sessionStorage.token).accountId : '', // 客户端用户ID(浙政钉2.0ID)
_user_id: sessionStorage.token ? JSON.parse(sessionStorage.token).accountId : '', // 客户端用户ID(浙政钉2.0ID)
// _user_nick: '', // userName考虑安全原因暂时做废弃处理
}]
})
......@@ -194,7 +262,10 @@ router.beforeEach((to, from, next) => {
});
// 如采集用户信息是异步行为,需要先设置完用户信息后再执行这个START埋点
// 此时被block住的日志会携带上用户信息逐条发出
aplus_queue.push({ action: 'aplus.setMetaInfo', arguments: ['_hold', 'START'] });
aplus_queue.push({
action: 'aplus.setMetaInfo',
arguments: ['_hold', 'START']
});
/*---------埋点代码结束----------*/
......
function parseUser(json) {
if (json.code != "200") {
return null;
}
var data = json.data;
if (data == null || data == undefined) {
return null;
}
var username = data.username;
if (username == null || username == undefined || username == "") {
return null;
}
return username;
}
export async function messageFun(e) {
if (e.data && e.data.accessToken) {
var token = e.data.accessToken;
if (token == null || token == undefined) {
return false;
}
try {
console.log(token);
var url =
'https://portal.lishui.gov.cn:18080/api_2021/public/index.php/index/MicroPortalLogin/getUserInfoByAccessToken?accessToken=' + token;
var user = await fetch(url);
console.log(url);
var contentType = user.headers.get('Content-Type');
console.log(contentType);
console.log("return user");
var json = await user.json();
var username = parseUser(json);
console.log(json);
console.log("welcome:" + username);
if (username == null) {
return false;
}
console.log("finishing");
} catch (e) {
return false;
}
} else {
return false;
}
return true;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -225,6 +225,16 @@ export default {
this.initCharts2();
this.initCharts3();
this.initCharts4();
<<<<<<< HEAD
=======
window.parent.postMessage(document.body.scrollHeight, '*');
window.onresize = () => {
return (() => {
window.parent.postMessage(document.body.scrollHeight, '*');
})();
};
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*');
});
......
This diff is collapsed.
<!-- -->
<template>
<<<<<<< HEAD
<div class=''>
无权限访问
=======
<div class='flex acenter jcenter mt20'>
<img src="../assets/images/err.png" alt="">
>>>>>>> 981568198fdc16d21b8f488ca4407ccbfc277c73
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment