Browse Source

统计项必填项优化

master
wanggongfeng 5 years ago
parent
commit
e42bc52350
  1. 6
      src/views/modules/workRecord/dailyrecordinfo.vue
  2. 6
      src/views/modules/workRecord/weekrecordinfo.vue
  3. 10
      src/views/modules/workRecord/weekrecordinfoDetail.vue

6
src/views/modules/workRecord/dailyrecordinfo.vue

@ -138,7 +138,9 @@ export default {
}
},
dataForm: {
id: ''
id: '',
content: '',
nickName: ''
},
meetTypeArr: [],
dailyTypeArr: [],
@ -185,7 +187,7 @@ export default {
},
btKeyUpNickName (e) {
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '')
this.dataForm.createdBy = e.target.value
this.dataForm.nickName = e.target.value
},
addHandle (id, disabled) {
this.$parent.selectComponent = 'DailyrecordinfoDetail'

6
src/views/modules/workRecord/weekrecordinfo.vue

@ -110,7 +110,9 @@ export default {
exportURL: '/workRecord/weekrecordinfo/export'
},
dataForm: {
id: ''
id: '',
content: '',
nickName: ''
},
pickerBeginDateBefore: {
disabledDate: (time) => {
@ -178,7 +180,7 @@ export default {
},
btKeyUpNickName (e) {
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '')
this.dataForm.createdBy = e.target.value
this.dataForm.nickName = e.target.value
}
}
}

10
src/views/modules/workRecord/weekrecordinfoDetail.vue

@ -125,8 +125,8 @@ export default {
}
},
created: function () {
// this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadAllFile?token=${Cookies.get('token')}`
this.uploadUrl = `http://219.146.91.110:10000/epdc-api/oss/file/uploadAllFile?token=${Cookies.get('token')}`
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadAllFile?token=${Cookies.get('token')}`
// this.uploadUrl = `http://219.146.91.110:10000/epdc-api/oss/file/uploadAllFile?token=${Cookies.get('token')}`
},
mounted () {
this.pageDisabled = this.$route.query.disabled
@ -188,8 +188,8 @@ export default {
},
// --------------------
handleFileCardPreview (file) {
// window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${file.url}`
window.location.href = `http://219.146.91.110:10000/epdc-api/oss/file/download?fileUrl=${file.url}`
window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${file.url}`
// window.location.href = `http://219.146.91.110:10000/epdc-api/oss/file/download?fileUrl=${file.url}`
},
beforeFileRemove (file, fileList) {
return this.$confirm(`确定移除${file.name}`)
@ -247,7 +247,7 @@ export default {
let remindInfo = ''
for (var i = 0; i < this.dataForm.totalConfigList.length; i++) {
for (var j = 0; j < this.dataForm.totalConfigList[i].configList.length; j++) {
if (this.dataForm.totalConfigList[i].configList[j].total <= 0 && this.dataForm.totalConfigList[i].showFlag === '1') {
if (this.dataForm.totalConfigList[i].configList[j].total <= 0 && this.dataForm.totalConfigList[i].showFlag === '1' && this.dataForm.totalConfigList[i].configList[j].mustFlag === '1') {
remindInfo += '第' + (i + 1) + '项、'
break
}

Loading…
Cancel
Save