浏览代码

Merge remote-tracking branch 'HS_MZAP/master'

yin_yu820 2 年之前
父节点
当前提交
2cbb2aa7c2

+ 0 - 6
src/api/placePerson/placePerson.js

@@ -1,12 +1,6 @@
 import request from "@/utils/request";
 import request from "@/utils/request";
 
 
 export default class placePerson {
 export default class placePerson {
-    //民族列表
-    nation() {
-        return request.get(
-            `/sys/dict/getDictValue`, { dictTypeId: '1574569879287033857' }
-        )
-    };
     //籍贯接口
     //籍贯接口
     nativePlace(params) {
     nativePlace(params) {
         return request.get(
         return request.get(

+ 6 - 0
src/api/placeRegister/placeRegister.js

@@ -47,6 +47,12 @@ export default class placeRegister {
             `/religioussites/siteinfo/religiousSitesInfo/list`,
             `/religioussites/siteinfo/religiousSitesInfo/list`,
             params
             params
         )
         )
+    };
+    //获取互联网专区
+    queryInternetBySiteId(id) {
+        return request.get(
+            `/religioussites/siteinfo/religiousSitesInfo/queryInternetBySiteId`, { id: id }
+        )
     }
     }
 
 
 }
 }

+ 2 - 2
src/main.js

@@ -9,7 +9,7 @@ import axios from 'axios';
 import dictUtils from '@/utils/dictUtils'
 import dictUtils from '@/utils/dictUtils'
 
 
 
 
-import { NavBar, Button, Form, Field, CellGroup, Tabbar, TabbarItem, Icon, Toast, Image as VanImage, Grid, GridItem, Row, Col, Tab, Tabs, Popup, PickerGroup, DatePicker, TimePicker, Picker, Uploader, Dialog, List, Cell, Cascader, Search, RadioGroup, Radio, DropdownMenu, DropdownItem, SwipeCell, Checkbox, CheckboxGroup, Swipe, SwipeItem, Loading, TextEllipsis } from 'vant';
+import { NavBar, Button, Form, Field, CellGroup, Tabbar, TabbarItem, Icon, Toast, Image as VanImage, Grid, GridItem, Row, Col, Tab, Tabs, Popup, PickerGroup, DatePicker, TimePicker, Picker, Uploader, Dialog, List, Cell, Cascader, Search, RadioGroup, Radio, DropdownMenu, DropdownItem, SwipeCell, Checkbox, CheckboxGroup, Swipe, SwipeItem, Loading, TextEllipsis, TreeSelect } from 'vant';
 import 'vant/lib/index.css';
 import 'vant/lib/index.css';
 import store from './store';
 import store from './store';
 
 
@@ -54,7 +54,7 @@ app.use(router)
     .use(SwipeItem)
     .use(SwipeItem)
     .use(Loading)
     .use(Loading)
     .use(TextEllipsis)
     .use(TextEllipsis)
-
+    .use(TreeSelect)
 app.config.globalProperties.$API = api
 app.config.globalProperties.$API = api
 app.config.globalProperties.$axios = axios
 app.config.globalProperties.$axios = axios
 app.config.globalProperties.$dictUtils = dictUtils
 app.config.globalProperties.$dictUtils = dictUtils

+ 108 - 103
src/views/placeManage/ManageList.vue

@@ -1,5 +1,51 @@
 <template>
 <template>
   <div class="personList">
   <div class="personList">
+    <div class="nav-left">
+      <p style="font-size: 16px; color: #00bfff">请选择左侧部门机构!</p>
+      <ul>
+        <li v-for="item in items" v-bind:key="item.id">
+          <a @click="clickonlod(item.id)">{{ item.name }}</a>
+          <ul v-if="item.children">
+            <li
+              style="padding-left: 5px"
+              v-for="subitem in item.children"
+              v-bind:key="subitem.id"
+            >
+              <a @click="clickonlod(subitem.id)">{{ subitem.name }}</a>
+              <ul v-if="subitem.children">
+                <li
+                  style="padding-left: 5px"
+                  v-for="subitem2 in subitem.children"
+                  v-bind:key="subitem2.id"
+                >
+                  <a @click="clickonlod(subitem2.id)">{{ subitem2.name }}</a>
+                  <ul v-if="subitem2.children">
+                    <li
+                      style="padding-left: 5px"
+                      v-for="subitem3 in subitem2.children"
+                      v-bind:key="subitem3.id"
+                    >
+                      <a @click="clickonlod(subitem3.id)">{{ subitem3.name }}</a>
+                      <ul v-if="subitem3.children">
+                        <li
+                          style="padding-left: 5px"
+                          v-for="subitem4 in subitem3.children"
+                          v-bind:key="subitem4.id"
+                        >
+                          <a @click="clickonlod(subitem4.id)">{{
+                            subitem4.name
+                          }}</a>
+                        </li>
+                      </ul>
+                    </li>
+                  </ul>
+                </li>
+              </ul>
+            </li>
+          </ul>
+        </li>
+      </ul>
+    </div>
     <van-list
     <van-list
       v-model:loading="loading"
       v-model:loading="loading"
       :finished="finished"
       :finished="finished"
@@ -22,148 +68,90 @@
         </van-cell-group>
         </van-cell-group>
       </van-radio-group>
       </van-radio-group>
     </van-list>
     </van-list>
+    <!-- <van-list
+      v-model:loading="loading2"
+      :finished="finished2"
+      finished-text="没有更多了"
+      @load="onLoad2"
+    >
+      <van-radio-group v-model="checked">
+        <van-cell-group inset>
+          <van-cell
+            v-for="item in list4"
+            clickable
+            :key="item"
+            :title="item.name"
+            @click="selectes(item)"
+          >
+            <template #right-icon>
+              <van-radio :name="item" />
+            </template>
+          </van-cell>
+        </van-cell-group>
+      </van-radio-group>
+    </van-list> -->
   </div>
   </div>
 </template>
 </template>
 
 
 <script>
 <script>
-import { ref, watch } from "vue";
+import { ref } from "vue";
 import placeRegister from "@/api/placeRegister/placeRegister";
 import placeRegister from "@/api/placeRegister/placeRegister";
 export default {
 export default {
   name: "personList",
   name: "personList",
   emits: ["selected"],
   emits: ["selected"],
-  props: [ "placeAddress"],
-  setup(props, { emit }) {
-    const list = ref([]);
+  setup(props,{ emit }) {
     const list3 = ref([]);
     const list3 = ref([]);
+    const list4 = ref([]);
     const loading = ref(false);
     const loading = ref(false);
     const finished = ref(false);
     const finished = ref(false);
     let index = 0;
     let index = 0;
-    let zjList = ref([]);
-    let mechanism1 = ref([]); //宗教
+    let items = ref([]);
     new placeRegister().treeDate2().then((res) => {
     new placeRegister().treeDate2().then((res) => {
-      mechanism1.value.push(res[0]);
-      Getzj(mechanism1.value);
+      items.value.push(res[0]);
     });
     });
-
-    const onLoad = () => {
-      // 异步更新数据
+    const clickonlod = (id)=>{
+      list3.value = [];
+      onLoad(id)
+    }
+    const onLoad = (id) => {
+      if(id!=undefined){
+        // 异步更新数据
       new placeRegister()
       new placeRegister()
         .list({
         .list({
           current: index + 1,
           current: index + 1,
           size: 10,
           size: 10,
+          "officeDTO.id": id,
         })
         })
-        .then(({ records }) => {
-          list.value.push(...records);
+        .then(({ records, pages }) => {
+          list3.value = list3.value.concat(records);
           // 加载状态结束
           // 加载状态结束
           loading.value = false;
           loading.value = false;
-          index++;
           // 数据全部加载完成
           // 数据全部加载完成
-          if (records.length < 10) {
+          if (index + 1 >= pages) {
             finished.value = true;
             finished.value = true;
           }
           }
+          index++;
         });
         });
-      let placeAddress = "";
-      placeAddress = props.placeAddress.split("/");
-      let itemId = [];
-      let listTwo = [];
-      zjList.value.forEach((item1) => {
-        if (item1.regionLevel5 == placeAddress[2]) {
-          itemId.push(item1.id);
-        }
-      });
-      itemId.forEach((N1) => {
-        if (!listTwo.includes(N1)) {
-          listTwo.push(N1);
-        }
-      });
-      list.value.forEach((item2) => {
-        listTwo.forEach((ID) => {
-          if (ID == item2.officeDTO.id) {
-            list3.value.push(item2);
-          }
-        });
-      });
-      let listOne = [];
-      list3.value.forEach((N2)=>{
-        if(!listOne.includes(N2)){
-          listOne.push(N2)
-        }
-      })
-      list3.value = listOne
+      }
     };
     };
-    //获取宗教部门数组
-    function Getzj(list) {
-      list.forEach((item) => {
-        zjList.value.push(item);
-        if (item.children) {
-          Getzj(item.children);
-        }
-      });
-    }
-    const close = ()=>{
-      list3.value.splice(0,list3.value.length);
-    }
-    //获取公安部门数组
-    // function Getga(list) {
-    //   list.forEach((item) => {
-    //     gaList.value.push(item);
-    //     if (item.children) {
-    //       Getga(item.children);
-    //     }
-    //   });
-    // }
     // 选择人员
     // 选择人员
     const checked = ref([]);
     const checked = ref([]);
     const checkboxRefs = ref([]);
     const checkboxRefs = ref([]);
     const checkboxGroup = ref(null);
     const checkboxGroup = ref(null);
     const toggle = (index) => {
     const toggle = (index) => {
       checkboxRefs.value[index].toggle();
       checkboxRefs.value[index].toggle();
-      emit("selected",checked.value);
+      emit("selected", checked.value);
     };
     };
     // 全选
     // 全选
     const checkAll = () => {
     const checkAll = () => {
       checkboxGroup.value.toggleAll(true);
       checkboxGroup.value.toggleAll(true);
-      emit("selected",checked.value);
+      emit("selected", checked.value);
     };
     };
     const selectes = (val) => {
     const selectes = (val) => {
       checked.value = val;
       checked.value = val;
-      emit("selected",checked.value);
+      emit("selected", checked.value);
     };
     };
 
 
-    // let placeAddress = "";
-    // watch(
-    //   () => props.placeAddress,
-    //   (val) => {
-    //     placeAddress = val.split("/");
-    //     let mechanism1 = ref([]); //宗教
-    //     new placeRegister().treeDate2().then((res) => {
-    //       mechanism1.value.push(res[0]);
-    //       Getzj(mechanism1.value);
-    //       let listone = [];
-    //       zjList.value.forEach((item1) => {
-    //         let itemId = '';
-    //         if (item1.regionLevel5 == placeAddress[2]) {
-    //           itemId = item1.id;
-    //           list.value.forEach((item2) => {
-    //             if (itemId == item2.officeDTO.id) {
-    //               listone.push(item2);
-    //             }
-    //           });
-    //           list3.value = listone;
-    //         }
-    //       });
-    //     });
-    //   },
-    //   {
-    //     //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
-    //     //那么首次执行,val为默认值,preVal为undefined
-    //     immediate: true,
-    //     //这个参数代表监听对象时,可以监听深度嵌套的对象属性
-    //     //比如message是一个对象的话,可以监听到message.a.b.c,也就是message下的所有属性
-    //     deep: true,
-    //   }
-    // );
-
     return {
     return {
       // 人员
       // 人员
       onLoad,
       onLoad,
@@ -178,17 +166,34 @@ export default {
       // 单选
       // 单选
       selectes,
       selectes,
       list3,
       list3,
-      close
+      list4,
+      items,
+      clickonlod,
     };
     };
   },
   },
 };
 };
 </script>
 </script>
 
 
-<style scoped>
+<style lang="less" scoped>
 .personList {
 .personList {
   height: 65vh;
   height: 65vh;
   overflow: auto;
   overflow: auto;
   margin: 10px;
   margin: 10px;
+  .nav-left {
+    float: left;
+    width: 50%;
+    font-size: 16px;
+    border-right: 1px solid #a3a3a3;
+    li {
+      width: 100%;
+      overflow: hidden;
+      padding: 5px 0;
+      a {
+        width: 100%;
+        border-bottom: 1px solid #a3a3a3;
+      }
+    }
+  }
 }
 }
 .van-button {
 .van-button {
   top: -5px;
   top: -5px;

+ 120 - 95
src/views/placeManage/ManageList2.vue

@@ -1,5 +1,53 @@
 <template>
 <template>
   <div class="personList">
   <div class="personList">
+    <div class="nav-left">
+      <p style="font-size: 16px; color: #00bfff">请选择左侧部门机构!</p>
+      <ul>
+        <li v-for="item in items" v-bind:key="item.id">
+          <a @click="clickonlod(item.id)">{{ item.name }}</a>
+          <ul v-if="item.children">
+            <li
+              style="padding-left: 5px"
+              v-for="subitem in item.children"
+              v-bind:key="subitem.id"
+            >
+              <a @click="clickonlod(subitem.id)">{{ subitem.name }}</a>
+              <ul v-if="subitem.children">
+                <li
+                  style="padding-left: 5px"
+                  v-for="subitem2 in subitem.children"
+                  v-bind:key="subitem2.id"
+                >
+                  <a @click="clickonlod(subitem2.id)">{{ subitem2.name }}</a>
+                  <ul v-if="subitem2.children">
+                    <li
+                      style="padding-left: 5px"
+                      v-for="subitem3 in subitem2.children"
+                      v-bind:key="subitem3.id"
+                    >
+                      <a @click="clickonlod(subitem3.id)">{{
+                        subitem3.name
+                      }}</a>
+                      <ul v-if="subitem3.children">
+                        <li
+                          style="padding-left: 5px"
+                          v-for="subitem4 in subitem3.children"
+                          v-bind:key="subitem4.id"
+                        >
+                          <a @click="clickonlod(subitem4.id)">{{
+                            subitem4.name
+                          }}</a>
+                        </li>
+                      </ul>
+                    </li>
+                  </ul>
+                </li>
+              </ul>
+            </li>
+          </ul>
+        </li>
+      </ul>
+    </div>
     <van-list
     <van-list
       v-model:loading="loading"
       v-model:loading="loading"
       :finished="finished"
       :finished="finished"
@@ -9,7 +57,7 @@
       <van-radio-group v-model="checked">
       <van-radio-group v-model="checked">
         <van-cell-group inset>
         <van-cell-group inset>
           <van-cell
           <van-cell
-            v-for="item in list4"
+            v-for="item in list3"
             clickable
             clickable
             :key="item"
             :key="item"
             :title="item.name"
             :title="item.name"
@@ -22,128 +70,88 @@
         </van-cell-group>
         </van-cell-group>
       </van-radio-group>
       </van-radio-group>
     </van-list>
     </van-list>
+    <!-- <van-list
+      v-model:loading="loading2"
+      :finished="finished2"
+      finished-text="没有更多了"
+      @load="onLoad2"
+    >
+      <van-radio-group v-model="checked">
+        <van-cell-group inset>
+          <van-cell
+            v-for="item in list4"
+            clickable
+            :key="item"
+            :title="item.name"
+            @click="selectes(item)"
+          >
+            <template #right-icon>
+              <van-radio :name="item" />
+            </template>
+          </van-cell>
+        </van-cell-group>
+      </van-radio-group>
+    </van-list> -->
   </div>
   </div>
 </template>
 </template>
 
 
 <script>
 <script>
-import { ref, watch } from "vue";
+import { ref } from "vue";
 import placeRegister from "@/api/placeRegister/placeRegister";
 import placeRegister from "@/api/placeRegister/placeRegister";
 export default {
 export default {
   name: "personList",
   name: "personList",
   emits: ["selected2"],
   emits: ["selected2"],
-  props: [ "placeAddress"],
   setup(props, { emit }) {
   setup(props, { emit }) {
-    const list = ref([]);
-    const list4 = ref([]);
+    const list3 = ref([]);
     const loading = ref(false);
     const loading = ref(false);
     const finished = ref(false);
     const finished = ref(false);
     let index = 0;
     let index = 0;
-    let gaList = ref([]);
-    let placeAddress = "";
-    placeAddress = props.placeAddress.split("/");
-    let mechanism2 = ref([]); //公安
+    let items = ref([]);
     new placeRegister().treeDate2().then((res) => {
     new placeRegister().treeDate2().then((res) => {
-      mechanism2.value.push(res[1]);
-      Getga(mechanism2.value);
+      items.value.push(res[1]);
     });
     });
-    const onLoad = () => {
-      // 异步更新数据
-      new placeRegister()
-        .list({
-          current: index + 1,
-          size: 10,
-        })
-        .then(({ records }) => {
-          list.value.push(...records);
-          // 加载状态结束
-          loading.value = false;
-          index++;
-          // console.log(list.value);
-          // 数据全部加载完成
-          if (records.length < 10) {
-            finished.value = true;
-          }
-        });
-      let itemId = [];
-      let listTwo = [];
-      gaList.value.forEach((item3) => {
-        if (item3.regionLevel5 == placeAddress[2]) {
-          itemId.push(item3.id);
-        }
-      });
-      itemId.forEach((N1) => {
-        if (!listTwo.includes(N1)) {
-          listTwo.push(N1);
-        }
-      });
-      list.value.forEach((item2) => {
-        itemId.forEach((ID) => {
-          if (ID == item2.officeDTO.id) {
-            list4.value.push(item2);
-          }
-        });
-      });
-      let listOne = [];
-      list4.value.forEach((N2) => {
-        if (!listOne.includes(N2)) {
-          listOne.push(N2);
-        }
-      });
-      list4.value = listOne;
+    const clickonlod = (id) => {
+      list3.value = [];
+      onLoad(id);
+    };
+    const onLoad = (id) => {
+      if (id != undefined) {
+        // 异步更新数据
+        new placeRegister()
+          .list({
+            current: index + 1,
+            size: 10,
+            "officeDTO.id": id,
+          })
+          .then(({ records, pages }) => {
+            list3.value = list3.value.concat(records);
+            // 加载状态结束
+            loading.value = false;
+            // 数据全部加载完成
+            if (index + 1 >= pages) {
+              finished.value = true;
+            }
+            index++;
+          });
+      }
     };
     };
-    //获取公安部门数组
-    function Getga(list) {
-      list.forEach((item) => {
-        gaList.value.push(item);
-        if (item.children) {
-          Getga(item.children);
-        }
-      });
-    }
-    //获取宗教部门数组
-    // function Getzj(list) {
-    //   list.forEach((item) => {
-    //     zjList.value.push(item);
-    //     if (item.children) {
-    //       Getzj(item.children);
-    //     }
-    //   });
-    // }
-
     // 选择人员
     // 选择人员
     const checked = ref([]);
     const checked = ref([]);
     const checkboxRefs = ref([]);
     const checkboxRefs = ref([]);
     const checkboxGroup = ref(null);
     const checkboxGroup = ref(null);
     const toggle = (index) => {
     const toggle = (index) => {
       checkboxRefs.value[index].toggle();
       checkboxRefs.value[index].toggle();
-      emit("selected2", checked.value);
+      emit("selected", checked.value);
     };
     };
     // 全选
     // 全选
     const checkAll = () => {
     const checkAll = () => {
       checkboxGroup.value.toggleAll(true);
       checkboxGroup.value.toggleAll(true);
-      emit("selected2", checked.value);
+      emit("selected", checked.value);
     };
     };
     const selectes2 = (val) => {
     const selectes2 = (val) => {
-      // console.log(val);
       checked.value = val;
       checked.value = val;
       emit("selected2", checked.value);
       emit("selected2", checked.value);
     };
     };
-    // let placeAddress = "";
-    // watch(
-    //   () => props.placeAddress,
-    //   (val) => {
-    //     placeAddress = val.split("/");
-
-    //   },
-    //   {
-    //     //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
-    //     //那么首次执行,val为默认值,preVal为undefined
-    //     immediate: true,
-    //     //这个参数代表监听对象时,可以监听深度嵌套的对象属性
-    //     //比如message是一个对象的话,可以监听到message.a.b.c,也就是message下的所有属性
-    //     deep: true,
-    //   }
-    // );
 
 
     return {
     return {
       // 人员
       // 人员
@@ -158,17 +166,34 @@ export default {
       checkboxGroup,
       checkboxGroup,
       // 单选
       // 单选
       selectes2,
       selectes2,
-      list4,
+      list3,
+      items,
+      clickonlod,
     };
     };
   },
   },
 };
 };
 </script>
 </script>
 
 
-<style scoped>
+<style lang="less" scoped>
 .personList {
 .personList {
   height: 65vh;
   height: 65vh;
   overflow: auto;
   overflow: auto;
   margin: 10px;
   margin: 10px;
+  .nav-left {
+    float: left;
+    width: 50%;
+    font-size: 16px;
+    border-right: 1px solid #a3a3a3;
+    li {
+      width: 100%;
+      overflow: hidden;
+      padding: 5px 0;
+      a {
+        width: 100%;
+        border-bottom: 1px solid #a3a3a3;
+      }
+    }
+  }
 }
 }
 .van-button {
 .van-button {
   top: -5px;
   top: -5px;

+ 33 - 29
src/views/placeManage/placePerson/placePerson.vue

@@ -14,22 +14,14 @@
   <div class="main">
   <div class="main">
     <van-tabs v-model:active="active">
     <van-tabs v-model:active="active">
       <van-tab title="姓名查询">
       <van-tab title="姓名查询">
-        <van-search
-          v-model="value1"
-          show-action
-          placeholder="请输入姓名"
-        >
+        <van-search v-model="value1" show-action placeholder="请输入姓名">
           <template #action>
           <template #action>
             <div @click="search1">搜索</div>
             <div @click="search1">搜索</div>
           </template>
           </template>
         </van-search>
         </van-search>
       </van-tab>
       </van-tab>
       <van-tab title="身份证查询">
       <van-tab title="身份证查询">
-        <van-search
-          v-model="value2"
-          show-action
-          placeholder="请输入身份证号"
-        >
+        <van-search v-model="value2" show-action placeholder="请输入身份证号">
           <template #action>
           <template #action>
             <div @click="search2">搜索</div>
             <div @click="search2">搜索</div>
           </template>
           </template>
@@ -97,7 +89,7 @@
         </van-list>
         </van-list>
       </van-pull-refresh>
       </van-pull-refresh>
     </div>
     </div>
-    <div class="PersonList" v-if="value1 != '' || value2!='' ">
+    <div class="PersonList" v-if="value1 != '' || value2 != ''">
       <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
       <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
         <van-list
         <van-list
           v-model:loading="loading"
           v-model:loading="loading"
@@ -236,24 +228,36 @@ export default {
     //搜索选择
     //搜索选择
     const value1 = ref("");
     const value1 = ref("");
     const value2 = ref("");
     const value2 = ref("");
-    const search1 = ()=>{
-      new UserManage().list({
-            current:1,
-            size:10000,
-            name:value1.value
-          }).then((res)=>{
-            PersonList.value = res.records
-          })
-    }
-    const search2 = ()=>{
-      new UserManage().list({
-            current:1,
-            size:10000,
-            idcard:value2.value
-          }).then((res)=>{
-            PersonList.value = res.records
-          })
-    }
+    const search1 = () => {
+      loading.value = true;
+      finished.value = false;
+      new UserManage()
+        .list({
+          current: 1,
+          size: 10000,
+          name: value1.value,
+        })
+        .then(({ records, pages }) => {
+          PersonList.value = PersonList.value.concat(records);
+          // 加载状态结束
+          loading.value = false;
+          if (index + 1 >= pages) {
+            finished.value = true;
+          }
+          index++;
+        });
+    };
+    const search2 = () => {
+      new UserManage()
+        .list({
+          current: 1,
+          size: 10000,
+          idcard: value2.value,
+        })
+        .then((res) => {
+          PersonList.value = res.records;
+        });
+    };
     //返回
     //返回
     const onClickLeft = () => {
     const onClickLeft = () => {
       history.back();
       history.back();

+ 59 - 10
src/views/placeManage/placePerson/placePersonAdd.vue

@@ -746,15 +746,6 @@ export default {
     const cityOutaddress = ref("");
     const cityOutaddress = ref("");
     const locationName = ref("");
     const locationName = ref("");
     onMounted(() => {
     onMounted(() => {
-      //民族字段接口
-      new placePerson().nation().then((res) => {
-        res.forEach((item) => {
-          nation.value.push({
-            text: item.label,
-            value: item.value,
-          });
-        });
-      });
       //籍贯接口
       //籍贯接口
       new placePerson().nativePlace().then((res) => {
       new placePerson().nativePlace().then((res) => {
         nativePlace.value.push(...res);
         nativePlace.value.push(...res);
@@ -780,7 +771,65 @@ export default {
     };
     };
     // 民族
     // 民族
     const nationName = ref("");
     const nationName = ref("");
-    const nation = ref([]);
+    const nation = [
+      { text: "汉族", value: " 1" },
+      { text: "阿昌族", value: "2" },
+      { text: "白族", value: "3" },
+      { text: "保安族", value: "4" },
+      { text: "布朗族", value: "5" },
+      { text: "布依族", value: " 6" },
+      { text: "朝鲜族", value: "7" },
+      { text: "达斡尔族", value: "8" },
+      { text: "傣族", value: "9" },
+      { text: "德昂族", value: "10" },
+      { text: "东乡族", value: " 11" },
+      { text: "侗族", value: "12" },
+      { text: "独龙族", value: "13" },
+      { text: "俄罗斯族", value: "14" },
+      { text: "鄂伦春族", value: "15" },
+      { text: "鄂温克族", value: " 16" },
+      { text: "高山族", value: "17" },
+      { text: "仡佬族", value: "18" },
+      { text: "哈尼族", value: "19" },
+      { text: "哈萨克族", value: "20" },
+      { text: "赫哲族", value: " 21" },
+      { text: "回族", value: "22" },
+      { text: "基诺族", value: "23" },
+      { text: "京族", value: "24" },
+      { text: "景颇族", value: "25" },
+      { text: "柯尔克孜族", value: " 26" },
+      { text: "拉祜族", value: "27" },
+      { text: "黎族", value: "28" },
+      { text: "傈僳族", value: "29" },
+      { text: "珞巴族", value: "30" },
+      { text: "满族", value: " 31" },
+      { text: "毛南族", value: "32" },
+      { text: "门巴族", value: "33" },
+      { text: "蒙古族", value: "34" },
+      { text: "苗族", value: "35" },
+      { text: "仫佬族", value: " 36" },
+      { text: "纳西族", value: "37" },
+      { text: "怒族", value: "38" },
+      { text: "普米族", value: "39" },
+      { text: "羌族", value: "40" },
+      { text: "撒拉族", value: " 41" },
+      { text: "畲族", value: "42" },
+      { text: "水族", value: "43" },
+      { text: "塔吉克族", value: "44" },
+      { text: "塔塔尔族", value: "45" },
+      { text: "土家族", value: " 46" },
+      { text: "土族", value: "47" },
+      { text: "佤族", value: "48" },
+      { text: "维吾尔族", value: "49" },
+      { text: "乌孜别克族", value: "50" },
+      { text: "锡伯族", value: " 51" },
+      { text: "瑶族", value: "52" },
+      { text: "彝族", value: "53" },
+      { text: "裕固族", value: "54" },
+      { text: "藏族", value: "55" },
+      { text: "壮族", value: "56" },
+      { text: "其他", value: "57" },
+    ]
     let hs_nation = ref(false);
     let hs_nation = ref(false);
     const getnation = ({ selectedOptions }) => {
     const getnation = ({ selectedOptions }) => {
       hs_nation.value = false;
       hs_nation.value = false;

文件差异内容过多而无法显示
+ 812 - 270
src/views/placeManage/placeRegister/placeRegister.vue


文件差异内容过多而无法显示
+ 601 - 91
src/views/placeManage/placeRegister/placeRegisterInfo.vue


+ 70 - 27
src/views/placeManage/placeRegister/placeRegisterList.vue

@@ -40,7 +40,7 @@
           placeholder="请输入场所名称"
           placeholder="请输入场所名称"
         >
         >
           <template #action>
           <template #action>
-            <div @click="search">搜索</div>
+            <div @click="search1">搜索</div>
           </template>
           </template>
         </van-search>
         </van-search>
       </div>
       </div>
@@ -94,7 +94,7 @@
         v-model:loading="loading"
         v-model:loading="loading"
         :finished="finished"
         :finished="finished"
         finished-text="没有更多了"
         finished-text="没有更多了"
-        @load="onLoad"
+        @load="search"
       >
       >
         <van-swipe-cell v-for="item in searchList" :key="item">
         <van-swipe-cell v-for="item in searchList" :key="item">
           <div class="list-item" @click="gotoplaceRegister(item.id)">
           <div class="list-item" @click="gotoplaceRegister(item.id)">
@@ -129,7 +129,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import {onMounted, ref } from "vue";
+import { onMounted, ref } from "vue";
 import { useRouter } from "vue-router";
 import { useRouter } from "vue-router";
 import tools from "@/api/sys/tools";
 import tools from "@/api/sys/tools";
 import placePerson from "@/api/placePerson/placePerson";
 import placePerson from "@/api/placePerson/placePerson";
@@ -161,24 +161,56 @@ export default {
     //搜索事件
     //搜索事件
     const show = ref(false);
     const show = ref(false);
     const searchList = ref([]);
     const searchList = ref([]);
+
+    const search1 = () => {
+      searchList.value = [];
+      search();
+    }
+
     const search = () => {
     const search = () => {
-      if (searchName.value != "") {
+      loading.value = true;
+      finished.value = false;
+      // searchList.value = [];
+      if (value2.value == 0) {
         show.value = true;
         show.value = true;
         new PlaceRegister()
         new PlaceRegister()
           .searchlist({
           .searchlist({
-            current: 1,
-            size: 10000,
+            current: index + 1,
+            size: 11,
             name: value.value,
             name: value.value,
+            address: value1.value,
           })
           })
-          .then(({ records }) => {
-            searchList.value = records;
+          .then(({ records, pages }) => {
+            searchList.value = searchList.value.concat(records);
+            // 加载状态结束
+            loading.value = false;
+            if (index + 1 >= pages) {
+              finished.value = true;
+            }
+            index++;
           });
           });
       } else {
       } else {
-        show.value = false;
-        onLoad();
+        show.value = true;
+        new PlaceRegister()
+          .searchlist({
+            current: index + 1,
+            size: 11,
+            name: value.value,
+            address: value1.value,
+            religiousType: value2.value,
+          })
+          .then(({ records, pages }) => {
+            searchList.value = searchList.value.concat(records);
+            // 加载状态结束
+            loading.value = false;
+            if (index + 1 >= pages) {
+              finished.value = true;
+            }
+            index++;
+          });
       }
       }
     };
     };
-    const value = ref('');
+    const value = ref("");
     const value1 = ref("");
     const value1 = ref("");
     const value2 = ref(0);
     const value2 = ref(0);
     const option1 = ref([]);
     const option1 = ref([]);
@@ -189,38 +221,47 @@ export default {
       { text: "天主教", value: 3 },
       { text: "天主教", value: 3 },
       { text: "佛教", value: 4 },
       { text: "佛教", value: 4 },
       { text: "道教", value: 5 },
       { text: "道教", value: 5 },
-    ]
+    ];
     onMounted(() => {
     onMounted(() => {
       getUser();
       getUser();
     });
     });
     const getUser = () => {
     const getUser = () => {
-      let addressList = []
+      let addressList = [];
       let user = localStorage.getItem("MZ_USER");
       let user = localStorage.getItem("MZ_USER");
       new tools().treeData().then((res) => {
       new tools().treeData().then((res) => {
         addressList.push(res[0]);
         addressList.push(res[0]);
+        console.log(res);
         res[0].children.forEach((item) => {
         res[0].children.forEach((item) => {
           addressList.push(item);
           addressList.push(item);
+          if(item.children){
+            item.children.forEach(item2 =>{
+              addressList.push(item2)
+            })
+          }
         });
         });
       });
       });
-      let userArea = '';
+      let userArea = "";
       new placePerson().userList({ loginName: user }).then((res1) => {
       new placePerson().userList({ loginName: user }).then((res1) => {
         let data = res1.records[0];
         let data = res1.records[0];
         userArea = data.areaDTO;
         userArea = data.areaDTO;
-        addressList.forEach(item=>{
-          if(item.id==userArea.code){
-            value1.value = item.code
+        addressList.forEach((item) => {
+          if (item.id == userArea.code) {
+            value1.value = item.code;
+            localStorage.setItem("address", item.code);
             option1.value.push({
             option1.value.push({
-              text:item.name,
-              value:item.code
+              text: item.name,
+              value: item.code,
             });
             });
-            item.children.forEach(item1 => {
+            if(item.children){
+              item.children.forEach((item1) => {
               option1.value.push({
               option1.value.push({
-                text:item1.name,
-                value:item1.code
-              })
-            })
+                text: item1.name,
+                value: item1.code,
+              });
+            });
+            }
           }
           }
-        })
+        });
       });
       });
     };
     };
     //跳转
     //跳转
@@ -244,12 +285,13 @@ export default {
     const onLoad = () => {
     const onLoad = () => {
       loading.value = true;
       loading.value = true;
       finished.value = false;
       finished.value = false;
+      let address = localStorage.getItem("address");
       // 异步更新数据
       // 异步更新数据
       new PlaceRegister()
       new PlaceRegister()
-        .religiousList({
+        .searchlist({
           current: index + 1,
           current: index + 1,
           size: 11,
           size: 11,
-          ...searchForm.value,
+          address: address,
         })
         })
         .then(({ records, pages }) => {
         .then(({ records, pages }) => {
           list.value = list.value.concat(records);
           list.value = list.value.concat(records);
@@ -295,6 +337,7 @@ export default {
       value2,
       value2,
       option1,
       option1,
       option2,
       option2,
+      search1,
     };
     };
   },
   },
 };
 };

+ 22 - 7
src/views/placeManage/placeTablet/placeTablet.vue

@@ -51,10 +51,10 @@
     </van-pull-refresh>
     </van-pull-refresh>
     <van-pull-refresh v-if="show==false" v-model="refreshing" @refresh="onRefresh">
     <van-pull-refresh v-if="show==false" v-model="refreshing" @refresh="onRefresh">
       <van-list
       <van-list
-        v-model:loading="loading"
-        :finished="finished"
+        v-model:loading="loading1"
+        :finished="finished1"
         finished-text="没有更多了"
         finished-text="没有更多了"
-        @load="onLoad"
+        @load="search"
       >
       >
         <van-swipe-cell v-for="item in searchList" :key="item">
         <van-swipe-cell v-for="item in searchList" :key="item">
           <div class="list-item" @click="goTabletInfo(item)">
           <div class="list-item" @click="goTabletInfo(item)">
@@ -91,14 +91,25 @@ export default {
     const show = ref(true)
     const show = ref(true)
     const searchName = ref("");
     const searchName = ref("");
     const searchList = ref([]);
     const searchList = ref([]);
+    const loading1 = ref(false);
+    const finished1 = ref(false);
+    const refreshing1 = ref(false);
+    let index1 = 0;
     const search = () => {
     const search = () => {
       show.value = false
       show.value = false
+      loading1.value = true;
+      finished1.value = false;
       new TabletServer().list({
       new TabletServer().list({
-        current:1,
-        size:10000,
+        current:index1 + 1,
+        size:11,
         brandName:searchName.value
         brandName:searchName.value
-      }).then((res)=>{
-        searchList.value = res.records
+      }).then(({records,pages})=>{
+        searchList.value = searchList.value.concat(records)
+        loading1.value = false;
+          if (index1 + 1 >= pages) {
+            finished1.value = true;
+          }
+          index1++;
       })
       })
     };
     };
 
 
@@ -160,6 +171,10 @@ export default {
       refreshing,
       refreshing,
       onLoad,
       onLoad,
       onRefresh,
       onRefresh,
+      loading1,
+      finished1,
+      refreshing1,
+      onRefresh,
       goTabletInfo,
       goTabletInfo,
       selectColor,
       selectColor,
       //搜索
       //搜索

+ 3 - 0
src/views/placeManage/placeTablet/placeTabletInfo.vue

@@ -163,6 +163,7 @@
               v-model="dataitem.relationship"
               v-model="dataitem.relationship"
               center
               center
               readonly
               readonly
+              label-width = '8em'
               clearable
               clearable
               label="与供奉牌位关系:"
               label="与供奉牌位关系:"
               input-align="right"
               input-align="right"
@@ -178,6 +179,7 @@
               center
               center
               readonly
               readonly
               clearable
               clearable
+              label-width = '8em'
               label="供奉费用(元/年):"
               label="供奉费用(元/年):"
               input-align="right"
               input-align="right"
             />
             />
@@ -192,6 +194,7 @@
               center
               center
               readonly
               readonly
               clearable
               clearable
+              label-width = '8em'
               label="被供奉者信息:"
               label="被供奉者信息:"
               input-align="right"
               input-align="right"
             />
             />

+ 3 - 0
src/views/toBeDone/toBeDone.vue

@@ -163,8 +163,10 @@ export default {
     // 导航栏颜色
     // 导航栏颜色
     const selectColor = ref(window.localStorage.getItem("MZ_COLOR"));
     const selectColor = ref(window.localStorage.getItem("MZ_COLOR"));
     //数据接收
     //数据接收
+    const active = ref(0)
     onMounted(() => {
     onMounted(() => {
       var item = JSON.parse(router.currentRoute.value.query.name);
       var item = JSON.parse(router.currentRoute.value.query.name);
+      console.log();
       if (item == 1) {
       if (item == 1) {
         active.value = 1;
         active.value = 1;
       }
       }
@@ -191,6 +193,7 @@ export default {
       finished,
       finished,
       loading2,
       loading2,
       finished2,
       finished2,
+      active
     };
     };
   },
   },
 };
 };

部分文件因为文件数量过多而无法显示