diff --git a/src/api/base.ts b/src/api/base.ts index 721c655..51b5667 100644 --- a/src/api/base.ts +++ b/src/api/base.ts @@ -70,4 +70,53 @@ export function domicileDetail(params) { url: `/admin/people/domicileDetail/${params.domicileId}`, method: "GET", }); -} \ No newline at end of file +} +/** +*户籍管理-户籍人员列表 +*/ +export function domicilePeoplePageList(params) { + return request({ + url: `/admin/people/domicilePeoplePageList`, + method: "GET", + params:params, + }); +} +/** +*人员类型 +*/ +export function crTypeList(params) { + return request({ + url: `/admin/people/crTypeList`, + method: "GET", + }); +} +/** +*根据人员类型进行分页查询 +*/ +export function peoplePage(params) { + return request({ + url: `/admin/people/peoplePage`, + method: "GET", + params:params, + }); +} +/** +*人员新增或修改 +*/ +export function peopleAdd(params) { + return request({ + url: `/admin/people/peopleAdd`, + method: "POST", + data:params, + }); +} +/** +*查看人员详情 +*/ +export function peopleDetail(params) { + return request({ + url: `/admin/people/peopleDetail/${params.peopleId}`, + method: "GET", + }); +} + diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index 5dd09dc..89e6c34 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -381,3 +381,11 @@ } } } + +//列表中文本显示颜色 +.table_ormal { + color: rgb(63 221 5); +} +.table_cancel { + color: red; +} diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8904ea9..f6e69b3 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -5,104 +5,95 @@ // 全局变量 :root { - // 头部宽度(默认自适应宽度,可固定宽度,固定宽度后为居中显示) - --g-header-width: 100%; - // 头部高度 - --g-header-height: 70px; - // 侧边栏宽度 - --g-main-sidebar-width: 70px; - --g-sub-sidebar-width: 220px; - // 侧边栏Logo高度 - --g-sidebar-logo-height: 50px; - // 顶栏高度 - --g-topbar-height: 50px; - --topHeight: 60px; - --breadCurmbHeight: 40px; - --main-theme-color: #383f65; + // 头部宽度(默认自适应宽度,可固定宽度,固定宽度后为居中显示) + --g-header-width: 100%; + // 头部高度 + --g-header-height: 70px; + // 侧边栏宽度 + --g-main-sidebar-width: 70px; + --g-sub-sidebar-width: 220px; + // 侧边栏Logo高度 + --g-sidebar-logo-height: 50px; + // 顶栏高度 + --g-topbar-height: 50px; + --topHeight: 60px; + --breadCurmbHeight: 40px; + --main-theme-color: #383f65; + --color-primary: #5473e8; + --bread-curmb-last: #065638; - --color-primary: #5473e8; - --bread-curmb-last: #065638; + // color + --blue: #1d86fb; + --white: #fff; + --activeBlue: #7bb6fa; + --fontColor: --color-primary; + --green: #f4a914; + --deepGreen: #fb4e33; - // color - --blue: #1d86fb; - --white: #fff; - --activeBlue: #7bb6fa; - --fontColor: --color-primary; - --green: #f4a914; - --deepGreen: #fb4e33; + // sidebar + --menuText: rgb(255 255 255 / 70%); + --menuHover: rgb(1 137 113 / 100%); + --menuActiveText: rgb(255 255 255 / 100%); + --sideBarWidth: 252px; + --menuActiveBg: rgb(69 86 154); + --menuActivePoint: rgb(255 255 255 / 100%); - // sidebar - --menuText: rgba(255, 255, 255, 0.7); - --menuHover: rgba(1, 137, 113, 1); - --menuActiveText: rgba(255, 255, 255, 1); - --sideBarWidth: 252px; - --menuActiveBg: rgb(69, 86, 154); - --menuActivePoint: rgba(255, 255, 255, 1); + // fontSize + --fontSize10: 10px; + --fontSize11: 11px; + --fontSize12: 12px; + --fontSize13: 13px; + --fontSize14: 14px; + --fontSize16: 16px; + --fontSize18: 18px; + --fontSize20: 20px; + --fontSize34: 34px; - // fontSize - --fontSize10: 10px; - --fontSize11: 11px; - --fontSize12: 12px; - --fontSize13: 13px; - --fontSize14: 14px; - --fontSize16: 16px; - --fontSize18: 18px; - --fontSize20: 20px; - --fontSize34: 34px; - - // paddingSit - --paddingSit: 16px; + // paddingSit + --paddingSit: 16px; } // 全局样式 ::-webkit-scrollbar { - width: 12px; - height: 12px; - + width: 12px; + height: 12px; } - ::-webkit-scrollbar-thumb { - background-color: rgb(0 0 0 / 40%); - background-clip: padding-box; - border: 3px solid transparent; - border-radius: 6px; + background-color: rgb(0 0 0 / 40%); + background-clip: padding-box; + border: 3px solid transparent; + border-radius: 6px; } - ::-webkit-scrollbar-thumb:hover { - background-color: rgb(0 0 0 / 50%); + background-color: rgb(0 0 0 / 50%); } - ::-webkit-scrollbar-track { - background-color: transparent; + background-color: transparent; } ::-webkit-scrollbar { - width: 8px; - height: 8px; - /**/ -} + width: 8px; + height: 8px; + /* */ +} ::-webkit-scrollbar-track { - background: #fff; - border-radius: 2px; + background: #fff; + border-radius: 2px; } - ::-webkit-scrollbar-thumb { - background: rgba($color: #4f88fd, $alpha: 0.5); - border-radius: 10px; + background: rgba($color: #4f88fd, $alpha: 50%); + border-radius: 10px; } - ::-webkit-scrollbar-thumb:hover { - background: rgba($color: #4f88fd, $alpha: 1); + background: rgba($color: #4f88fd, $alpha: 100%); } - ::-webkit-scrollbar-corner { - background: #179a16; + background: #179a16; } html, body { - height: 100%; + height: 100%; } - html, body, div, @@ -113,280 +104,256 @@ span, table, th, td { - font-family: "PingFangSC", "PingFangSC-Regular"; + font-family: PingFangSC, PingFangSC-Regular; } - body { - margin: 0; - box-sizing: border-box; - font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; - -webkit-tap-highlight-color: transparent; - - &.hidden { - overflow: hidden; - } + margin: 0; + box-sizing: border-box; + font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif; + -webkit-tap-highlight-color: transparent; + &.hidden { + overflow: hidden; + } } - * { - box-sizing: inherit; + box-sizing: inherit; } // 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width] [data-fixed-calc-width] { - position: fixed; - left: 50%; - right: 0; - width: calc( - 100% - var(--g-main-sidebar-actual-width) - - var(--g-sub-sidebar-actual-width) - ); - transform: translateX(-50%) - translateX(calc(var(--g-main-sidebar-actual-width) / 2)) - translateX(calc(var(--g-sub-sidebar-actual-width) / 2)); + position: fixed; + left: 50%; + right: 0; + width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width)); + transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2)); } - [data-mode="mobile"] { - [data-fixed-calc-width] { - width: 100% !important; - transform: translateX(-50%) !important; - } + [data-fixed-calc-width] { + width: 100% !important; + transform: translateX(-50%) !important; + } } // textarea 字体跟随系统 textarea { - font-family: inherit; + font-family: inherit; } // 列表页全局样式 .el-table.list-table { - margin: 20px 0; - - .el-button + .el-dropdown { - margin-left: 10px; - } + margin: 20px 0; + .el-button + .el-dropdown { + margin-left: 10px; + } } - .v-layout { - display: -webkit-box; - /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */ - display: -moz-box; - /* Firefox 17- */ - display: -webkit-flex; - /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */ - display: -moz-flex; - /* Firefox 18+ */ - display: -ms-flexbox; - /* IE 10 */ - display: flex; - /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */ - flex-direction: column; -} + /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */ + display: box; + + /* Firefox 17- */ + display: flex; + + /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */ + display: -moz-flex; + + /* Firefox 18+ */ + display: flexbox; + + /* IE 10 */ + display: flex; + + /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */ + flex-direction: column; +} .h-layout { - display: -webkit-box; - /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */ - display: -moz-box; - /* Firefox 17- */ - display: -webkit-flex; - /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */ - display: -moz-flex; - /* Firefox 18+ */ - display: -ms-flexbox; - /* IE 10 */ - display: flex; - /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */ - flex-direction: row; -} + /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */ + display: box; + + /* Firefox 17- */ + display: flex; + + /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */ + display: -moz-flex; + + /* Firefox 18+ */ + display: flexbox; + + /* IE 10 */ + display: flex; + + /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */ + flex-direction: row; +} .flex-1 { - flex: 1; + flex: 1; } - .h-center { - align-items: center; + align-items: center; } - .h-titlec { - align-items: center; - - .span { - width: 100%; - } - - .icon { - width: 2em; - height: 2em; - } + align-items: center; + .span { + width: 100%; + } + .icon { + width: 2em; + height: 2em; + } } - .v-center { - justify-content: center; + justify-content: center; } - .space-between { - justify-content: space-between; + justify-content: space-between; } - .contenner-main { - margin: 16px; - padding: 16px; - background: #ffffff; - box-shadow: 0px 0px 6px rgba(0, 120, 255, 0.1); - border-radius: 6px; + margin: 16px; + padding: 16px; + background: #fff; + box-shadow: 0 0 6px rgb(0 120 255 / 10%); + border-radius: 6px; } - .see-detail { - color: #1d86fb; - font-size: --fontSize13; - cursor: pointer; + color: #1d86fb; + font-size: --fontsize13; + cursor: pointer; } - .tablenull :empty::before { - // content: '--'; - // color: gray; + // content: '--'; + // color: gray; } - .to-detail { - cursor: pointer; - background: #5473e8; - border-radius: 13px; - color: #fff; - padding: 1px 25px; + cursor: pointer; + background: #5473e8; + border-radius: 13px; + color: #fff; + padding: 1px 25px; } - .icon_class { - width: 1em; - height: 1em; - vertical-align: middle; - fill: currentColor; - overflow: hidden; - // margin-left: 10px; - margin-right: 5px; + width: 1em; + height: 1em; + vertical-align: middle; + fill: currentcolor; + overflow: hidden; + // margin-left: 10px; + margin-right: 5px; } - .pagination { - margin-top: 20px; - margin-bottom: 20px; + margin-top: 20px; + margin-bottom: 20px; } //百分比样式 .percentage-content { - width: 100%; - height: 87vh; - display: flex; - padding: 16px; + width: 100%; + height: 87vh; + display: flex; + padding: 16px; } - .content-text { - font-size: 18px; - color: #333; - font-weight: 700; - margin-bottom: 10px; + font-size: 18px; + color: #333; + font-weight: 700; + margin-bottom: 10px; } - .option { - font-size: 15px; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - - svg { - width: 1em; - height: 1em; - vertical-align: middle; - fill: currentColor; - overflow: hidden; - } - - .icon { - margin-left: 10px; - margin-right: 5px; - } + font-size: 15px; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + svg { + width: 1em; + height: 1em; + vertical-align: middle; + fill: currentcolor; + overflow: hidden; + } + .icon { + margin-left: 10px; + margin-right: 5px; + } } - .tool-item { - margin-right: 1.04167vw; - cursor: pointer; - color: #5473e8; - font-size: 15px; - vertical-align: 0.1em; - - .icon { - margin-right: 3px; - vertical-align: -0.12em; - width: 1em; - height: 1em; - } + margin-right: 1.04167vw; + cursor: pointer; + color: #5473e8; + font-size: 15px; + vertical-align: 0.1em; + .icon { + margin-right: 3px; + vertical-align: -0.12em; + width: 1em; + height: 1em; + } } - .filter-tab { - font-size: --fontSize10; - color: #333333; - margin-right: 20px; - - label { - width: fit-content; - } - - .el-date-editor.el-input, - .el-date-editor.el-input__inner { - width: 160px; - } + font-size: --fontsize10; + color: #333; + margin-right: 20px; + label { + width: fit-content; + } + .el-date-editor.el-input, + .el-date-editor.el-input__inner { + width: 160px; + } } + /** 解决box-sizing */ @mixin boxSizing() { - -moz-box-sizing: border-box; - /*Firefox3.5+*/ - -webkit-box-sizing: border-box; - /*Safari3.2+*/ - -o-box-sizing: border-box; - /*Opera9.6*/ - -ms-box-sizing: border-box; - /*IE8*/ - box-sizing: border-box; + + /* Firefox3.5+ */ + box-sizing: border-box; + + /* Safari3.2+ */ + box-sizing: border-box; + + /* Opera9.6 */ + box-sizing: border-box; + + /* IE8 */ + box-sizing: border-box; } /** 隐藏滚动条 */ @mixin scrollBar() { - /** Chrome/QQ浏览器 */ - &::-webkit-scrollbar { - display: none; - } + /** Chrome/QQ浏览器 */ + &::-webkit-scrollbar { + display: none; + } - /** IE浏览器 */ - & { - -ms-overflow-style: none; - } + /** IE浏览器 */ + & { + -ms-overflow-style: none; + } - /** Firefox浏览器 */ - & { - scrollbar-width: none; - } + /** Firefox浏览器 */ + & { + scrollbar-width: none; + } } - @mixin scrollbarStyle() { - &::-webkit-scrollbar { - width: 8px; - height: 8px; - /**/ - } + &::-webkit-scrollbar { + width: 8px; + height: 8px; - &::-webkit-scrollbar-track { - background: #fff; - border-radius: 2px; - } - - &::-webkit-scrollbar-thumb { - background: rgba($color: #4f88fd, $alpha: 0.5); - border-radius: 10px; - } - - &::-webkit-scrollbar-thumb:hover { - background: rgba($color: #4f88fd, $alpha: 1); - } - - &::-webkit-scrollbar-corner { - background: #179a16; - } + /* */ + } + &::-webkit-scrollbar-track { + background: #fff; + border-radius: 2px; + } + &::-webkit-scrollbar-thumb { + background: rgba($color: #4f88fd, $alpha: 50%); + border-radius: 10px; + } + &::-webkit-scrollbar-thumb:hover { + background: rgba($color: #4f88fd, $alpha: 100%); + } + &::-webkit-scrollbar-corner { + background: #179a16; + } } diff --git a/src/components/Map/index.vue b/src/components/Map/index.vue index 6df25fd..d4c18b1 100644 --- a/src/components/Map/index.vue +++ b/src/components/Map/index.vue @@ -38,8 +38,8 @@ onMounted(() => { zoom: 12, // 初始化地图级别 center: props.longlat?props.longlat:[101.13, 30.98], // 初始化地图中心点位置 }); - console.log(11); - console.log(cont.value.offsetWidth,cont.value.offsetHeight,'this.$refs.cont===>'); + // console.log(11); + // console.log(cont.value.offsetWidth,cont.value.offsetHeight,'this.$refs.cont===>'); var marker = new AMap.Marker({ // position: [101.13, 30.98], imageSize: new AMap.Size(10, 10), @@ -69,8 +69,6 @@ onUnmounted(() => { watch( () => props.longlat, (val) => { - console.log(val,'val==>'); - console.log(map,'map==>'); map.setCenter(val) } ); diff --git a/src/router/modules/basemanage.ts b/src/router/modules/basemanage.ts index 0fe625f..f399a98 100644 --- a/src/router/modules/basemanage.ts +++ b/src/router/modules/basemanage.ts @@ -30,7 +30,21 @@ export default { auth: "emer.resourse", title: '户籍管理', breadcrumb: true, //是否显示面包屑 - } + }, + children: [ + { + path: 'resident-detail', + name: 'resident-detail', + component: () => import('@/views/base-manage/residence/detail.vue'), + meta: { + auth: "emer.resident.detail", + title: '户籍详情', + sidebar: false, //是否在菜单栏显示 + breadcrumb: true, //是否显示面包屑 + activeMenu: '/base-manage/resident' + } + } + ] }, // { // path: 'residence', diff --git a/src/views/base-manage/flow/index.vue b/src/views/base-manage/flow/index.vue index 17f839c..af0dd7f 100644 --- a/src/views/base-manage/flow/index.vue +++ b/src/views/base-manage/flow/index.vue @@ -2,7 +2,7 @@