diff --git a/pages/massif/plant_plan.vue b/pages/massif/plant_plan.vue index b785d8c..5a0733b 100644 --- a/pages/massif/plant_plan.vue +++ b/pages/massif/plant_plan.vue @@ -119,7 +119,6 @@ export default { } }, submit(){ - console.log(this.formData,'----formData-----') this.$refs.form.validate().then(async valid=>{ if(valid){ var res=await request("/api/plantPlan/add",{ diff --git a/uni_modules/d-form/components/d-form/d-form.vue b/uni_modules/d-form/components/d-form/d-form.vue index 3ba240f..b413533 100644 --- a/uni_modules/d-form/components/d-form/d-form.vue +++ b/uni_modules/d-form/components/d-form/d-form.vue @@ -578,7 +578,7 @@ import {computeArea} from '@/common/utils' pickerContent(){//下拉选择 表单显示数据 if(this.type=='select'){ var column=this.$defineArray(setPickerVal(this.columns[0], this.value).filter(v=>v)); - return this.showValue(column)||column.at(-1)?.label||this.placeholder||`请选择${this.labelName}` + return this.showValue(column)||column.slice(-1)[0]?.label||this.placeholder||`请选择${this.labelName}` } return '' },