diff --git a/src/components/Activity/ActivityAdd.vue b/src/components/Activity/ActivityAdd.vue index ab547ca..2c34301 100644 --- a/src/components/Activity/ActivityAdd.vue +++ b/src/components/Activity/ActivityAdd.vue @@ -213,7 +213,7 @@ export default { return { formItemLayout, tailItemLayout, - form: this.$form.createForm(this, { name: 'r-d-add' }), + form: this.$form.createForm(this, { name: 'activity-add' }), types: [ { id: 0, name: '路演' }, { id: 1, name: '沙龙' }, diff --git a/src/components/Activity/ActivityDate.vue b/src/components/Activity/ActivityDate.vue index b077d99..5df2288 100644 --- a/src/components/Activity/ActivityDate.vue +++ b/src/components/Activity/ActivityDate.vue @@ -1,119 +1,134 @@ @@ -169,7 +184,6 @@ const columns = [ align: 'center', dataIndex: 'edit', key: 'edit', - width: 80, scopedSlots: { customRender: 'edit' }, }, ]; @@ -190,6 +204,7 @@ export default { editVisible: false, editItem: null, // 修改的那条 spinning: false, + showEdit: false, }; }, @@ -206,8 +221,10 @@ export default { }, methods: { - showEditModal(record) { - console.log('record: ', record); + async showEditModal(record) { + this.showEdit = true; + await this.getDetail(true, record); + this.showEdit = false; this.editItem = record; this.editVisible = true; }, @@ -260,6 +277,12 @@ export default { this.$message.error(error || '审核失败'); } }, + + // 活动报名 + openEnroll(id) { + const { query } = this.$route; + this.$router.push({ path: `/event-registration?activityId=${id}`, query }); + }, }, }; diff --git a/src/components/Activity/ActivityEdit.vue b/src/components/Activity/ActivityEdit.vue index 5e1b289..4d86bbb 100644 --- a/src/components/Activity/ActivityEdit.vue +++ b/src/components/Activity/ActivityEdit.vue @@ -2,137 +2,221 @@
- - + + - - 绿谷 - 维基 - + + + + + - + - + + + + + {{ category }} + :value="category.id" + v-for="(category, index) in types" + >{{ category.name }} - + + - + - + - + - + - - + - - + + - + + + + - + + - - + - - 发布 - 不发布 - + - 取消 保存 @@ -143,7 +227,8 @@ + + diff --git a/src/components/Enroll/EnrollSearch.vue b/src/components/Enroll/EnrollSearch.vue new file mode 100644 index 0000000..8efe3c9 --- /dev/null +++ b/src/components/Enroll/EnrollSearch.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/components/IndustryInfo/ActivityEdit.vue b/src/components/IndustryInfo/ActivityEdit.vue index 1e560cf..0bee6fe 100644 --- a/src/components/IndustryInfo/ActivityEdit.vue +++ b/src/components/IndustryInfo/ActivityEdit.vue @@ -42,10 +42,15 @@ label="时间" > @@ -139,7 +144,7 @@ export default { // 举办时间 onChange(value, dateString) { console.log('dateString: ', dateString); - // this.time = dateString; + this.time = dateString; }, // 提交表单 diff --git a/src/components/Page/PageDate.vue b/src/components/Page/PageDate.vue index 4b70613..0a942b2 100644 --- a/src/components/Page/PageDate.vue +++ b/src/components/Page/PageDate.vue @@ -1,49 +1,55 @@ @@ -90,6 +96,7 @@ export default { editVisible: false, editItem: {}, // 修改的那条 spinning: false, + showEdit: false, }; }, @@ -106,7 +113,10 @@ export default { }, methods: { - showEditModal(record) { + async showEditModal(record) { + this.showEdit = true; + await this.getDetail(true, record); + this.showEdit = false; this.editItem = record; this.editVisible = true; }, diff --git a/src/components/Policy/PolicyDate.vue b/src/components/Policy/PolicyDate.vue index 64cba94..2aa4663 100644 --- a/src/components/Policy/PolicyDate.vue +++ b/src/components/Policy/PolicyDate.vue @@ -2,7 +2,14 @@
- 审核通过 + 审核通过 + 审核不通过 @@ -11,8 +18,11 @@ :columns="columns" :data-source="lists" :loading="loading" + :pagination="pagination" :row-key="record => record.id" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" + :scroll="{ y: height }" + @change="handleTableChange" bordered class="white" > @@ -20,27 +30,43 @@ {{ index + 1 }} -