|
|
@@ -3,17 +3,16 @@
|
|
|
<view style="width:100%;font-size:40upx;font-weight:bold;text-align: center;padding-top:30upx;padding-bottom:40upx;background-color: white;">失信人员查询系统</view>
|
|
|
<view style="background-color: white;">
|
|
|
<view style="width:100%;">
|
|
|
- <button class="admin-button-com big blue" style="margin-left:2%;" @click="">手机号</button>
|
|
|
- <button class="admin-button-com big" style="margin-left:10upx;" @click="">微信号</button>
|
|
|
- <button class="admin-button-com big" style="margin-left:10upx;" @click="">身份证</button>
|
|
|
- <button class="admin-button-com big" style="margin-left:10upx;" @click="">名 称</button>
|
|
|
+ <button class="admin-button-com big" :class="[searchType == 0 ? 'blue' : '']" style="margin-left:2%;" @click="changeSearch(0)">手机号</button>
|
|
|
+ <button class="admin-button-com big" :class="[searchType == 1 ? 'blue' : '']" style="margin-left:10upx;" @click="changeSearch(1)">微信号</button>
|
|
|
+ <button class="admin-button-com big" :class="[searchType == 2 ? 'blue' : '']" style="margin-left:10upx;" @click="changeSearch(2)">身份证</button>
|
|
|
<button class="admin-button-com big red" style="margin-right:2%;float: right;border: 1upx solid #3385FF;color:white;background-color:#3385FF;" @click="add()">新 增</button>
|
|
|
</view>
|
|
|
<view style="width:100%;text-align: center;padding-bottom:30upx;margin-top:10upx;">
|
|
|
- <input v-model="search" name="search" ref="searchRef" type="text" placeholder="这里搜索"
|
|
|
+ <input v-model="search" name="search" ref="searchRef" type="text" placeholder="这里搜索" @input="goSearch()" @focus="clearSearch()"
|
|
|
style="border:1upx solid #CCCCCC;width:96%;border-radius: 10upx;height:90upx;margin:0 auto;text-align: left;padding-left:15upx;font-size:32upx;" />
|
|
|
<view style="width:100%;font-size:30upx;color:black;margin:30upx 0 5upx 2%;text-align: left;font-size:32upx;">
|
|
|
- <text>失信人员 50人</text>
|
|
|
+ <text>失信人员 {{totalUserNum}}人</text>
|
|
|
<text style="float:right;color:#3385FF;text-decoration: underline;margin-right:40upx;" @click.stop="goMy()">我提交的记录</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -54,11 +53,15 @@
|
|
|
},
|
|
|
mixins: [list],
|
|
|
computed: {
|
|
|
- ...mapGetters(["getLoginInfo", "getDictionariesInfo"])
|
|
|
+ ...mapGetters({ loginInfo: "getLoginInfo"})
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- search:''
|
|
|
+ search:'',
|
|
|
+ searchType:0,
|
|
|
+ totalUserNum:0,
|
|
|
+ T:null,
|
|
|
+ loginStyle :0
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -74,31 +77,72 @@
|
|
|
} else {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}
|
|
|
- },
|
|
|
- mounted() {
|
|
|
-
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getList()
|
|
|
},
|
|
|
+ onShow () {
|
|
|
+ if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
|
|
|
+ this.loginStyle = 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ loginInfo(newVal) {
|
|
|
+ if(!this.$util.isEmpty(newVal.admin) && newVal.admin.currentShopId > 0){
|
|
|
+ this.loginStyle = 1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ goSearch(){
|
|
|
+ let that = this
|
|
|
+ if(this.T != null){
|
|
|
+ clearTimeout(this.T)
|
|
|
+ }
|
|
|
+ this.T = setTimeout(function(){
|
|
|
+ that.resetList()
|
|
|
+ that.getList()
|
|
|
+ },800)
|
|
|
+ },
|
|
|
+ changeSearch(type){
|
|
|
+ this.searchType = type
|
|
|
+ this.search = ''
|
|
|
+ this.resetList()
|
|
|
+ },
|
|
|
+ clearSearch(){
|
|
|
+ this.search = ''
|
|
|
+ this.resetList()
|
|
|
+ },
|
|
|
goMy(){
|
|
|
- this.$util.pageTo({url:"/admin/ll/myEventList"})
|
|
|
+ if(this.loginStyle == 0){
|
|
|
+ this.$util.confirmModal({content:'请先登录'},() => {
|
|
|
+ this.$util.pageTo({url: "/admin/home/login?fromType=2",type:2})
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$util.pageTo({url:"/admin/ll/myEventList"})
|
|
|
+ }
|
|
|
},
|
|
|
add(){
|
|
|
- this.$util.pageTo({url:"/admin/ll/add"})
|
|
|
+ if(this.loginStyle == 0){
|
|
|
+ this.$util.confirmModal({content:'请先登录'},() => {
|
|
|
+ this.$util.pageTo({url: "/admin/home/login?fromType=2",type:2})
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$util.pageTo({url:"/admin/ll/add"})
|
|
|
+ }
|
|
|
},
|
|
|
init(){
|
|
|
},
|
|
|
getList() {
|
|
|
- return getUserList().then((res) => {
|
|
|
- this.completes(res);
|
|
|
+ return getUserList({search:this.search,searchType:this.searchType}).then(res => {
|
|
|
+ this.totalUserNum = res.data.totalUserNum ? res.data.totalUserNum : 0
|
|
|
+ this.completes(res)
|
|
|
if (this.$util.isEmpty(res.data)){
|
|
|
return false
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|