From 7e564074af8ac22ed4793d1ce1249a3da75eb147 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Thu, 27 Jul 2023 15:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=85=BC=E5=AE=B9at?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/plant_plan.vue | 1 - uni_modules/d-form/components/d-form/d-form.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 '' },