25117
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
<div @click="add(1)">发布会议</div>
|
<div @click="add(1)">发布会议</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<u-picker mode="time" v-model="show" :params="params" @confirm="confirm"></u-picker>
|
<u-picker mode="time" v-model="show" :params="options" @confirm="confirm"></u-picker>
|
||||||
<AiBack ref="aiBack" v-if="!userSelect"/>
|
<AiBack ref="aiBack" v-if="!userSelect"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -95,6 +95,11 @@ import {mapActions} from "vuex";
|
|||||||
export default {
|
export default {
|
||||||
name: "addMeeting",
|
name: "addMeeting",
|
||||||
components: {AiBack, AiUploader},
|
components: {AiBack, AiUploader},
|
||||||
|
props:{
|
||||||
|
params:{
|
||||||
|
type: [Number, String]
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
const initTime = {
|
const initTime = {
|
||||||
time: "",
|
time: "",
|
||||||
@@ -123,10 +128,10 @@ export default {
|
|||||||
userSelect: false,
|
userSelect: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(opt) {
|
created(){
|
||||||
if (opt.id) {
|
if (this.params) {
|
||||||
this.form.id = opt.id
|
this.form.id = this.params;
|
||||||
this.getDetail()
|
this.getDetail();
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let date = new Date();
|
let date = new Date();
|
||||||
@@ -139,7 +144,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
params() {
|
options() {
|
||||||
return {
|
return {
|
||||||
year: true,
|
year: true,
|
||||||
month: true,
|
month: true,
|
||||||
|
|||||||
@@ -55,13 +55,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
created(){
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: this.params == 0 ? "历史会议" : "草稿箱"
|
title: this.params == 0 ? "历史会议" : "草稿箱"
|
||||||
});
|
});
|
||||||
|
this.getData()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
emitReachBottom(){
|
||||||
|
this.current = this.current + 1;
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
detail({id}) {
|
detail({id}) {
|
||||||
this.$parent.params = id;
|
this.$parent.params = id;
|
||||||
this.$parent.isList = false;
|
this.$parent.isList = false;
|
||||||
@@ -109,15 +114,6 @@
|
|||||||
return "日一二三四五六".charAt((new Date(date.split(" ")[0]).getDay()))
|
return "日一二三四五六".charAt((new Date(date.split(" ")[0]).getDay()))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
|
||||||
this.getData()
|
|
||||||
},
|
|
||||||
|
|
||||||
onReachBottom() {
|
|
||||||
this.current = this.current + 1;
|
|
||||||
this.getData()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user