|
@@ -11,6 +11,8 @@ import StatisticAnalysis from './StatisticAnalysis.vue'
|
|
import PriceChart from './PriceChart.vue'
|
|
import PriceChart from './PriceChart.vue'
|
|
import BalanceSheet from './BalanceSheet/Index.vue'
|
|
import BalanceSheet from './BalanceSheet/Index.vue'
|
|
import ETAForumChart from './ETAForumChart.vue'
|
|
import ETAForumChart from './ETAForumChart.vue'
|
|
|
|
+import AIPredictModel from './AIPredictModel.vue'
|
|
|
|
+import AIPredictFrame from './AIPredictFrame.vue'
|
|
|
|
|
|
const emits=defineEmits(['insert'])
|
|
const emits=defineEmits(['insert'])
|
|
|
|
|
|
@@ -56,6 +58,11 @@ const typeOpt=ref([
|
|
label:'商品价格曲线',
|
|
label:'商品价格曲线',
|
|
path:'commordityChartBase'
|
|
path:'commordityChartBase'
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ value:'AI预测模型',
|
|
|
|
+ label:'AI预测模型',
|
|
|
|
+ path:'AIPredictEdb'
|
|
|
|
+ },
|
|
{
|
|
{
|
|
value:'沙盘插入',
|
|
value:'沙盘插入',
|
|
label:'逻辑图',
|
|
label:'逻辑图',
|
|
@@ -67,7 +74,20 @@ const typeOpt=ref([
|
|
path:'semanticsPage'
|
|
path:'semanticsPage'
|
|
},
|
|
},
|
|
])
|
|
])
|
|
|
|
+const AiTypeOpt=ref([
|
|
|
|
+ {
|
|
|
|
+ value:'预测模型',
|
|
|
|
+ label:'预测模型图',
|
|
|
|
+ path:'AIPredictEdb'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value:'模型框架',
|
|
|
|
+ label:'模型框架',
|
|
|
|
+ path:'AIPredictEdb'
|
|
|
|
+ },
|
|
|
|
+])
|
|
const activeType=ref('素材库')
|
|
const activeType=ref('素材库')
|
|
|
|
+const activeTypeAI=ref('预测模型')
|
|
async function initTypeOpts(){
|
|
async function initTypeOpts(){
|
|
const res=await apiMenuList()
|
|
const res=await apiMenuList()
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
@@ -105,8 +125,15 @@ function handleConfirmInsert(){
|
|
emits('insert',{list: filterList,type:'iframe',chartType:'chart'})
|
|
emits('insert',{list: filterList,type:'iframe',chartType:'chart'})
|
|
}else if(['平衡表','表格插入'].includes(activeType.value)){
|
|
}else if(['平衡表','表格插入'].includes(activeType.value)){
|
|
emits('insert',{list:list.value,type:'iframe',chartType:'sheet'})
|
|
emits('insert',{list:list.value,type:'iframe',chartType:'sheet'})
|
|
- }else if(['沙盘插入','语义分析插入','素材库'].includes(activeType.value)){
|
|
|
|
|
|
+ }else if(['沙盘插入','语义分析插入','素材库', ''].includes(activeType.value)){
|
|
emits('insert',{list:list.value,type:'img',chartType:''})
|
|
emits('insert',{list:list.value,type:'img',chartType:''})
|
|
|
|
+ } else if(activeType.value==='AI预测模型'){
|
|
|
|
+ if (activeTypeAI.value === '预测模型') {
|
|
|
|
+ let filterList = list.value;
|
|
|
|
+ emits('insert',{list: filterList,type:'iframe',chartType:'chart'})
|
|
|
|
+ } else if (activeTypeAI.value === '模型框架') {
|
|
|
|
+ emits('insert',{list:list.value,type:'img',chartType:''})
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
list.value=[]
|
|
list.value=[]
|
|
@@ -134,6 +161,19 @@ function handleConfirmInsert(){
|
|
<PriceChart @update="handleSelectChart" v-if="activeType==='商品价格曲线'"/>
|
|
<PriceChart @update="handleSelectChart" v-if="activeType==='商品价格曲线'"/>
|
|
<BalanceSheet @update="handleSelectChart" @insert="handleConfirmInsert" v-if="activeType==='平衡表'"/>
|
|
<BalanceSheet @update="handleSelectChart" @insert="handleConfirmInsert" v-if="activeType==='平衡表'"/>
|
|
<ETAForumChart @update="handleSelectChart" v-if="activeType==='etaForum'"/>
|
|
<ETAForumChart @update="handleSelectChart" v-if="activeType==='etaForum'"/>
|
|
|
|
+
|
|
|
|
+ <div v-if="activeType==='AI预测模型'">
|
|
|
|
+ <ul class="top-type-box">
|
|
|
|
+ <li
|
|
|
|
+ :class="['item',activeTypeAI===item.value&&'active']"
|
|
|
|
+ v-for="item in AiTypeOpt"
|
|
|
|
+ :key="item"
|
|
|
|
+ @click="activeTypeAI=item.value;list=[]"
|
|
|
|
+ >{{item.label}}</li>
|
|
|
|
+ </ul>
|
|
|
|
+ <AIPredictModel @update="handleSelectChart" v-if="activeTypeAI==='预测模型'"/>
|
|
|
|
+ <AIPredictFrame @update="handleSelectChart" v-if="activeTypeAI==='模型框架'"/>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="bot-btn" v-if="activeType!=='平衡表'">
|
|
<div class="bot-btn" v-if="activeType!=='平衡表'">
|
|
<van-button type="primary" block @click="handleConfirmInsert" :disabled="list.length===0">插入</van-button>
|
|
<van-button type="primary" block @click="handleConfirmInsert" :disabled="list.length===0">插入</van-button>
|