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