From f419218bcabb356799397e6a9bd925be89d21433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Fri, 6 Aug 2021 17:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BF=E7=AD=96=E5=BA=93=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/policy/library.js | 7 ++ src/layout/components/Navbar.vue | 23 +++--- src/views/policy/library/add.vue | 84 ++++++++++++-------- src/views/policy/library/index.vue | 120 +++++++++++++++++++++-------- 4 files changed, 159 insertions(+), 75 deletions(-) diff --git a/src/api/policy/library.js b/src/api/policy/library.js index 7fd3495..5eca25c 100644 --- a/src/api/policy/library.js +++ b/src/api/policy/library.js @@ -76,3 +76,10 @@ export function getPolicyInfo(params) { params }); } +// 根据level查询城市 1->省 2->市 3->合肥 +export function getCityByLevel(params) { + return request({ + url: '/dict/getCityByLevel', + params + }); +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d53fe9c..b6d883c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -9,25 +9,25 @@ - +
+ + -
@@ -35,18 +35,21 @@
- + + + 首页 + 退出登录
-
--> + diff --git a/src/views/policy/library/add.vue b/src/views/policy/library/add.vue index 31f90a6..30df228 100644 --- a/src/views/policy/library/add.vue +++ b/src/views/policy/library/add.vue @@ -2,7 +2,7 @@
{{ editPage ? '修改' : '添加' }}政策
- - + + + @@ -80,77 +88,81 @@