From 36847c8b70fcb4bcdcebf18f531fb869c412a904 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 8 Sep 2022 18:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/events/item-deal-detail-view.vue | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/src/views/modules/events/item-deal-detail-view.vue b/src/views/modules/events/item-deal-detail-view.vue index cf801219..2136a71b 100644 --- a/src/views/modules/events/item-deal-detail-view.vue +++ b/src/views/modules/events/item-deal-detail-view.vue @@ -385,7 +385,6 @@ import 'quill/dist/quill.snow.css' export default { name: 'itemDealDetailView', data () { - return { idea: '', isWhistle: true, // 吹哨按钮 @@ -539,13 +538,13 @@ export default { computed: { dataRule () { var checkPhone = (rule, value, callback) => { - let moblie=/^1(3|4|5|6|7|8|9)\d{9}$/; let tel=/^(0[0-9]{2,3}\-)([2-9][0-9]{4,7})+(\-[0-9]{1,4})?$/; - if (!moblie.test(this.postDataForm.handlePeopleMobile) && !tel.test(this.postDataForm.handlePeopleMobile)) { - return callback(new Error('请输入正确的手机号或座机号!')); - }else{ - callback(); + let moblie = /^1(3|4|5|6|7|8|9)\d{9}$/; let tel = /^(0[0-9]{2,3}\-)([2-9][0-9]{4,7})+(\-[0-9]{1,4})?$/ + if (!moblie.test(this.postDataForm.handlePeopleMobile) && !tel.test(this.postDataForm.handlePeopleMobile)) { + return callback(new Error('请输入正确的手机号或座机号!')) + } else { + callback() } - }; + } return { handleAdvice: [ { @@ -628,7 +627,7 @@ export default { 'postDataForm.handleAdviceRadios': function (val) { this.postDataForm.handleAdvice = val }, - + 'postDataForm.outHandleAdvice': function (val) { this.dataForm.outHandleAdvice = val }, @@ -641,12 +640,10 @@ export default { 'postDataForm.handleCategoryShow': function (val) { if (this.typeKey == 'community_party') { if (val == 6) { - this.isShowDeal = true this.showAdvice = false this.isWhistle = false this.postDataForm.handleAdviceRadios = '历史遗留暂不具备解决条件的事项' - this.postDataForm.handleAdvice = '历史遗留暂不具备解决条件的事项' } else { this.isShowDeal = false this.showAdvice = true @@ -720,9 +717,9 @@ export default { }/oss/file/uploadImg?token=${Cookies.get('token')}` }, methods: { - cc(){ - console.log(this.dataForm); - console.log(this.postDataForm) + cc () { + console.log(this.dataForm) + console.log(this.postDataForm) }, refreshProgress () { this.timeloading = true @@ -1158,7 +1155,6 @@ export default { return this.$message.error('项目处理意见不能为空') } if (this.postDataForm.handleAdvice.length > 500) { - return this.$message.error('项目处理意见不能超过500字') } if (this.evaluateDeptDTOSVisible) { @@ -1211,8 +1207,7 @@ export default { item.uid = item.uid + '77000' }) this.postDataForm.outHandleImagesPC = imagesAttr - - + this.postDataForm.outHandleImages = this.postDataForm.handleImages console.log(this.postDataForm)