<!--
@ 作者: 秦东
@ 时间: 2024-05-31 09:20:58
@ 备注: 固定App项目
-->
<script lang="ts" setup>
import { taskflowquery } from "@/api/DesignForm/type";

//引入页面
import MyToDoPage from "@/views/sysworkflow/lowcodepage/runApp/regularPage/myToDoPage.vue";
import CompletedMattersPage from "@/views/sysworkflow/lowcodepage/runApp/regularPage/completedMattersPage.vue";
import SendCopy from "@/views/sysworkflow/lowcodepage/runApp/regularPage/sendCopy.vue";
import MyCreate from "@/views/sysworkflow/lowcodepage/runApp/regularPage/myCreate.vue";
import MyDrafts from "@/views/sysworkflow/lowcodepage/runApp/regularPage/myDrafts.vue";

const props = defineProps({
  pickAppMenu: {
    type: Object,
    default() {
      return {};
    },
  },
  drawerWith: {
    type: Number,
    default: 0,
  },
});
const loadingTd = ref(false);
const searckFormRefTd = ref(ElForm); //表单
const taskFlowAryTd = ref<any>([]); //记录数组
//搜索条件参数
const selectInfoTd = reactive<taskflowquery>({
  page: 1,
  pagesize: 20,
  class: 2,
});
const totalstd = ref<number>(0); //总共多少条记录

//初始化数据
const initData = () => {
  selectInfoTd.page = 1;
  selectInfoTd.pagesize = 15;
  selectInfoTd.title = "";
  selectInfoTd.class = 2;
  selectInfoTd.state = 0;
};
//重置表单
const resetQueryTd = () => {
  searckFormRefTd.value.resetFields();
  initData();
};
</script>
<template>
  <el-scrollbar class="scroBox">{{props.pickAppMenu.isMain}}
    <MyToDoPage
      v-if="props.pickAppMenu.isMain == 1"
      :pick-app-menu="pickAppMenu"
      :drawer-with="props.drawerWith"
    />
    <CompletedMattersPage
      v-if="props.pickAppMenu.isMain == 2"
      :pick-app-menu="pickAppMenu"
      :drawer-with="props.drawerWith"
    />
    <SendCopy
      v-if="props.pickAppMenu.isMain == 3"
      :pick-app-menu="pickAppMenu"
      :drawer-with="props.drawerWith"
    />
    <MyCreate
      v-if="props.pickAppMenu.isMain == 4"
      :pick-app-menu="pickAppMenu"
      :drawer-with="props.drawerWith"
    />
    <MyDrafts
      v-if="props.pickAppMenu.isMain == 5"
      :pick-app-menu="pickAppMenu"
      :drawer-with="props.drawerWith"
    />
  </el-scrollbar>
</template>
<style lang="scss" scoped></style>
