|
@@ -9,7 +9,7 @@
|
|
|
class="tabItem"
|
|
class="tabItem"
|
|
|
v-for="item in tabData"
|
|
v-for="item in tabData"
|
|
|
:style="{ background: item.backColor }"
|
|
:style="{ background: item.backColor }"
|
|
|
- @click="openAiPage">
|
|
|
|
|
|
|
+ @click="openAiPage(item)">
|
|
|
<div class="tabName">{{ item.tabName }}</div>
|
|
<div class="tabName">{{ item.tabName }}</div>
|
|
|
<div class="message">{{ item.message }}</div>
|
|
<div class="message">{{ item.message }}</div>
|
|
|
<div class="icon">
|
|
<div class="icon">
|
|
@@ -43,12 +43,14 @@ export default {
|
|
|
message: '帮助您用自然语言查询指标、支持多条件组合查询',
|
|
message: '帮助您用自然语言查询指标、支持多条件组合查询',
|
|
|
icon: 'bar-chart-o',
|
|
icon: 'bar-chart-o',
|
|
|
backColor: '#665bb9',
|
|
backColor: '#665bb9',
|
|
|
|
|
+ datasetId: '250514091022957',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
tabName: '门店圈选',
|
|
tabName: '门店圈选',
|
|
|
message: '帮助您使用自然语言进行筛选,支持多条件组合筛选',
|
|
message: '帮助您使用自然语言进行筛选,支持多条件组合筛选',
|
|
|
icon: 'list-switching',
|
|
icon: 'list-switching',
|
|
|
backColor: '#68a3e7',
|
|
backColor: '#68a3e7',
|
|
|
|
|
+ datasetId: '250514091601918',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
chatBoxMessage: '',
|
|
chatBoxMessage: '',
|
|
@@ -75,9 +77,12 @@ export default {
|
|
|
this.$toast(error.msg);
|
|
this.$toast(error.msg);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- openAiPage() {
|
|
|
|
|
|
|
+ openAiPage(item) {
|
|
|
window.location.href =
|
|
window.location.href =
|
|
|
- 'http://bi.dgtis.com/cboard/h5/index.html?token=' + this.AIToken + '#/chatbi';
|
|
|
|
|
|
|
+ 'http://bi.dgtis.com/cboard/h5/index.html?token=' +
|
|
|
|
|
+ this.AIToken +
|
|
|
|
|
+ '#/chatbi&datasetId=' +
|
|
|
|
|
+ item.datasetId;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|