改造会议通知
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -89,9 +89,13 @@ import AiTopFixed from "../../../components/AiTopFixed";
|
||||
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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user