|
|
@@ -6,12 +6,20 @@
|
|
|
<van-tab title="随访计划"></van-tab>
|
|
|
<van-tab title="历史随访"></van-tab>
|
|
|
</van-tabs>
|
|
|
- <van-search v-show="active==1" v-model="historyform.name" shape="round" show-action placeholder="儿童姓名" @search="onSearch">
|
|
|
- <template #action>
|
|
|
- <div @click="onSearch">搜索</div>
|
|
|
- </template>
|
|
|
- </van-search>
|
|
|
+ <div class="search_bg">
|
|
|
+ <van-search v-if="roleId ==21" v-show="active==0" v-model="followUpform.name" shape="round" show-action placeholder="儿童姓名" @search="onSearchPlan">
|
|
|
+ <template #action>
|
|
|
+ <div @click="onSearchPlan">搜索</div>
|
|
|
+ </template>
|
|
|
+ </van-search>
|
|
|
+ <van-search v-show="active==1" v-model="historyform.name" shape="round" show-action placeholder="儿童姓名" @search="onSearch">
|
|
|
+ <template #action>
|
|
|
+ <div @click="onSearch">搜索</div>
|
|
|
+ </template>
|
|
|
+ </van-search>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
<van-list v-model="loading" :immediate-check="false" :finished="finished" finished-text="没有更多了" @load="onLoad">
|
|
|
<plan v-show="active==0" :planList="planList"></plan>
|
|
|
<history v-show="active==1" :historyList="historyList"></history>
|
|
|
@@ -32,9 +40,11 @@ export default {
|
|
|
finished: false,
|
|
|
planList: [],
|
|
|
historyList: [],
|
|
|
+ roleId:JSON.parse(sessionStorage.getItem('userInfo')).roleIdStr,
|
|
|
followUpform: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
+ name: ''
|
|
|
},
|
|
|
historyform: {
|
|
|
pageNum: 1,
|
|
|
@@ -115,6 +125,10 @@ export default {
|
|
|
this.historyFollowUp()
|
|
|
}
|
|
|
},
|
|
|
+ onSearchPlan() {
|
|
|
+ this.followUpform.pageNum = 1
|
|
|
+ this.followUpPage()
|
|
|
+ },
|
|
|
onSearch() {
|
|
|
this.historyform.pageNum = 1
|
|
|
this.historyFollowUp()
|