diff --git a/src/view/content/activity/index.vue b/src/view/content/activity/index.vue index e49da6b..601e5f1 100755 --- a/src/view/content/activity/index.vue +++ b/src/view/content/activity/index.vue @@ -24,7 +24,7 @@ :disabled-date="time => searchInfo.startCreatedAt ? time.getTime() < searchInfo.startCreatedAt.getTime() : false"> - + {{ scope.row.brief }} +
+ 指导单位 +
+
+ {{ scope.row.guid }} +
+
+ 主办单位 +
+
+ {{ scope.row.organizer }} +
+
+ 协办单位 +
+
+ {{ scope.row.coOrganizer }} +
+
+ 支持单位 +
+
+ {{ scope.row.support }} +
参与企业
@@ -93,9 +117,13 @@ + + + - @@ -103,7 +131,7 @@ - + @@ -153,32 +181,47 @@ + + + + + - - - - - - - + - + + + + + + + + + + + + + + + + + + + - - - @@ -188,8 +231,8 @@ - - + + @@ -261,14 +304,19 @@ const uploadFailure = () => { // 自动化生成的字典(可能为空)以及字段 const activityStatusOptions = ref([]) +const activityKindOptions = ref([]) const formData = ref({ - cover: "", + cover: '', + kind: 1, label: '', title: '', + brief: '', + guid: '', organizer: '', + coOrganizer: '', + support: '', companies: '', participants: '', - brief: '', activeAddr: '', contact: '', signUrl: '', @@ -291,11 +339,10 @@ const rule = reactive({ { required: true, message: '', trigger: ['input', 'blur'] }, { whitespace: true, message: '不能只输入空格', trigger: ['input', 'blur'] } ], - title: [ + kind: [ { required: true, message: '', trigger: ['input', 'blur'] }, - { whitespace: true, message: '不能只输入空格', trigger: ['input', 'blur'] } ], - organizer: [ + title: [ { required: true, message: '', trigger: ['input', 'blur'] }, { whitespace: true, message: '不能只输入空格', trigger: ['input', 'blur'] } ], @@ -392,6 +439,10 @@ getTableData() // 获取需要的字典 可能为空 按需保留 const setOptions = async () => { activityStatusOptions.value = await getDictFunc('activityStatus') + activityStatusOptions.value.map((item) => { item.value = parseInt(item.value); return item }) + activityKindOptions.value = await getDictFunc('activityKind') + activityKindOptions.value.map((item) => { item.value = parseInt(item.value); return item }) + console.log(activityKindOptions.value) } // 获取需要的字典 可能为空 按需保留 @@ -472,8 +523,12 @@ const closeDialog = () => { dialogFormVisible.value = false formData.value = { label: '', + kind: 1, title: '', + guid: '', organizer: '', + coOrganizer: '', + support: '', companies: '', participants: '', activeAddr: '', @@ -481,7 +536,7 @@ const closeDialog = () => { liveUrl: '', startTime: new Date(), endTime: new Date(), - status: 0, + status: 1, } } // 编辑弹窗确定