Browse Source

其他页面更新

yin_yu820 2 năm trước cách đây
mục cha
commit
befb1b3fa9

+ 18 - 1
src/views/activityMan/nonReligiousInformation/nonReligiousInformationInfo.vue

@@ -16,7 +16,7 @@
         <p>事件概述:{{ info.eventOverview }}</p>
         <p>事件内容:{{ info.eventContent }}</p>
       </div>
-      <van-button v-if="canAudit" type="primary" class="btn-sub">审核</van-button>
+      <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
     </div>
   </template>
     
@@ -45,6 +45,20 @@
         isLoading.value = false;
       });
 
+      // 审核通过
+      const update = () => {
+        isLoading.value = true;
+        info.value.assessment = 1;
+        new nonReligiousInformationService().save(info.value).then((res) => {
+          console.log(res);
+          isLoading.value = false;
+          window.xm.showToast({
+             message:"审核成功!"
+          })
+          history.back();
+        });
+      };
+
         //字典配置
         const getCategories= (key ) => {
             let re="";
@@ -92,10 +106,13 @@
             return re;
         };
 
+        
+
       return {
         info,
         isLoading,
         canAudit,
+        update,
         getCategories,
       };
     },

+ 38 - 5
src/views/activityMan/religiousConference/religiousConferenceInfo.vue

@@ -14,9 +14,14 @@
         <p>会议场所:{{ info.siteName.name }}</p>
         <p>参会人员:{{ info.participants.name }}</p>
         <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
-        <p>会议议题:{{ info.meetingTopics }}</p>
+        <!-- <p>会议议题:{{ info.meetingTopics }}</p> -->
+        <p>会议议题:</p>
+          <wang-editor
+            ref="subjectContentEditor"
+            v-model="info.meetingTopics"
+          />
       </div>
-      <van-button v-if="canAudit" type="primary" class="btn-sub">审核</van-button>
+      <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
     </div>
   </template>
     
@@ -25,14 +30,20 @@
   import religiousConferenceService from "@/api/religiousConference/religiousConferenceService";
   import UserManage from "@/api/user/UserManage";
   import { useRoute } from "vue-router";
+  // 富文本编辑器
+  import WangEditor from "@/components/editor/WangEditor";
   export default {
+    components: { WangEditor },
     setup() {
-      window.xm.setNavigationBarTitle({ title: '负责人会议详情'})
+      //window.xm.setNavigationBarTitle({ title: '负责人会议详情'})
       let isLoading = ref(true);
       let canAudit = ref(false);
       // 活动信息
-      const info = ref({        
+      const info = ref({     
+        meetingTopics:"",   
       });
+      // 富文本
+      let subjectContentEditor = ref(null);
       let route = useRoute();
       new religiousConferenceService().queryById(route.query.id).then((data) => {
         info.value = data;
@@ -41,13 +52,30 @@
         }else{
           canAudit.value = false;
         }      
-
+        console.log(info.value.meetingTopics);
+        //这边报错
+        //subjectContentEditor.value.init(info.value.meetingTopics);
         isLoading.value = false;
       });
+      // 审核通过
+      const update = () => {
+        isLoading.value = true;
+        info.value.assessment = 1;
+        new religiousConferenceService().save(info.value).then((res) => {
+          console.log(res);
+          isLoading.value = false;
+          window.xm.showToast({
+             message:"审核成功!"
+          })
+          history.back();
+        });
+      };
       return {
         info,
         isLoading,
         canAudit,
+        update,
+        subjectContentEditor,
       };
     },
   };
@@ -95,4 +123,9 @@
     text-align: center;
     margin-top: 80px;
   }
+  #editor {
+  width: 100%;
+  height: 150px;
+  overflow: hidden;
+  }
   </style>

+ 15 - 1
src/views/activityMan/securityFacilitiesErr/securityFacilitiesErrInfo.vue

@@ -17,7 +17,7 @@
         <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
         <p>异常内容:{{ info.abnormalContent }}</p>
       </div>
-      <van-button v-if="canAudit" type="primary" class="btn-sub">审核</van-button>
+      <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
     </div>
   </template>
     
@@ -45,9 +45,23 @@
 
         isLoading.value = false;
       });
+      // 审核通过
+      const update = () => {
+        isLoading.value = true;
+        info.value.assessment = 1;
+        new securityFacilitiesErrService().save(info.value).then((res) => {
+          console.log(res);
+          isLoading.value = false;
+          window.xm.showToast({
+             message:"审核成功!"
+          })
+          history.back();
+        });
+      };
       return {
         info,
         isLoading,
+        update,
         canAudit,
       };
     },

+ 15 - 1
src/views/activityMan/siteInspection/siteInspectionInfo.vue

@@ -15,7 +15,7 @@
         <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
         <p>督查内容:{{ info.supervisionContent }}</p>
       </div>
-      <van-button v-if="canAudit" type="primary" class="btn-sub">审核</van-button>
+      <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
     </div>
   </template>
     
@@ -44,9 +44,23 @@
 
         isLoading.value = false;
       });
+      // 审核通过
+      const update = () => {
+        isLoading.value = true;
+        info.value.assessment = 1;
+        new siteInspectionService().save(info.value).then((res) => {
+          console.log(res);
+          isLoading.value = false;
+          window.xm.showToast({
+             message:"审核成功!"
+          })
+          history.back();
+        });
+      };
       return {
         info,
         isLoading,
+        update,
         canAudit,
       };
     },