提交 0d9df812 编写于 作者: 杨广俊's avatar 杨广俊

测试 confirm

上级 17245d96
...@@ -101,19 +101,23 @@ export default { ...@@ -101,19 +101,23 @@ export default {
// 删除关键词 // 删除关键词
deleteLabels(isAll, index=0, length=1) { deleteLabels(isAll, index=0, length=1) {
alert(1)
if(isAll) { if(isAll) {
alert(2)
this.pageBurialPoin({ this.pageBurialPoin({
...m_search_history_search_dc, ...m_search_history_search_dc,
labelValue: '', labelValue: '',
createdTime: new Date().getTime(), createdTime: new Date().getTime(),
}) })
} else { } else {
alert(3)
this.pageBurialPoin({ this.pageBurialPoin({
...m_search_history_search_d, ...m_search_history_search_d,
labelValue: '', labelValue: '',
createdTime: new Date().getTime(), createdTime: new Date().getTime(),
}) })
} }
alert(4)
let _this = this, let _this = this,
para = { para = {
token: _this.token, token: _this.token,
......
...@@ -41,6 +41,12 @@ export default { ...@@ -41,6 +41,12 @@ export default {
gotoPage(itemData){ gotoPage(itemData){
console.log('itemData', itemData) console.log('itemData', itemData)
// 如果没有跳转信息,则直接到搜索结果页面 // 如果没有跳转信息,则直接到搜索结果页面
this.pageBurialPoin({
...m_search_history_hot_search,
labelId: itemData.id,
labelValue: itemData.keyword,
createdTime: new Date().getTime()
})
if(!itemData.appModuleInfo if(!itemData.appModuleInfo
|| !(itemData.appModuleInfo.code === 'M001' || !(itemData.appModuleInfo.code === 'M001'
|| itemData.appModuleInfo.code === 'M002' || itemData.appModuleInfo.code === 'M002'
...@@ -66,12 +72,6 @@ export default { ...@@ -66,12 +72,6 @@ export default {
jsonString: paramList jsonString: paramList
}) })
} }
this.pageBurialPoin({
...m_search_history_hot_search,
labelId: itemData.id,
labelValue: itemData.keyword,
createdTime: new Date().getTime()
})
}, },
searchAction(searchText) { searchAction(searchText) {
if(this.showDelete) return if(this.showDelete) return
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册