Parcourir la source

场所登记更新

guoqing il y a 2 ans
Parent
commit
bc7967c785

+ 22 - 0
src/api/differentbelievers/ReligiousPeopleReportService.js

@@ -0,0 +1,22 @@
+import request from '@/utils/request'
+export default class ReligiousPeopleReportService {
+    // 保存
+    save(inputForm) {
+        return request.post(
+            '/differentbelievers/religiousPeopleReport/save',
+            inputForm
+        )
+    };
+    // 修改
+    queryById(id) {
+        return request.get(
+            '/differentbelievers/religiousPeopleReport/queryById', { id: id }
+        )
+    };
+    list(params) {
+        return request.get(
+            `/differentbelievers/religiousPeopleReport/list`,
+            params
+        )
+    };
+}

+ 0 - 7
src/api/sys/tools.js

@@ -3,13 +3,6 @@ export default class Tools {
     treeData() {
         return request.get(`/tools/area_yc/treeData`);
     };
-    // 获取人员信息
-    personList(params) {
-        return request.get(
-            `/user/usermanagement/userManagement/list`,
-            params
-        )
-    };
     placeList(params) {
         return request.get(
             `/religioussites/siteinfo/religiousSitesInfo/list`,

+ 28 - 4
src/router/index.js

@@ -129,10 +129,34 @@ const routes = [{
             isShowTarbar: true,
         }
     }, {
-        path: '/abnormalCrowd',
-        name: 'abnormalCrowd',
+        path: '/selfMeetingInfo',
+        name: 'selfMeetingInfo',
         component: () =>
-            import ('../views/activityMan/abnormalcrowd/abnormalCrowdView.vue'),
+            import ('../views/activityMan/selfMeetingReport/selfMeetingInfo.vue'),
+        meta: {
+            isShowTarbar: true,
+        }
+    }, {
+        path: '/differentbelievers',
+        name: 'differentbelievers',
+        component: () =>
+            import ('../views/activityMan/differentbelievers/ReligiousPeopleReportView.vue'),
+        meta: {
+            isShowTarbar: true,
+        }
+    }, {
+        path: '/differentbelieversList',
+        name: 'differentbelieversList',
+        component: () =>
+            import ('../views/activityMan/differentbelievers/ReligiousPeopleReportList.vue'),
+        meta: {
+            isShowTarbar: true,
+        }
+    }, {
+        path: '/differentbelieversInfo',
+        name: 'differentbelieversInfo',
+        component: () =>
+            import ('../views/activityMan/differentbelievers/ReligiousPeopleReportInfo.vue'),
         meta: {
             isShowTarbar: true,
         }
@@ -214,4 +238,4 @@ const router = createRouter({
     routes,
 })
 
-export default router
+export default router

+ 15 - 0
src/styles/index.css

@@ -1,5 +1,20 @@
 /*公用样式 开始----*/
 
+* {
+    margin: 0;
+    padding: 0;
+}
+
+body {
+    background-color: #f5f5f5;
+    ;
+}
+
+p {
+    line-height: 1.5;
+    margin: 5px;
+}
+
 
 /*字体黑,正文常用*/
 

+ 116 - 0
src/views/activityMan/differentbelievers/ReligiousPeopleReportInfo.vue

@@ -0,0 +1,116 @@
+<template>
+  <van-nav-bar
+    title="私设聚会点"
+    left-text=""
+    left-arrow
+    @click-left="onClickLeft"
+  />
+  <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
+  <div class="main" v-if="!isLoading">
+    <div class="banner">
+      <h2>扎实提升“三力”</h2>
+      <h2>深入推进“三化”</h2>
+      <h2>坚持“三个思维”</h2>
+    </div>
+    <div class="info">
+      <p>异常人员姓名:{{ inputForm.abnormalName }}</p>
+      <p>人员身份证号:{{ inputForm.abnormalIdcar }}</p>
+      <p>性别:{{ inputForm.sex }}</p>
+      <p>手机号:{{ inputForm.abnormalPhone }}</p>
+      <p>籍贯:{{ inputForm.nativePlace }}</p>
+      <p>现居地:{{ inputForm.currentResidence }}</p>
+      <p>现居地详情:{{ inputForm.currentResidenceDetail }}</p>
+      <p>异常行为:{{ inputForm.abnormalBehavior }}</p>
+    </div>
+    <van-button type="primary" class="btn-sub">审核</van-button>
+  </div>
+</template>
+      
+      <script>
+import { ref } from "vue";
+import { useRoute } from "vue-router";
+import ReligiousPeopleReportService from "@/api/differentbelievers/ReligiousPeopleReportService";
+export default {
+  setup() {
+    const onClickLeft = () => {
+      history.back();
+    };
+    // 加载
+    let isLoading = ref(true);
+    // 异常人员信息
+    let inputForm = ref({
+      id: "",
+      abnormalName: "",
+      abnormalIdcar: "",
+      sex: "",
+      abnormalPhone: "",
+      nativePlace: "",
+      currentResidence: "",
+      currentResidenceDetail: "",
+      abnormalBehavior: "",
+      state: "0",
+      assessment: "0",
+      currentResidenceId: "",
+      currentResidenceLevel1: "",
+      currentResidenceLevel2: "",
+      currentResidenceLevel3: "",
+      currentResidenceLevel4: "",
+      currentResidenceLevel5: "",
+      currentResidenceLevel6: "",
+    });
+    // 获取信息
+    let route = useRoute();
+    new ReligiousPeopleReportService()
+      .queryById(route.query.id)
+      .then((data) => {
+        inputForm.value = data;
+        isLoading.value = false;
+      });
+    return {
+      onClickLeft,
+      inputForm,
+      isLoading,
+    };
+  },
+};
+</script>
+      
+  <style lang="less">
+.banner {
+  background-color: #36a7f3;
+  padding: 20px 50px 40px 50px;
+  color: #fff;
+  h2 {
+    &:nth-child(1) {
+      margin-top: 0px;
+      text-align: left;
+    }
+    &:nth-child(2) {
+      text-align: center;
+    }
+    &:nth-child(3) {
+      text-align: right;
+    }
+  }
+}
+.info {
+  position: relative;
+  width: 86vw;
+  // height: 120px;
+  margin: 10px auto;
+  padding: 10px;
+  background: #fff;
+  border-radius: 20px;
+  top: -50px;
+  font-size: 14px;
+}
+.btn-sub {
+  width: 90%;
+  border-radius: 20px;
+  margin-left: 5%;
+}
+.van-loading {
+  text-align: center;
+  margin-top: 20px;
+}
+</style>

+ 205 - 0
src/views/activityMan/differentbelievers/ReligiousPeopleReportList.vue

@@ -0,0 +1,205 @@
+<template>
+  <van-nav-bar
+    title="信教群众异常"
+    right-text="上报"
+    left-arrow
+    @click-left="onClickLeft"
+    @click-right="onClickRight"
+  />
+  <van-search v-model="value" shape="round" placeholder="请输入搜索关键词" />
+  <van-tabs
+    v-model:active="active"
+    title-inactive-color="#bdbdbd"
+    title-active-color="#36a7f3"
+    @click-tab="onClickTab"
+  >
+    <van-tab title="未审核" name="0">
+      <van-list
+        v-model:loading="loading"
+        :finished="finished"
+        finished-text="没有更多了"
+        @load="onLoad"
+      >
+        <van-swipe-cell
+          v-for="item in list"
+          :key="item"
+          :before-close="beforeClose"
+        >
+          <div class="list_item" @click="goInfo(item.id)">
+            <div class="item-left">
+              <p style="color: #c4c4c4">{{ item.partyTime }}</p>
+              <p style="color: red">待审核</p>
+            </div>
+            <van-cell is-link>
+              <template #title>
+                <p>异常人员:{{ item.abnormalName }}</p>
+                <p>身份证号:{{ item.abnormalIdcar }}</p>
+                <p>异常行为:{{ item.abnormalBehavior }}</p>
+              </template>
+            </van-cell>
+          </div>
+          <template #right>
+            <van-button square type="danger" text="删除" class="button" />
+            <van-button
+              square
+              type="primary"
+              text="修改"
+              class="button"
+              @click="updateItem(item)"
+            />
+          </template>
+        </van-swipe-cell>
+      </van-list>
+    </van-tab>
+    <van-tab title="已审核" name="1">
+      <van-list
+        v-model:loading="loading"
+        :finished="finished"
+        finished-text="没有更多了"
+        @load="onLoad"
+      >
+        <van-swipe-cell
+          v-for="item in list"
+          :key="item"
+          :before-close="beforeClose"
+        >
+          <div class="list_item" @click="goInfo(item.id)">
+            <div class="item-left">
+              <p style="color: #c4c4c4">{{ item.partyTime }}</p>
+              <p style="color: red">已审核</p>
+            </div>
+            <van-cell is-link>
+              <template #title>
+                <p>异常人员:{{ item.abnormalName }}</p>
+                <p>身份证号:{{ item.abnormalIdcar }}</p>
+                <p>异常行为:{{ item.abnormalBehavior }}</p>
+              </template>
+            </van-cell>
+          </div>
+        </van-swipe-cell>
+      </van-list>
+    </van-tab>
+  </van-tabs>
+</template>
+    
+    <script>
+import { ref } from "vue";
+import ReligiousPeopleReportService from "@/api/differentbelievers/ReligiousPeopleReportService";
+import { useRouter } from "vue-router";
+export default {
+  name: "ReligiousPeopleReportList",
+  setup() {
+    const onClickLeft = () => {
+      history.back();
+    };
+    // 上报
+    const onClickRight = () => {
+      router.push("/differentbelievers");
+    };
+    const value = ref("");
+    // 切换
+    let active = ref(0);
+    const onClickTab = (val) => {
+      // 清空列表数据
+      finished.value = false;
+      list.value = [];
+      // 重新加载数据
+      // 将 loading 设置为 true,表示处于加载状态
+      loading.value = true;
+      if (val.name == 0) {
+        onLoad(0);
+      } else {
+        onLoad(1);
+      }
+    };
+    // 列表
+    let list = ref([]);
+    const loading = ref(false);
+    const finished = ref(false);
+    let index = 0;
+    const onLoad = (val) => {
+      // 异步更新数据
+      new ReligiousPeopleReportService()
+        .list({
+          current: index + 1,
+          size: 10,
+          assessment: val ? val : 0,
+        })
+        .then((res) => {
+          list.value.push(...res.records);
+          // 加载状态结束
+          loading.value = false;
+          // 数据全部加载完成
+          if (res.records.length < 10) {
+            finished.value = true;
+          }
+          index++;
+        });
+    };
+    // 删除确认
+    const beforeClose = ({ position }) => {
+      switch (position) {
+        case "left":
+        case "cell":
+        case "outside":
+          return true;
+        case "right":
+          return new Promise((resolve) => {
+            showConfirmDialog({
+              title: "确定删除吗?",
+            }).then(resolve);
+          });
+      }
+    };
+    let router = useRouter();
+    // 修改跳转
+    const updateItem = (val) => {
+      router.push({
+        path: "/differentbelievers",
+        query: { id: val.id },
+      });
+    };
+    // 详情跳转
+    const goInfo = (val) => {
+      router.push({
+        path: "/differentbelieversInfo",
+        query: { id: val },
+      });
+    };
+    return {
+      active,
+      onClickTab,
+      onClickLeft,
+      list,
+      onLoad,
+      loading,
+      finished,
+      value,
+      onClickRight,
+      beforeClose,
+      updateItem,
+      goInfo,
+    };
+  },
+};
+</script >
+    
+  <style scope>
+.van-list {
+  height: 80%;
+  margin-top: 5px;
+}
+.list_item {
+  display: flex;
+  background: #fff;
+}
+.item-left {
+  text-align: center;
+  width: 30%;
+  font-size: 12px;
+  border-right: 1px solid #eee;
+}
+.button {
+  height: 100%;
+}
+</style>

+ 59 - 54
src/views/activityMan/abnormalcrowd/abnormalCrowdView.vue → src/views/activityMan/differentbelievers/ReligiousPeopleReportView.vue

@@ -5,23 +5,23 @@
     left-arrow
     @click-left="onClickLeft"
   />
-  <div class="main">
+  <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
+  <div class="main" v-if="!isLoading">
     <p class="title">信教异常群众上报</p>
     <div class="formArea">
       <p class="miniTitle">基础信息</p>
       <van-cell-group>
         <van-field
-          v-model="inputForm.count"
+          v-model="inputForm.abnormalName"
           center
           label="异常人员:"
           placeholder="请填写异常人员姓名"
           input-align="right"
-          type="digit"
         />
       </van-cell-group>
       <van-cell-group>
         <van-field
-          v-model="inputForm.count"
+          v-model="inputForm.abnormalIdcar"
           center
           label="身份证号:"
           placeholder="请填写身份证号"
@@ -31,7 +31,7 @@
       </van-cell-group>
       <van-cell-group>
         <van-field
-          v-model="inputForm.count"
+          v-model="inputForm.abnormalPhone"
           center
           label="手机号:"
           placeholder="请填写手机号"
@@ -42,7 +42,7 @@
       <van-cell-group>
         <van-cell title="性别:">
           <template #right-icon>
-            <van-radio-group v-model="checked" direction="horizontal">
+            <van-radio-group v-model="inputForm.sex" direction="horizontal">
               <van-radio name="1">男</van-radio>
               <van-radio name="2">女</van-radio>
             </van-radio-group>
@@ -51,7 +51,7 @@
       </van-cell-group>
       <van-cell-group>
         <van-field
-          v-model="inputForm.place"
+          v-model="inputForm.nativePlace"
           center
           readonly
           label="籍贯:"
@@ -72,7 +72,7 @@
       </van-cell-group>
       <van-cell-group>
         <van-field
-          v-model="inputForm.place"
+          v-model="inputForm.currentResidence"
           center
           readonly
           label="现居地:"
@@ -93,10 +93,10 @@
       </van-cell-group>
       <van-cell-group>
         <van-field
-          v-model="inputForm.address"
+          v-model="inputForm.currentResidenceDetail"
           center
-          label="详细地址:"
-          placeholder="请填写具体地址"
+          label="现居地详情:"
+          placeholder="请填写现居地详情"
           input-align="right"
           right-icon="location"
         />
@@ -104,7 +104,7 @@
       <van-cell-group>
         <div class="rowTextArea">
           <van-field
-            v-model="inputForm.into"
+            v-model="inputForm.abnormalBehavior"
             placeholder="请填写异常行为"
             center
             rows="2"
@@ -123,45 +123,53 @@
 </template>
     
     <script>
-import { reactive, ref } from "vue";
+import { ref, onMounted } from "vue";
 import { useCascaderAreaData } from "@vant/area-data";
-import personList from "../personList.vue";
+import ReligiousPeopleReportService from "@/api/differentbelievers/ReligiousPeopleReportService";
+import { useRoute } from "vue-router";
 export default {
-  components: { personList },
   setup() {
     // 返回
     const onClickLeft = () => {
       history.back();
     };
-    // 活动信息
-    const inputForm = reactive({
-      place: "",
-      count: "",
-      time: "",
-      person: "",
-      place: "",
-      address: "",
-      into: "",
+    // 加载
+    let isLoading = ref(true);
+    // 异常人员信息
+    const inputForm = ref({
+      id: "",
+      abnormalName: "",
+      abnormalIdcar: "",
+      sex: "",
+      abnormalPhone: "",
+      nativePlace: "",
+      currentResidence: "",
+      currentResidenceDetail: "",
+      abnormalBehavior: "",
+      state: "0",
+      assessment: "0",
+      currentResidenceId: "",
+      currentResidenceLevel1: "",
+      currentResidenceLevel2: "",
+      currentResidenceLevel3: "",
+      currentResidenceLevel4: "",
+      currentResidenceLevel5: "",
+      currentResidenceLevel6: "",
+    });
+    // 根据路由初始化
+    let route = useRoute();
+    onMounted(() => {
+      if (route.query.id) {
+        new ReligiousPeopleReportService()
+          .queryById(route.query.id)
+          .then((data) => {
+            inputForm.value = data;
+            isLoading.value = false;
+          });
+      } else {
+        isLoading.value = false;
+      }
     });
-    // 获取活动时间
-    let showAct = ref(false);
-    let currentDate = ref(["" + new Date().getFullYear(), "01", "01"]);
-    let currentTime = ref(["00", "00"]);
-    const getTime = () => {
-      showAct.value = false;
-      inputForm.time = `${currentDate.value.join("-")} ${currentTime.value.join(
-        ":"
-      )}`;
-    };
-    // 相关人
-    let showPerson = ref(false);
-    let list = "";
-    const selected = (val) => {
-      list = val;
-    };
-    const reselected = () => {
-      inputForm.person = list;
-    };
     // 地区选择
     let showArea = ref(false);
     const cascaderValue = ref("");
@@ -170,29 +178,22 @@ export default {
     // 全部选项选择完毕后,会触发 finish 事件
     const onFinish = ({ selectedOptions }) => {
       showArea.value = false;
-      inputForm.place = selectedOptions.map((option) => option.text).join("/");
+      inputForm.value.currentResidence = selectedOptions
+        .map((option) => option.text)
+        .join("/");
     };
     // 性别
     let checked = ref("1");
     return {
       inputForm,
-      // 活动时间
-      showAct,
-      currentDate,
-      currentTime,
-      getTime,
       // 返回
       onClickLeft,
-      // 人员选择
-      showPerson,
-      selected,
-      reselected,
       // 地区选择
       showArea,
       options,
       onFinish,
       cascaderValue,
-      checked,
+      isLoading,
     };
   },
 };
@@ -256,4 +257,8 @@ export default {
 .van-radio {
   margin-right: 10px;
 }
+.van-loading {
+  text-align: center;
+  margin-top: 20px;
+}
 </style>

+ 20 - 6
src/views/activityMan/placeactivity/placeActivityInfo.vue

@@ -7,7 +7,11 @@
   />
   <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
   <div class="main" v-if="!isLoading">
-    <div class="banner"></div>
+    <div class="banner">
+      <h2>扎实提升“三力”</h2>
+      <h2>深入推进“三化”</h2>
+      <h2>坚持“三个思维”</h2>
+    </div>
     <div class="info">
       <p>活动名称:{{ placeActivity.activityName }}</p>
       <p>场所名称:{{ placeActivity.siteName.name }}</p>
@@ -90,12 +94,22 @@ export default {
 </script>
   
 <style lang="less">
-.main p{
-  line-height: 1.5;
-}
 .banner {
-  height: 30vh;
-  background: #36a7f3;
+  background-color: #36a7f3;
+  padding: 20px 50px 40px 50px;
+  color: #fff;
+  h2 {
+    &:nth-child(1) {
+      margin-top: 0px;
+      text-align: left;
+    }
+    &:nth-child(2) {
+      text-align: center;
+    }
+    &:nth-child(3) {
+      text-align: right;
+    }
+  }
 }
 .info {
   position: relative;

+ 0 - 3
src/views/activityMan/placeactivity/placeActivityList.vue

@@ -194,9 +194,6 @@ export default {
 </script>
 
 <style>
-body {
-  background: #f5f5f5;
-}
 .van-list {
   height: 80%;
   margin-top: 5px;

+ 76 - 34
src/views/activityMan/selfMeetingReport/selfMeetingInfo.vue

@@ -1,62 +1,100 @@
 <template>
   <van-nav-bar
-    fixed
     title="私设聚会点"
     left-text=""
     left-arrow
     @click-left="onClickLeft"
   />
-  <div class="banner"></div>
-  <div class="info">
-    <p>活动名称:{{ placeActivity.activity }}</p>
-    <p>场所名称:{{ placeActivity.place }}</p>
-    <p>发起人:{{ placeActivity.portname }}</p>
-    <p>参会人数:{{ placeActivity.countPerson }}</p>
-    <p>活动地点:{{ placeActivity.activityPlace }}</p>
-    <p>详细地址:{{ placeActivity.address }}</p>
-    <p>活动时间:{{ placeActivity.activityTime }}</p>
-    <p>安全预案:<span style="color: #6892ff">活动申请书</span></p>
-    <p>主题内容:{{ placeActivity.into }}</p>
+  <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
+  <div class="main" v-if="!isLoading">
+    <div class="banner">
+      <h2>扎实提升“三力”</h2>
+      <h2>深入推进“三化”</h2>
+      <h2>坚持“三个思维”</h2>
+    </div>
+    <div class="info">
+      <p>地点:{{ inputForm.placeSelectName }}</p>
+      <p>详细地点:{{ inputForm.placeDel }}</p>
+      <p>频次:{{ inputForm.frequency }}</p>
+      <p>时间:{{ inputForm.partyTime }}</p>
+      <p>相关人:{{ inputForm.relatedPersons.name }}</p>
+      <p>内容:{{ inputForm.content }}</p>
+    </div>
+    <van-button type="primary" class="btn-sub">审核</van-button>
   </div>
-  <van-button type="primary" class="btn-sub">审核</van-button>
 </template>
     
     <script>
-import { reactive } from "vue";
+import { ref } from "vue";
+import { useRoute } from "vue-router";
+import PrivatePartyPointService from "@/api/privateparty/PrivatePartyPointService";
+import UserManage from "@/api/user/UserManage";
 export default {
   setup() {
     const onClickLeft = () => {
       history.back();
     };
-    // 活动信息
-    const placeActivity = reactive({
-      activity: "测试",
-      place: "基督教",
-      activityTime: "2023-03-28 13:00",
-      countPerson: "100",
-      list: "11,22,33",
-      portname: "张三",
-      area: "",
-      activityPlace: "盐都区/张庄街道",
-      address: "1111",
-      money: "",
-      activityName: "李四",
-      tel: "",
-      file: "",
-      into: "1111",
+    // 加载
+    let isLoading = ref(true);
+    // 异常人员信息
+    let inputForm =ref({
+      id: "",
+      place: "320900",
+      placeSelectName: "盐城市",
+      placeSelectType3: "320900",
+      placeSelectType4: "",
+      placeSelectType5: "",
+      placeSelectType6: "",
+      placeDel: "",
+      frequency: "",
+      partyTime: "",
+      relatedPersons: {
+        id: "",
+        name: "",
+      },
+      content: "",
+      state: "0",
+      assessment: "0",
+    });
+    // 获取信息
+    let route = useRoute();
+    new PrivatePartyPointService().queryById(route.query.id).then((data) => {
+      inputForm.value = data;
+      let ids = data.relatedPersons.id.split(",");
+      inputForm.value.relatedPersons.name = "";
+      ids.forEach((item) => {
+        new UserManage().queryById(item).then((data) => {
+          inputForm.value.relatedPersons.name += data.name + ",";
+        });
+      });
+      isLoading.value = false;
     });
     return {
       onClickLeft,
-      placeActivity,
+      inputForm,
+      isLoading
     };
   },
 };
 </script>
     
-  <style lang="less">
+<style lang="less">
 .banner {
-  height: 30vh;
-  background: #36a7f3;
+  background-color: #36a7f3;
+  padding: 20px 50px 40px 50px;
+  color: #fff;
+  h2 {
+    &:nth-child(1) {
+      margin-top: 0px;
+      text-align: left;
+    }
+    &:nth-child(2) {
+      text-align: center;
+    }
+    &:nth-child(3) {
+      text-align: right;
+    }
+  }
 }
 .info {
   position: relative;
@@ -74,4 +112,8 @@ export default {
   border-radius: 20px;
   margin-left: 5%;
 }
+.van-loading {
+  text-align: center;
+  margin-top: 20px;
+}
 </style>

+ 0 - 3
src/views/activityMan/selfMeetingReport/selfMeetingList.vue

@@ -194,9 +194,6 @@ export default {
   display: flex;
   background: #fff;
 }
-.list_item p{
-  line-height: 1;
-}
 .item-left {
   text-align: center;
   width: 30%;

+ 20 - 13
src/views/activityMan/selfMeetingReport/selfMeetingView.vue

@@ -120,10 +120,11 @@
 </template>
   
   <script>
-import { ref ,onMounted} from "vue";
+import { ref, onMounted } from "vue";
 import personList from "../personList.vue";
 import tools from "@/api/sys/tools";
 import PrivatePartyPointService from "@/api/privateparty/PrivatePartyPointService";
+import UserManage from "@/api/user/UserManage";
 import { useRoute } from "vue-router";
 export default {
   components: { personList },
@@ -134,7 +135,7 @@ export default {
     const onClickLeft = () => {
       history.back();
     };
-    // 活动信息
+    // 私设聚会点信息
     let inputForm = ref({
       id: "",
       place: "320900",
@@ -158,17 +159,19 @@ export default {
     let route = useRoute();
     onMounted(() => {
       if (route.query.id) {
-        new PrivatePartyPointService().queryById(route.query.id).then((data) => {
-          inputForm.value = data;
-          // let ids = data.knownList.id.split(",");
-          // inputForm.value.knownList.name = "";
-          // ids.forEach((item) => {
-          //   new UserManage().queryById(item).then((data) => {
-          //     inputForm.value.knownList.name += data.name + ",";
-          //   });
-          // });
-          isLoading.value = false;
-        });
+        new PrivatePartyPointService()
+          .queryById(route.query.id)
+          .then((data) => {
+            inputForm.value = data;
+            let ids = data.relatedPersons.id.split(",");
+            inputForm.value.relatedPersons.name = "";
+            ids.forEach((item) => {
+              new UserManage().queryById(item).then((data) => {
+                inputForm.value.relatedPersons.name += data.name + ",";
+              });
+            });
+            isLoading.value = false;
+          });
       } else {
         isLoading.value = false;
       }
@@ -311,4 +314,8 @@ export default {
   width: 80%;
   top: 50%;
 }
+.van-loading {
+  text-align: center;
+  margin-top: 20px;
+}
 </style>

+ 3 - 3
src/views/tab_a/tabAll.vue

@@ -62,7 +62,7 @@
 	<van-grid :border="false" >
 		<van-grid-item icon="../../../loginbg/hd_cshd.png" @click="placeActivity" text="场所活动" />
 		<van-grid-item icon="../../../loginbg/hd_ssjhd.png" @click="selfMeetingList" text="私设聚会点" />
-		<van-grid-item icon="../../../loginbg/hd_xjqz.png" @click="abnormalCrowd" text="信教群众异常" />
+		<van-grid-item icon="../../../loginbg/hd_xjqz.png" @click="differentbelieversList" text="信教群众异常" />
 		<van-grid-item icon="../../../loginbg/hd_jc.png" text="场所检查" @click="tohd_jc" />
 		<van-grid-item icon="../../../loginbg/hd_af.png" text="安防设施异常" @click="tohd_af" />
 		<van-grid-item icon="../../../loginbg/hd_hy.png" text="负责人会议" @click="tohd_hy" />
@@ -131,8 +131,8 @@ import userSets from "@/api/sys/userSets";
 			selfMeetingList(){
 				this.$router.push("/selfMeetingList")
 			},
-			abnormalCrowd(){
-				this.$router.push("/abnormalCrowd")
+			differentbelieversList(){
+				this.$router.push("/differentbelieversList")
 			},
 			async TokenLogin(){
 				let that=this;