Browse Source

添加搜索框

WINDOWS-7IFQK7E\EDY 2 years ago
parent
commit
2909cfb3c9
24 changed files with 22901 additions and 884 deletions
  1. 21071 0
      package-lock.json
  2. 64 29
      src/pages/equipmentPurchaseApply/budgetOfPlant/myApplyFor/index.vue
  3. 249 169
      src/pages/equipmentPurchaseApply/budgetOfPlant/myAuditFor/index.vue
  4. 20 0
      src/pages/equipmentPurchaseApply/equipmentItemLibrary/myPurchase/index.vue
  5. 176 116
      src/pages/equipmentPurchaseApply/equipmentItemLibrary/projectLibrary/index.vue
  6. 55 21
      src/pages/officialDocumentManager/documentLibrary/index.vue
  7. 55 21
      src/pages/officialDocumentManager/myOfficialDocument/index.vue
  8. 55 21
      src/pages/officialDocumentManager/todoOffcialDoucument/index.vue
  9. 60 22
      src/pages/officialDocumentManager/todoReadDoucument/bureauDocument/index.vue
  10. 60 22
      src/pages/officialDocumentManager/todoReadDoucument/schoolDoucment/index.vue
  11. 49 18
      src/pages/overtimeMealFeeSubsidy/workbench/myApplyFor/index.vue
  12. 115 63
      src/pages/overtimeMealFeeSubsidy/workbench/myAuditFor/index.vue
  13. 50 17
      src/pages/projectManager/projectDatabase/index.vue
  14. 53 18
      src/pages/projectManager/projectFlowManger/index.vue
  15. 49 16
      src/pages/projectManager/projectManageControl/index.vue
  16. 44 16
      src/pages/sanZhongYiDa/projectApply/myApplyFor/index.vue
  17. 97 57
      src/pages/sanZhongYiDa/projectApply/myAuditFor/index.vue
  18. 44 16
      src/pages/sanZhongYiDa/projectApply/myAudited/index.vue
  19. 47 16
      src/pages/sanZhongYiDa/projectReceiveApproval/index.vue
  20. 82 45
      src/pages/sanZhongYiDa/projectWaitAudit/index.vue
  21. 51 16
      src/pages/techerFlowManager/annualAssessmentSum/index.vue
  22. 51 16
      src/pages/techerFlowManager/exteriorPersonManger/index.vue
  23. 253 133
      src/pages/techerFlowManager/teacherPerformanceAssessment/index.vue
  24. 51 16
      src/pages/techerFlowManager/techerSituationSum/index.vue

File diff suppressed because it is too large
+ 21071 - 0
package-lock.json


+ 64 - 29
src/pages/equipmentPurchaseApply/budgetOfPlant/myApplyFor/index.vue

@@ -1,40 +1,75 @@
 <script setup>
-import { userInfo } from '~/store/user'
+import { userInfo } from "~/store/user";
 
