From b3e097ffa1c83384b305cf306ff3156961e33a91 Mon Sep 17 00:00:00 2001 From: yaolonglong <yaolonglong15@163.com> Date: 星期四, 09 十月 2025 17:12:26 +0800 Subject: [PATCH] 获取验证码功能 --- policy/policyApply/policyApply.vue | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/policy/policyApply/policyApply.vue b/policy/policyApply/policyApply.vue index 69b4c6d..cb692c0 100644 --- a/policy/policyApply/policyApply.vue +++ b/policy/policyApply/policyApply.vue @@ -315,6 +315,11 @@ }, setCompany(e) { this.form.companyName = e + this.form.companyCode = '' + this.form.companyId = '' + this.form.companyPhone = '' + this.form.companyUser = '' + this.form.companyAddress = '' }, confirmTime(e) { this.form.planTime = e.year + '-' + e.month+ '-' + + e.day + ' ' + e.hour + ":" + "00:00" @@ -341,8 +346,20 @@ this.$refs.perpage.open(this.list) }, selectValue(value) { - this.form.peers = value - + value.forEach(val => { + this.form.peers.push(val) + }); + this.form.peers = this.uniqueArrJson(this.form.peers,'peerId') + }, + uniqueArrJson(arr,key) { + var newobj = {},newArr = []; + for(var i=0;i<arr.length;i++){ + var item = arr[i]; + if(!newobj[item[key]]){ + newobj[item[key]] = newArr.push(item); + } + } + return newArr; } } } @@ -406,7 +423,7 @@ } .back{ - /deep/ .u-textarea{ + ::v-deep .u-textarea{ background-color: #F4F4F4; border: none; .u-textarea__count{ @@ -455,7 +472,7 @@ .sui{ } -/deep/ .u-checkbox-label--right > text{ +::v-deep .u-checkbox-label--right > text{ line-height: 54rpx !important; margin-right: 15rpx; } -- Gitblit v1.9.1