|
@@ -102,28 +102,32 @@ export default {
|
|
|
queryMarks() {
|
|
|
let params = {
|
|
|
postParams: {
|
|
|
- graphId: '1',
|
|
|
+ categoryId: 'NTXT',
|
|
|
projectId: '1'
|
|
|
}
|
|
|
}
|
|
|
queryRead(params).then(res => {
|
|
|
console.log('备注', res.data.Data[0].Note)
|
|
|
- // 打开底图备注编辑重新查询
|
|
|
- // 有备注->判断底图->判断要展示的文字是否备注中的吻合->加/不加
|
|
|
- // 无备注->判断平面图->是否展示默认文案
|
|
|
if (res.data.Data[0].Note) {
|
|
|
let note = res.data.Data[0].Note
|
|
|
- if (note.search(this.text1) != 1) {
|
|
|
+ if (note.search(this.text1) != -1 && note.search(this.text2) != -1) {
|
|
|
this.remarksText = `${note}`
|
|
|
- } else {
|
|
|
+ } else if (note.search(this.text1) != -1) {
|
|
|
+ this.remarksText = `${this.text2}${note}`
|
|
|
+ } else if (note.search(this.text2) != -1) {
|
|
|
this.remarksText = `${this.text1}${note}`
|
|
|
- }
|
|
|
- if (note.search(this.text2) != -1) {
|
|
|
- this.remarksText = `${note}`
|
|
|
} else {
|
|
|
- this.remarksText = `${this.text2}${note}`
|
|
|
+ this.remarksText = `${this.text1}${this.text2}${note}`
|
|
|
}
|
|
|
+ // if (note.search(this.text2) != -1) {
|
|
|
+ // this.remarksText = `${note}`
|
|
|
+ // } else {
|
|
|
+ // this.remarksText = `${this.text2}${note}`
|
|
|
+ // }
|
|
|
+ } else {
|
|
|
+ this.remarksText = `${this.text1}${this.text2}`
|
|
|
}
|
|
|
+ console.log(this.remarksText)
|
|
|
})
|
|
|
},
|
|
|
dump() {},
|
|
@@ -175,6 +179,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ this.queryMarks()
|
|
|
},
|
|
|
// 查询编辑状态图例
|
|
|
queryEditNum(flag) {
|