改造会议通知

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

View File

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

View File

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

View File

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