From 8ee5aaad0708be11c10ce21ccbc1aa19efeb3d25 Mon Sep 17 00:00:00 2001 From: du <1176658673@qq.com> Date: Thu, 6 Jun 2024 17:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 3 +- app.json | 9 +- images/home/icon_w_5.png | Bin 0 -> 1382 bytes images/home/icon_yj_4.png | Bin 0 -> 1895 bytes pages/emergency/s-b/escalation/index.js | 3 +- pages/index/index.js | 7 +- pages/login/index.js | 8 +- pages/statistic/j-b-x-x/detail/index.js | 11 + pages/statistic/j-b-x-x/detail/index.wxml | 129 +++++------ pages/statistic/j-b-x-x/detail/index.wxss | 188 +++++++++------- pages/statistic/j-b-x-x/index/index.js | 225 ++----------------- pages/statistic/j-b-x-x/index/index.wxml | 72 +----- pages/statistic/j-b-x-x/index/index.wxss | 108 ++------- pages/statistic/j-b-x-x/personnel/index.js | 183 +++++++++++++++ pages/statistic/j-b-x-x/personnel/index.json | 6 + pages/statistic/j-b-x-x/personnel/index.wxml | 55 +++++ pages/statistic/j-b-x-x/personnel/index.wxss | 105 +++++++++ pages/work/f-b-g-z/index/index.js | 66 ++++++ pages/work/f-b-g-z/index/index.json | 3 + pages/work/f-b-g-z/index/index.wxml | 2 + pages/work/f-b-g-z/index/index.wxss | 1 + 21 files changed, 674 insertions(+), 510 deletions(-) create mode 100644 images/home/icon_w_5.png create mode 100644 images/home/icon_yj_4.png create mode 100644 pages/statistic/j-b-x-x/personnel/index.js create mode 100644 pages/statistic/j-b-x-x/personnel/index.json create mode 100644 pages/statistic/j-b-x-x/personnel/index.wxml create mode 100644 pages/statistic/j-b-x-x/personnel/index.wxss create mode 100644 pages/work/f-b-g-z/index/index.js create mode 100644 pages/work/f-b-g-z/index/index.json create mode 100644 pages/work/f-b-g-z/index/index.wxml create mode 100644 pages/work/f-b-g-z/index/index.wxss diff --git a/app.js b/app.js index e1e133c..c2bf99b 100644 --- a/app.js +++ b/app.js @@ -52,7 +52,8 @@ App({ userInfo: {}, // headerUrl: "http://42.193.40.239:8017/" //线上 // headerUrl: "http://192.168.110.10:8017/" //线下 - headerUrl: "https://city.sczysoft.com/df/" + headerUrl: "http://192.168.110.186:8017/" + // headerUrl: "https://city.sczysoft.com/df/" }, // https://city.sczysoft.com/df/doc.html //接口 // https://city.sczysoft.com/dffile //查看拼接 diff --git a/app.json b/app.json index 93144d9..5ad17cd 100644 --- a/app.json +++ b/app.json @@ -33,7 +33,9 @@ "pages/emergency/s-b/escalation/index", "pages/agreement/index", "pages/emergency/t-x-l/index/index", - "pages/statistic/j-b-x-x/detail/index" + "pages/statistic/j-b-x-x/personnel/index", + "pages/statistic/j-b-x-x/detail/index", + "pages/work/f-b-g-z/index/index" ], "window": { "backgroundTextStyle": "light", @@ -48,7 +50,10 @@ "title-bar": "/components/title-bar/index", "tree-node": "components/tree-node/index" }, - "requiredPrivateInfos": ["getLocation","chooseLocation"], + "requiredPrivateInfos": [ + "getLocation", + "chooseLocation" + ], "permission": { "scope.userLocation": { "desc": "你的位置信息将用于记录检查佐证" diff --git a/images/home/icon_w_5.png b/images/home/icon_w_5.png new file mode 100644 index 0000000000000000000000000000000000000000..788877fffd3528e9068ca42f98f9d1899fbae342 GIT binary patch literal 1382 zcmV-s1)2JZP)Px)AW1|)R9Hu?SZzq1Wf;Eh$K}_Y)75mWU=5kD!JtNq2BTIjSRbGexLRt?Nh8P~ zMG&La+=m}IC2`iwShm%0%ZN0yA0vYL5!Hy=2-A(W$u_OEjuXqy(&vu%>zwC(&hx%U z;RuJ<_w_zL*L&U9b>H{%5DY(i_Hg>roY_)Nqs4-2ehLLLi15@22J4*}A>s?WT? zY4H;*a6tgn%>)J{Gc{pN#>gsqw;X>IV1?>!YLz@wgi5OGfvoJ6!vkCG1PENXbq3%JNu|UND z9d6}L3HF0AyuFVx{h!Y@UIPe0ovjbk^D#h&Tew0J9}7%{vXIV9kcO-{7?=sx996b$ zq7SIMjx(oo`Mf0DZhU(a-AM$Ukj}ZqkB*JgDtfDRrjms?8uq3tb3S*43EJewqz0f0 z>S*I0N&J*5Sk+y*i-C>z0e37TM{%t9avt{=BEaA|#`UODE)oFJ2|Cm+hb5s{1)=7? zrn(k_MyUOe{96*TgHlnmEj3^~#QVQ>0U1gNh$gA6 zLvmp86F|+@6a)I+4@frvz4^A}FhSRpB?mO|k0mTZUUu@#9XQRQEr(h=C5Khu9Z!Y> z8k=Bzb_O5;JieB&d~rCa13xCFEY=eRKrLMgAVagPE>+y+xyrqc-C%q@0u&WGHUHe7 zzyn1tD2Fu1mCCjLCk>Fdrt3I5_^zfQt$tLOm>G)B00TcWwyY(L{^g`$MLuC*m{Gc# zkg>qbRQ*{eHmE03^AXAVNTE8e`ibNk8v5N?WKBWx*oI#mhJ3nJ08&$TxQ4brW<{%Q zSV@CR!q6X1wOs813W;wRN=%swkQ(22QWn(3tG19y3O;H4dX4S-HA_jCOu~J`h(Bfe zkVg&20yN~(SoKKqG)&u*43HI|8&yq>=lzvh9oj5XsQyDmLk6)`JrwM+q|_N)*7TdJ zA#v__81!%|yNT7W^E+DNQcuuRl->;#wrk0^Mu4ui?218(BJtt6IuR%i! zTa_D93#fTq(~zcHdi~>g$`T5e04nZHF(9i%#6S?39A>0@rPn^uG^DA&e7&ZjYmCt; zcf)95HEGFxwlWJ?x5)qf=IaIxxq`ORM!P?iH<*yC*8}e@%Gafqp@R{J5uF(e3g8sHvQhJ3xzZZ0AeE}T!L3633|0X~{` z8FF2vG6g{==#|fT8;Fkwb>OUYV8e1kK{k-4^x1%M$Jone0bHF02BVBAt2f)dGcj!v zc$%ud;>?054@rSLgSJ9?I!$g&IGFI6gCNa}#N5RK7cVbCu`Q67PjMN8PpU^MLG#Ld zcBST7J#KL?UG};_S^urn8&m8{UvfJOt_@vq-aFNJT1>7|Ds)?aKE3EW{dn#)-;zCr zE-AQ5PhC(+2%9t$)9j|rYZH#Etk2PmJnZNtvZNM2j`6%v`wdrf8ul@<`S4**=RgK# zEDb3=iwRdDu)8mxx>a8qi%jhxXUHXZW>%nt1=cfhJ_}^3+ZA88515f14LNlNME^>G o2n&1%pf4Ih&ljsGsuzj>0gn+&7BKaD`~Uy|07*qoM6N<$f|@OTjsO4v literal 0 HcmV?d00001 diff --git a/images/home/icon_yj_4.png b/images/home/icon_yj_4.png new file mode 100644 index 0000000000000000000000000000000000000000..1b01fb34e54c64818014e88f63f810a5248c6499 GIT binary patch literal 1895 zcmV-t2blPYP)Px+AxT6*R9Hu?SZi=q)fN8M-ZvqV03i&Jn!y+v15F{O2@aMF7O}0>c3SyS$3ArW zm}#do@6S`c3#SR@%{d{7Oeh@b*Bp+W*e5C{a3M*%vM7a#FoWTY8UYiDeL`!ok-KTQZP^-PzAH6VFQW;XQV&%< z0~j~SQ{(A=@S!fq!LGm_;+dGLBaaLcSxeT7OS{3SE1WH{(CH%RS+|2GUz=uQkmHA7 z-rNWb4~KxIYbVMWddS+a^a5B$7m9Br^F*K;=0jC~J{3&%Bp>JmZ+|6ZqJHQTj0L_$ zf&sE#__IX76w-v_8)GLz&;51)Mi{)S0|J3=oCoMk?wWb|8OX;c0@p48Ci~E2t^1P) zDDK921gh%iK-J9jEleQ&M_{(LyZ5Uv-VRmuS?7`6>%4Cl_`NN8){Z;6uOsXEKZY1e z+CG(6Le(|_SCv6N+6z_t1wiQ>3o<+e)3L$bRL@%gDj6NHXAHRO9Z+2ZaQ+;4_gj#@ zBR*qs^YwH}*4l?9pF7ipD(LIy14Q5xz2MF_K$SHvLo}wmpoV1VBKZ9ski$LDH{Jre zrq&g>d94j{v^PcU9ze35d&miY^bh{AZgHNt)ZLhm_JF&#K}~G{hAu!Z4#q+eW|x7Y z5}2bwe) zdhR?QxVYLe|Jn>W*&i5Wt}}H2J^s6BEpxzSMnN~<1j>Z!QrCNs{ywOw)1ju;jY!n| z!5;8`_JFFUK+kCjx%)7g!))sS6&FL#zR4{k zSM*_qdF54LXbAcnUk8ecymc>r3jXIth_4-&A*V^R{@xm`Wlq(e)&MFk^KLwT4BY!6 z)btrpl~<=pCN81GF(2%8*--V4jZ}Ns! zF9BLzcJr9N{XU&xzqkpoZLfejITU6l3kFVu_UNK+h}7ksQk@0L#zHqW|8HRY-x^`uRj{Yl8R*7FP^nk>uk<5l2f$ml0hcTs@0+oaIu zvH8x`OoSO9L{>Xqm(i'); // if (resdata.code == 1) { console.log(resdata,'res==>'); - wx.hideLoading(); + this.getFiles(); + wx.hideLoading(); // } }) }, diff --git a/pages/index/index.js b/pages/index/index.js index 51c3f3a..298492b 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -104,6 +104,11 @@ Page({ name: "有事找党员", href: "/pages/party-member/index/index" }, + { + icon: "icon_w_5", + name: "发布工作", + href: "/pages/work/f-b-g-z/index/index" + }, ], // 应急指挥 tab3: [{ @@ -117,7 +122,7 @@ Page({ href: "/pages/emergency/s-b/index/index" }, { - icon: "icon_yj_3", + icon: "icon_yj_4", name: "应急通讯录", href: "/pages/emergency/t-x/index/index" }, diff --git a/pages/login/index.js b/pages/login/index.js index 9d02d15..b9aec9c 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -8,10 +8,10 @@ Page({ * 页面的初始数据 */ data: { - // username: 'admin', - // password: 'Daofu123456', - username: '', - password: '', + username: 'admin', + password: 'Daofu202406', + // username: '', + // password: '', showLogin: true, newname:'', newphone:'', diff --git a/pages/statistic/j-b-x-x/detail/index.js b/pages/statistic/j-b-x-x/detail/index.js index 8af9d76..5dd27fd 100644 --- a/pages/statistic/j-b-x-x/detail/index.js +++ b/pages/statistic/j-b-x-x/detail/index.js @@ -23,11 +23,14 @@ Page({ * 查看人员详情 */ getEmerEventDetail: function (id) { + app.axios("GET", "app", `/people/peopleDetail/${id}`).then(res => { if (res.code == 1) { console.log(res.data,'data===>'); this.data.userInfo = res.data; + this.data.freshIng = false, this.setData(this.data); + wx.hideLoading(); // this.data.postData.emerTypeName; // for (let index = 0; index < this.data.TypeData.length; index++) { // if (this.data.TypeData[index].emerTypeName == res.data.emerTypeName) { @@ -39,6 +42,14 @@ Page({ } }) }, + goItem: function (params) { + console.log(params,'params==?'); + this.data.freshIng = true, + wx.showLoading({ + title: '加载中', + }) + this.getEmerEventDetail(params.currentTarget.dataset.item.peopleId); + }, /** * 生命周期函数--监听页面加载 */ diff --git a/pages/statistic/j-b-x-x/detail/index.wxml b/pages/statistic/j-b-x-x/detail/index.wxml index 70b57af..f781500 100644 --- a/pages/statistic/j-b-x-x/detail/index.wxml +++ b/pages/statistic/j-b-x-x/detail/index.wxml @@ -1,72 +1,75 @@ - - - + + - - - - 姓名 + + + + 姓名 + {{userInfo.name}} + + + 性别 + {{userInfo.sex==1?'男':'女'}} + + + 出生日期 + {{userInfo.birthday}} + - - {{userInfo.name}} + + 关系 + {{userInfo.relationName}} - - - 电话 + + 联系电话 + {{userInfo.phoneNumber}} - - {{userInfo.phoneNumber?userInfo.phoneNumber:'--'}} + + 所属区域 + {{userInfo.areaName}} - - - 性别 + + 人员标签 + {{userInfo.typeName}} - - {{userInfo.sex==1?'男':'女'}} + + 类型 + {{userInfo.relationName}} - - - 所属区域 + + + 家庭住址 + {{userInfo.nowAddress}} + - - {{userInfo.areaName?userInfo.areaName:'--'}} - - - - 人员标签 - - - {{userInfo.peopleTag == 1?'常住人口':'流动人口'}} - - - - 关系 - - - {{userInfo.relationName?userInfo.relationName:'--'}} - - - - 出生日期 - - - {{userInfo.birthday?userInfo.birthday:'--'}} - - - - 类型 - - - {{item}} - - - - 工作地点 - - - {{userInfo.workAddress?userInfo.workAddress:'--'}} - - - - + + + 同户主其他人员 + + + + + 姓名 + {{item.name}} + + + 性别 + {{item.sex==1?'男':'女'}} + + + 出生日期 + {{item.birthday}} + + + + + 家庭住址 + {{item.nowAddress}} + + + + 详情信息>> + + + \ No newline at end of file diff --git a/pages/statistic/j-b-x-x/detail/index.wxss b/pages/statistic/j-b-x-x/detail/index.wxss index 6ccb7fa..a8ce71a 100644 --- a/pages/statistic/j-b-x-x/detail/index.wxss +++ b/pages/statistic/j-b-x-x/detail/index.wxss @@ -1,113 +1,143 @@ -/* pages/msg/push/index.wxss */ -scroll-view { +.content { + display: flex; + flex-direction: column; +} + + +.line { + width: 1rpx; + height: 80%; background-color: #f5f5f5; - box-sizing: border-box; } -.filter { - margin: 0 10rpx; - height: 80rpx; - display: flex; - flex-direction: row; - background-color: white; - border-radius: 10rpx; +.in-bg { + margin: auto; + background: #ffffff; + border-radius: 12rpx; + height: 76rpx; + width: 92%; + margin-top: 24rpx; + padding: 0 20rpx; } -.filter picker { - flex: 1; +.in-bg input { + width: 100%; height: 100%; - display: flex; - align-items: center; +} + +.in-bg image { + width: 40rpx; + height: 35rpx; + margin-right: 20rpx; +} + +.in-bg .lab { + margin-left: 20rpx; + width: 230rpx; + font-size: 28rpx; + color: #333333; } .item { - background-color: #ffffff; - margin: 32rpx 20rpx 20rpx 20rpx; - padding: 20rpx; + width: 686rpx; + /* height: 296rpx; */ + background-color: #FFFFFF; + margin: 32rpx auto; + border-radius: 16rpx; + padding: 32rpx; position: relative; - border-radius: 10rpx; - z-index: 2; } -.item .header { - margin-top: 16rpx; +.item_top { + display: flex; + border-bottom: 1rpx dashed #f5f5f5; + padding-bottom: 24rpx; } -.item .header .single { - width: 8rpx; - height: 36rpx; - background: #4882EE; - border-radius: 4rpx; - margin-right: 10rpx; +.item_cent { + border-bottom: 1rpx dashed #f5f5f5; + padding: 22rpx 0rpx; + display: flex; + justify-content: space-between; } -.item .header .title { - font-size: 30rpx; - font-weight: bold; - color: #222222; +.item_bot { + padding-top: 24rpx; } -.item .put { - width: 100%; - background: #F5F7FC; - border-radius: 12rpx; - min-height: 72rpx; - padding: 15rpx; - margin-top: 16rpx; - color: #333333; +.item>view>view>view:nth-child(1) { + font-family: PingFang SC, PingFang SC; + font-weight: 500; font-size: 28rpx; + color: #808080; } -.grid { - margin-top: 20rpx; - display: grid; - grid-gap: 20rpx 20rpx; - grid-template-columns: calc((100vw - 140rpx)/3) auto auto; +.item>view>view>view:nth-child(2) { + font-family: PingFang SC, PingFang SC; + font-weight: 500; + font-size: 32rpx; + color: #333333; } -.grid .img { - width: calc((100vw - 140rpx)/3); - height: calc((100vw - 140rpx)/3); - background-color: #f5f5f5; - border-radius: 10rpx; +.item_name { + width: 210rpx; } -.grid .del { +.item_sex { + width: 110rpx; +} + +.item_birthday { + width: 200rpx; +} + +.item_address { + width: 100%; +} + +.item_details { + width: 180rpx; + height: 48rpx; + background-color: #3587FB; + border-radius: 0rpx 16rpx 0rpx 16rpx; position: absolute; - bottom: 0; - left: 0; - z-index: 1; - font-size: 40rpx; + top: 0rpx; + right: 0rpx; + text-align: center; + line-height: 48rpx; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + font-size: 26rpx; + color: #FFFFFF; } -.option { - position: fixed; - bottom: calc(constant(safe-area-inset-bottom) + 30rpx); - bottom: calc(env(safe-area-inset-bottom) + 30rpx); - left: 0; - right: 0; - margin-top: 30rpx; - padding: 16rpx 32rpx; - background: #FFFFFF; - box-shadow: 0rpx 0rpx 12rpx 2rpx #DDECF3; - z-index: 10; +.item_cent>view:nth-child(1) { + font-family: PingFang SC, PingFang SC; + font-weight: 500; + font-size: 28rpx; + color: #808080; } -.option .btn { - padding: 14rpx; +.item_cent>view:nth-child(2) { + font-family: PingFang SC, PingFang SC; + font-weight: 500; + font-size: 32rpx; + color: #333333; +} +.br{ + width: 92%; + margin: auto; display: flex; align-items: center; - justify-content: center; - background: #409CFF; - color: #FFFFFF; - border-radius: 12rpx; +font-family: PingFang SC, PingFang SC; +font-weight: bold; +font-size: 36rpx; +color: #333333; } - -.option .btn:active { - opacity: 0.8; -} - -.space { - height: calc(constant(safe-area-inset-bottom) + 150rpx); - height: calc(env(safe-area-inset-bottom) + 150rpx); +.br>view{ + width: 4rpx; + height: 36rpx; + background-color: #3587fb; + margin-right: 8rpx; + border-radius: 4rpx 4rpx 4rpx 4rpx; } \ No newline at end of file diff --git a/pages/statistic/j-b-x-x/index/index.js b/pages/statistic/j-b-x-x/index/index.js index b72964c..5d87ff6 100644 --- a/pages/statistic/j-b-x-x/index/index.js +++ b/pages/statistic/j-b-x-x/index/index.js @@ -20,11 +20,12 @@ Page({ TypeData: [], showTypePop: false, postData:{ - orgcode:'' + orgcode:'', + areaPathName:'' }, typeId:'', - //树结构 + //筛选树结构 areaCode:'', areaPathName:'', unitTreepros: { @@ -32,43 +33,23 @@ Page({ val: 'orgcode' }, unitTreelist: [], - - - // 地区数据 - areamultiIndex: [0, 0, 0], - areamultiIds: [], - areanewArr: [], - area:[], - - // value:'', - // tree: [ - // { - // id: 1, - // name: '001', - // open: true, - // children: [{ - // id: 2, - // name: '001-01', - // children: [{ - // id: 3, - // name: '001-01-01', - // children: [] - // }] - // }] - // } - // ] }, /** * 切换tab */ changeItem: function (params) { - this.data.currentIndex = params.currentTarget.dataset.index; - this.data.page = 1; - this.data.list = []; - this.setData(this.data); - this.data.typeId = params.currentTarget.dataset.item.typeId; - this.getList(params.currentTarget.dataset.item.typeId); + console.log(params,'切换tabparams====>'); + // + wx.navigateTo({ + url: `/pages/statistic/j-b-x-x/personnel/index?typeId=${params.currentTarget.dataset.item.typeId}&typeName=${params.currentTarget.dataset.item.typeName}&orgcode=${this.data.postData.orgcode}&areaPathName=${this.data.postData.areaPathName}`, + }) + // this.data.currentIndex = params.currentTarget.dataset.index; + // this.data.page = 1; + // this.data.list = []; + // this.setData(this.data); + // this.data.typeId = params.currentTarget.dataset.item.typeId; + // this.getList(params.currentTarget.dataset.item.typeId); }, handleselectunit(e) { @@ -76,13 +57,14 @@ Page({ this.data.page = 1; this.data.list = []; let postData = this.data.postData; // 获取当前的 postData 对象 + console.log(postData,'postData==>'); postData.orgcode = e.detail.item.orgcode; postData.areaPathName = e.detail.item.orgname; this.setData({ postData: postData, showTypePop:false }); // 设置更新后的 postData 对象 - this.getList(this.data.typeId); + this.getType(); }, /** * 查看详情 @@ -112,7 +94,6 @@ Page({ this.data.postData.orgcode = this.data.TypeData[index].orgcode; this.data.showTypePop = false; this.setData(this.data); - this.getList(this.data.typeId); }, /** * 获取地区 @@ -129,38 +110,18 @@ Page({ } }) }, - // /** - // * 开始时间 - // */ - // startTimeChange: function (e) { - // this.data.startTime = e.detail.value; - // this.timeGetList(); - // }, - // /** - // * 开始时间 - // */ - // endTimeChange: function (e) { - // this.data.endTime = e.detail.value; - // this.timeGetList(); - // }, - // //时间请求 - // timeGetList: function () { - // this.data.page = 1; - // this.data.currentIndex = 0; - // this.data.list = []; - // this.setData(this.data); - // this.getList(this.data.tab[0].typeId); - // }, /** * 获取工作统计类型 */ getType: function () { - app.axios("GET", "app", `/people/populationByType`).then(res => { + let params = { + areaCode:this.data.postData.orgcode + } + app.axios("GET", "app", `/people/populationByType`,params).then(res => { if (res.code == 1) { this.data.tab = res.data; this.setData(this.data); this.data.typeId = res.data[0].typeId; - this.getList(res.data[0].typeId); } }) }, @@ -168,156 +129,14 @@ Page({ * 上拉刷新 */ refresh: function () { - this.data.page = 1; - this.data.currentIndex = 0; - this.data.list = []; + this.data.freshIng = false; this.setData(this.data); - this.getList(this.data.tab[0].typeId); }, dropDown: function (params) { this.data.page = this.data.page+1; + this.data.freshIng = false; this.setData(this.data); - this.getList(this.data.tab[this.data.currentIndex].typeId); }, - /** - * 获取工作统计每项数据列表 - */ - getList: function (id) { - let params = { - limit:this.data.pageSize, - page:this.data.page, - // endTime:this.data.endTime, - // startTime:this.data.startTime, - typeId:id, - // userId:this.data.userInfo.userId, - condition:this.data.search, - }; - - if (this.data.postData.orgcode) { - params.orgCode = this.data.postData.orgcode - } - console.log(params,'params==>'); - app.axios("GET", "app", `/people/peopleInfoByType`, params).then(res => { - if (res.code == 1) { - this.setData({ - list:[...this.data.list,...res.data.list], - freshIng:false, - }); - } - }) - }, - - - - - - - // 地区获取 -// getAreaTree: function () { -// app.axios("GET", "common", "/sysorg/areaTree").then(res => { -// if (res.code == 1) { -// this.data.areamultiArray = res.data -// this.setData(this.data); -// let state = { -// arr: [], -// arr1: [], -// arr2: [], -// arr3: [], -// areamultiIds: [] -// } -// this.data.areamultiArray.map((v, vk) => { -// state.arr1.push(v.orgname); -// if (this.data.areamultiIndex[0] === vk) { -// state.areamultiIds[0] = v; -// } -// if (state.arr2.length <= 0) { -// v.children.map((c, ck) => { -// state.arr2.push(c.orgname); -// if (this.data.areamultiIndex[1] === ck) { -// state.areamultiIds[1] = c; -// } -// if (state.arr3.length <= 0) { -// c.children.map((t, tk) => { -// state.arr3.push(t.orgname); -// if (this.data.areamultiIndex[2] === tk) { -// state.areamultiIds[2] = t; -// } -// }); -// } -// }); -// } -// }); -// state.arr[0] = state.arr1; -// state.arr[1] = state.arr2; -// state.arr[2] = state.arr3; -// this.setData({ -// areanewArr: state.arr, -// areamultiIds: state.areamultiIds, -// }); -// } -// }) -// }, - // 级联选择地区 - areabindMultiPickerChange(e) { - console.log(this.data.areamultiIds,'级联选择地区==>'); - this.setData({ - area: e.detail.value, - areatate:true - }); - }, - areabindMultiPickerColumnChange(e) { - let data = { - areanewArr: this.data.areanewArr, - areamultiIndex: this.data.areamultiIndex, - areamultiIds: this.data.areamultiIds, - }; - data.areamultiIndex[e.detail.column] = e.detail.value; - - let searchColumn = () => { - let arr1 = []; - let arr2 = []; - this.data.areamultiArray.map((v, vk) => { - if (data.areamultiIndex[0] === vk) { - data.areamultiIds[0] = { - ...v, - }; - v.children.map((c, ck) => { - arr1.push(c.orgname); - if (data.areamultiIndex[1] === ck) { - data.areamultiIds[1] = { - ...c, - }; - c.children.map((t, vt) => { - arr2.push(t.orgname); - if (data.areamultiIndex[2] === vt) { - data.areamultiIds[2] = { - ...t, - }; - } - }); - } - }); - } - }); - data.areanewArr[1] = arr1; - data.areanewArr[2] = arr2; - }; - switch (e.detail.column) { - case 0: - // 每次切换还原初始值 - data.areamultiIndex[1] = 0; - data.areamultiIndex[2] = 0; - // 执行函数处理 - searchColumn(); - break; - case 1: - data.areamultiIndex[2] = 0; - searchColumn(); - break; - } - this.setData(data); - }, - /** * 生命周期函数--监听页面加载 */ diff --git a/pages/statistic/j-b-x-x/index/index.wxml b/pages/statistic/j-b-x-x/index/index.wxml index db85261..25fb673 100644 --- a/pages/statistic/j-b-x-x/index/index.wxml +++ b/pages/statistic/j-b-x-x/index/index.wxml @@ -1,71 +1,17 @@ - - + + 所属社区 + {{ postData.areaPathName }} + - - - - + + {{item.typeName}} {{item.typeNum}} - - - - - - - - 所属社区 - - {{ postData.areaPathName }} - - - - - - - - - - 姓名: - {{item.name}} - - - 性别:{{item.sex==1?"男":"女"}} - - - - 出生日期:{{item.birthday}} - - - - 家庭住址: - {{item.domicileAddress}} - - + @@ -80,7 +26,7 @@ - + - + \ No newline at end of file diff --git a/pages/statistic/j-b-x-x/index/index.wxss b/pages/statistic/j-b-x-x/index/index.wxss index 4640e0c..7214693 100644 --- a/pages/statistic/j-b-x-x/index/index.wxss +++ b/pages/statistic/j-b-x-x/index/index.wxss @@ -3,8 +3,9 @@ display: flex; flex-direction: column; background-color: white; - margin: 10rpx; - border-right: 10rpx; + margin: 30rpx auto; + width: 92%; + border-radius: 20rpx; } .table .tab-item { @@ -12,26 +13,26 @@ flex-direction: row; align-items: center; width: 100%; - padding: 10rpx; - border-radius: 10rpx; - border-bottom: 1rpx solid #f5f5f5; + padding: 20rpx; + border-bottom: 1rpx dashed #f5f5f5; } -.table .tab-item-checked { +/* .table .tab-item-checked { background-color: rgba(0, 0, 0, 0.1); -} +} */ .table .tab-item .lab { font-size: 30rpx; width: 30vw; - text-align: center; - border-right: 1rpx solid #f5f5f5; + margin-left: 10rpx; + /* text-align: center; */ + /* border-right: 1rpx solid #f5f5f5; */ } .table .tab-item .val { font-size: 35rpx; font-weight: bold; - padding-left: 10vw; + padding-left: 40rpx; padding-right: 10rpx; } @@ -44,85 +45,6 @@ flex-direction: column; } -.content .search { - background-color: white; - margin: 10rpx; - height: 80rpx; - border-radius: 10rpx; - padding: 0 20rpx; - font-size: 28rpx; - position: sticky; - /* top: 90rpx; */ - border-bottom: 1rpx solid #f5f5f5; -} - -.content .filter { - margin: 0 10rpx; - width: calc(100vw - 20rpx); - height: 80rpx; - display: flex; - flex-direction: row; - background-color: white; - border-radius: 10rpx; - align-items: center; - position: sticky; - top: 0; - border-bottom: 1rpx solid #f5f5f5; -} - -.content .filter picker { - flex: 1; - display: flex; - align-items: center; - justify-content: center; - font-size: 30rpx; -} - -.content .item { - background-color: #ffffff; - padding: 32rpx 20rpx 20rpx 20rpx; - box-shadow: 0px 0px 6px 1px #DDECF3; - margin: 16rpx 16rpx 0 16rpx; - border-radius: 10rpx; - font-size: 32rpx; - color: #222222; -} - -.content .item .single::before { - display: inline-block; - content: ''; - width: 20rpx; - height: 20rpx; - margin-right: 10rpx; - border-radius: 50%; - background-color: var(--blue); -} - -.content .item .child:not(:last-child) { - margin-bottom: 40rpx; -} - -.content .item .lab { - margin-left: 16rpx; -} - -.content .item .val { - margin-left: 16rpx; - color: #000000; -} - -.content .item .age { - margin-left: 100rpx; -} - -.content .item .phone { - color: var(--blue); - font-weight: bold; -} - -.content .item .address { - color: #666666; -} .line { width: 1rpx; @@ -133,10 +55,10 @@ .in-bg { margin: auto; background: #ffffff; - border-radius: 90rpx; - height: 90rpx; - width: 95%; - margin-top: 5rpx; + border-radius: 12rpx; + height: 76rpx; + width: 92%; + margin-top: 24rpx; padding: 0 20rpx; } diff --git a/pages/statistic/j-b-x-x/personnel/index.js b/pages/statistic/j-b-x-x/personnel/index.js new file mode 100644 index 0000000..44392e0 --- /dev/null +++ b/pages/statistic/j-b-x-x/personnel/index.js @@ -0,0 +1,183 @@ +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + topBarH: app.globalData.CustomBar, + title: '', + typeId: '', + currentIndex: 0, + tab: [], + list: [], + page: 1, + pageSize: 10, + userInfo: {}, + search: "", + TypeData: [], + showTypePop: false, + postData: { + orgcode: '', + areaPathName:'' + }, + typeId: '', + + //筛选树结构 + areaCode: '', + areaPathName: '', + unitTreepros: { + key: 'orgname', + val: 'orgcode' + }, + unitTreelist: [], + }, + + + + /** + * 显示/关闭弹窗筛选 + */ + popModal: function (params) { + const type = params.currentTarget.dataset.type; + this.data[type] = !this.data[type]; + this.setData(this.data) + }, + handleselectunit(e) { + // e.detail 选中的id数组 + this.data.page = 1; + this.data.list = []; + let postData = this.data.postData; // 获取当前的 postData 对象 + postData.orgcode = e.detail.item.orgcode; + postData.areaPathName = e.detail.item.orgname; + this.setData({ + postData: postData, + showTypePop: false + }); // 设置更新后的 postData 对象 + this.getList(); + }, + /** + * 获取地区 + */ + getAreaTree: function () { + app.axios("GET", "common", "/sysorg/areaTree", { + classify: 2 + }).then(res => { + if (res.code == 1) { + console.log(res, 'res===>'); + this.data.TypeData = res.data[0].children; + this.data.unitTreelist = res.data; + this.setData(this.data) + } + }) + }, + /** + * 上拉刷新 + */ + refresh: function () { + this.data.page = 1; + this.data.list = []; + this.setData(this.data); + this.getList(); + }, + dropDown: function (params) { + this.data.page = this.data.page + 1; + this.setData(this.data); + this.getList(); + }, + /** + * 获取工作统计每项数据列表 + */ + getList: function (id) { + let params = { + limit: this.data.pageSize, + page: this.data.page, + typeId: this.data.typeId, + condition: this.data.search, + }; + + if (this.data.postData.orgcode) { + params.orgCode = this.data.postData.orgcode + } + console.log(params, 'params==>'); + app.axios("GET", "app", `/people/peopleInfoByType`, params).then(res => { + console.log(res.data, 'res.data=====>'); + if (res.code == 1) { + this.setData({ + list: [...this.data.list, ...res.data.list], + freshIng: false, + }); + } + }) + }, + goItem:function (params) { + wx.navigateTo({ + url: `/pages/statistic/j-b-x-x/detail/index?peopleId=${params.currentTarget.dataset.item.peopleId}`, + }) + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + console.log(options, 'options==>'); + this.data.postData.orgcode = options.orgcode; + this.data.postData.areaPathName = options.areaPathName; + this.data.title = options.typeName; + this.data.typeId = options.typeId; + this.data.freshIng = true; + this.data.userInfo = app.globalData.userInfo; + this.setData(this.data); + this.getList(); + this.getAreaTree(); + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/statistic/j-b-x-x/personnel/index.json b/pages/statistic/j-b-x-x/personnel/index.json new file mode 100644 index 0000000..02e59f1 --- /dev/null +++ b/pages/statistic/j-b-x-x/personnel/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + "tree-node":"/components/tree-node/index" + }, + "navigationStyle": "custom" +} \ No newline at end of file diff --git a/pages/statistic/j-b-x-x/personnel/index.wxml b/pages/statistic/j-b-x-x/personnel/index.wxml new file mode 100644 index 0000000..8cd96c1 --- /dev/null +++ b/pages/statistic/j-b-x-x/personnel/index.wxml @@ -0,0 +1,55 @@ + + + + 所属社区 + {{ postData.areaPathName }} + + + + + 姓名 + {{item.name}} + + + 性别 + {{item.sex==1?'男':'女'}} + + + 出生日期 + {{item.birthday}} + + + + + 家庭住址 + 家庭住址家庭住址家庭住址家庭住址家庭住址 + + + + 详情信息>> + + + + + + + + 选择所属社区 + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/statistic/j-b-x-x/personnel/index.wxss b/pages/statistic/j-b-x-x/personnel/index.wxss new file mode 100644 index 0000000..49d203f --- /dev/null +++ b/pages/statistic/j-b-x-x/personnel/index.wxss @@ -0,0 +1,105 @@ +.content { + display: flex; + flex-direction: column; +} + + +.line { + width: 1rpx; + height: 80%; + background-color: #f5f5f5; +} + +.in-bg { + margin: auto; + background: #ffffff; + border-radius: 12rpx; + height: 76rpx; + width: 92%; + margin-top: 24rpx; + padding: 0 20rpx; +} + +.in-bg input { + width: 100%; + height: 100%; +} + +.in-bg image { + width: 40rpx; + height: 35rpx; + margin-right: 20rpx; +} + +.in-bg .lab { + margin-left: 20rpx; + width: 230rpx; + font-size: 28rpx; + color: #333333; +} + +.item { + width: 686rpx; + /* height: 296rpx; */ + background-color: #FFFFFF; + margin: 32rpx auto; + border-radius: 16rpx; + padding: 32rpx; + position: relative; +} + +.item_top { + display: flex; + border-bottom: 1rpx dashed #f5f5f5; + padding-bottom: 24rpx; +} + +.item_bot { + padding-top: 24rpx; +} + +.item>view>view>view:nth-child(1) { + font-family: PingFang SC, PingFang SC; + font-weight: 500; + font-size: 28rpx; + color: #808080; +} + +.item>view>view>view:nth-child(2) { + font-family: PingFang SC, PingFang SC; + font-weight: 500; + font-size: 32rpx; + color: #333333; +} + +.item_name { + width: 210rpx; +} + +.item_sex { + width: 110rpx; +} + +.item_birthday { + width: 200rpx; +} + +.item_address { + width: 100%; +} + +.item_details { + width: 180rpx; + height: 48rpx; + background-color: #3587FB; + border-radius: 0rpx 16rpx 0rpx 16rpx; + position: absolute; + top: 0rpx; + right: 0rpx; + text-align: center; + line-height: 48rpx; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + font-size: 26rpx; + color: #FFFFFF; +} \ No newline at end of file diff --git a/pages/work/f-b-g-z/index/index.js b/pages/work/f-b-g-z/index/index.js new file mode 100644 index 0000000..57dbc9b --- /dev/null +++ b/pages/work/f-b-g-z/index/index.js @@ -0,0 +1,66 @@ +// pages/work/f-b-g-z/index/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/work/f-b-g-z/index/index.json b/pages/work/f-b-g-z/index/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/work/f-b-g-z/index/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/work/f-b-g-z/index/index.wxml b/pages/work/f-b-g-z/index/index.wxml new file mode 100644 index 0000000..5ea395f --- /dev/null +++ b/pages/work/f-b-g-z/index/index.wxml @@ -0,0 +1,2 @@ + +pages/work/f-b-g-z/index/index.wxml \ No newline at end of file diff --git a/pages/work/f-b-g-z/index/index.wxss b/pages/work/f-b-g-z/index/index.wxss new file mode 100644 index 0000000..b5f3694 --- /dev/null +++ b/pages/work/f-b-g-z/index/index.wxss @@ -0,0 +1 @@ +/* pages/work/f-b-g-z/index/index.wxss */ \ No newline at end of file