Browse Source

细节优化

epdc-admin-dangqun
wanggongfeng 3 years ago
parent
commit
36847c8b70
  1. 27
      src/views/modules/events/item-deal-detail-view.vue

27
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)

Loading…
Cancel
Save