ソースを参照

修改其他有害信息功能

yin_yu820 1 年間 前
コミット
5f7b647cba

+ 1 - 1
src/views/activityMan/nonReligiousInformation/nonReligiousInformationList.vue

@@ -335,7 +335,7 @@ setup() {
   };
   // 删除
   const Itemdel = () => {
-    new siteInspectionService().delete(ids.value).then((res) => {
+    new nonReligiousInformationService().delete(ids.value).then((res) => {
       index = 0;
       loading.value = true;
       list.value = [];

+ 27 - 7
src/views/activityMan/nonReligiousInformation/nonReligiousInformationView.vue

@@ -253,15 +253,35 @@ export default {
           .then((data) => {
             inputForm.value = data;
 
-            inputForm.value.siteName.name=inputForm.value.siteName.organizationName;
 
-            Categories.value.forEach((item) => {
-              if(item.id==inputForm.value.nonReligiousCategories){
-                inputForm.value.nonReligiousCategoriesname = item.name;   
-              }              
-            });            
+            //附件处理      
+            inputForm.value.annex.split("|").forEach((item) => {
+              if (item.trim().length > 0) {
+                fileList.value.push({
+                  name: decodeURIComponent(
+                    item.substring(item.lastIndexOf("/") + 1)
+                  ),
+                  url: $base + item.replace('程序附件//','程序附件/'),
+                });
+                fileupList.value.push({
+                  name: decodeURIComponent(
+                    item.substring(item.lastIndexOf("/") + 1)
+                  ),
+                  url: item,
+                });
+              }
+            });
+
+
+            //inputForm.value.siteName.name=inputForm.value.siteName.organizationName;
+
+            // Categories.value.forEach((item) => {
+            //   if(item.id==inputForm.value.nonReligiousCategories){
+            //     inputForm.value.nonReligiousCategoriesname = item.name;   
+            //   }              
+            // });            
             
-            contentEditor.value.init(inputForm.value.eventContent);
+            //contentEditor.value.init(inputForm.value.eventContent);
             
             isLoading.value = false;
           });