From d5fff4b1f80a996063339164cb222c2c41f5295b Mon Sep 17 00:00:00 2001 From: jiangrui <403209447@qq.com> Date: Wed, 28 Jul 2021 12:36:40 +0800 Subject: [PATCH] meta.roles --- src/api/convenience.js | 13 ++ src/api/residentInformation.js | 13 ++ src/api/statisticalData.js | 13 ++ src/components/RegionSelect/index.vue | 6 +- src/layout/components/Navbar.vue | 141 +++++++++++++---- src/layout/components/Sidebar/Item.vue | 3 + .../Sidebar/img/icon_twonRanking.png | Bin 0 -> 2465 bytes src/router/index.js | 26 ++- src/utils/request.js | 2 +- .../dashboard/admin/components/PanelGroup.vue | 148 +++++++++++++++++- src/views/login/index.vue | 30 +++- src/views/residentInformation/list.vue | 13 ++ src/views/townRanking/index.vue | 57 +++++++ 13 files changed, 418 insertions(+), 47 deletions(-) create mode 100644 src/layout/components/Sidebar/img/icon_twonRanking.png create mode 100644 src/views/townRanking/index.vue diff --git a/src/api/convenience.js b/src/api/convenience.js index a7b92e1..c87eb97 100644 --- a/src/api/convenience.js +++ b/src/api/convenience.js @@ -100,4 +100,17 @@ export function listForData(data) { method: 'post', data }) +} + +/** + * LeaderTv + * @param {*} data + * @returns + */ +export function leaderTVData(data) { + return request({ + url: '/api/convenience/v2/services/app/statisticalData/leaderForTV', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/api/residentInformation.js b/src/api/residentInformation.js index f9309bb..efc8bb5 100644 --- a/src/api/residentInformation.js +++ b/src/api/residentInformation.js @@ -63,3 +63,16 @@ export function deleteResident(id) { params: id }); } + +/** + * 居民信息删除 + * @param {*} id + * @returns + */ +export function passwordUpdate(data) { + return request({ + url: "/api/convenience/residentInformation/passwordUpdate", + method: "post", + data + }); +} diff --git a/src/api/statisticalData.js b/src/api/statisticalData.js index 14e5cad..cbcdc42 100644 --- a/src/api/statisticalData.js +++ b/src/api/statisticalData.js @@ -12,3 +12,16 @@ export function statisticalData(data) { data }) } + +/** + * 乡镇统计 + * @param {*} data + * @returns + */ +export function townRanking(data) { + return request({ + url: '/api/convenience/v2/services/app/statisticalData/townRanking', + method: 'get', + data + }) +} \ No newline at end of file diff --git a/src/components/RegionSelect/index.vue b/src/components/RegionSelect/index.vue index e4cbea1..5ffeaf3 100644 --- a/src/components/RegionSelect/index.vue +++ b/src/components/RegionSelect/index.vue @@ -24,11 +24,11 @@ export default { created() { this.getList(); this.regionNames = this._regionNames; - console.log(233); - console.log(this.regionNames); + // console.log(233); + // console.log(this.regionNames); }, mounted(){ - console.log(244); + // console.log(244); }, methods: { getList() { diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 07d4d11..fb248af 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -19,48 +19,80 @@ --> - - {{ name }} - 退出登录 + + + - + + + + + + + + + + + + + 取 消 + 确 定 + +