|  | @@ -1,93 +1,25 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <van-tabs v-model="active" @click-tab="onClickTab">
 | 
	
		
			
				|  |  |      <van-tab title="当前">
 | 
	
		
			
				|  |  | -      <div class="content-wrapper">
 | 
	
		
			
				|  |  | -        <div class="filter-wrapper">
 | 
	
		
			
				|  |  | -          <div class="filter-item">
 | 
	
		
			
				|  |  | -            <div class="filter-btn" @click="showPicker = true"> 
 | 
	
		
			
				|  |  | -              {{ getTypeName(fieldValue) }}
 | 
	
		
			
				|  |  | -              <van-icon name="arrow-down" color="#ebecf0" size="1rem" />
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | -          </div>
 | 
	
		
			
				|  |  | -        </div>
 | 
	
		
			
				|  |  | -        <van-popup v-model:show="showPicker" round position="bottom">
 | 
	
		
			
				|  |  | -          <van-picker :columns="columns" @cancel="showPicker = false" @confirm="onConfirm" />
 | 
	
		
			
				|  |  | -        </van-popup>
 | 
	
		
			
				|  |  | -        <list01 class="ducha-group-wrapper" :type="fieldValue"></list01>
 | 
	
		
			
				|  |  | -      </div>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +      <current-component></current-component>
 | 
	
		
			
				|  |  |      </van-tab>
 | 
	
		
			
				|  |  |      <van-tab title="历史">
 | 
	
		
			
				|  |  | -      <current-component></current-component>
 | 
	
		
			
				|  |  |      </van-tab>
 | 
	
		
			
				|  |  |    </van-tabs>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script setup>
 | 
	
		
			
				|  |  |  import { onMounted, ref } from "vue";
 | 
	
		
			
				|  |  |  import CurrentComponent from "./current.vue";
 | 
	
		
			
				|  |  | -import List01 from "@/components/list01.vue";
 | 
	
		
			
				|  |  |  import { showToast } from 'vant';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const columns = [
 | 
	
		
			
				|  |  | -  { text: '稽查工作', value: '008' },
 | 
	
		
			
				|  |  | -];
 | 
	
		
			
				|  |  | -const fieldValue = ref('008');
 | 
	
		
			
				|  |  | -const showPicker = ref(false);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -const onConfirm = ({ selectedOptions }) => {
 | 
	
		
			
				|  |  | -  showPicker.value = false;
 | 
	
		
			
				|  |  | -  fieldValue.value = selectedOptions[0].text;
 | 
	
		
			
				|  |  | -};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  const active = ref('当前');
 | 
	
		
			
				|  |  |  const onClickTab = ({ title }) => showToast(title);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -function getTypeName(code) {
 | 
	
		
			
				|  |  | -  if (!code) return '';
 | 
	
		
			
				|  |  | -  return columns.find(item => item.value === code)?.text;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -onMounted(() => {
 | 
	
		
			
				|  |  | -})
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  | -<style lang="scss" scoped>
 | 
	
		
			
				|  |  | -.content-wrapper {
 | 
	
		
			
				|  |  | -  padding-top: 8px;
 | 
	
		
			
				|  |  | -  height: 100%;
 | 
	
		
			
				|  |  | -  overflow: auto;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -  .ducha-group-wrapper {
 | 
	
		
			
				|  |  | -    height: calc(100% - 35px);
 | 
	
		
			
				|  |  | -    overflow: auto;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -.filter-wrapper {
 | 
	
		
			
				|  |  | -  display: flex;
 | 
	
		
			
				|  |  | -  flex-direction: row;
 | 
	
		
			
				|  |  | -  align-items: center;
 | 
	
		
			
				|  |  | -  margin: 0 8px 8px 8px;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -  .filter-item {
 | 
	
		
			
				|  |  | -    width: auto;
 | 
	
		
			
				|  |  | -    padding: 0 10px;
 | 
	
		
			
				|  |  | -    background-color: #fff;
 | 
	
		
			
				|  |  | -    border-radius: 10px;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    .filter-btn {
 | 
	
		
			
				|  |  | -      padding: 3px 1px;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +<style lang="scss">
 | 
	
		
			
				|  |  |  .van-tabs {
 | 
	
		
			
				|  |  |    height: 100%;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -</style>
 | 
	
		
			
				|  |  | -<style lang="scss">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  .van-tabs__content {
 | 
	
		
			
				|  |  |    height: calc(100% - 44px);
 | 
	
		
			
				|  |  |  
 |