From fe0d925329dd86143a9b90168a250414f0c0ff4b Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 23 Jun 2022 14:17:04 +0800 Subject: [PATCH 1/7] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/location.js | 4 +- front/src/utils/request.js | 23 +++++- .../components/CapabilityConvergence.vue | 81 ++++++++++++++----- .../views/newHome/components/Navigation2.vue | 6 +- 4 files changed, 90 insertions(+), 24 deletions(-) diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index f4ff914d..b6668da1 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -2,12 +2,12 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-22 16:18:47 + * @LastEditTime: 2022-06-23 10:53:31 * @Description: 数据资源参数配置 */ // const newLocation = 'qingdao' // const newLocation = 'baotou' -const newLocation = 'qingdao' +const newLocation = 'xihaian' // 数据资源数据 const whoShow = {} diff --git a/front/src/utils/request.js b/front/src/utils/request.js index a939dd25..b9b36c15 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -129,7 +129,28 @@ instance.interceptors.response.use( if (error.response && error.response.data) { console.log('接口返回', response) console.log('接口返回headers', response.headers) - console.log('接口返回REDIRECT', response.headers.redirect) + console.log('接口返回REDIRECT1111', response.headers.redirect) + if (response.headers.redirect === '/#/login') { + var keys = document.cookie.match(/[^ =;]+(?=\=)/g) + if (keys) { + for (var i = keys.length; i--; ) { + document.cookie = + keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString() //清除当前域名下的,例如:m.kevis.com + document.cookie = + keys[i] + + '=0;path=/;domain=' + + document.domain + + ';expires=' + + new Date(0).toUTCString() //清除当前域名下的,例如 .m.kevis.com + document.cookie = + keys[i] + + '=0;path=/;domain=kevis.com;expires=' + + new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com + } + } + console.log('已清除') + location.reload() + } if (response.headers.redirect) { window.location.href = response.headers.redirect return Promise.reject(error) diff --git a/front/src/views/newHome/components/CapabilityConvergence.vue b/front/src/views/newHome/components/CapabilityConvergence.vue index 3a02c403..1b5ecd85 100644 --- a/front/src/views/newHome/components/CapabilityConvergence.vue +++ b/front/src/views/newHome/components/CapabilityConvergence.vue @@ -34,24 +34,28 @@
基础设施
-
1-J1-党建展示区走廊-北向
-
2-J2-党建数据中心机房
-
3-J3-党建展示区走廊-南向
-
4-J4-党建大厅电动门
-
5-J5-指挥席位东北向
+
+ {{ index + 1 }}-{{ item.name }} +
查看更多
数据资源
-
1-扬尘数据接口
-
2-根据证件号码查询全员核酸检测信息(人社专用)
-
- 3-根据身份证号、姓名、开始日期、结束日期获取医保住院结算信息(市人社局专用) +
+ {{ index + 1 }}-{{ item.name }}
-
- 4-根据身份证号、姓名、年度查询医保参保缴费信息(市委组织部专用) -
-
5-"金种子"人才培养经费查询API
查看更多
@@ -72,13 +76,15 @@
diff --git a/front/src/utils/request.js b/front/src/utils/request.js index b9b36c15..ed1a4e87 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -90,6 +90,27 @@ instance.interceptors.response.use( console.log('接口返回', response) console.log('接口返回headers', response.headers) console.log('接口返回REDIRECT', response.headers.redirect) + if (response.headers.redirect === '/#/login') { + var keys = document.cookie.match(/[^ =;]+(?=\=)/g) + if (keys) { + for (var i = keys.length; i--; ) { + document.cookie = + keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString() //清除当前域名下的,例如:m.kevis.com + document.cookie = + keys[i] + + '=0;path=/;domain=' + + document.domain + + ';expires=' + + new Date(0).toUTCString() //清除当前域名下的,例如 .m.kevis.com + document.cookie = + keys[i] + + '=0;path=/;domain=kevis.com;expires=' + + new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com + } + } + console.log('已清除') + location.reload() + } response['Access-Control-Expose-Headers'] = 'redirect' const { code, message } = response.data if (response.headers.token) { From 5430330eaff5b72e6d91b32bba68c30a66f3f959 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Thu, 23 Jun 2022 15:02:11 +0800 Subject: [PATCH 3/7] =?UTF-8?q?BUG=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/utils/request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/utils/request.js b/front/src/utils/request.js index ed1a4e87..3a642879 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -109,7 +109,7 @@ instance.interceptors.response.use( } } console.log('已清除') - location.reload() + router.push({ path: '/login' }) } response['Access-Control-Expose-Headers'] = 'redirect' const { code, message } = response.data @@ -170,7 +170,7 @@ instance.interceptors.response.use( } } console.log('已清除') - location.reload() + router.push({ path: '/login' }) } if (response.headers.redirect) { window.location.href = response.headers.redirect From 538b6f14a41d7871a36b87d67176b401405e9412 Mon Sep 17 00:00:00 2001 From: gaoxiaolong <327091900@qq.com> Date: Thu, 23 Jun 2022 16:35:53 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/assets/img/TOP5.png | Bin 0 -> 2020 bytes .../applicationResources.vue | 110 ++++++ .../abilityStatistics/componentServices.vue | 358 ++++++++++++++++++ .../views/modules/abilityStatistics/index.vue | 250 ++++++++++++ 4 files changed, 718 insertions(+) create mode 100644 back/src/assets/img/TOP5.png create mode 100644 back/src/views/modules/abilityStatistics/applicationResources.vue create mode 100644 back/src/views/modules/abilityStatistics/componentServices.vue create mode 100644 back/src/views/modules/abilityStatistics/index.vue diff --git a/back/src/assets/img/TOP5.png b/back/src/assets/img/TOP5.png new file mode 100644 index 0000000000000000000000000000000000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~2lwfn68D@gzuPe8?wW=L@&u;LOUI$?*RyWviy5O6Ilb$P!XH+iw@%+Y zTv1+YO)uDjXa-#M8fQh2!pC#hPPx?OO22z{Gwt>2oyFcAnK__j!~MW}aYe5MF>idm zSB({{xNx%O+Dgfo6`}j0pE6HQu3{-Rk8X-Pt8X#YIlkcaRfjZ#1z{QP3b#Dv+Fc>7 z=7<-P)W`}$#gnUGPD>pwxcZ7gz+j(@`t`aYV!uC*#0wt4Is5BLIX2Jc_I>#Qt;Tov zwvi0yW~(oYsU4?%)8+On9^|A*I_}`j!kbgOZa-?>VtVYJ4HwYXwb5(L@@N&0COI*= z?|Cnl_3&OpZ(3-CE#)c?Sw|nzYMS;YY-sf>Jb%}Eyy`^Z$;cp?Fta*!-(*E~o*RRe z?}zg=*E)>uJFk*#+_?uxo-BRJGS5Gs{ zzoz&TSk0Q|1{a@5!AI^9yj!-flB_JY*SBPbWY@-4B&%$!>)htNo$6aM3zN?UbR-Pk ze_FIAYyGTsXOFE_`s1Fdt$n3kkkK93S(5b;)0Tx-1ZLV%^8JbrcVq4)V03Y5RP&Jlp=U z%*UQ&o1E5leDbGen_n{A^2J-NW!ApDQaxZkAx-c(lxwOt4QviRQ>go*f +
+ 应用资源 + 发布情况统计 +
+
+ 评分发布情况 +
+
+ 发布量情况分布 +
+
+ 应用领域分布情况 +
+
+ 被调用组件及数量 + +
+
+ 被申请组件及数量 + +
+
+ 评分发布情况 +
+
+ 评分发布情况 +
+
+
+ + \ No newline at end of file diff --git a/back/src/views/modules/abilityStatistics/componentServices.vue b/back/src/views/modules/abilityStatistics/componentServices.vue new file mode 100644 index 00000000..2ab65dfb --- /dev/null +++ b/back/src/views/modules/abilityStatistics/componentServices.vue @@ -0,0 +1,358 @@ + + + \ No newline at end of file diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue new file mode 100644 index 00000000..5d4a90f1 --- /dev/null +++ b/back/src/views/modules/abilityStatistics/index.vue @@ -0,0 +1,250 @@ + + + From c97201645b0ef8b8dc137554651b3758409dd98b Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Thu, 23 Jun 2022 17:56:40 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AD=BB=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=85=8D=E7=BD=AE=EF=BC=8Ctoken=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/location.js | 45 ++++++++++++++++++- front/src/utils/request.js | 9 +++- .../components/ResourceAggregation.vue | 2 +- front/src/views/home/DetailsPageconetent.vue | 1 - front/src/views/home/mapTest/index.vue | 32 +++++++++---- .../components/CapabilityConvergence.vue | 4 +- 6 files changed, 76 insertions(+), 17 deletions(-) diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index cf3fbae5..b8618151 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 - * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-23 14:17:52 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-06-23 17:55:06 * @Description: 数据资源参数配置 */ const newLocation = 'qingdao' @@ -14,6 +14,8 @@ const whoShow = {} const launchedDataNumObject = {} // 导航数据 const navListManagement = {} +// 区市站点数据 +const mapTestNum = {} // 底部数据 const footerDataList = {} // qingdao @@ -51,6 +53,45 @@ if (newLocation === 'qingdao') { }, ], } + mapTestNum.lsNum = [ + { + name: '基础设施', + key: 'lsjcss', + num: 20135, + }, + { + name: '数据资源', + key: 'lsjcss', + num: 857, + }, + { + name: '应用资源', + key: 'lsjcss', + num: 28, + }, + ] + mapTestNum.xhaNum = [ + { + name: '基础设施', + key: 'xhajcss', + num: 35282, + }, + { + name: '数据资源', + key: 'xhajcss', + num: 11, + }, + { + name: '应用资源', + key: 'xhajcss', + num: 23, + }, + { + name: '组件服务', + key: 'xhazjfw', + num: 8, + }, + ] } // baotou else if (newLocation === 'baotou') { diff --git a/front/src/utils/request.js b/front/src/utils/request.js index 3a642879..0ab87260 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -90,6 +90,7 @@ instance.interceptors.response.use( console.log('接口返回', response) console.log('接口返回headers', response.headers) console.log('接口返回REDIRECT', response.headers.redirect) + if (response.headers.redirect === '/#/login') { var keys = document.cookie.match(/[^ =;]+(?=\=)/g) if (keys) { @@ -109,7 +110,9 @@ instance.interceptors.response.use( } } console.log('已清除') - router.push({ path: '/login' }) + setTimeout(() => { + location.reload() + }, 1000) } response['Access-Control-Expose-Headers'] = 'redirect' const { code, message } = response.data @@ -170,7 +173,9 @@ instance.interceptors.response.use( } } console.log('已清除') - router.push({ path: '/login' }) + setTimeout(() => { + location.reload() + }, 1000) } if (response.headers.redirect) { window.location.href = response.headers.redirect diff --git a/front/src/views/abilityStatistics/components/ResourceAggregation.vue b/front/src/views/abilityStatistics/components/ResourceAggregation.vue index 12e7f225..3fdf4885 100644 --- a/front/src/views/abilityStatistics/components/ResourceAggregation.vue +++ b/front/src/views/abilityStatistics/components/ResourceAggregation.vue @@ -89,7 +89,7 @@ dataList.value.dataList = res.data.data res.data.data.map((item, index) => { if (dataList.value.dataList[index].type === '数据资源') { - dataList.value.dataList[index].amount = dataSourceNum.value || 10433 + dataList.value.dataList[index].amount = dataSourceNum.value || 0 } dataList.value.dataList[index].organization = '个' dataList.value.dataList[index].photo = photo.value[index] diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 1c2d79ec..7d58846a 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -544,7 +544,6 @@
- -->
diff --git a/front/src/views/home/mapTest/index.vue b/front/src/views/home/mapTest/index.vue index c1352872..73300ce4 100644 --- a/front/src/views/home/mapTest/index.vue +++ b/front/src/views/home/mapTest/index.vue @@ -2,7 +2,7 @@
-
+
西海岸 @@ -11,12 +11,12 @@
-
- 基础设施 +
+ {{ item.name }} - 35282 + {{ item.num }}
-
+
-
+
崂山区 @@ -43,7 +43,12 @@
-
+
+ {{ item.name }} + + {{ item.num }} +
+
@@ -73,6 +78,15 @@ const echarts = require('echarts') const xhaFlag = ref(false) const lsqFlag = ref(false) + const lsList = ref([]) + const xhaList = ref([]) + // eslint-disable-next-line no-undef + const mapTestNum1 = mapTestNum + if (mapTestNum1) { + lsList.value = mapTestNum1.lsNum + xhaList.value = mapTestNum1.xhaNum + } + console.log('===============>', mapTestNum1) const areaMenuList = ref([ // 全市概况 // { diff --git a/front/src/views/newHome/components/CapabilityConvergence.vue b/front/src/views/newHome/components/CapabilityConvergence.vue index 1b5ecd85..ff34baec 100644 --- a/front/src/views/newHome/components/CapabilityConvergence.vue +++ b/front/src/views/newHome/components/CapabilityConvergence.vue @@ -104,7 +104,7 @@ const whoShow1 = ref(whoShow) const getAppResources = (type, obj) => { paramsGetResources.type = type - if (type === '数据资源') { + if (type === '数据资源' && !whoShow1.value.itShowBaoTou) { getDataResource({ serviceName: paramsGetResources.name, //资源名称 orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', //排序字段 @@ -138,7 +138,7 @@ }) } else { pageWithAttrs(paramsGetResources).then((res) => { - console.log('知识库查询列表============>', res.data.data.records) + // console.log('知识库查询列表============>', res.data.data.records) obj.value = res.data.data.records }) } From 4815a3fe3d7151fc644c31a8f45a37652e0d4702 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 23 Jun 2022 18:19:29 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/public/index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/back/public/index.html b/back/public/index.html index b48dcb0f..3fa6707f 100644 --- a/back/public/index.html +++ b/back/public/index.html @@ -1,8 +1,8 @@ @@ -27,9 +27,9 @@ 'isTab': true, // 是否通过tab展示内容? 'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配) }; - // window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/#/vueTemplateDemo'; + window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/#/vueTemplateDemo'; // window.SITE_CONFIG['frontUrl'] = 'http://124.222.94.39:9796/#/vueTemplateDemo'; - window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo'; + // window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo'; // window.SITE_CONFIG['frontUrl'] = 'http://10.134.135.9:9797/#/vueTemplateDemo'; window.SITE_CONFIG['menuList'] = []; // 左侧菜单列表(后台返回,未做处理) window.SITE_CONFIG['permissions'] = []; // 页面按钮操作权限(后台返回,未做处理) @@ -42,7 +42,8 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>