|
@@ -294,30 +294,31 @@ export default {
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
save() {
|
|
|
- // console.log(this.$store.state);
|
|
|
- if (this.termData[0] === '') {
|
|
|
- return (this.term = true)
|
|
|
- }
|
|
|
+ let isOk = 0
|
|
|
if (this.selectWData.length === 0) {
|
|
|
- return (this.wei = true)
|
|
|
+ this.wei = true
|
|
|
+ isOk = 1
|
|
|
}
|
|
|
if (this.visitTime === '') {
|
|
|
- return (this.tim = true)
|
|
|
+ this.tim = true
|
|
|
+ isOk = 1
|
|
|
}
|
|
|
+ if (isOk === 1) return
|
|
|
|
|
|
this.isShowMask = true
|
|
|
},
|
|
|
amend() {
|
|
|
+ let isOk = 0
|
|
|
// console.log(this.$store.state);
|
|
|
- if (this.termData === '') {
|
|
|
- this.term = true
|
|
|
- }
|
|
|
if (this.selectWData.length === 0) {
|
|
|
this.wei = true
|
|
|
+ isOk = 1
|
|
|
}
|
|
|
if (this.visitTime === '') {
|
|
|
- return (this.tim = true)
|
|
|
+ this.tim = true
|
|
|
+ isOk = 1
|
|
|
}
|
|
|
+ if (isOk === 1) return
|
|
|
|
|
|
this.isShowMask = true
|
|
|
},
|
|
@@ -410,13 +411,16 @@ export default {
|
|
|
if (allData.contact !== '') {
|
|
|
this.selectSData = allData.contact.split(',')
|
|
|
}
|
|
|
- this.selectWData = allData.type.split(',')
|
|
|
+ if (allData.type !== '') {
|
|
|
+ this.selectWData = allData.type.split(',')
|
|
|
+ }
|
|
|
+
|
|
|
this.visitTime = allData.recordDate
|
|
|
this.place = allData.place
|
|
|
this.recordCon = allData.recordCon
|
|
|
this.observeCon = allData.recordTit
|
|
|
this.recordCon = allData.recordContent
|
|
|
- if (allData.recordImg !== '' && !allData.recordImg) {
|
|
|
+ if (allData.recordImg !== '') {
|
|
|
this.imgList = allData.recordImg.split(',')
|
|
|
}
|
|
|
this.termData = [allData.term]
|