|
@@ -288,6 +288,9 @@ export default {
|
|
|
// 图片列表
|
|
|
imgList: [],
|
|
|
|
|
|
+ // 存储获取的record内容,在上传新纪录的时候进行判断,有修改文案为保存
|
|
|
+ oldRecordData: {},
|
|
|
+
|
|
|
isShowMask: false, // 控制删除弹框的显示与隐藏
|
|
|
isShowMask2: false, // 控制保存弹框的显示与隐藏
|
|
|
// 是否显示分享和继续记录按钮
|
|
@@ -454,14 +457,24 @@ export default {
|
|
|
|
|
|
if (this.selectWData.length === 0) return (this.wei = true)
|
|
|
|
|
|
- // if (this.visitTime === '') {
|
|
|
- // this.tim = true
|
|
|
- // isOk = 1
|
|
|
+ // let conVal = []
|
|
|
+ // if (this.oldRecordData.contact !== '') {
|
|
|
+ // conVal = this.oldRecordData.contact.split(',')
|
|
|
// }
|
|
|
+
|
|
|
+ // console.log(this.arraysAreEqual(this.selectSData, conVal))
|
|
|
+ // console.log(this.year == this.oldRecordData.term)
|
|
|
+
|
|
|
+ // this.oldRecordData.contact
|
|
|
+ // console.log('this.oldRecordData', this.oldRecordData)
|
|
|
+
|
|
|
// if (isOk === 1) return
|
|
|
this.repMaskNum = e
|
|
|
this.repShowMask = true
|
|
|
},
|
|
|
+ arraysAreEqual(arr1, arr2) {
|
|
|
+ return JSON.stringify(arr1) === JSON.stringify(arr2)
|
|
|
+ },
|
|
|
// 获取记录地点
|
|
|
getRecordPlace() {
|
|
|
const data = {
|
|
@@ -744,6 +757,7 @@ export default {
|
|
|
// console.log('getRecord', this.$route.query.rid)
|
|
|
selectRecordDetail(data).then(res => {
|
|
|
console.log('获取单个学生记录详情', res[0][0])
|
|
|
+ this.oldRecordData = res[0][0]
|
|
|
const allData = res[0][0]
|
|
|
if (allData.contact !== '') {
|
|
|
this.selectSData = allData.contact.split(',')
|