diff --git a/src/pages/details/meetingDetail/index.vue b/src/pages/details/meetingDetail/index.vue index c1810f20e..e147788bd 100644 --- a/src/pages/details/meetingDetail/index.vue +++ b/src/pages/details/meetingDetail/index.vue @@ -61,7 +61,7 @@ - 会议议题 + 会议议题{{ index + 1 }} diff --git a/src/pages/policyRegulation/meeting/components/editDrawer.vue b/src/pages/policyRegulation/meeting/components/editDrawer.vue index c2141b0c8..577794107 100644 --- a/src/pages/policyRegulation/meeting/components/editDrawer.vue +++ b/src/pages/policyRegulation/meeting/components/editDrawer.vue @@ -142,22 +142,38 @@ - - 会议议题 - - + + + 会议议题{{ index + 1 }} + + + + + + + @@ -407,6 +423,9 @@ export default { this.$refs.formRef.validate(valid => { if (valid) { this.isSubmit = true + this.form.meetingTopicList.forEach((item, index) => { + item.sort = index + }) if (this.title === '新增') { this.$http._postData(this.api.add, this.form).then(res => { if (res.ok) { @@ -436,7 +455,21 @@ export default { }, dragIn (val) { this.$set(this.form, 'topicName', val.topicName) - } + }, + moveOrder (index, type) { + if (type === 'top') { + const obj1 = this.form.meetingTopicList[index] + const obj2 = this.form.meetingTopicList[index - 1] + this.$set(this.form.meetingTopicList, index - 1, obj1) + this.$set(this.form.meetingTopicList, index, obj2) + } + if (type === 'bottom') { + const obj1 = this.form.meetingTopicList[index] + const obj2 = this.form.meetingTopicList[index + 1] + this.$set(this.form.meetingTopicList, index + 1, obj1) + this.$set(this.form.meetingTopicList, index, obj2) + } + }, } } @@ -457,4 +490,11 @@ export default { background: #fff; z-index: 999; } +.move-icon { + font-size: 32px; + cursor: pointer +} +.move-icon:hover { + color: #409EFF; +}