改造会议通知

This commit is contained in:
wanglei
2021-11-19 11:28:04 +08:00
parent c1a734355e
commit 00bf18dee6
4 changed files with 351 additions and 348 deletions

View File

@@ -94,9 +94,9 @@
}[status] }[status]
}, },
detail({id}) { detail({id}) {
uni.navigateTo({ this.comp="detail";
url: "/pages/meetingNotice/components/detail?id=" + id this.params = id;
}) this.isList = false;
}, },
getData() { getData() {
this.$http.post("/app/appmeetinginfo/list", null, { this.$http.post("/app/appmeetinginfo/list", null, {
@@ -139,7 +139,7 @@
}, },
onShow() { onShow() {
this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter"); this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter","meetStatus");
this.getData() this.getData()
} }
} }

View File

@@ -92,9 +92,9 @@
}) })
}, },
handleClick({id}) { handleClick({id}) {
uni.navigateTo({ this.$parent.params = id;
url: "/pages/meetingNotice/components/detail?id=" + id this.$parent.isList = false;
}) this.$parent.comp = "detail"
}, },
change(e) { change(e) {
this.index = e.index this.index = e.index

View File

@@ -82,16 +82,20 @@
</template> </template>
<script> <script>
import AiBack from "../../../components/AiBack"; import AiBack from "../../../components/AiBack";
import {mapActions} from "vuex"; import {mapActions} from "vuex";
import AiTopFixed from "../../../components/AiTopFixed"; import AiTopFixed from "../../../components/AiTopFixed";
export default { export default {
name: "detail", name: "detail",
components: {AiBack, AiTopFixed}, components: {AiBack, AiTopFixed},
props: {
params: {
type: [String, Number]
}
},
data() { data() {
return { return {
id: null,
detail: {}, detail: {},
list: false, list: false,
current: 0, current: 0,
@@ -106,10 +110,6 @@ export default {
] ]
}, },
}, },
onLoad(opt) {
this.id = opt.id
this.$dict.load("meetStatus").then(_ => this.getDetail())
},
methods: { methods: {
count(sta) { count(sta) {
return this.detail.attendees?.filter(e => e.joinStatus == sta)?.length; return this.detail.attendees?.filter(e => e.joinStatus == sta)?.length;
@@ -171,7 +171,7 @@ export default {
}, },
getDetail() { getDetail() {
this.$http.post("/app/appmeetinginfo/info-id", null, { this.$http.post("/app/appmeetinginfo/info-id", null, {
params: {id: this.id} params: {id: this.params}
}).then(res => { }).then(res => {
if (res && res.data) { if (res && res.data) {
this.detail = res.data this.detail = res.data
@@ -179,6 +179,9 @@ export default {
}) })
} }
}, },
created() {
this.getDetail();
},
filters: { filters: {
transform(status) { transform(status) {
if (status == 1) { if (status == 1) {
@@ -189,11 +192,11 @@ export default {
} }
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.detail { .detail {
min-height: 100%; min-height: 100%;
background-color: #F5F5F5; background-color: #F5F5F5;
padding-bottom: 140px; padding-bottom: 140px;
@@ -474,5 +477,5 @@ export default {
top: 0; top: 0;
} }
} }
} }
</style> </style>

View File

@@ -63,13 +63,13 @@
methods: { methods: {
detail({id}) { detail({id}) {
let url this.$parent.params = id;
this.$parent.isList = false;
if (this.params == 2) { if (this.params == 2) {
url = "/pages/meetingNotice/components/addMeeting?id=" + id this.$parent.comp = "addMeeting"
} else { } else {
url = "/pages/meetingNotice/components/detail?id=" + id this.$parent.comp = "detail"
} }
uni.navigateTo({url})
}, },
tag(status) { tag(status) {
return { return {