From 3cc4abeb92d11d7a8b365928c5aa9452679fe06c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Mon, 19 Aug 2024 09:04:50 +0800
Subject: [PATCH] 责任人增加筛选条件
---
src/views/Admin/sameLevel.vue | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/src/views/Admin/sameLevel.vue b/src/views/Admin/sameLevel.vue
index d407693..df461d7 100644
--- a/src/views/Admin/sameLevel.vue
+++ b/src/views/Admin/sameLevel.vue
@@ -1,20 +1,26 @@
<template>
<div class="inner">
<a-row type="flex" justify="space-between" style="margin-bottom: 20px">
- <a-col :span="4" v-if="unittype && unittype !== null">
+ <a-col :span="4" v-if="unittype && unittype !== null" style="margin-bottom: 10px">
<a-button type="primary" @click="editData('add',{})">新增用户</a-button>
</a-col>
- <a-col :span="20">
- <a-row type="flex" :gutter="14">
- <a-col :span="6">
+ <a-col :span="24">
+ <a-row type="flex" :gutter="24">
+ <a-col :span="4">
<a-select v-model="search.searchParams.peerRecipientGroupId" placeholder="选择分组" style="width: 100%" @change="handleChange" allowClear show-search :filter-option="filterOption">
<a-select-option v-for="item in groupData" :value="item.id" :key="item.id">{{item.name}}</a-select-option>
</a-select>
</a-col>
- <a-col :span="6">
+ <a-col :span="3">
<a-input v-model="search.searchParams.company" placeholder="单位名称" style="width: 100%"/>
</a-col>
- <a-col :span="6" v-if="unittype == null || !unittype">
+ <a-col :span="3">
+ <a-input v-model="search.searchParams.name" placeholder="姓名" style="width: 100%"/>
+ </a-col>
+ <a-col :span="3">
+ <a-input v-model="search.searchParams.phone" placeholder="电话" style="width: 100%"/>
+ </a-col>
+ <a-col :span="4" v-if="unittype == null || !unittype">
<a-cascader :options="areaData" v-model="areaVal" placeholder="所属区域" expandTrigger="hover" :fieldNames="fieldNames" changeOnSelect @change="onChange" style="width: 100%"/>
</a-col>
<a-col :span="6">
@@ -74,6 +80,8 @@
city: '',
area: '',
town: '',
+ name: '',
+ phone: '',
peerRecipientGroupId: undefined
}
},
@@ -148,8 +156,9 @@
methods:{
async getUserList(){
const t = this
- if(t.search.searchParams.province == '' && t.search.searchParams.city == '' && t.search.searchParams.area == '' && t.search.searchParams.company == '' && t.search.searchParams.peerRecipientGroupId == undefined){
+ if(t.search.searchParams.phone == '' && t.search.searchParams.recipientName == '' && t.search.searchParams.province == '' && t.search.searchParams.city == '' && t.search.searchParams.area == '' && t.search.searchParams.company == '' && t.search.searchParams.peerRecipientGroupId == undefined){
const {searchParams,...data} = t.search
+ console.log(data,'data')
const res = await getRecipient(data)
if(res.data.code == 100){
t.tableData = res.data.data
@@ -206,6 +215,8 @@
city: '',
area: '',
town: '',
+ name: '',
+ phone: '',
peerRecipientGroupId: undefined
}
}
@@ -305,6 +316,8 @@
city: '',
area: '',
town: '',
+ name: '',
+ phone: '',
peerRecipientGroupId: undefined
}
if(value[0]){
--
Gitblit v1.9.2