12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439 |
- <template>
- <view class="index">
- <p style="height: 20upx; background-color: #f2f2f2;"></p>
- <view class="sous_sear" @click="getSearch">
- <view class="sous_tit">筛选查询</view>
- <input placeholder="请选择筛选条件" class="sous_input" disabled/>
- <image :src="searimg" class="sous_img"></image>
- </view>
- <!-- <view class="sous_sear">
- <view class="sous_box" @click="getSearch">
- <image :src="searimg" class="sous_img"></image>
- <input placeholder="请输入身份证号或姓名进行查询" class="sous_input" disabled/>
- </view>
- </view> -->
- <p style="height: 28upx; background-color: #f2f2f2;"></p>
- <div class="tabld">
- <view :class="[currentTab==item.value ? 'one_tabhu ' : '']" v-for="(item,index) in tabsta" :key="index" @click="changeTab(item.value)">
- <text>{{item.label}}</text>
- <!-- <text style="color: #AAAAAA;">{{item.nume}}</text> -->
- </view>
- </div>
-
- <view class="tab">
- <!-- //表格 -->
- <view class="exele">
- <view class="box">
- <table @change="change">
- <tr class="tr_one">
- <!-- <th style="width: 130upx; text-align: center;">编号</th> -->
- <th style="width: 100upx; text-align: center;">姓名</th>
- <th style="width: 80upx; text-align: center;">户主</th>
- <th style="width: 270upx; text-align: center;">身份证号</th>
- <th style="width: 170upx; text-align: center;">联系方式</th>
- <!-- <th style="width: 100upx;">联系方式</th> -->
- <th style="width: 50upx; text-align: center;">操作</th>
- <!-- <th style="width: 60upx;">查看</th> -->
- </tr>
- <scroll-view scroll-y class="scroll-view" upper-threshold="40" lower-threshold="40" @scrolltolower="bot_btn">
- <tr v-for="(item,index) in list" :key="index" :class=" [index%2 ==0 ? 'two_tr two_trtwo':'two_tr']" @click="chakn(item)">
- <!-- <td style="width: 130upx; text-align: center;" >{{ item.code == null ? '暂无信息' : item.code}}</td> -->
- <td style="width: 100upx; text-align: center;" >{{ item.userName == null ? '暂无信息' : item.userName}}</td>
- <td style="width: 80upx; text-align: center;" >{{ item.houseType == null ? '暂无信息' : item.houseType}}</td>
- <!-- <td style="width: 40upx; text-align: center;">{{item.gender == null? '暂无信息' : item.gender }}</td> -->
- <td style="width: 270upx; text-align: center;">{{item.idCard == null? '暂无信息' : item.idCard }}</td>
- <td style="width: 170upx; text-align: center;" >{{ item.phoneNum == null? '暂无信息' : item.phoneNum}}</td>
- <!-- <td style="width: 100upx;" :class="[item.phone == '' ? 'tdse' : '' ]" >{{ item.phone == ''? '未完善' : item.phone}}</td> -->
- <!-- <td style="width: 100upx; text-align: center;" :class="[item.addtime == null ? 'tdse' : item.addtime == ''? 'tdse' : '' ]">{{ item.addtime ==null ? '未完善' : item.addtime==''? '未完善' : item.addtime}}</td> -->
- <!-- <td style="width: 50upx;" class="coiu" @click.stop="dele(item.id)">删除</td> -->
- <!-- <td style="width: 50upx; color: #32B16C;" @click.stop="goDetail(item)">查看</td> -->
- <td style="width: 50upx; color: #32B16C;" @click.stop="goDetail(item)">查看</td>
- </tr>
- <div class="shax" v-if="list.length>0">
- {{wtdt}}
- </div>
- <div class="zanwu " v-else><span>暂无数据</span></div>
- </scroll-view>
-
- </table>
- </view>
- </view>
- </view>
- <!-- <div class="xinse" @click="addVacFrom">新增户主</div> -->
- <!-- <div class="xinse" @click.stop="showPicker($event)">选择地址</div> -->
-
- <!-- 弹窗 -->
- <!-- 搜索弹窗 -->
- <view class='bgbox' v-if="searchflag" @click="getSearClose"></view>
- <view class="searfixed" v-if="searchflag">
- <view class="searf_top">
- <view class="searf_topl" @click="getSearClose">
- <image :src="searimg"></image>
- </view>
- <view class="searf_topr" @click="getClearFn">重置</view>
- </view>
- <view class="searf_cen">
- <view class="searf_cenli">
- <view class="searf_cenlitit">身份证号</view>
- <input placeholder="请输入身份证号" type="text" value="" v-model="params.idCard" class="searf_cenlin"/>
- </view>
- <view class="searf_cenli">
- <view class="searf_cenlitit">人员姓名</view>
- <input placeholder="请输入人员姓名" type="text" value="" v-model="params.userName" class="searf_cenlin"/>
- </view>
- <view class="searf_cenli" v-if="roles">
- <view class="searf_cenlitit">手机号</view>
- <input placeholder="请输入手机号进行查询" maxlength="11" type="number" value="" v-model="params.phoneNum" class="searf_cenlin"/>
- </view>
- <view class="searf_cenli">
- <view class="searf_cenlitit" v-if="navidx==0">居住地址</view>
- <view class="searf_cenlitit" v-else>户籍地址</view>
- <view class="searf_cenlin" @click="showPicker">
- <view class="addsa" :style="searchresult?'':'color:#AAAAAA;'">{{searchresult||'选择区域'}}</view>
- <image :src="rimg" class="addsimg"></image>
- </view>
- </view>
- <!-- 是否是户主选择 -->
- <view class="searf_cenli">
- <view class="searf_cenlitit">是否户主</view>
- <view class="searf_cenlin" @click="showHouse">
- <view class="addsa" :style="params.houseType?'':'color:#AAAAAA;'">{{params.houseType||'选择是否户主'}}</view>
- <image :src="rimg" class="addsimg"></image>
- </view>
- </view>
- <!-- 是否确认 -->
- <view class="searf_cenli">
- <view class="searf_cenlitit">是否确认</view>
- <view class="searf_cenlin" @click="showSure">
- <view class="addsa" v-if="params.isConfirm" >{{params.isConfirm=='Y'?'是':'否'}}</view>
- <view class="addsa" v-else style="color:#AAAAAA">选择是否确认</view>
- <image :src="rimg" class="addsimg"></image>
- </view>
- </view>
- <!-- 人员类别 -->
- <!-- <view class="searf_cenli">
- <view class="searf_cenlitit" style="min-width: 180rpx;">人员类别</view>
- <uni-data-checkbox multiple v-model="keyvalue" :localdata="keycategory" >
- </uni-data-checkbox>
- </view> -->
- </view>
- <view class="searf_fot" @click="Seach">查询</view>
- </view>
-
-
- <view class="bgbox" v-if="houseflag||delfalg"></view>
- <!-- 变更 -->
- <view class="delbox" v-if="delfalg">
- <view class="deltit">变更原因</view>
- <image :src="delimg" class="del_img" @click="getClose"></image>
- <view class="del_list">
- <view class="del_lista" :class="delvalue==ite.value?'act':''" @click="getDeltab(ite.value)"
- v-for="(ite,idx) in deletelist" :key="idx">{{ite.label}}</view>
- </view>
- <view class="del_btn" @click="deletSure">确认</view>
- </view>
-
- <!-- 是否户主 -->
- <selectPicker ref="houseselet" :list="houselist" title="请选择" @vacChange="vacHouseChange"></selectPicker>
- <!-- 是否确认 -->
- <selectPicker ref="sureselet" :list="surelist" title="请选择" @vacChange="vacSureChange"></selectPicker>
-
-
- <!-- 选择查看 -->
- <view class="housebox" v-if="houseflag">
- <view class="house_tit">
- <view class="house_titl" @click="getClose">取消</view>
- <view class="house_titc">请选择</view>
- <view class="house_titr"></view>
- </view>
- <view class="houselist" @click="getCheck(0)">变更</view>
- <view class="houselist" @click="getCheck(1)">变更记录</view>
- </view>
- <selectMorePicker
- ref="picker"
- :title="auiPicker.title"
- :layer="auiPicker.layer"
- :titflag='auiPicker.titflag'
- :data="auiPicker.data"
- @callback="pickerCallback"
- ></selectMorePicker>
- </view>
- </template>
- <script>
- import selectPicker from '@/_components/picker/selectPicker.vue'
- import selectMorePicker from '@/_components/picker/selectMorePicker.vue'
- export default {
- components:{selectPicker,selectMorePicker},
- data() {
- return {
- background: {
- backgroundColor: '#009FE8'
- },
- navidx:1,
- navbg:require("@/static/image/titbg.png"),
- searimg:require("@/static/image/icon_mine_listenter.png"),
- closeimg:require("@/static/image/del.png"),
- searchflag:false,
- rimg:require('@/static/image/upr.png'),
- upimg:require("@/static/image/up.png"),
- delimg: require("@/static/image/del.png"),
- activeTab: 0, //tab切换
- //列表数据
- list: [],
- roles:false,
- show: false,
- tabsta: [],
- currentTab: 0, //tab切换
- params: { //上拉刷新
- pageNum: 1,
- pageSize: 20,
- idCard:'',
- queryType:'hj',
- houseType:'',
- isConfirm:'',
- userName:'',
- status:'',
- phoneNum:'',
- keyCategory:''
- },
- haveMore: true,
- wtdt: '上拉加载更多',
- listShow: true, //判断是否有数据 true 有
-
- searchresult:'',//搜索区域显示
- houselist:[{
- "label": '是',
- "value":0
- },{
- "label": '否',
- "value":1
- }],
- surelist:[{
- "label": '是',
- "value":'Y'
- },{
- "label": '否',
- "value":'N'
- }],
- sureselet:false,
- houseflag:false,
- auiPicker: {
- title: '选择区域',
- layer: null,
- titflag:true,
- data: []
- },
- houseobj:{
- id:'',
- code:''
- },
- delfalg:false,
- delvalue: '', //删除原因
- statid:'',//变更id
-
- delvalue: '', //删除原因
- deletelist: [], //删除字典
-
- keycategory:[],//人员类别
- keyvalue:[],
- };
- },
- onShow() {
- let type = uni.getStorageSync('token')
- if (!type) {
- uni.reLaunch({
- url: '/pages/login/login'
- })
- }else{
- let roles=uni.getStorageSync('roles')||false
- this.roles=roles
- }
- // var iutem = new Date().getFullYear() + 1
- // this.maxDate = new Date(iutem,12,1).getTime()
- // this.minDate= new Date(2017, 10, 1).getTime()
- },
- onLoad(option) {
-
- // 获取人员列表
- // this.getKeyCateFn()
-
- uni.$on('refreshData',(data) => {
- // this.params.userName='';
- // this.params.deptId='';
- // this.villageTowns='';
- // this.village='';
- // this.villageTownsId='';
- // this.villageId='';
- this.params.pageNum = 1;
- this.list = []
- // 修改 获取列表的
- // 获取统计
- this.lists(this.params)
- })
- // this.getTownsFn();
- this.params.pageNum = 1
- this.list = []
- // 修改 获取列表的
- // 获取统计
- this.getStatelist()
- this.getDelectList()
- this.getRegionListFirst()
- },
- beforeDestroy() {
- uni.$off("refreshData")
- },
- created() {
- },
- //下拉刷新
- // onPullDownRefresh() {
- // wx.showNavigationBarLoading()
- // this.params.pageNum = 1
- // this.shwtie = 0;
- // this.params = { //上拉刷新
- // pageSize: 20,
- // pageNum: 1,
- // }, //查询
- // this.keyword = ''
- // this.list = []
- // },
- methods: {
- getKeyCateFn(){
- var that = this;
- this.$http.get('system/dict/data/type/key_category').then(res => {
- if (res.code == 200) {
- this.keycategory = res.data.map(v => {
- return {
- text: v.dictLabel,
- value: v.dictValue
- }
- })
- }
- })
- },
- // 字典值
- getStatelist(){
- // 旧字典值
- this.$http.get("system/dict/data/type/people_status").then(res => {
- if (res.code == 200) {
- this.tabsta = res.data.map(v => {
- return {
- label: v.dictLabel,
- value: v.dictValue
- }
- })
- this.params.status = res.data[0].dictValue
- this.currentTab =res.data[0].dictValue;
- // 列表
- this.lists(this.params)
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
- }
- })
-
-
- // this.$http.get("system/dict/data/type/people_status").then(res => {
- // if (res.code == 200) {
- // this.tabsta = res.data.map(v => {
- // return {
- // label: v.dictLabel,
- // value: v.dictValue
- // }
- // })
- // for(var i=0;i<res.data.length;i++){
- // if(res.data[i].dictValue!=1&&res.data[i].dictValue!=2){
- // this.params.status = res.data[i].dictValue
- // this.currentTab =res.data[i].dictValue;
- // break
- // }
- // }
- // // 列表
- // this.lists(this.params)
- // } else {
- // uni.showToast({
- // title: res.msg,
- // duration: 1000,
- // icon: 'none'
- // });
-
- // }
- // })
- },
- getDelectList() {
- // 删除显示
- var that = this;
- this.$http.get('system/dict/data/type/person_type').then(res => {
- if (res.code == 200) {
- this.delvalue = res.data[0].dictValue
- this.deletelist = res.data.map(v => {
- return {
- label: v.dictLabel,
- value: v.dictValue
- }
- })
- }
- })
- },
- getSearch(){
- this.searchflag=true
- // if(this.deletelist.length){
- // this.searchflag=true
- // }else{
- // this.getDelectList()
- // this.searchflag=true
- // }
-
- },
- getSearClose(){
- this.searchflag=false
- },
-
-
- getClose(){
- this.houseflag=false;
- this.delfalg=false;
- },
- getSure(){
- this.houseflag=false
- },
- // 查看修改
- getCheck(e){
- // this.houseflag=false
- var id=this.statid;
- if(e==0){
- this.delfalg=true;
- this.houseflag=false
- }else if(e==1){
- this.delfalg=false;
- this.houseflag=false
- uni.navigateTo({
- url: '/home/pages/recordthree/changerecord?id='+id
- })
- }
-
- },
- // 是否户主
- showHouse(){
- this.$refs.houseselet.show()
- },
- //是否确认
- showSure(){
- this.$refs.sureselet.show()
- },
- vacHouseChange(e){
- this.params.houseType=e[0].label;
- //搜索
- // this.list = []
- // this.params.pageNum = 1
- // this.params.pageSize = 20
- // this.lists(this.params);
- },
- vacSureChange(e){
- this.params.isConfirm=e[0].value;
- //搜索
- // this.list = []
- // this.params.pageNum = 1
- // this.params.pageSize = 20
- // this.lists(this.params);
- },
-
- getRegionListFirst(){
- this.$http.post('boman-system/chinaArea/treeSelect',{pid: 0},true).then(res=>{
- this.auiPicker.data=res.data
- })
- },
- //显示picker多级联动弹窗
- showPicker(e){
- const _this = this;
- _this.$refs.picker.open().then(function(){
- console.log('picker打开');
- });
- },
- //picker多级联动回调
- pickerCallback(e){
- const _this = this;
- let result = '';
- e.data.forEach(function(item, index){
- if(index==0){
- result += item.name;
- }else{
- result +='/'+ item.name;
- }
- });
- _this.searchresult=result;
- var params={
- idCard:this.params.idCard,
- queryType:this.params.queryType,
- // isRl:this.params.isRl,
- houseType:this.params.houseType,
- isConfirm:this.params.isConfirm,
- userName:this.params.userName,
- status:this.params.status,
- phoneNum:this.params.phoneNum,
- keyCategory:this.params.keyCategory,
- pageNum:this.params.pageNum,
- pageSize:20
- }
- var length=e.data.length;
- // console.log(this.params.queryType,33)
- if(this.params.queryType=='hj'){
- switch (length) {
- case 0:
- break;
- case 1:
- params.provinceId = e.data[0].areaid;
- break;
- case 2:
- params.cityId = e.data[1].areaid;
- break;
- case 3:
- params.regionId = e.data[2].areaid;
- break;
- case 4:
- params.villageTownsId = e.data[3].areaid;
- break;
- case 5:
- params.villageId = e.data[4].areaid;
- break;
- case 6:
- params.gridId = e.data[5].areaid;
- break;
- case 7:
- params.villagerGroupId = e.data[6].areaid;
- break;
- default:
- break;
- }
- }else{
- switch (length) {
- case 0:
- break;
- case 1:
- params.provinceIdXjd = e.data[0].areaid;
- break;
- case 2:
- params.cityIdXjd = e.data[1].areaid;
- break;
- case 3:
- params.regionIdXjd = e.data[2].areaid;
- break;
- case 4:
- params.villageTownsIdXjd = e.data[3].areaid;
- break;
- case 5:
- params.villageIdXjd = e.data[4].areaid;
- break;
- case 6:
- params.gridIdJz = e.data[5].areaid;
- break;
- case 7:
- params.villagerGroupIdJz = e.data[6].areaid;
- break;
- default:
- break;
- }
- }
-
- //搜索
- // this.list = []
- this.params=JSON.parse(JSON.stringify(params));
- // this.params.pageNum = 1
- // this.params.pageSize = 20
- // this.lists(this.params);
- },
- getClearFn(){
- // this.params.userName='';
- // this.params.deptId='';
- // this.villageTowns='';
- // this.village='';
- // this.villageTownsId='';
- // this.villageId='';
- this.searchresult='';
- var params={
- pageNum: 1,
- pageSize: 20,
- idCard:'',
- queryType:this.params.queryType,
- // isRl:this.params.isRl,
- houseType:'',
- isConfirm:'',
- userName:'',
- status:this.params.status,
- phoneNum:'',
- keyCategory:"",
- }
- this.keyvalue=[];
- // this.list = []
- this.params=JSON.parse(JSON.stringify(params));
- // this.lists(this.params)
- },
- goDetail(e) {
- // 记录选择的
- this.houseflag=true;
- this.statid=e.id;
- },
- goUpstate(e){
- this.statid=e.id;
- this.houseflag = true;
- },
- getDeltab(e) {
- this.delvalue = e;
- },
- // 变更
- deletSure() {
- var that = this;
- this.delfalg = false;
- var params = {
- id: this.statid,
- status: this.delvalue
- }
- this.$http.post('boman-web-core/core/czrk/changeCzrk', params).then(res => {
- if (res.code == 200) {
- uni.showToast({
- title: '变更成功',
- icon: "none"
- })
- this.list = [];
- this.params.pageNum = 1
- this.lists(this.params)
- // setTimeout(function() {
- // // 让上个页面进行刷新
- // uni.$emit('refreshData');
- // uni.navigateBack()
- // }, 1000)
- } else {
-
- uni.showToast({
- title: res.msg,
- icon: "none"
- })
- }
- })
- },
- //查询列表
-
- // 户籍地址
- getListHjFn(){
- var params=this.params;
- this.$http.get("boman-web-core/core/czrk/list", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- },
- //常驻信息
- getListCzFn(){
- var params=this.params;
- this.$http.get("boman-web-core/core/jzdz/list", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- },
- // 人员未认领接口
- getListRyrlFn(){
- var params=this.params;
- // 户籍
- if(this.navidx==1){
- this.$http.get("boman-web-core/core/czrk/ryrl/listHj", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- }else{
- this.$http.get("boman-web-core/core/czrk/ryrl/listCz", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- }
- // 常驻
-
-
- },
- lists(params) {
- this.$http.post("boman-web-core/core/czrk/unusualList", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
-
-
- })
- },
- //刷新
- bot_btn() {
- if (this.haveMore) {
- this.params.pageNum++
- this.lists(this.params)
- }
- },
- //查看
- chakn(item) {
- // uni.setStorageSync('item', item)
- // wx.navigateTo({
- // url: '/pages/home/recordtwo'
- // })
- },
- // 删除
- dele(item){
- this.$http.dele("boman-web-core/core/info/" + item).then(res => {
- if(res.code == 200){
- this.params.pageNum = 1
- this.list = []
- this.lists(this.params)
- }
-
- })
- },
- //搜索
- Seach() {
- this.list = [];
- this.searchflag=false;
- this.params.pageNum = 1;
- this.params.pageSize=20;
- //人员类别
- if(this.keyvalue.length){
- var keyArr=this.keycategory;
- var newKey=[];
- this.keyvalue.forEach((item,idx)=>{
- newKey[idx]=keyArr[item].text
- })
- this.params.keyCategory=newKey.join(',')
- }
-
- this.lists(this.params)
- },
- //弹
- changeTab(index){
- this.currentTab = index;
- this.params.pageNum=1;
- this.list = []
- this.params.status=index;
- this.lists(this.params)
-
- },
- // formatter(type, value){
- // if (type === 'year') {
- // return `${value}年`;
- // } else if (type === 'month') {
- // return `${value}月`;
- // }
- // return value;
- // },
- // 点击新增
- // addVacFrom () {
- // uni.navigateTo({
- // url: '/add/pages/addvacfrom/addpeople?type=house'
- // })
- // }
- }
- }
- </script>
- <style lang="scss" scoped>
- .bgbox{position: fixed;left: 0;right: 0;top: 0;bottom: 0;z-index: 3;
- background: rgba(0,0,0,0.5);}
- .housebox{position: fixed;left: 0;right: 0;bottom: 0;z-index: 1000;background: #FFFFFF;border-radius: 30rpx 30rpx 0 0;
- .house_tit{width: 100%;height: 100rpx;position: relative;z-index: 999;background: #F2F2F2;border-radius: 30rpx 30rpx 0 0;display: flex;align-items: center;margin-bottom: 10rpx;
- .house_titl{font-size: 30rpx;color: #333333;flex: 0 0 auto;height: 100rpx;width: 120rpx;text-align: center;line-height:100rpx;}
- .house_titr{flex: 0 0 auto;font-size: 30rpx;color: #197DE0;height:100rpx;width:120rpx;text-align: center;line-height: 100rpx;}
- .house_titc{line-height: 40rpx;font-size: 34rpx;color: #333;padding: 30rpx;box-sizing: border-box;flex: 1;text-align: center;}
-
- }
- .houselist{width: 100%;text-align: center;font-size: 30rpx;color: #333333;line-height: 88rpx;
- &.act{color: #197DE0;}
- &:last-child{padding-bottom: 20rpx;}
- }
- }
-
-
- .nav_box{display: flex;align-items: center;justify-content: center;flex: 1;
- .nav_boxa{position: relative;width: 214rpx;height: 86rpx;
- .nav_boxb{width: 100%;height: 100%;display: none;}
- .nav_boxa1{font-size: 34rpx;font-weight: bold;color: #0678AC;text-align: center;padding-top: 14rpx;box-sizing: border-box;position: absolute;left: 0;top: 0;right: 0;bottom: 0;}
- &.act{color: #FFFFFF;
- .nav_boxb{display: block;}
- .nav_boxa1{color: #FFFFFF;}
- }
- }
- }
- .address{
- display: flex;align-items: center;
- margin-top: 38rpx;
- .addtita{flex: 0 0 auto;font-size: 28rpx;font-weight: bold;
- color: #343434;}
- .addressa{
- display: flex;align-items: center;
- flex: 1;
- display: flex;align-items: center;justify-content: flex-end;
- overflow: hidden;
- .addsa{font-size: 26rpx;color: #333333;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
- flex: 1;text-align: right;
- }
- .addsimg{width: 16rpx;height: 24rpx;margin-left: 10rpx;flex: 0 0 auto;}
- // .adds{
- // display: flex;align-items: center;justify-content: flex-start;padding:10rpx 20rpx;min-width: 220rpx;box-sizing: border-box;}
- }
-
- .addclear{color: #EA2929;font-size: 26rpx;flex: 0 0 auto;height: 60rpx;line-height: 60rpx;width: 128rpx;text-align:center}
- }
-
-
- .coie{
- width: 100%;
- box-sizing: border-box;
- padding: 0 33upx;
- .coie_nav{
- border-top: 1upx solid #E5E5E5;
- display: flex;
- flex-wrap: wrap;
- padding-bottom: 28upx;
- p{
- width: 33.33%;
- text-align: center;
- display: flex;
- flex-direction: column;
- margin-top: 53upx;
- span{
- font-size: 28upx;
- }
- i{
- font-size: 28upx;
- color: #333;
- margin-top: 28upx;
- }
- }
- }
- }
- .ieju{
- height: 17upx;
- width: 100%;
- background-color: #eee;
- margin-bottom: 33upx;
- }
- //暂无数据
- .zanwu {
- text-align: center;
- padding-top: 20upx;
- span {
- font-size: 24upx;
- }
- }
- .scroll-view {
- max-height: calc(100vh - 401upx);
- }
- .shax {
- // height: 83upx;
- font-size: 25upx;
- color: #666;
- text-align: center;
- }
- .index {
- // padding-top: 33upx;
- max-height: 100vh;
- .sous {
- padding: 24upx 33upx 0;
- // display: flex;
-
- .input {
- height: 80upx;
- border: 1upx solid #E5E5E5;
- flex: 1;
- margin-right: 28upx;
- padding-left: 10upx;
- box-sizing: border-box;
- }
- button {
- // width: 125upx;
- height: 80upx;
- background-color: #1678FF;
- text-size: 28upx;
- color: #fff;
- text-align: center;
- line-height: 80upx;
- }
- }
- //tab
- .tab {
- padding-top:30upx;
- padding-bottom: 30upx;
- .tabs {
- display: flex;
- padding: 0 20upx;
- box-sizing: border-box;
- height: 111upx;
- justify-content: space-between;
- box-shadow: 0px 7px 7px 0px rgba(229, 229, 229, 0.5);
- .one_tab {
- color: #1678FF !important;
- // width: 140upx;
- // text-align: center;
- // .twotabs {
- // font-size: 31upx;
- // color: #666666;
- // ;
- // font-weight: 500;
- // }
- // .twosrtabs {
- // color: #1678FF;
- // }
- // .twotabstwo {
- // font-size: 24upx;
- // color: #AAAAAA;
- // }
- }
- .one_tabqie {
- border-bottom: 8upx solid #1678FF;
- }
- }
- }
- //表格
- .exele {
- .box {
- .tr_one {
- display: flex;
- padding: 0 20upx;
- box-sizing: border-box;
- justify-content: space-between;
- th {
- // flex: 1;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 14upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- line-height: 83upx;
- height: 83upx;
- }
- }
- .two_tr {
- display: flex;
- padding: 0 20upx;
- box-sizing: border-box;
- justify-content: space-between;
- td {
- // flex: 1;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 83upx;
- height: 83upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .tdse {
- color: #E60012 !important;
- }
- .apply_span_xl{
- color: #32B16C !important;
- }
- .apply_span_xltwo{
- color: #ffa200 !important;
- }
- .apply_span_xlfive{
- color: #4c4b4b !important;
- }
- .apply_span_xlthreo{
- color: #f00404 !important;
- }
- .apply_span_xlforu{
- color: #aaaaaa !important;
- }
- // .apply_span_xla{
- // color: #1678FF;
- // text-decoration: underline ;
- // }
- .coiu {
- color: #EC1717;
- }
- }
- .two_trtwo {
- background-color: #EBEFF2;
- }
- }
- }
- }
- .banj {
- height: 86upx;
- width: 100%;
- // text-align: center;
- line-height: 86upx;
- // background-color: #F6F9FC;
- color: #AAAAAA;
- margin-top: 20upx;
- display: flex;
- justify-content: space-around;
- }
- .apply_box{
- .apply_item_input{
- padding: 0 33upx;
- // border-top: 1upx solid #F4F4F4;
- display: flex;
- height: 68upx;
- align-items: center;
- .apply_span_x{
- font-size: 28upx;
- color: #363535;
- span{
- color: #F22346;
- }
- }
- .input_r{
- font-size: 28upx;
- height: 100%;
- flex: 1;
- text-align: right;
- }
- .input_rtwo{
- line-height:68upx;
- }
- .input_rtwoss{
- color: #1678FF;
- }
- .input_rtwosss{
- color: #FF0000;
- }
- }
- .apply_title_jt{
- height: 130upx;
- border-top: 1upx solid #F4F4F4;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 32upx;
- span{
- font-size: 36upx;
- color: #333;
- font-weight: bold;
- }
- .apply_title_btn{
- width: 160upx;
- height: 60upx;
- font-size: 24upx;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #FF568C;
- border-radius: 8upx;
- .img{
- width: 30upx;
- height: 30upx;
- margin-right: 10upx;
- }
- }
- }
- .apply_title_jts{
- border:none;
- }
- .apply_title_jt_item{
- border-bottom: 9upx solid #F4F4F4;
- .apply_item_input_qx{
- color: #FF5185;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 112upx;
- font-size: 30upx;
- }
- }
- .apply_item_sfz{
- padding: 42upx 20upx;
- border-bottom: 9upx solid #F4F4F4;
- .apply_item_sfz_title{
- font-weight: bold;
- font-size: 34upx;
- margin-bottom: 40upx;
- margin-left: 2upx;
- }
- .apply_item_phones{
- display: flex;
- justify-content: space-between;
- .apply_item_phone{
- width: 340upx;
- height: 218upx;
- .img{
- width: 100%;
- height: 100%;
- border-radius: 20upx;
- }
- }
- }
- }
- .apply_item_zdxx{
- padding: 0 26upx;
- font-size: 34upx;
- font-weight: bold;
- color: #333;
- height: 112upx;
- line-height: 112upx;
- border: 1upx solid #F4F4F4;
- }
- .qt_div{
- height: 112upx;
- border-top: 1upx solid #F4F4F4;
- padding: 0 32upx;
- border-bottom: 9upx solid #F9F9F9;
- .input_l{
- height: 100%;
- font-size: 30upx;
- }
- }
- }
- .tabld{
- display: flex;
- // height: 90upx;
- box-shadow: 0px 7px 5px 0px rgba(218, 218, 218, 0.35);
- view {
- font-size:26upx ;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- text-align: center;
- flex: 1;
- // line-height: 70upx;
- display: flex;
- flex-direction: column;
- padding: 18rpx 0 20rpx;
- }
- .one_tabhu{
- color: #009FE8;
- position: relative;
- ::after{width: 28rpx;height: 6rpx;background: #009FE8;position: absolute;left: 50%;margin-left: -14rpx;bottom: 0;content: "";}
- }
- }
- .nbhe{
- display: flex;
- margin-bottom: 44upx;
- p{
- font-size: 25upx;
- flex: 1;
- padding: 0 77upx;
- display: flex;
- align-items: center;
- }
- p:nth-child(2){
- justify-content: flex-end;
- }
- img{
- width: 31upx;
- height: 29upx;
- margin-right: 11upx;
- }
- }
- .xinse{
- position: fixed;
- width: 100%;
- bottom: 0;
- left: 0;
- font-size: 33upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- height: 90upx;
- background-color: #00B034;
- text-align: center;
- line-height: 90upx;
- }
- .sous_sear{
- padding: 0rpx 32rpx;background: #FFFFFF;height: 112rpx;box-sizing: border-box;display: flex;align-items: center;
- .sous_tit{font-size: 28rpx;color: #343434;flex: 0 0 auto;}
- .sous_img{width: 18rpx;height: 32rpx;margin-left: 20rpx;flex: 0 0 auto;}
- .sous_input{font-size: 30rpx;color: #AAAAAA;flex: 1;text-align: right;}
- }
- // 搜索条件width: 562rpx;
- .sfixed{min-height: 840rpx;background: #FFFFFF;border-radius: 14rpx;padding: 40rpx 34rpx;box-sizing: border-box;position: fixed;left: 60rpx;right: 60rpx;top: 50%;transform: translateY(-50%);
- z-index: 1100;max-height: calc(100vh - 280rpx);overflow-y: auto;
- .sfixed_tit{font-size: 28rpx;font-weight: bold;color: #343434;line-height: 44rpx;text-align: center;}
- .sfixed_clo{width: 34rpx;height: 34rpx;position: absolute;right: 34rpx;top: 44rpx;}
- .sfixed_box{
- padding-top: 20rpx;
- .sfixed_inp{width: 100%;height: 76rpx;background:#F2F2F2;padding: 0 34rpx;box-sizing: border-box;font-size: 28rpx;color: #333333;margin-top: 30rpx;}
- .sfixed_line{width: 62rpx;height: 6rpx;background: #009FE8;margin: 38rpx auto 32rpx;}
- .sfixed_flex{display: flex;align-items: center;justify-content: space-between;
- .sfixed_a{font-size: 26rpx;font-weight: bold;color: #666666;}
- .sfixed_ar{font-size: 26rpx;font-weight: bold;color: #DF0024;}
- }
- }
- .sfixed_btn{width: 100%;height: 76rpx;background: #00B034;border: 0px solid #00B034;border-radius: 6rpx;font-size: 28rpx;font-weight: bold;
- color: #FFFFFF;text-align: center;line-height: 76rpx;margin-top: 62rpx;}
-
- }
- .delbox {
- width: 580rpx;
- background: #FFFFFF;
- border-radius: 14px;
- position: fixed;
- top: 50%;
- left: 80rpx;
- right: 80rpx;
- padding: 48rpx 34rpx 72rpx;
- box-sizing: border-box;
- z-index: 5;
- margin-top: -210rpx;
-
- .deltit {
- font-size: 28rpx;
- font-weight: bold;
- color: #343434;
- text-align: center;
- line-height: 40rpx;
- }
-
- .del_img {
- width: 34rpx;
- height: 34rpx;
- position: absolute;
- right: 34rpx;
- top: 44rpx;
- }
-
- .del_btn {
- width: 100%;
- height: 76rpx;
- background: #00B034;
- border-radius: 6rpx;
- font-size: 28rpx;
- font-weight: bold;
- color: #FFFFFF;
- text-align: center;
- line-height: 76rpx;
- }
-
- .del_list {
- display: flex;
- padding: 60rpx 0 40rpx;
- flex-wrap: wrap;
-
- .del_lista {
- width: 116rpx;
- height: 64rpx;
- background: #CACACA;
- border-radius: 32rpx;
- font-size: 26rpx;
- font-weight: 500;
- color: #FFFFFF;
- text-align: center;
- line-height: 64rpx;
- margin: 0 10rpx 20rpx 0;
-
- &.act {
- background-color: #019FE8;
- }
- }
- }
- }
-
-
- // 搜索弹窗新
- .searfixed{width: 648rpx;background: #FFFFFF;z-index: 1200;position: fixed;right: 0;top: 0;bottom: 0;display: flex;flex-direction: column;
- .searf_top{display: flex;align-items: center;justify-content: space-between;padding:20rpx 34rpx 20rpx 0;margin-bottom: 20rpx;flex:0 0 auto;
- .searf_topl{width: 80rpx;height: 50rpx;display: flex;align-items: center;padding-left: 34rpx;box-sizing: border-box;
- image{width: 18rpx;height: 32rpx;transform: rotate(180deg);}
- }
- .searf_topr{width: 98rpx;height: 42rpx;
- background: linear-gradient(-90deg, #3C6AF8, #5E8AC6);
- border-radius: 20rpx;font-size: 26rpx;color: #FFFFFF;line-height: 42rpx;text-align: center;}
- }
- .searf_cen{flex: 1;overflow-y: auto;padding: 0 34rpx;
- .searf_cenli{margin-bottom: 40rpx;
- .searf_cenlitit{font-size: 28rpx;font-weight: bold;color: #343434;margin-bottom: 24rpx;}
- .searf_cenlin{width: 100%;height: 70rpx;background: #F2F2F2;border-radius: 34rpx;padding: 0 40rpx;box-sizing: border-box;line-height: 70rpx;font-size: 28rpx;color: #333333;display: flex;align-items: center;overflow: hidden;
- .addsa{flex: 1;font-size: 28rpx;color: #333333;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
- .addsimg{width: 32rpx;height: 18rpx;flex: 0 0 auto;}
- }
- }
-
- }
- .searf_fot{width: 100%;height: 90rpx;
- background: linear-gradient(-90deg, #3C6AF8, #5E8AC6);line-height: 90rpx;text-align: center;font-weight: bold;
- color: #FFFFFF;font-size: 30rpx;}
- }
- </style>
|