|
@@ -253,15 +253,35 @@ export default {
|
|
.then((data) => {
|
|
.then((data) => {
|
|
inputForm.value = 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;
|
|
isLoading.value = false;
|
|
});
|
|
});
|