This commit is contained in:
wanglei
2021-11-30 15:47:59 +08:00
parent 86b7e3f190
commit 14d9edd786
2 changed files with 21 additions and 20 deletions

View File

@@ -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,