修改问题知识库
This commit is contained in:
+12
-1
@@ -219,6 +219,17 @@
|
|||||||
localStorage.removeItem('serial_number')
|
localStorage.removeItem('serial_number')
|
||||||
}
|
}
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
|
let BaseQuery = localStorage.getItem('problemknowledgeBase')
|
||||||
|
if (BaseQuery) {
|
||||||
|
let content = JSON.parse(BaseQuery)
|
||||||
|
if (content.id) {
|
||||||
|
this.isTrue = false
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.problemKnowledgeBaseListViewRef.getData(JSON.parse(JSON.stringify(content)))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
localStorage.removeItem('problemknowledgeBase')
|
||||||
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
},
|
},
|
||||||
@@ -351,7 +362,7 @@
|
|||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
searchStr: this.searchStr,
|
searchStr: this.searchStr,
|
||||||
problemTypes: selectedTags.join(','),
|
problemTypes: selectedTags.join(','),
|
||||||
releaseStatus:'Have released'
|
releaseStatus: 'Have released'
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.getInfoList, query).then((res) => {
|
getAction(this.url.getInfoList, query).then((res) => {
|
||||||
|
|||||||
@@ -176,13 +176,20 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkedClick(item) {
|
checkedClick(item) {
|
||||||
let newUrl = this.$router.resolve({
|
localStorage.setItem('problemknowledgeBase',JSON.stringify(item))
|
||||||
path: '/problemKnowledgeBaseView',
|
this.$router.push({
|
||||||
|
path: '/problemknowledgeBase',
|
||||||
query: {
|
query: {
|
||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
// let newUrl = this.$router.resolve({
|
||||||
|
// path: '/problemknowledgeBase',
|
||||||
|
// query: {
|
||||||
|
// id: item.id
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
pageOnChange(page, pageSize) {
|
pageOnChange(page, pageSize) {
|
||||||
this.pageNo = page
|
this.pageNo = page
|
||||||
|
|||||||
Reference in New Issue
Block a user