diff --git a/package.json b/package.json index 03f705960..9ecdd713d 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "proj4": "^2.8.0", "qs": "^6.7.0", "quill": "^1.3.6", + "relation-graph": "^2.1.31", "screenfull": "^4.2.1", "sortablejs": "^1.12.0", "svg-sprite-loader": "^4.1.6", diff --git a/src/assets/scss/pages/resiInfo.scss b/src/assets/scss/pages/resiInfo.scss new file mode 100644 index 000000000..d6352378c --- /dev/null +++ b/src/assets/scss/pages/resiInfo.scss @@ -0,0 +1,106 @@ +.g-main{ + display: flex; + box-sizing: border-box; + height:auto; + padding: 24px 16px 0; + .left{ + min-width: 184px; + margin-right: 16px; + background: #ffffff; + .user{ + display: flex; + flex-direction: column; + height: 120px; + justify-content: center; + align-items: center; + position: relative; + font-weight: bold; + color: #000000; + &::after{ + content: ''; + position: absolute; + bottom: 0; + left: 16px; + width: 152px; + height: 1px; + background: #EBEDF0; + } + img{ + width: 50px; + height: 56px; + margin-bottom: 10px; + } + + } + .menu{ + .progress{ + padding: 0 16px; + box-sizing: border-box; + .text{ + display: flex; + justify-content: space-between; + align-items: center; + margin:9px 0px 11px 0px; + font-size: 12px; + >:nth-child(2){ + color: #0056D6; + font-size: 14px; + font-weight: bold; + } + } + } + .list{ + margin-top:14px ; + .item{ + margin-bottom: 8px; + height: 38px; + color: #333333; + padding-left: 16px; + cursor: pointer; + line-height: 38px; + } + .active{ + background: #F7FAFF; + color: #0056D6; + } + } + } + } + .right{ + flex: 1; + height: 100%; + background: #ffffff; + position: relative; + .editBtn{ + position: absolute; + right: 16px; + top: 16px; + } + .title-small{ + font-size: 16px; + font-family: PingFang SC; + font-weight: bold; + color: #333333; + position: relative; + padding-left: 11px; + margin-left: 0px; + margin-top: 22px; + } + .f-label { + width: 100px; + text-align: right; + } + .f-flex{ + align-items: center; + } + .f-m-top23{ + margin-top: 23px; + } + } +} +::v-deep .el-button--text{ + padding: 0; +} +::v-deep .el-row{ + padding-left: 37px; +} \ No newline at end of file diff --git a/src/main.js b/src/main.js index 06a255397..7a6b88143 100644 --- a/src/main.js +++ b/src/main.js @@ -44,6 +44,8 @@ import NodeWrapGrid from "@/components/GridTree/nodeWrap.vue"; import PopTips from "@/components/PopTips/index.vue"; import PopHomeTip from "@/components/PopHomeTip/index.vue"; import NameSplit from "@/components/NameSplit/index.vue"; +import RelationGraph from "relation-graph"; + // import AddNodeJw from "@/components/JwTree/addNode.vue"; //按钮 Vue.component("nodeWrap", NodeWrap); @@ -76,6 +78,7 @@ Vue.use(Element, { size: "default", i18n: (key, value) => i18n.t(key, value), }); +Vue.use(RelationGraph); Vue.prototype.$message = message; Vue.prototype.$moment = Moment; diff --git a/src/router/index.js b/src/router/index.js index 96f637e42..b25af7dd2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -137,7 +137,17 @@ export const moduleRoutes = { isTab: true, title: "", }, - } + }, + { + path: "add-resi", + props: true, + name: "add-resi", + component: () => import("@/views/components/addResi"), + meta: { + isTab: true, + title: "新增居民", + }, + } ], }; // pc端菜单的 如果没有配置 默认的 或者配置了默认的 但没有权限 默认选中第一 diff --git a/src/views/components/addResi.vue b/src/views/components/addResi.vue new file mode 100644 index 000000000..4b71c2197 --- /dev/null +++ b/src/views/components/addResi.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue index 307e7bbcf..6ccdc07e5 100644 --- a/src/views/components/resiForm.vue +++ b/src/views/components/resiForm.vue @@ -177,7 +177,7 @@ - + +
保障房
+ + + + + diff --git a/src/views/components/resiInfo/oldPeopleDto/index.vue b/src/views/components/resiInfo/oldPeopleDto/index.vue new file mode 100644 index 000000000..0bbaac646 --- /dev/null +++ b/src/views/components/resiInfo/oldPeopleDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/components/resiInfo/parymemberInfoDto/index.vue b/src/views/components/resiInfo/parymemberInfoDto/index.vue new file mode 100644 index 000000000..dc161139a --- /dev/null +++ b/src/views/components/resiInfo/parymemberInfoDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/components/resiInfo/postDto/index.vue b/src/views/components/resiInfo/postDto/index.vue new file mode 100644 index 000000000..e4e102da2 --- /dev/null +++ b/src/views/components/resiInfo/postDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/components/resiInfo/specialSupportDto/index.vue b/src/views/components/resiInfo/specialSupportDto/index.vue new file mode 100644 index 000000000..c0a1c1b95 --- /dev/null +++ b/src/views/components/resiInfo/specialSupportDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/components/resiInfo/unitedFrontDto/index.vue b/src/views/components/resiInfo/unitedFrontDto/index.vue new file mode 100644 index 000000000..2e6074e40 --- /dev/null +++ b/src/views/components/resiInfo/unitedFrontDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/components/resiInfo/veteranDto/index.vue b/src/views/components/resiInfo/veteranDto/index.vue new file mode 100644 index 000000000..ecd2498d5 --- /dev/null +++ b/src/views/components/resiInfo/veteranDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/components/resiInfo/volunteerDto/index.vue b/src/views/components/resiInfo/volunteerDto/index.vue new file mode 100644 index 000000000..2fa007f94 --- /dev/null +++ b/src/views/components/resiInfo/volunteerDto/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index c2376beaf..4b10bf207 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -70,7 +70,7 @@ {{ handleFilterSpan(scope.row, item) }}
- {{ scope.row.gender == null ? '--':scope.row.gender == 1?'男':scope.row.gender ==2?'女':'--' }} + {{ scope.row.gender == null ? '--' : scope.row.gender == 1 ? '男' : scope.row.gender == 2 ? '女' : '--' }}
{{ @@ -860,9 +860,6 @@ export default { this.importBtnTitle = "导入"; this.$refs.upload.clearFiles(); }, - handleClick(tab, event) { - console.log(tab, event); - }, // 查看 async handleLook(row) { @@ -873,7 +870,7 @@ export default { this.$router.push({ name: 'jumin-huaxiang' }); this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => { if (item.name === "jumin-huaxiang") { - return {...item, title: name }; + return { ...item, title: name }; } return item; }); @@ -907,10 +904,18 @@ export default { }, async handleAdd() { - this.formType = 'add' - this.formName = "新增居民"; - this.editUserId = ""; - this.dialogVisible = true; + // 实现跳转新增后删除 + // this.formType = 'add' + // this.formName = "新增居民"; + // this.editUserId = ""; + // this.dialogVisible = true; + this.$router.push({ name: 'add-resi' }); + // this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => { + // if (item.name === "add-resi") { + // return {...item, title: '新增居民' }; + // } + // return item; + // }); }, async handleChangeGroup(val) { diff --git a/src/views/modules/portrayal/fangwu/index.vue b/src/views/modules/portrayal/fangwu/index.vue index 917df3664..3274a35fd 100644 --- a/src/views/modules/portrayal/fangwu/index.vue +++ b/src/views/modules/portrayal/fangwu/index.vue @@ -19,8 +19,8 @@
各项业务记录
- +
@@ -52,7 +52,7 @@ import { requestPost, requestGet } from '@/js/dai/request' import leftTop from "./cpts/leftTop"; import leftBto from "../jumin/cpts/leftBto"; -import rightTop from "../jumin/cpts/rightTop"; +import businessRecord from "../jumin/cpts/businessRecord"; import rightBto from "./cpts/rightBto"; import nextTick from "dai-js/tools/nextTick"; @@ -104,8 +104,8 @@ export default { }, }, //子组件注册 - // leftTop, leftBto, resiInfo, rightTop, pointsRecord, rightBto, xiangshoufuwu - components: { leftTop, leftBto, rightTop, rightBto }, + // leftTop, leftBto, resiInfo, businessRecord, pointsRecord, rightBto, xiangshoufuwu + components: { leftTop, leftBto, businessRecord, rightBto }, //计算 computed: {}, //监听 diff --git a/src/views/modules/portrayal/jumin/cpts/rightTop.vue b/src/views/modules/portrayal/jumin/cpts/businessRecord.vue similarity index 68% rename from src/views/modules/portrayal/jumin/cpts/rightTop.vue rename to src/views/modules/portrayal/jumin/cpts/businessRecord.vue index e068ac986..cad68def7 100644 --- a/src/views/modules/portrayal/jumin/cpts/rightTop.vue +++ b/src/views/modules/portrayal/jumin/cpts/businessRecord.vue @@ -1,100 +1,20 @@ diff --git a/src/views/modules/portrayal/jumin/cpts/table/fuwu.vue b/src/views/modules/portrayal/jumin/cpts/table/fuwu.vue index f4ee84889..f076a2c91 100644 --- a/src/views/modules/portrayal/jumin/cpts/table/fuwu.vue +++ b/src/views/modules/portrayal/jumin/cpts/table/fuwu.vue @@ -1,6 +1,6 @@ -
- -
暂无数据
-
diff --git a/src/views/modules/portrayal/jumin/cpts/table/sheng.vue b/src/views/modules/portrayal/jumin/cpts/table/sheng.vue index edf0ce747..d4d1013cb 100644 --- a/src/views/modules/portrayal/jumin/cpts/table/sheng.vue +++ b/src/views/modules/portrayal/jumin/cpts/table/sheng.vue @@ -1,6 +1,6 @@ -
- -
暂无数据
-
diff --git a/src/views/modules/portrayal/jumin/cpts/table/shequ.vue b/src/views/modules/portrayal/jumin/cpts/table/shequ.vue index 2d2eba7cb..4aac5e61d 100644 --- a/src/views/modules/portrayal/jumin/cpts/table/shequ.vue +++ b/src/views/modules/portrayal/jumin/cpts/table/shequ.vue @@ -1,6 +1,6 @@ -
- -
暂无数据
-
diff --git a/src/views/modules/portrayal/jumin/cpts/table/shijian.vue b/src/views/modules/portrayal/jumin/cpts/table/shijian.vue index aa2cbc3e3..92294cd37 100644 --- a/src/views/modules/portrayal/jumin/cpts/table/shijian.vue +++ b/src/views/modules/portrayal/jumin/cpts/table/shijian.vue @@ -1,6 +1,6 @@ -
- -
暂无数据
-
diff --git a/src/views/modules/portrayal/jumin/cpts/table/xuqiu.vue b/src/views/modules/portrayal/jumin/cpts/table/xuqiu.vue index 6581851d2..9b524c715 100644 --- a/src/views/modules/portrayal/jumin/cpts/table/xuqiu.vue +++ b/src/views/modules/portrayal/jumin/cpts/table/xuqiu.vue @@ -1,6 +1,6 @@ -
- -
暂无数据
-
diff --git a/src/views/modules/portrayal/jumin/cpts/xiangshoufuwu.vue b/src/views/modules/portrayal/jumin/cpts/xiangshoufuwu.vue deleted file mode 100644 index 2f7329fb6..000000000 --- a/src/views/modules/portrayal/jumin/cpts/xiangshoufuwu.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/portrayal/jumin/index.vue b/src/views/modules/portrayal/jumin/index.vue index a31674cac..f0b8d03a4 100644 --- a/src/views/modules/portrayal/jumin/index.vue +++ b/src/views/modules/portrayal/jumin/index.vue @@ -1,112 +1,611 @@