我的申请页面 筛选功能

This commit is contained in:
a0049873 2022-07-14 17:20:40 +08:00
parent 38ebe981fa
commit bf6676dd06
1 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="on-the-right-side-of-the-list"> <div class="on-the-right-side-of-the-list">
<div class="title">我的申请</div> <div class="title" style="margin-bottom: 0.2rem">我的申请</div>
<!-- <div class="sousuokuang"> <!-- <div class="sousuokuang">
<a-input-search <a-input-search
v-model:value="name" v-model:value="name"
@ -18,7 +18,7 @@
重置 重置
</a-button> </a-button>
</div> --> </div> -->
<div class="tab"> <div class="tab" style="margin-bottom: 0.1rem">
<span>类型</span> <span>类型</span>
<div <div
:class="typeIndex == index ? 'tabclass' : ' '" :class="typeIndex == index ? 'tabclass' : ' '"
@ -29,8 +29,8 @@
{{ item }} {{ item }}
</div> </div>
</div> </div>
<!-- <div class="tab"> <div class="tab">
<span>筛选</span> <span>申请状态</span>
<div <div
:class="tabIndex == index ? 'tabclass' : ' '" :class="tabIndex == index ? 'tabclass' : ' '"
@click="tabqiehuan(item, index)" @click="tabqiehuan(item, index)"
@ -47,7 +47,7 @@
{{ item }} {{ item }}
</template> </template>
</div> </div>
</div> --> </div>
<div v-if="contentList.data.length > 0"> <div v-if="contentList.data.length > 0">
<div class="content"> <div class="content">
<div <div
@ -94,7 +94,7 @@
当前节点{{ item.currentTaskList[0].taskName }} 当前节点{{ item.currentTaskList[0].taskName }}
</p> </p>
</div> --> </div> -->
<div> <!-- <div>
<p <p
class="content-body-content-son" class="content-body-content-son"
v-if="item.name === '申请摄像头列表'" v-if="item.name === '申请摄像头列表'"
@ -146,7 +146,7 @@
</a-button> </a-button>
</p> </p>
</template> </template>
</div> </div> -->
<!-- <div class="content-body-title"></div> <!-- <div class="content-body-title"></div>
<div class="content-body-content"> <div class="content-body-content">
<p class="content-body-content-son"></p> <p class="content-body-content-son"></p>
@ -375,6 +375,8 @@
// //
const changeType = (item, index) => { const changeType = (item, index) => {
console.log(item, index) console.log(item, index)
tabIndex.value = 0
ended.value = ''
page.value = 1 page.value = 1
typeIndex.value = index typeIndex.value = index
getApplyList() getApplyList()
@ -535,7 +537,7 @@
const params = { const params = {
page: page.value, page: page.value,
limit: 4, limit: 4,
// ended: ended.value, ended: ended.value,
// name: name.value, // name: name.value,
} }
if (typeIndex.value == 0) { if (typeIndex.value == 0) {