通知公告

This commit is contained in:
wanglei
2021-11-22 11:30:26 +08:00
parent dddbbc6faf
commit 4857e4c124
2 changed files with 39 additions and 14 deletions

View File

@@ -61,7 +61,7 @@
</div>
</div>
<AiBack ref="aiBack" v-if="!userSelect"/>
<u-picker v-model="show" mode="time" :params="params" @confirm="confirm"></u-picker>
<u-picker v-model="show" mode="time" :params="options" @confirm="confirm"></u-picker>
<AiSelectEnterprise :visible.sync="userSelect" :value="form.persons" v-if="userSelect" @change="change"></AiSelectEnterprise>
</div>
</template>
@@ -74,6 +74,9 @@
export default {
name: "add",
components: {AiBack,AiSelectEnterprise,AiUploader},
props:{
params:Object
},
data() {
return {
show: false,
@@ -88,7 +91,7 @@
files: [],
},
userSelect: false,
params: {
options: {
year: true,
month: true,
day: true,
@@ -100,10 +103,19 @@
flag: null,
}
},
onLoad(opt) {
if(opt.id) {
this.form.id = opt.id;
this.flag = opt.flag;
watch:{
params:{
handler:function (v) {
if(this.params?.id){
this.form.id = this.params?.id;
this.flag = this.params?.flag;
}
},
immediate:true
}
},
created() {
if(this.params?.id){
this.getDetail();
}
},