-const { user_realname } = userInfo
-const router = useRouter()
+const { user_realname } = userInfo;
+const router = useRouter();
 function cellClick(xm_id) {
-    router.push({ path: '/equipmentPurchaseApply/budgetOfPlant/myApplyFor/detail', query: { xm_id } })
+  router.push({
+    path: "/equipmentPurchaseApply/budgetOfPlant/myApplyFor/detail",
+    query: { xm_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-    loadingMyApplyFor.value = true
-    request({
-        url: '/jdbg/sbcg_cgxm/index',
-        data: {
-            page: pageMyApplyFor,
-            limit: 20,
-            my_check: '',
-            my_xm: 1,
-        },
-    }).then((res) => {
-        const data = res.data
-        listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-        finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-        pageMyApplyFor++
-        loadingMyApplyFor.value = false
-    })
+  loadingMyApplyFor.value = true;
+  request({
+    url: "/jdbg/sbcg_cgxm/index",
+    data: {
+      page: pageMyApplyFor,
+      limit: 20,
+      my_check: "",
+      my_xm: 1,
+      ...param,
+    },
+  }).then((res) => {
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
-    <van-list v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
-        @load="onLoadMyApplyFor">
-        <van-cell v-for="(item,index) in listMyApplyFor" :key="item" :title="`${index+1}\u00A0\u00A0\u00A0${item.xm_name}`"
-            @click="cellClick(item.xm_id)" />
-    </van-list>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
+  <van-list
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
+    @load="onLoadMyApplyFor"
+  >
+    <van-cell
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      :title="`${index + 1}\u00A0\u00A0\u00A0${item.xm_name}`"
+      @click="cellClick(item.xm_id)"
+    />
+  </van-list>
 </template>

+ 249 - 169
src/pages/equipmentPurchaseApply/budgetOfPlant/myAuditFor/index.vue

@@ -1,225 +1,305 @@
 <script setup>
-import { showConfirmDialog, showToast } from 'vant';
-import { userInfo } from '~/store/user'
-const { user_realname, user_id } = userInfo
-const router = useRouter()
+import { showConfirmDialog, showToast } from "vant";
+import { userInfo } from "~/store/user";
+const { user_realname, user_id } = userInfo;
+const router = useRouter();
 function cellClick(xm_id) {
-    router.push({ path: '/equipmentPurchaseApply/budgetOfPlant/myAuditFor/detail', query: { xm_id } })
+  router.push({
+    path: "/equipmentPurchaseApply/budgetOfPlant/myAuditFor/detail",
+    query: { xm_id },
+  });
 }
 
-let show = $ref(false);//遮罩层
+let show = $ref(false); //遮罩层
 let auditShow = $ref(false);
 let auditedShow = $ref(false);
-let auditedData = $ref({});//已审核信息
+let auditedData = $ref({}); //已审核信息
 let auditCheck = $ref();
-let rejectMsg = $ref('');
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+let rejectMsg = $ref("");
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-    loadingMyApplyFor.value = true
-    request({
-        url: '/jdbg/sbcg_cgxm/index',
-        data: {
-            page: pageMyApplyFor,
-            limit: 20,
-            my_check: 1,
-            my_xm: '',
-        },
-    }).then((res) => {
-        const data = res.data
-        listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-        finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-        pageMyApplyFor++
-        loadingMyApplyFor.value = false
-    })
-}
-let sh_id = $ref('');
+  loadingMyApplyFor.value = true;
+  request({
+    url: "/jdbg/sbcg_cgxm/index",
+    data: {
+      page: pageMyApplyFor,
+      limit: 20,
+      my_check: 1,
+      my_xm: "",
+      ...param,
+    },
+  }).then((res) => {
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
+}
+let sh_id = $ref("");
 function handleAudit(xm_id) {
-    auditShow = true;
-    sh_id = xm_id;
-    console.log(sh_id, '222222222');
+  auditShow = true;
+  sh_id = xm_id;
+  console.log(sh_id, "222222222");
 }
 function onBeforeClose(action) {
-    if (action === 'confirm') {
-        auditConfirm();
-    } else {
-        auditShow = false;
-    }
+  if (action === "confirm") {
+    auditConfirm();
+  } else {
+    auditShow = false;
+  }
 }
 function auditConfirm() {
-    if (!auditCheck) {
-        showToast("请选择是否通过~");
-    } else {
-        if (auditCheck == "3" && rejectMsg == "") {
-            return showToast("请填写反驳原因");
-        }
-        request({
-            url: '/jdbg/sbcg_cgxm/check',
-            data: {
-                sh_id,
-                sh_status: auditCheck,
-                sh_reason: rejectMsg,
-            }
-        }).then(res => {
-            if (res.code == '1') {
-                showToast(res.msg);
-                listMyApplyFor.value = []
-                pageMyApplyFor = 1
-                onLoadMyApplyFor()
-            }
-        })
+  if (!auditCheck) {
+    showToast("请选择是否通过~");
+  } else {
+    if (auditCheck == "3" && rejectMsg == "") {
+      return showToast("请填写反驳原因");
     }
+    request({
+      url: "/jdbg/sbcg_cgxm/check",
+      data: {
+        sh_id,
+        sh_status: auditCheck,
+        sh_reason: rejectMsg,
+      },
+    }).then((res) => {
+      if (res.code == "1") {
+        showToast(res.msg);
+        listMyApplyFor.value = [];
+        pageMyApplyFor = 1;
+        onLoadMyApplyFor();
+      }
+    });
+  }
 }
 function handleAudited(item) {
-    auditedShow = true;
-    show = true;
-    request({
-        url: '/jdbg/sbcg_cgxm/detail',
-        data: {
-            xm_id: item.xm_id,
-        }
-    }).then(res => {
-        if (res.code == '1') {
-            res.data.one_info.shjl.forEach(el => {
-                if (el.sh_user_id === user_id) {
-                    auditedData = el;
-                }
-            })
+  auditedShow = true;
+  show = true;
+  request({
+    url: "/jdbg/sbcg_cgxm/detail",
+    data: {
+      xm_id: item.xm_id,
+    },
+  }).then((res) => {
+    if (res.code == "1") {
+      res.data.one_info.shjl.forEach((el) => {
+        if (el.sh_user_id === user_id) {
+          auditedData = el;
         }
-    })
-
+      });
+    }
+  });
 }
 function cancel() {
-    auditedShow = false;
-    show = false;
+  auditedShow = false;
+  show = false;
 }
 </script>
 
 <template>
-    <van-list v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
-        @load="onLoadMyApplyFor">
-        <van-cell v-for="(item, index) in listMyApplyFor" :key="item" class="items-center">
-            <template #title>
-                <p @click="cellClick(item.xm_id)" class="cursor-pointer w-full">{{ index + 1 }} {{ item.xm_name }}</p>
-            </template>
-            <template #right-icon>
-                <van-button class="w-60px"
-                    v-if="(item.xm_status == 3 && item.is_check === 0) || (item.xm_status == 2 && item.is_check === 0)"
-                    type="primary" size="small" @click="handleAudit(item.xm_id)">审核</van-button>
-                <van-button class="w-60px bg-hex-BDBDBD border-hex-BDBDBD audited" plain
-                    v-else-if="item.xm_status == 3 && item.is_check == 1" type="primary" size="small" @click="handleAudited(item)">已审核</van-button>
-                <van-button class="w-60px bg-hex-BDBDBD border-hex-BDBDBD audited" plain v-else-if="item.xm_status == 5"
-                    type="primary" size="small" @click="handleAudited(item)">已通过</van-button>
-                <van-button class="w-60px bg-hex-BDBDBD border-hex-BDBDBD un_audited" plain
-                    v-else-if="item.xm_status == 5 || item.xm_status == 4" type="primary" size="small"
-                    @click="handleAudited(item)">已退回</van-button>
-            </template>
-        </van-cell>
-    </van-list>
-    <van-overlay :show="show" />
-    <!-- 审核弹窗 -->
-    <van-dialog v-model:show="auditShow" title="审核" show-cancel-button class="pl-30px" :before-close="onBeforeClose">
-        <van-radio-group v-model="auditCheck">
-            <van-radio name="2">通过</van-radio>
-            <van-radio name="3">不通过</van-radio>
-        </van-radio-group>
-        <!-- <input type="textarea" v-if="auditCheck==2" v-model="rejectMsg" class="textarea" cols="30" rows="3"></input> -->
-        <textarea class="textarea" v-if="auditCheck == 3" v-model="rejectMsg" rows="4" placeholder="填写不通过原因"></textarea>
-    </van-dialog>
-    <!-- 已审核弹窗 -->
-    <div class="plan-nav reject-nav" v-show="auditedShow">
-        <van-icon class="cha" @click="cancel" name="cross" size="5vw"></van-icon>
-        <h3>查看详情</h3>
-        <p class="text_blue">{{ auditedData.sh_status === '2' ? '通过' : '不通过' }}</p>
-        <p class="text-gray-500 mt-10px" v-if="auditedData.sh_reason">{{ auditedData.sh_reason }}</p>
-    </div>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
+  <van-list
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
+    @load="onLoadMyApplyFor"
+  >
+    <van-cell
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      class="items-center"
+    >
+      <template #title>
+        <p @click="cellClick(item.xm_id)" class="cursor-pointer w-full">
+          {{ index + 1 }} {{ item.xm_name }}
+        </p>
+      </template>
+      <template #right-icon>
+        <van-button
+          class="w-60px"
+          v-if="
+            (item.xm_status == 3 && item.is_check === 0) ||
+            (item.xm_status == 2 && item.is_check === 0)
+          "
+          type="primary"
+          size="small"
+          @click="handleAudit(item.xm_id)"
+          >审核</van-button
+        >
+        <van-button
+          class="w-60px bg-hex-BDBDBD border-hex-BDBDBD audited"
+          plain
+          v-else-if="item.xm_status == 3 && item.is_check == 1"
+          type="primary"
+          size="small"
+          @click="handleAudited(item)"
+          >已审核</van-button
+        >
+        <van-button
+          class="w-60px bg-hex-BDBDBD border-hex-BDBDBD audited"
+          plain
+          v-else-if="item.xm_status == 5"
+          type="primary"
+          size="small"
+          @click="handleAudited(item)"
+          >已通过</van-button
+        >
+        <van-button
+          class="w-60px bg-hex-BDBDBD border-hex-BDBDBD un_audited"
+          plain
+          v-else-if="item.xm_status == 5 || item.xm_status == 4"
+          type="primary"
+          size="small"
+          @click="handleAudited(item)"
+          >已退回</van-button
+        >
+      </template>
+    </van-cell>
+  </van-list>
+  <van-overlay :show="show" />
+  <!-- 审核弹窗 -->
+  <van-dialog
+    v-model:show="auditShow"
+    title="审核"
+    show-cancel-button
+    class="pl-30px"
+    :before-close="onBeforeClose"
+  >
+    <van-radio-group v-model="auditCheck">
+      <van-radio name="2">通过</van-radio>
+      <van-radio name="3">不通过</van-radio>
+    </van-radio-group>
+    <!-- <input type="textarea" v-if="auditCheck==2" v-model="rejectMsg" class="textarea" cols="30" rows="3"></input> -->
+    <textarea
+      class="textarea"
+      v-if="auditCheck == 3"
+      v-model="rejectMsg"
+      rows="4"
+      placeholder="填写不通过原因"
+    ></textarea>
+  </van-dialog>
+  <!-- 已审核弹窗 -->
+  <div class="plan-nav reject-nav" v-show="auditedShow">
+    <van-icon class="cha" @click="cancel" name="cross" size="5vw"></van-icon>
+    <h3>查看详情</h3>
+    <p class="text_blue">
+      {{ auditedData.sh_status === "2" ? "通过" : "不通过" }}
+    </p>
+    <p class="text-gray-500 mt-10px" v-if="auditedData.sh_reason">
+      {{ auditedData.sh_reason }}
+    </p>
+  </div>
 </template>
 
 <style lang="scss" scoped>
 .textarea {
-    width: 90%;
-    /* height: 15vw; */
-    margin: 0 auto;
-    border: 1px solid #ccc;
-    border-radius: 10px;
-    padding-left: 2px;
-    background: #f2f2f2;
+  width: 90%;
+  /* height: 15vw; */
+  margin: 0 auto;
+  border: 1px solid #ccc;
+  border-radius: 10px;
+  padding-left: 2px;
+  background: #f2f2f2;
 }
 
 .van-radio-group {
-    margin: 20px auto;
+  margin: 20px auto;
 
-    .van-radio {
-        margin: 20px auto;
-    }
+  .van-radio {
+    margin: 20px auto;
+  }
 }
 
 .text_blue {
-    color: #003EEE;
+  color: #003eee;
 }
 
 ::v-deep .audited {
-    .van-button__text {
-        color: #fff !important;
-    }
+  .van-button__text {
+    color: #fff !important;
+  }
 }
-::v-deep .un_audited{
-    color: red;
+::v-deep .un_audited {
+  color: red;
 }
 
 .plan-nav {
-    width: 80vw;
-    height: 70vw;
-    color: #333333;
-    background-color: #fff;
-    position: fixed;
-    top: 35vw;
-    left: 10vw;
-    border-radius: 2vw;
-    z-index: 5;
-    padding: 0 5vw;
-    box-sizing: border-box;
+  width: 80vw;
+  height: 70vw;
+  color: #333333;
+  background-color: #fff;
+  position: fixed;
+  top: 35vw;
+  left: 10vw;
+  border-radius: 2vw;
+  z-index: 5;
+  padding: 0 5vw;
+  box-sizing: border-box;
 }
 
 .cha {
-    display: block;
-    font-size: 20px;
-    position: absolute;
-    right: 5vw;
-    top: 5vw;
-    cursor: pointer;
+  display: block;
+  font-size: 20px;
+  position: absolute;
+  right: 5vw;
+  top: 5vw;
+  cursor: pointer;
 }
 
 h3 {
-    display: block;
-    width: 12vw;
-    height: 10vw;
-    font-size: 5vw;
-    font-weight: 400;
-    position: relative;
+  display: block;
+  width: 12vw;
+  height: 10vw;
+  font-size: 5vw;
+  font-weight: 400;
+  position: relative;
 }
 
 h3::before {
-    position: absolute;
-    content: "";
-    width: 100%;
-    height: 2vw;
-    bottom: 3.3vw;
-    left: 0;
-    border-radius: 10vw;
-    background-color: #c5c5ff;
-    opacity: 0.6;
+  position: absolute;
+  content: "";
+  width: 100%;
+  height: 2vw;
+  bottom: 3.3vw;
+  left: 0;
+  border-radius: 10vw;
+  background-color: #c5c5ff;
+  opacity: 0.6;
 }
 
 .reject-nav {
-    padding: 20px;
+  padding: 20px;
 
-    h3 {
-        width: 25vw;
-        font-size: 4.4vw;
-        text-align: center;
-    }
+  h3 {
+    width: 25vw;
+    font-size: 4.4vw;
+    text-align: center;
+  }
 }
 </style>

+ 20 - 0
src/pages/equipmentPurchaseApply/equipmentItemLibrary/myPurchase/index.vue

@@ -17,6 +17,9 @@ const listMyApplyFor = ref([])
 const loadingMyApplyFor = ref(false)
 const finishedMyApplyFor = ref(false)
 let pageMyApplyFor = 1
+const param = $ref({
+  keyword: '',
+})
 function onLoadMyApplyFor() {
     loadingMyApplyFor.value = true
     request({
@@ -25,6 +28,7 @@ function onLoadMyApplyFor() {
             page: pageMyApplyFor,
             limit: 20,
             xm_fp_user: 1,
+            ...param
         },
     }).then((res) => {
         const data = res.data
@@ -34,6 +38,15 @@ function onLoadMyApplyFor() {
         loadingMyApplyFor.value = false
     })
 }
+function onClickSearch() {
+  reGetList()
+}
+function reGetList() {
+  pageMyApplyFor = 1
+  listMyApplyFor.value = []
+  finishedMyApplyFor.value = false
+  onLoadMyApplyFor()
+}
 function handleAccomplish(xm_id) {
     showConfirmDialog({
         message:
@@ -64,6 +77,13 @@ function handleAccomplish(xm_id) {
 </script>
 
 <template>
+<van-search v-model="param.keyword" :clearable="false" show-action placeholder="请输入搜索关键词" @search="onClickSearch">
+      <template #action>
+        <div @click="onClickSearch">
+          搜索
+        </div>
+      </template>
+    </van-search>
     <van-list v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
         @load="onLoadMyApplyFor">
         <van-cell v-for="(item, index) in listMyApplyFor" :key="item" class="items-center">

+ 176 - 116
src/pages/equipmentPurchaseApply/equipmentItemLibrary/projectLibrary/index.vue

@@ -1,159 +1,219 @@
 <script setup>
-import { showConfirmDialog, showToast } from 'vant';
-import { userInfo } from '~/store/user'
+import { showConfirmDialog, showToast } from "vant";
+import { userInfo } from "~/store/user";
 
-const { user_realname, user_id } = userInfo
-const router = useRouter()
+const { user_realname, user_id } = userInfo;
+const router = useRouter();
 function cellClick(xm_id) {
-    router.push({ path: '/equipmentPurchaseApply/equipmentItemLibrary/projectLibrary/detail', query: { xm_id } })
+  router.push({
+    path: "/equipmentPurchaseApply/equipmentItemLibrary/projectLibrary/detail",
+    query: { xm_id },
+  });
 }
 
-
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-    loadingMyApplyFor.value = true
-    request({
-        url: '/jdbg/sbcg_cgxm/index',
-        data: {
-            page: pageMyApplyFor,
-            limit: 20,
-            xm_status: "5",
-        },
-    }).then((res) => {
-        const data = res.data
-        listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-        finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-        pageMyApplyFor++
-        loadingMyApplyFor.value = false
-    })
+  loadingMyApplyFor.value = true;
+  request({
+    url: "/jdbg/sbcg_cgxm/index",
+    data: {
+      page: pageMyApplyFor,
+      limit: 20,
+      xm_status: "5",
+      ...param,
+    },
+  }).then((res) => {
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
-
 // 处理树结构数据
 function dealData(item) {
-    item.forEach(element => {
-        if (element.children && element.children.length > 0) {
-            dealData(element.children)
-        } else if (element.tag === 'org') {
-            element.disabled = true;
-        }
-    });
+  item.forEach((element) => {
+    if (element.children && element.children.length > 0) {
+      dealData(element.children);
+    } else if (element.tag === "org") {
+      element.disabled = true;
+    }
+  });
 }
 //组织机构数树形
 let treeData = $ref([]);
 function getOrgTree() {
-    let transObj = {
-        show_all: 1
+  let transObj = {
+    show_all: 1,
+  };
+  request({
+    url: "/user/org/org_member_tree",
+    data: transObj,
+  }).then((res) => {
+    if (res.code == "1") {
+      treeData = res.data.one_info;
+      dealData(treeData);
     }
-    request({
-        url: '/user/org/org_member_tree',
-        data: transObj
-    }).then(res => {
-        if (res.code == "1") {
-            treeData = res.data.one_info;
-            dealData(treeData);
-        }
-    })
+  });
 }
 const fieldNames = {
-    text: 'label',
-    value: 'tree_id',
-    children: 'children',
+  text: "label",
+  value: "tree_id",
+  children: "children",
 };
 // #region 分配人员
 let allotShow = $ref(false);
-let id = $ref('');//项目id
+let id = $ref(""); //项目id
 function handleAllot(xm_id) {
-    getOrgTree()
-    allotShow = true;
-    id = xm_id;
+  getOrgTree();
+  allotShow = true;
+  id = xm_id;
 }
 const onFinish = ({ selectedOptions }) => {
-    let fp_user = selectedOptions[selectedOptions.length - 1].tree_id;
-    let fp_name = selectedOptions[selectedOptions.length - 1].label;
-    showConfirmDialog({
-        message:
-            `确定将此任务分配给${fp_name}?`,
+  let fp_user = selectedOptions[selectedOptions.length - 1].tree_id;
+  let fp_name = selectedOptions[selectedOptions.length - 1].label;
+  showConfirmDialog({
+    message: `确定将此任务分配给${fp_name}?`,
+  })
+    .then(() => {
+      request({
+        url: "/jdbg/sbcg_cgxm/edit",
+        data: {
+          xm_id: id,
+          jdbg_sbcg_cgxm: {
+            xm_fp_user: fp_user,
+          },
+        },
+      }).then((res) => {
+        if (res.code == "1") {
+          allotShow = false;
+          showToast(res.msg);
+          listMyApplyFor.value = [];
+          pageMyApplyFor = 1;
+          onLoadMyApplyFor();
+        }
+      });
     })
-        .then(() => {
-            request({
-                url: '/jdbg/sbcg_cgxm/edit',
-                data: {
-                    xm_id: id,
-                    jdbg_sbcg_cgxm: {
-                        xm_fp_user: fp_user,
-                    },
-                },
-            }).then(res => {
-                if (res.code == '1') {
-                    allotShow = false;
-                    showToast(res.msg);
-                    listMyApplyFor.value = []
-                    pageMyApplyFor = 1
-                    onLoadMyApplyFor()
-                }
-            })
-        })
-        .catch(() => {
-            // on cancel
-        });
+    .catch(() => {
+      // on cancel
+    });
 };
 
 // #endregion
 
 // #region 已分配详情
 let allocatedShow = $ref(false);
-let allocatedData = $ref({})
+let allocatedData = $ref({});
 function handleAllocated(item) {
-    allocatedShow = true;
-    allocatedData = item;
+  allocatedShow = true;
+  allocatedData = item;
 }
 // #endregion
-
-
-
 </script>
 
 <template>
-    <van-list v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
-        @load="onLoadMyApplyFor">
-        <van-cell v-for="(item, index) in listMyApplyFor" :key="item" class="items-center">
-            <template #title>
-                <p class="cursor-pointer w-full" @click="cellClick(item.xm_id)">{{ index + 1 }}. {{ item.xm_name }}</p>
-            </template>
-            <template #right-icon>
-                <van-button class="w-60px" v-if="(item.xm_fp_user == 0 && item.create_user_id === user_id)" type="primary"
-                    size="small" @click="handleAllot(item.xm_id)">分配</van-button>
-                <van-button class="w-60px bg-hex-BDBDBD border-hex-BDBDBD audited" v-if="(item.xm_fp_user !== '0')"
-                    type="primary" size="small" @click="handleAllocated(item)">已分配</van-button>
-            </template>
-        </van-cell>
-    </van-list>
-    <!-- 分配级联 -->
-    <van-popup v-model:show="allotShow" round position="bottom">
-        <van-cascader v-model="cascaderValue" title="请选择分配人员" :options="treeData" @close="allotShow = false"
-            @finish="onFinish" :field-names="fieldNames" />
-    </van-popup>
-    <!-- 已分配详情 -->
-    <van-dialog v-model:show="allocatedShow" title="分配详情" :show-cancel-button="false" class="">
-        <div class="w-4/5 center text-18px text-gray-600 leading-loose">
-            <p v-if="allocatedData.fp_user_name">{{ allocatedData?.fp_user_name }} <span class="ml-5px">{{
-                allocatedData.modify_dateline
-            }}</span></p>
-            <p>状态: <span class="ml-10px">{{ allocatedData.xm_is_wc == '1' ? '完成' : '未完成' }}</span> </p>
-        </div>
-    </van-dialog>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
+  <van-list
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
+    @load="onLoadMyApplyFor"
+  >
+    <van-cell
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      class="items-center"
+    >
+      <template #title>
+        <p class="cursor-pointer w-full" @click="cellClick(item.xm_id)">
+          {{ index + 1 }}. {{ item.xm_name }}
+        </p>
+      </template>
+      <template #right-icon>
+        <van-button
+          class="w-60px"
+          v-if="item.xm_fp_user == 0 && item.create_user_id === user_id"
+          type="primary"
+          size="small"
+          @click="handleAllot(item.xm_id)"
+          >分配</van-button
+        >
+        <van-button
+          class="w-60px bg-hex-BDBDBD border-hex-BDBDBD audited"
+          v-if="item.xm_fp_user !== '0'"
+          type="primary"
+          size="small"
+          @click="handleAllocated(item)"
+          >已分配</van-button
+        >
+      </template>
+    </van-cell>
+  </van-list>
+  <!-- 分配级联 -->
+  <van-popup v-model:show="allotShow" round position="bottom">
+    <van-cascader
+      v-model="cascaderValue"
+      title="请选择分配人员"
+      :options="treeData"
+      @close="allotShow = false"
+      @finish="onFinish"
+      :field-names="fieldNames"
+    />
+  </van-popup>
+  <!-- 已分配详情 -->
+  <van-dialog
+    v-model:show="allocatedShow"
+    title="分配详情"
+    :show-cancel-button="false"
+    class=""
+  >
+    <div class="w-4/5 center text-18px text-gray-600 leading-loose">
+      <p v-if="allocatedData.fp_user_name">
+        {{ allocatedData?.fp_user_name }}
+        <span class="ml-5px">{{ allocatedData.modify_dateline }}</span>
+      </p>
+      <p>
+        状态:
+        <span class="ml-10px">{{
+          allocatedData.xm_is_wc == "1" ? "完成" : "未完成"
+        }}</span>
+      </p>
+    </div>
+  </van-dialog>
 </template>
 <style lang="scss" scoped>
 ::v-deep .audited {
-    .van-button__text {
-        color: #fff !important;
-    }
+  .van-button__text {
+    color: #fff !important;
+  }
 }
 
 .center {
-    margin: 10px auto;
+  margin: 10px auto;
 }
 </style>

+ 55 - 21
src/pages/officialDocumentManager/documentLibrary/index.vue

@@ -1,43 +1,77 @@
 <script setup>
-import { userInfo } from '~/store/user'
+import { userInfo } from "~/store/user";
 
-const { uo_type } = userInfo
-const isBureau = ref(false)// 当前用户是否局端
-isBureau.value = uo_type === '1'
+const { uo_type } = userInfo;
+const isBureau = ref(false); // 当前用户是否局端
+isBureau.value = uo_type === "1";
 
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/gwgl_gw/index',
+    url: "/jdbg/gwgl_gw/index",
     data: {
       page,
       limit: 20,
       gw_fb: 1,
-      gw_fb_depart: isBureau ? '' : '1',
+      gw_fb_depart: isBureau ? "" : "1",
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(gw_id) {
-  router.push({ path: '/officialDocumentManager/documentLibrary/detail', query: { gw_id } })
+  router.push({
+    path: "/officialDocumentManager/documentLibrary/detail",
+    query: { gw_id },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="(item, index) in list" :key="item" :title="`${index + 1}. ${item.gw_title}`"
+        v-for="(item, index) in list"
+        :key="item"
+        :title="`${index + 1}. ${item.gw_title}`"
         @click="cellClick(item.gw_id)"
       />
     </van-list>

+ 55 - 21
src/pages/officialDocumentManager/myOfficialDocument/index.vue

@@ -1,43 +1,77 @@
 <script setup>
-import { userInfo } from '~/store/user'
+import { userInfo } from "~/store/user";
 
-const { uo_type } = userInfo
-const isBureau = ref(false)// 当前用户是否局端
-isBureau.value = uo_type === '1'
+const { uo_type } = userInfo;
+const isBureau = ref(false); // 当前用户是否局端
+isBureau.value = uo_type === "1";
 
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/gwgl_gw/index',
+    url: "/jdbg/gwgl_gw/index",
     data: {
       page,
       limit: 20,
       my_gw: 1,
-      gw_fb_depart: isBureau ? '' : '1',
+      gw_fb_depart: isBureau ? "" : "1",
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(gw_id) {
-  router.push({ path: '/officialDocumentManager/myOfficialDocument/detail', query: { gw_id } })
+  router.push({
+    path: "/officialDocumentManager/myOfficialDocument/detail",
+    query: { gw_id },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="(item, index) in list" :key="item" :title="`${index + 1}. ${item.gw_title}`"
+        v-for="(item, index) in list"
+        :key="item"
+        :title="`${index + 1}. ${item.gw_title}`"
         @click="cellClick(item.gw_id)"
       />
     </van-list>

+ 55 - 21
src/pages/officialDocumentManager/todoOffcialDoucument/index.vue

@@ -1,43 +1,77 @@
 <script setup>
-import { userInfo } from '~/store/user'
+import { userInfo } from "~/store/user";
 
-const { uo_type } = userInfo
-const isBureau = ref(false)// 当前用户是否局端
-isBureau.value = uo_type === '1'
+const { uo_type } = userInfo;
+const isBureau = ref(false); // 当前用户是否局端
+isBureau.value = uo_type === "1";
 
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/gwgl_gw/index',
+    url: "/jdbg/gwgl_gw/index",
     data: {
       page,
       limit: 20,
       my_check: 1,
-      gw_fb_depart: isBureau ? '' : '1',
+      gw_fb_depart: isBureau ? "" : "1",
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(gw_id) {
-  router.push({ path: '/officialDocumentManager/todoOffcialDoucument/detail', query: { gw_id } })
+  router.push({
+    path: "/officialDocumentManager/todoOffcialDoucument/detail",
+    query: { gw_id },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="(item, index) in list" :key="item" :title="`${index + 1}. ${item.gw_title}`"
+        v-for="(item, index) in list"
+        :key="item"
+        :title="`${index + 1}. ${item.gw_title}`"
         @click="cellClick(item.gw_id)"
       />
     </van-list>

+ 60 - 22
src/pages/officialDocumentManager/todoReadDoucument/bureauDocument/index.vue

@@ -1,45 +1,83 @@
 <script setup>
-import { getAssetsImages } from '/src/utils/getAssets'
+import { getAssetsImages } from "/src/utils/getAssets";
 
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/gwgl_gw/index',
+    url: "/jdbg/gwgl_gw/index",
     data: {
       page,
       limit: 20,
       my_read: 1,
-      gw_fb_depart: '2',
+      gw_fb_depart: "2",
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(gw_id, is_read) {
-  router.push({ path: '/officialDocumentManager/todoReadDoucument/detail', query: { gw_id, is_read } })
+  router.push({
+    path: "/officialDocumentManager/todoReadDoucument/detail",
+    query: { gw_id, is_read },
+  });
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="(item, index) in list" :key="item" :title="`${index + 1}. ${item.gw_title}`"
+        v-for="(item, index) in list"
+        :key="item"
+        :title="`${index + 1}. ${item.gw_title}`"
         @click="cellClick(item.gw_id, item.is_read)"
       >
         <template #value>
           <img
-            :src="item.is_read == 1 ? getAssetsImages('todoReadDoucument/haveRead.png') : getAssetsImages('todoReadDoucument/waitForRead.png')"
-          >
+            :src="
+              item.is_read == 1
+                ? getAssetsImages('todoReadDoucument/haveRead.png')
+                : getAssetsImages('todoReadDoucument/waitForRead.png')
+            "
+          />
         </template>
       </van-cell>
     </van-list>
@@ -49,12 +87,12 @@ function cellClick(gw_id, is_read) {
 <style lang="scss" scoped>
 :deep(.van-cell__title) {
   width: 90% !important;
-  flex: auto
+  flex: auto;
 }
 
 :deep(.van-cell__value) {
   width: 10% !important;
-  flex: auto
+  flex: auto;
 }
 
 img {

+ 60 - 22
src/pages/officialDocumentManager/todoReadDoucument/schoolDoucment/index.vue

@@ -1,45 +1,83 @@
 <script setup>
-import { getAssetsImages } from '/src/utils/getAssets'
+import { getAssetsImages } from "/src/utils/getAssets";
 
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/gwgl_gw/index',
+    url: "/jdbg/gwgl_gw/index",
     data: {
       page,
       limit: 20,
       my_read: 1,
-      gw_fb_depart: '1',
+      gw_fb_depart: "1",
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(gw_id, is_read) {
-  router.push({ path: '/officialDocumentManager/todoReadDoucument/detail', query: { gw_id, is_read } })
+  router.push({
+    path: "/officialDocumentManager/todoReadDoucument/detail",
+    query: { gw_id, is_read },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="(item, index) in list" :key="item" :title="`${index + 1}. ${item.gw_title}`"
+        v-for="(item, index) in list"
+        :key="item"
+        :title="`${index + 1}. ${item.gw_title}`"
         @click="cellClick(item.gw_id, item.is_read)"
       >
         <template #value>
           <img
-            :src="item.is_read == 1 ? getAssetsImages('todoReadDoucument/haveRead.png') : getAssetsImages('todoReadDoucument/waitForRead.png')"
-          >
+            :src="
+              item.is_read == 1
+                ? getAssetsImages('todoReadDoucument/haveRead.png')
+                : getAssetsImages('todoReadDoucument/waitForRead.png')
+            "
+          />
         </template>
       </van-cell>
     </van-list>
@@ -49,12 +87,12 @@ function cellClick(gw_id, is_read) {
 <style lang="scss" scoped>
 :deep(.van-cell__title) {
   width: 90% !important;
-  flex: auto
+  flex: auto;
 }
 
 :deep(.van-cell__value) {
   width: 10% !important;
-  flex: auto
+  flex: auto;
 }
 
 img {

+ 49 - 18
src/pages/overtimeMealFeeSubsidy/workbench/myApplyFor/index.vue

@@ -1,42 +1,73 @@
 <script setup>
-import { userInfo } from '~/store/user'
+import { userInfo } from "~/store/user";
 
-const { user_realname } = userInfo
-const router = useRouter()
+const { user_realname } = userInfo;
+const router = useRouter();
 function cellClick(jbcb_id) {
-  router.push({ path: '/overtimeMealFeeSubsidy/workbench/myApplyFor/detail', query: { jbcb_id } })
+  router.push({
+    path: "/overtimeMealFeeSubsidy/workbench/myApplyFor/detail",
+    query: { jbcb_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/jbcb/index',
+    url: "/jdbg/jbcb/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
       jbcb_sqr: user_realname,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
     <van-cell
-      v-for="item in listMyApplyFor" :key="item" :title="`${item.jbcb_sqr}\u00A0\u00A0\u00A0${item.jbcb_jbsy}`"
+      v-for="item in listMyApplyFor"
+      :key="item"
+      :title="`${item.jbcb_sqr}\u00A0\u00A0\u00A0${item.jbcb_jbsy}`"
       @click="cellClick(item.jbcb_id)"
     />
   </van-list>

+ 115 - 63
src/pages/overtimeMealFeeSubsidy/workbench/myAuditFor/index.vue

@@ -1,69 +1,80 @@
 <script setup>
-import { closeToast, showLoadingToast, showToast } from 'vant'
-import { userInfo } from '~/store/user'
+import { closeToast, showLoadingToast, showToast } from "vant";
+import { userInfo } from "~/store/user";
 
-const { user_id } = userInfo
+const { user_id } = userInfo;
 
-const router = useRouter()
+const router = useRouter();
 function cellClick(jbcb_id) {
-  router.push({ path: '/overtimeMealFeeSubsidy/workbench/myAuditFor/detail', query: { jbcb_id } })
+  router.push({
+    path: "/overtimeMealFeeSubsidy/workbench/myAuditFor/detail",
+    query: { jbcb_id },
+  });
 }
 
-const listMyAuditFor = ref([])
-const loadingMyAuditFor = ref(false)
-const finishedMyAuditFor = ref(false)
-let pageMyAuditFor = 1
+const listMyAuditFor = ref([]);
+const loadingMyAuditFor = ref(false);
+const finishedMyAuditFor = ref(false);
+let pageMyAuditFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyAuditFor() {
-  loadingMyAuditFor.value = true
+  loadingMyAuditFor.value = true;
   request({
-    url: '/jdbg/jbcb/index',
+    url: "/jdbg/jbcb/index",
     data: {
       page: pageMyAuditFor,
       limit: 20,
       jbcb_spr_id: user_id,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyAuditFor.value = [...listMyAuditFor.value, ...data.page_data]
-    finishedMyAuditFor.value = data.total_page === pageMyAuditFor
-    pageMyAuditFor++
-    loadingMyAuditFor.value = false
-  })
+    const data = res.data;
+    listMyAuditFor.value = [...listMyAuditFor.value, ...data.page_data];
+    finishedMyAuditFor.value = data.total_page === pageMyAuditFor;
+    pageMyAuditFor++;
+    loadingMyAuditFor.value = false;
+  });
 }
-
-const auditchecked = ref('')
-const auditDialogShow = ref(false)
-const jbcb_clyj = ref('')
-const operaItem = ref({})
-const resultDialogShow = ref(false)
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyAuditFor = 1;
+  listMyAuditFor.value = [];
+  finishedMyAuditFor.value = false;
+  onLoadMyApplyFor();
+}
+const auditchecked = ref("");
+const auditDialogShow = ref(false);
+const jbcb_clyj = ref("");
+const operaItem = ref({});
+const resultDialogShow = ref(false);
 function clickAudit(item) {
-  operaItem.value = item
-  if (item.jbcb_shzt === '待审核') {
-    auditchecked.value = ''
-    jbcb_clyj.value = ''
-    auditDialogShow.value = true
-  }
-  else {
-    resultDialogShow.value = true
+  operaItem.value = item;
+  if (item.jbcb_shzt === "待审核") {
+    auditchecked.value = "";
+    jbcb_clyj.value = "";
+    auditDialogShow.value = true;
+  } else {
+    resultDialogShow.value = true;
   }
 }
 function beforeCloseDialog(action) {
-  if (action == 'confirm') {
-    if (auditchecked.value == '') {
-      showToast('请选择审核结果')
-      return false
-    }
-    else if ((auditchecked.value === '2') && jbcb_clyj.value == '') {
-      showToast('请填写意见')
-      return false
+  if (action == "confirm") {
+    if (auditchecked.value == "") {
+      showToast("请选择审核结果");
+      return false;
+    } else if (auditchecked.value === "2" && jbcb_clyj.value == "") {
+      showToast("请填写意见");
+      return false;
+    } else {
+      dialogSubmit();
+      return true;
     }
-    else {
-      dialogSubmit()
-      return true
-    }
-  }
-  else {
-    return true
+  } else {
+    return true;
   }
 }
 function dialogSubmit() {
@@ -73,40 +84,65 @@ function dialogSubmit() {
       jbcb_shzt: auditchecked.value, // 待审核 1通过 2驳回
       jbcb_clyj: jbcb_clyj.value, // 处理意见
     },
-  }
+  };
   showLoadingToast({
-    message: '提交中...',
+    message: "提交中...",
     forbidClick: true,
-  })
+  });
   request({
-    url: '/jdbg/jbcb/edit',
+    url: "/jdbg/jbcb/edit",
     data: transObj,
   }).then((res) => {
-    closeToast()
+    closeToast();
     if (res.code == 1) {
-      showToast(res.msg)
-      listMyAuditFor.value = []
-      pageMyAuditFor = 1
-      onLoadMyAuditFor()
+      showToast(res.msg);
+      listMyAuditFor.value = [];
+      pageMyAuditFor = 1;
+      onLoadMyAuditFor();
     }
-  })
+  });
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyAuditFor" :finished="finishedMyAuditFor" finished-text="没有更多了"
+    v-model:loading="loadingMyAuditFor"
+    :finished="finishedMyAuditFor"
+    finished-text="没有更多了"
     @load="onLoadMyAuditFor"
   >
     <van-cell
-      v-for="item in listMyAuditFor" :key="item" :title="`${item.jbcb_sqr}\u00A0\u00A0\u00A0${item.jbcb_jbsy}`"
+      v-for="item in listMyAuditFor"
+      :key="item"
+      :title="`${item.jbcb_sqr}\u00A0\u00A0\u00A0${item.jbcb_jbsy}`"
       @click="cellClick(item.jbcb_id)"
     >
       <template #value>
-        <van-button v-if="item.jbcb_shzt === '待审核'" class="rightButton" type="primary" @click.stop="clickAudit(item)">
+        <van-button
+          v-if="item.jbcb_shzt === '待审核'"
+          class="rightButton"
+          type="primary"
+          @click.stop="clickAudit(item)"
+        >
           审核
         </van-button>
-        <van-button v-else color="#BDBDBD" class="rightButton" @click.stop="clickAudit(item)">
+        <van-button
+          v-else
+          color="#BDBDBD"
+          class="rightButton"
+          @click.stop="clickAudit(item)"
+        >
           已审核
         </van-button>
       </template>
@@ -114,7 +150,10 @@ function dialogSubmit() {
   </van-list>
 
   <van-dialog
-    v-model:show="auditDialogShow" title="审核" confirm-button-text="提交" show-cancel-button
+    v-model:show="auditDialogShow"
+    title="审核"
+    confirm-button-text="提交"
+    show-cancel-button
     :before-close="beforeCloseDialog"
   >
     <div class="dialogDiv">
@@ -132,7 +171,14 @@ function dialogSubmit() {
           </van-cell>
         </van-cell-group>
       </van-radio-group>
-      <van-field v-if="auditchecked === '2'" v-model="jbcb_clyj" rows="3" autosize type="textarea" placeholder="填写意见" />
+      <van-field
+        v-if="auditchecked === '2'"
+        v-model="jbcb_clyj"
+        rows="3"
+        autosize
+        type="textarea"
+        placeholder="填写意见"
+      />
     </div>
   </van-dialog>
 
@@ -143,7 +189,13 @@ function dialogSubmit() {
           <van-cell :title="operaItem.jbcb_shzt" />
         </van-cell-group>
       </van-radio-group>
-      <van-field v-model="operaItem.jbcb_clyj" disabled rows="3" autosize type="textarea" />
+      <van-field
+        v-model="operaItem.jbcb_clyj"
+        disabled
+        rows="3"
+        autosize
+        type="textarea"
+      />
     </div>
   </van-dialog>
 </template>

+ 50 - 17
src/pages/projectManager/projectDatabase/index.vue

@@ -1,38 +1,71 @@
 <script setup>
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/projectManager/projectDatabase/detail', query: { xm_id } })
+  router.push({
+    path: "/projectManager/projectDatabase/detail",
+    query: { xm_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmgl_xmzlk/index',
+    url: "/jdbg/xmgl_xmzlk/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
-      xm_dqjd: "100"
+      xm_dqjd: "100",
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
-    <van-cell v-for="(item, index) in listMyApplyFor" :key="item" @click="cellClick(item.xm_id)">
+    <van-cell
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      @click="cellClick(item.xm_id)"
+    >
       <template #title>
         <span>{{ `${index + 1}.\u00A0\u00A0${item.xm_name}` }}</span>
       </template>

+ 53 - 18
src/pages/projectManager/projectFlowManger/index.vue

@@ -1,40 +1,75 @@
 <script setup>
-const router = useRouter()
+const router = useRouter();
 function cellClick(lc_id) {
-  router.push({ path: '/projectManager/projectFlowManger/detail', query: { lc_id } })
+  router.push({
+    path: "/projectManager/projectFlowManger/detail",
+    query: { lc_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmgl_xmlc/index',
+    url: "/jdbg/xmgl_xmlc/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
-    <van-cell v-for="(item, index) in listMyApplyFor" :key="item" @click="cellClick(item.lc_id)">
+    <van-cell
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      @click="cellClick(item.lc_id)"
+    >
       <template #title>
-        <span>{{ `${index + 1}.\u00A0\u00A0${item.lc_jd}` }}</span><span style="color: #1a7afd;">{{
-          `\u00A0\u00A0\u00A0${item.lc_sx}` }}</span>
+        <span>{{ `${index + 1}.\u00A0\u00A0${item.lc_jd}` }}</span
+        ><span style="color: #1a7afd">{{
+          `\u00A0\u00A0\u00A0${item.lc_sx}`
+        }}</span>
       </template>
     </van-cell>
   </van-list>

+ 49 - 16
src/pages/projectManager/projectManageControl/index.vue

@@ -1,37 +1,70 @@
 <script setup>
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/projectManager/projectManageControl/detail', query: { xm_id } })
+  router.push({
+    path: "/projectManager/projectManageControl/detail",
+    query: { xm_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmgl_xmzlk/index',
+    url: "/jdbg/xmgl_xmzlk/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
-    <van-cell v-for="(item, index) in listMyApplyFor" :key="item" @click="cellClick(item.xm_id)">
+    <van-cell
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      @click="cellClick(item.xm_id)"
+    >
       <template #title>
         <span>{{ `${index + 1}.\u00A0\u00A0${item.xm_name}` }}</span>
       </template>

+ 44 - 16
src/pages/sanZhongYiDa/projectApply/myApplyFor/index.vue

@@ -1,39 +1,67 @@
 <script setup>
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/sanZhongYiDa/projectApply/detail', query: { xm_id } })
+  router.push({ path: "/sanZhongYiDa/projectApply/detail", query: { xm_id } });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmlxsb_xmsq/index',
+    url: "/jdbg/xmlxsb_xmsq/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
       my_xm: 1, // 我的申请
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
     <van-cell
-      v-for="(item, index) in listMyApplyFor" :key="item" :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
       @click="cellClick(item.xm_id)"
     />
   </van-list>

+ 97 - 57
src/pages/sanZhongYiDa/projectApply/myAuditFor/index.vue

@@ -1,61 +1,70 @@
 <script setup>
-import { closeToast, showLoadingToast, showToast } from 'vant'
+import { closeToast, showLoadingToast, showToast } from "vant";
 
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/sanZhongYiDa/projectApply/detail', query: { xm_id } })
+  router.push({ path: "/sanZhongYiDa/projectApply/detail", query: { xm_id } });
 }
 
-const listMyAuditFor = ref([])
-const loadingMyAuditFor = ref(false)
-const finishedMyAuditFor = ref(false)
-let pageMyAuditFor = 1
+const listMyAuditFor = ref([]);
+const loadingMyAuditFor = ref(false);
+const finishedMyAuditFor = ref(false);
+let pageMyAuditFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyAuditFor() {
-  loadingMyAuditFor.value = true
+  loadingMyAuditFor.value = true;
   request({
-    url: '/jdbg/xmlxsb_xmsq/index',
+    url: "/jdbg/xmlxsb_xmsq/index",
     data: {
       page: pageMyAuditFor,
       limit: 20,
       my_check: 1,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyAuditFor.value = [...listMyAuditFor.value, ...data.page_data]
-    finishedMyAuditFor.value = data.total_page === pageMyAuditFor
-    pageMyAuditFor++
-    loadingMyAuditFor.value = false
-  })
+    const data = res.data;
+    listMyAuditFor.value = [...listMyAuditFor.value, ...data.page_data];
+    finishedMyAuditFor.value = data.total_page === pageMyAuditFor;
+    pageMyAuditFor++;
+    loadingMyAuditFor.value = false;
+  });
 }
-
-const auditchecked = ref('')
-const auditDialogShow = ref(false)
-const sh_reason = ref('')
-const operaItem = ref({})
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyAuditFor = 1;
+  listMyAuditFor.value = [];
+  finishedMyAuditFor.value = false;
+  onLoadMyAuditFor();
+}
+const auditchecked = ref("");
+const auditDialogShow = ref(false);
+const sh_reason = ref("");
+const operaItem = ref({});
 
 function clickAudit(item) {
-  operaItem.value = item
-  auditchecked.value = ''
-  sh_reason.value = ''
-  auditDialogShow.value = true
+  operaItem.value = item;
+  auditchecked.value = "";
+  sh_reason.value = "";
+  auditDialogShow.value = true;
 }
 function beforeCloseDialog(action) {
-  if (action == 'confirm') {
-    if (auditchecked.value == '') {
-      showToast('请选择审核结果')
-      return false
-    }
-    else if ((auditchecked.value === '3') && sh_reason.value == '') {
-      showToast('请填写意见')
-      return false
-    }
-    else {
-      dialogSubmit()
-      return true
+  if (action == "confirm") {
+    if (auditchecked.value == "") {
+      showToast("请选择审核结果");
+      return false;
+    } else if (auditchecked.value === "3" && sh_reason.value == "") {
+      showToast("请填写意见");
+      return false;
+    } else {
+      dialogSubmit();
+      return true;
     }
-  }
-  else {
-    return true
+  } else {
+    return true;
   }
 }
 function dialogSubmit() {
@@ -63,45 +72,66 @@ function dialogSubmit() {
     sh_id: operaItem.value.xm_id,
     sh_status: auditchecked.value, // 待审核 1通过 2驳回
     sh_reason: sh_reason.value, // 处理意见
-
-  }
+  };
   showLoadingToast({
-    message: '提交中...',
+    message: "提交中...",
     forbidClick: true,
-  })
+  });
   request({
-    url: '/jdbg/xmlxsb_xmsq/check',
+    url: "/jdbg/xmlxsb_xmsq/check",
     data: transObj,
   }).then((res) => {
-    closeToast()
+    closeToast();
     if (res.code == 1) {
-      showToast(res.msg)
-      listMyAuditFor.value = []
-      pageMyAuditFor = 1
-      onLoadMyAuditFor()
+      showToast(res.msg);
+      listMyAuditFor.value = [];
+      pageMyAuditFor = 1;
+      onLoadMyAuditFor();
     }
-  })
+  });
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyAuditFor" :finished="finishedMyAuditFor" finished-text="没有更多了"
+    v-model:loading="loadingMyAuditFor"
+    :finished="finishedMyAuditFor"
+    finished-text="没有更多了"
     @load="onLoadMyAuditFor"
   >
     <van-cell
-      v-for="(item, index) in listMyAuditFor" :key="item" :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
+      v-for="(item, index) in listMyAuditFor"
+      :key="item"
+      :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
       @click="cellClick(item.xm_id)"
     >
       <template #value>
         <van-button
-          v-if="item.xm_status_option_k == '1' || item.xm_status_option_k == '2' || item.xm_status_option_k == '3'"
-          class="rightButton" type="primary" @click.stop="clickAudit(item)"
+          v-if="
+            item.xm_status_option_k == '1' ||
+            item.xm_status_option_k == '2' ||
+            item.xm_status_option_k == '3'
+          "
+          class="rightButton"
+          type="primary"
+          @click.stop="clickAudit(item)"
         >
           审核
         </van-button>
         <van-button
-          v-if="item.xm_status_option_k > '3' && item.xm_status_option_k <= '5'" color="#BDBDBD"
+          v-if="item.xm_status_option_k > '3' && item.xm_status_option_k <= '5'"
+          color="#BDBDBD"
           class="rightButton"
         >
           已审核
@@ -111,7 +141,10 @@ function dialogSubmit() {
   </van-list>
 
   <van-dialog
-    v-model:show="auditDialogShow" title="审核" confirm-button-text="提交" show-cancel-button
+    v-model:show="auditDialogShow"
+    title="审核"
+    confirm-button-text="提交"
+    show-cancel-button
     :before-close="beforeCloseDialog"
   >
     <div class="dialogDiv">
@@ -129,7 +162,14 @@ function dialogSubmit() {
           </van-cell>
         </van-cell-group>
       </van-radio-group>
-      <van-field v-if="auditchecked === '3'" v-model="sh_reason" rows="3" autosize type="textarea" placeholder="填写意见" />
+      <van-field
+        v-if="auditchecked === '3'"
+        v-model="sh_reason"
+        rows="3"
+        autosize
+        type="textarea"
+        placeholder="填写意见"
+      />
     </div>
   </van-dialog>
 </template>

+ 44 - 16
src/pages/sanZhongYiDa/projectApply/myAudited/index.vue

@@ -1,39 +1,67 @@
 <script setup>
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/sanZhongYiDa/projectApply/detail', query: { xm_id } })
+  router.push({ path: "/sanZhongYiDa/projectApply/detail", query: { xm_id } });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmlxsb_xmsq/index',
+    url: "/jdbg/xmlxsb_xmsq/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
       xm_status: 5,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
     <van-cell
-      v-for="(item, index) in listMyApplyFor" :key="item" :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
       @click="cellClick(item.xm_id)"
     />
   </van-list>

+ 47 - 16
src/pages/sanZhongYiDa/projectReceiveApproval/index.vue

@@ -1,39 +1,70 @@
 <script setup>
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/sanZhongYiDa/projectReceiveApproval/detail', query: { xm_id } })
+  router.push({
+    path: "/sanZhongYiDa/projectReceiveApproval/detail",
+    query: { xm_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmlxsb_xmsq/index',
+    url: "/jdbg/xmlxsb_xmsq/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
       xm_is_wc: 1, // 是否获批 1是 2否
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
     <van-cell
-      v-for="(item, index) in listMyApplyFor" :key="item" :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
       @click="cellClick(item.xm_id)"
     />
   </van-list>

+ 82 - 45
src/pages/sanZhongYiDa/projectWaitAudit/index.vue

@@ -1,76 +1,113 @@
 <script setup>
-import { closeToast, showConfirmDialog, showLoadingToast, showToast } from 'vant'
+import {
+  closeToast,
+  showConfirmDialog,
+  showLoadingToast,
+  showToast,
+} from "vant";
 
-const router = useRouter()
+const router = useRouter();
 function cellClick(xm_id) {
-  router.push({ path: '/sanZhongYiDa/projectReceiveApproval/detail', query: { xm_id } })
+  router.push({
+    path: "/sanZhongYiDa/projectReceiveApproval/detail",
+    query: { xm_id },
+  });
 }
 
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/xmlxsb_xmsq/index',
+    url: "/jdbg/xmlxsb_xmsq/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
       xm_is_wc: 3,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
+}
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyFor();
 }
-
 function clickAudit(item) {
   showConfirmDialog({
-    title: '提示',
-    message:
-      '确认获批该项目?',
-  })
-    .then(() => {
-      showLoadingToast({
-        message: '提交中...',
-        forbidClick: true,
-      })
-      request({
-        url: '/jdbg/xmlxsb_xmsq/edit',
-        data: {
-          xm_id: item.xm_id,
-          jdbg_xmlxsb_xmsq: {
-            xm_is_wc: 1, // 是否获批 1是 2否 3待审
-          },
+    title: "提示",
+    message: "确认获批该项目?",
+  }).then(() => {
+    showLoadingToast({
+      message: "提交中...",
+      forbidClick: true,
+    });
+    request({
+      url: "/jdbg/xmlxsb_xmsq/edit",
+      data: {
+        xm_id: item.xm_id,
+        jdbg_xmlxsb_xmsq: {
+          xm_is_wc: 1, // 是否获批 1是 2否 3待审
         },
-      }).then((res) => {
-        closeToast()
-        if (res.code == 1) {
-          showToast(res.msg)
-          listMyApplyFor.value = []
-          pageMyApplyFor = 1
-          onLoadMyApplyFor()
-        }
-      })
-    })
+      },
+    }).then((res) => {
+      closeToast();
+      if (res.code == 1) {
+        showToast(res.msg);
+        listMyApplyFor.value = [];
+        pageMyApplyFor = 1;
+        onLoadMyApplyFor();
+      }
+    });
+  });
 }
 </script>
 
 <template>
+  <van-search
+    v-model="param.keyword"
+    :clearable="false"
+    show-action
+    placeholder="请输入搜索关键词"
+    @search="onClickSearch"
+  >
+    <template #action>
+      <div @click="onClickSearch">搜索</div>
+    </template>
+  </van-search>
   <van-list
-    v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+    v-model:loading="loadingMyApplyFor"
+    :finished="finishedMyApplyFor"
+    finished-text="没有更多了"
     @load="onLoadMyApplyFor"
   >
     <van-cell
-      v-for="(item, index) in listMyApplyFor" :key="item" :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
+      v-for="(item, index) in listMyApplyFor"
+      :key="item"
+      :title="`${index + 1}.\u00A0\u00A0${item.xm_name}`"
       @click="cellClick(item.xm_id)"
     >
       <template #value>
-        <van-button class="rightButton" type="primary" @click.stop="clickAudit(item)">
+        <van-button
+          class="rightButton"
+          type="primary"
+          @click.stop="clickAudit(item)"
+        >
           获批
         </van-button>
       </template>

+ 51 - 16
src/pages/techerFlowManager/annualAssessmentSum/index.vue

@@ -1,35 +1,70 @@
 <script setup>
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/jsldgl_ndkhhz/index',
+    url: "/jdbg/jsldgl_ndkhhz/index",
     data: {
       page,
       limit: 20,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+const searchValue = $ref("");
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(jjnh_id) {
-  router.push({ path: '/techerFlowManager/annualAssessmentSum/detail', query: { jjnh_id } })
+  router.push({
+    path: "/techerFlowManager/annualAssessmentSum/detail",
+    query: { jjnh_id },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="item in list" :key="item" :title="`${item.jjnh_uo_name}\u00A0\u00A0\u00A0${item.jjnh_xm}`"
+        v-for="item in list"
+        :key="item"
+        :title="`${item.jjnh_uo_name}\u00A0\u00A0\u00A0${item.jjnh_xm}`"
         @click="cellClick(item.jjnh_id)"
       />
     </van-list>

+ 51 - 16
src/pages/techerFlowManager/exteriorPersonManger/index.vue

@@ -1,35 +1,70 @@
 <script setup>
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/jsldgl_xxbwrygl/index',
+    url: "/jdbg/jsldgl_xxbwrygl/index",
     data: {
       page,
       limit: 20,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+const searchValue = $ref("");
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(jsxw_id) {
-  router.push({ path: '/techerFlowManager/exteriorPersonManger/detail', query: { jsxw_id } })
+  router.push({
+    path: "/techerFlowManager/exteriorPersonManger/detail",
+    query: { jsxw_id },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="item in list" :key="item" :title="`${item.jsxw_uo_name}\u00A0\u00A0\u00A0${item.jsxw_xm}`"
+        v-for="item in list"
+        :key="item"
+        :title="`${item.jsxw_uo_name}\u00A0\u00A0\u00A0${item.jsxw_xm}`"
         @click="cellClick(item.jsxw_id)"
       />
     </van-list>

+ 253 - 133
src/pages/techerFlowManager/teacherPerformanceAssessment/index.vue

@@ -1,151 +1,181 @@
 <script setup>
-import { closeToast, showLoadingToast, showToast } from 'vant'
-import { userInfo } from '~/store/user'
+import { closeToast, showLoadingToast, showToast } from "vant";
+import { userInfo } from "~/store/user";
 
-const { uo_type, user_id } = userInfo
-const isBureau = ref(false)// 当前用户是否局端
-isBureau.value = uo_type === '1'
+const { uo_type, user_id } = userInfo;
+const isBureau = ref(false); // 当前用户是否局端
+isBureau.value = uo_type === "1";
 
-const router = useRouter()
+const router = useRouter();
 function cellClick(jjmk_id, url) {
-  router.push({ path: url, query: { jjmk_id } })
+  router.push({ path: url, query: { jjmk_id } });
 }
 
 // 我申请的
-const listMyApplyFor = ref([])
-const loadingMyApplyFor = ref(false)
-const finishedMyApplyFor = ref(false)
-let pageMyApplyFor = 1
+const listMyApplyFor = ref([]);
+const loadingMyApplyFor = ref(false);
+const finishedMyApplyFor = ref(false);
+let pageMyApplyFor = 1;
+const paramMyApplyFor = $ref({
+  keyword: "",
+});
 function onLoadMyApplyFor() {
-  loadingMyApplyFor.value = true
+  loadingMyApplyFor.value = true;
   request({
-    url: '/jdbg/jsldgl_myjsjxkh_khhz/index',
+    url: "/jdbg/jsldgl_myjsjxkh_khhz/index",
     data: {
       page: pageMyApplyFor,
       limit: 20,
       create_user_id: user_id,
+      ...paramMyApplyFor,
     },
   }).then((res) => {
-    const data = res.data
-    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data]
-    finishedMyApplyFor.value = data.total_page === pageMyApplyFor
-    pageMyApplyFor++
-    loadingMyApplyFor.value = false
-  })
+    const data = res.data;
+    listMyApplyFor.value = [...listMyApplyFor.value, ...data.page_data];
+    finishedMyApplyFor.value = data.total_page === pageMyApplyFor;
+    pageMyApplyFor++;
+    loadingMyApplyFor.value = false;
+  });
 }
 
+function onClickMyApplyForSearch() {
+  reGetMyApplyForList();
+}
+function reGetMyApplyForList() {
+  pageMyApplyFor = 1;
+  listMyApplyFor.value = [];
+  finishedMyApplyFor.value = false;
+  onLoadMyApplyForr();
+}
 // 我审核的
-const listMyAuditFor = ref([])
-const loadingMyMyAuditFor = ref(false)
-const finishedMyAuditFor = ref(false)
-let pageMyAuditFor = 1
+const listMyAuditFor = ref([]);
+const loadingMyMyAuditFor = ref(false);
+const finishedMyAuditFor = ref(false);
+let pageMyAuditFor = 1;
+const paramMyAuditFor = $ref({
+  keyword: "",
+});
 function onLoadMyAuditFor() {
-  loadingMyApplyFor.value = true
-  let data = {}
+  loadingMyApplyFor.value = true;
+  let data = {};
   if (isBureau.value) {
     data = {
       page: pageMyAuditFor,
       limit: 20,
-      jjmkl_jdshqk: '2',
-      jjmkl_xdshqk: '1,3,4,5,6,7',
-    }
-  }
-  else {
+      jjmkl_jdshqk: "2",
+      jjmkl_xdshqk: "1,3,4,5,6,7",
+      ...paramMyAuditFor,
+    };
+  } else {
     data = {
       page: pageMyAuditFor,
       limit: 20,
-      jjmkl_xdshqk: '2',
-    }
+      jjmkl_xdshqk: "2",
+      ...paramMyAuditFor,
+    };
   }
   request({
-    url: '/jdbg/jsldgl_myjsjxkh_khhz/index',
+    url: "/jdbg/jsldgl_myjsjxkh_khhz/index",
     data,
   }).then((res) => {
-    const data = res.data
-    listMyAuditFor.value = [...listMyAuditFor.value, ...data.page_data]
-    finishedMyAuditFor.value = data.total_page === pageMyAuditFor
-    pageMyAuditFor++
-    loadingMyMyAuditFor.value = false
-  })
+    const data = res.data;
+    listMyAuditFor.value = [...listMyAuditFor.value, ...data.page_data];
+    finishedMyAuditFor.value = data.total_page === pageMyAuditFor;
+    pageMyAuditFor++;
+    loadingMyAuditFor.value = false;
+  });
 }
-
-const auditOptions10 = [{
-  v: '1',
-  n: '优秀',
-}, {
-  v: '3',
-  n: '良好',
-}, {
-  v: '4',
-  n: '合格',
-}, {
-  v: '5',
-  n: '不合格',
-}]
-const auditOptions1 = [{
-  v: '6',
-  n: '符合',
-}, {
-  v: '7',
-  n: '不符合',
-}]
-const auditchecked = ref('')
-const auditOptions = ref([])
-const auditDialogShow = ref(false)
-const jjmkl_jdshqk_clyj = ref('')
-let operaItem = {}
+function onClickMyAuditForSearch() {
+  reGetMyAuditForList();
+}
+function reGetMyAuditForList() {
+  pageMyAuditFor = 1;
+  listMyAuditFor.value = [];
+  finishedMyAuditFor.value = false;
+  onLoadMyAuditFor();
+}
+const auditOptions10 = [
+  {
+    v: "1",
+    n: "优秀",
+  },
+  {
+    v: "3",
+    n: "良好",
+  },
+  {
+    v: "4",
+    n: "合格",
+  },
+  {
+    v: "5",
+    n: "不合格",
+  },
+];
+const auditOptions1 = [
+  {
+    v: "6",
+    n: "符合",
+  },
+  {
+    v: "7",
+    n: "不符合",
+  },
+];
+const auditchecked = ref("");
+const auditOptions = ref([]);
+const auditDialogShow = ref(false);
+const jjmkl_jdshqk_clyj = ref("");
+let operaItem = {};
 function clickAudit(item) {
-  operaItem = item
-  auditchecked.value = ''
-  jjmkl_jdshqk_clyj.value = ''
-  if (item.jjmkl_jjmkl_id_1 == '10')
-    auditOptions.value = auditOptions10
-  else if (item.jjmkl_jjmkl_id_1 == '1')
-    auditOptions.value = auditOptions1
+  operaItem = item;
+  auditchecked.value = "";
+  jjmkl_jdshqk_clyj.value = "";
+  if (item.jjmkl_jjmkl_id_1 == "10") auditOptions.value = auditOptions10;
+  else if (item.jjmkl_jjmkl_id_1 == "1") auditOptions.value = auditOptions1;
 
-  auditDialogShow.value = true
+  auditDialogShow.value = true;
 }
 function beforeCloseDialog(action) {
-  if (action == 'confirm') {
-    if (auditchecked.value == '') {
-      showToast('请选择审核结果')
-      return false
-    }
-    else if ((auditchecked.value == '5' || auditchecked.value == '7') && jjmkl_jdshqk_clyj.value == '') {
-      showToast('请填写意见')
-      return false
+  if (action == "confirm") {
+    if (auditchecked.value == "") {
+      showToast("请选择审核结果");
+      return false;
+    } else if (
+      (auditchecked.value == "5" || auditchecked.value == "7") &&
+      jjmkl_jdshqk_clyj.value == ""
+    ) {
+      showToast("请填写意见");
+      return false;
+    } else {
+      dialogSubmit();
+      return true;
     }
-    else {
-      dialogSubmit()
-      return true
-    }
-  }
-  else {
-    return true
+  } else {
+    return true;
   }
 }
 function dialogSubmit() {
-  let transObj = {}
+  let transObj = {};
   if (!isBureau.value) {
     transObj = {
       jjmk_id: operaItem.jjmk_id,
       jjmkl_xdshqk: auditchecked.value,
       jjmkl_xdshqk_clyj: jjmkl_jdshqk_clyj.value,
-    }
-  }
-  else if (isBureau.value) {
+    };
+  } else if (isBureau.value) {
     transObj = {
       jjmk_id: operaItem.jjmk_id,
       jjmkl_jdshqk: auditchecked.value,
       jjmkl_jdshqk_clyj: jjmkl_jdshqk_clyj.value,
-    }
+    };
   }
   showLoadingToast({
-    message: '提交中...',
+    message: "提交中...",
     forbidClick: true,
-  })
+  });
   request({
-    url: '/jdbg/jsldgl_myjsjxkh_khhz/edit',
+    url: "/jdbg/jsldgl_myjsjxkh_khhz/edit",
     data: {
       jjmk_id: transObj.jjmk_id,
       jdbg_jsldgl_myjsjxkh_khhz: {
@@ -156,36 +186,49 @@ function dialogSubmit() {
       },
     },
   }).then((res) => {
-    closeToast()
+    closeToast();
     if (res.code == 1) {
-      showToast(res.msg)
-      listMyAuditFor.value = []
-      pageMyAuditFor = 1
-      onLoadMyAuditFor()
+      showToast(res.msg);
+      listMyAuditFor.value = [];
+      pageMyAuditFor = 1;
+      onLoadMyAuditFor();
     }
-  })
+  });
 }
 // 考核汇总
-const listPerformanceSum = ref([])
-const loadingPerformanceSum = ref(false)
-const finishedPerformanceSum = ref(false)
-let pagePerformanceSum = 1
-
+const listPerformanceSum = ref([]);
+const loadingPerformanceSum = ref(false);
+const finishedPerformanceSum = ref(false);
+let pagePerformanceSum = 1;
+const paramPerformanceSum = $ref({
+  keyword: "",
+});
 function onLoadPerformanceSum() {
-  loadingPerformanceSum.value = true
+  loadingPerformanceSum.value = true;
   request({
-    url: '/jdbg/jsldgl_myjsjxkh_khhz/index',
+    url: "/jdbg/jsldgl_myjsjxkh_khhz/index",
     data: {
       page: pagePerformanceSum,
       limit: 20,
+      ...paramPerformanceSum,
     },
   }).then((res) => {
-    const data = res.data
-    listPerformanceSum.value = [...listPerformanceSum.value, ...data.page_data]
-    finishedPerformanceSum.value = data.total_page === pagePerformanceSum
-    pagePerformanceSum++
-    loadingPerformanceSum.value = false
-  })
+    const data = res.data;
+    listPerformanceSum.value = [...listPerformanceSum.value, ...data.page_data];
+    finishedPerformanceSum.value = data.total_page === pagePerformanceSum;
+    pagePerformanceSum++;
+    loadingPerformanceSum.value = false;
+  });
+}
+
+function onClickPerformanceSumSearch() {
+  reGetPerformanceSumList();
+}
+function reGetPerformanceSumList() {
+  pagePerformanceSum = 1;
+  listPerformanceSum.value = [];
+  finishedPerformanceSum.value = false;
+  onLoadPerformanceSum();
 }
 </script>
 
@@ -193,29 +236,73 @@ function onLoadPerformanceSum() {
   <div>
     <van-tabs :sticky="true">
       <van-tab v-if="isBureau" title="我申请的">
+        <van-search
+          v-model="paramMyApplyFor.keyword"
+          :clearable="false"
+          show-action
+          placeholder="请输入搜索关键词"
+          @search="onClickMyApplyForSearch"
+        >
+          <template #action>
+            <div @click="onClickMyApplyForSearch">搜索</div>
+          </template>
+        </van-search>
         <van-list
-          v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
+          v-model:loading="loadingMyApplyFor"
+          :finished="finishedMyApplyFor"
+          finished-text="没有更多了"
           @load="onLoadMyApplyFor"
         >
           <van-cell
-            v-for="item in listMyApplyFor" :key="item"
-            :title="`${item.jjmk_uo_name}\u00A0\u00A0\u00A0${item.jjmk_xm}`" :label="item.jjmkl_jjmkl_name_1"
-            @click="cellClick(item.jjmk_id, '/techerFlowManager/teacherPerformanceAssessment/detailMyApplyFor')"
+            v-for="item in listMyApplyFor"
+            :key="item"
+            :title="`${item.jjmk_uo_name}\u00A0\u00A0\u00A0${item.jjmk_xm}`"
+            :label="item.jjmkl_jjmkl_name_1"
+            @click="
+              cellClick(
+                item.jjmk_id,
+                '/techerFlowManager/teacherPerformanceAssessment/detailMyApplyFor'
+              )
+            "
           />
         </van-list>
       </van-tab>
       <van-tab title="我审核的">
+        <van-search
+          v-model="paramMyAuditFor.keyword"
+          :clearable="false"
+          show-action
+          placeholder="请输入搜索关键词"
+          @search="onClickMyAuditForSearch"
+        >
+          <template #action>
+            <div @click="onClickMyAuditForSearch">搜索</div>
+          </template>
+        </van-search>
         <van-list
-          v-model:loading="loadingMyMyAuditFor" :finished="finishedMyAuditFor" finished-text="没有更多了"
+          v-model:loading="loadingMyMyAuditFor"
+          :finished="finishedMyAuditFor"
+          finished-text="没有更多了"
           @load="onLoadMyAuditFor"
         >
           <van-cell
-            v-for="item in listMyAuditFor" :key="item"
-            :title="`${item.jjmk_uo_name}\u00A0\u00A0\u00A0${item.jjmk_xm}`" :label="item.jjmkl_jjmkl_name_1"
-            @click="cellClick(item.jjmk_id, '/techerFlowManager/teacherPerformanceAssessment/detailMyAuditFor')"
+            v-for="item in listMyAuditFor"
+            :key="item"
+            :title="`${item.jjmk_uo_name}\u00A0\u00A0\u00A0${item.jjmk_xm}`"
+            :label="item.jjmkl_jjmkl_name_1"
+            @click="
+              cellClick(
+                item.jjmk_id,
+                '/techerFlowManager/teacherPerformanceAssessment/detailMyAuditFor'
+              )
+            "
           >
             <template #value>
-              <van-button class="rightButton" type="primary" @click.stop="clickAudit(item)">
+              <van-button
+                class="rightButton"
+                type="primary"
+                @click.stop="clickAudit(item)"
+              >
                 审核
               </van-button>
             </template>
@@ -223,27 +310,56 @@ function onLoadPerformanceSum() {
         </van-list>
       </van-tab>
       <van-tab title="考核汇总">
+        <van-search
+          v-model="paramPerformanceSum.keyword"
+          :clearable="false"
+          show-action
+          placeholder="请输入搜索关键词"
+          @search="onClickPerformanceSumSearch"
+        >
+          <template #action>
+            <div @click="onClickPerformanceSumSearch">搜索</div>
+          </template>
+        </van-search>
         <van-list
-          v-model:loading="loadingPerformanceSum" :finished="finishedPerformanceSum" finished-text="没有更多了"
+          v-model:loading="loadingPerformanceSum"
+          :finished="finishedPerformanceSum"
+          finished-text="没有更多了"
           @load="onLoadPerformanceSum"
         >
           <van-cell
-            v-for="item in listPerformanceSum" :key="item"
-            :title="`${item.jjmk_uo_name}\u00A0\u00A0\u00A0${item.jjmk_xm}`" :label="item.jjmkl_jjmkl_name_1"
-            @click="cellClick(item.jjmk_id, '/techerFlowManager/teacherPerformanceAssessment/detailMyApplyFor')"
+            v-for="item in listPerformanceSum"
+            :key="item"
+            :title="`${item.jjmk_uo_name}\u00A0\u00A0\u00A0${item.jjmk_xm}`"
+            :label="item.jjmkl_jjmkl_name_1"
+            @click="
+              cellClick(
+                item.jjmk_id,
+                '/techerFlowManager/teacherPerformanceAssessment/detailMyApplyFor'
+              )
+            "
           />
         </van-list>
       </van-tab>
     </van-tabs>
 
     <van-dialog
-      v-model:show="auditDialogShow" title="审核" confirm-button-text="提交" show-cancel-button
+      v-model:show="auditDialogShow"
+      title="审核"
+      confirm-button-text="提交"
+      show-cancel-button
       :before-close="beforeCloseDialog"
     >
       <div class="dialogDiv">
         <van-radio-group v-model="auditchecked">
           <van-cell-group inset>
-            <van-cell v-for="item of auditOptions" :key="item" :title="item.n" clickable @click="auditchecked = item.v">
+            <van-cell
+              v-for="item of auditOptions"
+              :key="item"
+              :title="item.n"
+              clickable
+              @click="auditchecked = item.v"
+            >
               <template #right-icon>
                 <van-radio :name="item.v" />
               </template>
@@ -251,8 +367,12 @@ function onLoadPerformanceSum() {
           </van-cell-group>
         </van-radio-group>
         <van-field
-          v-if="auditchecked === '5' || auditchecked === '7'" v-model="jjmkl_jdshqk_clyj" rows="3" autosize
-          type="textarea" placeholder="填写意见"
+          v-if="auditchecked === '5' || auditchecked === '7'"
+          v-model="jjmkl_jdshqk_clyj"
+          rows="3"
+          autosize
+          type="textarea"
+          placeholder="填写意见"
         />
       </div>
     </van-dialog>
@@ -269,6 +389,6 @@ function onLoadPerformanceSum() {
 }
 
 :deep(.van-field__body) {
-  background: #F2F2F2;
+  background: #f2f2f2;
 }
 </style>

+ 51 - 16
src/pages/techerFlowManager/techerSituationSum/index.vue

@@ -1,35 +1,70 @@
 <script setup>
-const list = ref([])
-const loading = ref(false)
-const finished = ref(false)
-let page = 1
+const list = ref([]);
+const loading = ref(false);
+const finished = ref(false);
+let page = 1;
+const param = $ref({
+  keyword: "",
+});
 function onLoad() {
-  loading.value = true
+  loading.value = true;
   request({
-    url: '/jdbg/jsldgl_myjsqkhz/index',
+    url: "/jdbg/jsldgl_myjsqkhz/index",
     data: {
       page,
       limit: 20,
+      ...param,
     },
   }).then((res) => {
-    const data = res.data
-    list.value = [...list.value, ...data.page_data]
-    finished.value = data.total_page === page
-    page++
-    loading.value = false
-  })
+    const data = res.data;
+    list.value = [...list.value, ...data.page_data];
+    finished.value = data.total_page === page;
+    page++;
+    loading.value = false;
+  });
 }
-const router = useRouter()
+const searchValue = $ref("");
+function onClickSearch() {
+  reGetList();
+}
+function reGetList() {
+  page = 1;
+  list.value = [];
+  finished.value = false;
+  onLoad();
+}
+const router = useRouter();
 function cellClick(jj_ms) {
-  router.push({ path: '/techerFlowManager/techerSituationSum/detail', query: { jj_ms } })
+  router.push({
+    path: "/techerFlowManager/techerSituationSum/detail",
+    query: { jj_ms },
+  });
 }
 </script>
 
 <template>
   <div>
-    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+    <van-search
+      v-model="param.keyword"
+      :clearable="false"
+      show-action
+      placeholder="请输入搜索关键词"
+      @search="onClickSearch"
+    >
+      <template #action>
+        <div @click="onClickSearch">搜索</div>
+      </template>
+    </van-search>
+    <van-list
+      v-model:loading="loading"
+      :finished="finished"
+      finished-text="没有更多了"
+      @load="onLoad"
+    >
       <van-cell
-        v-for="item in list" :key="item" :title="`${item.jj_uo_name}\u00A0\u00A0\u00A0${item.jj_xm}`"
+        v-for="item in list"
+        :key="item"
+        :title="`${item.jj_uo_name}\u00A0\u00A0\u00A0${item.jj_xm}`"
         @click="cellClick(item.jj_ms)"
       />
     </van-list>