|
@@ -162,93 +162,91 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
- <div v-if="tabsactive == '图表插入'">
|
|
|
- <el-input
|
|
|
- placeholder="图表名称"
|
|
|
- v-model="key_word"
|
|
|
- size="medium"
|
|
|
- prefix-icon="el-icon-search"
|
|
|
- @input="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist(key_word)}"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
- <el-radio-group v-model="chart_source" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist()}" style="margin-top: 10px;">
|
|
|
- <el-radio :label="1">ETA图库</el-radio>
|
|
|
- <el-radio :label="2">商品价格曲线</el-radio>
|
|
|
- <el-radio :label="3">相关性图表</el-radio>
|
|
|
- <el-radio :label="6">拟合方程曲线</el-radio>
|
|
|
- <el-radio :label="7">统计特征</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- <div style="margin: 10px 0">
|
|
|
- <el-checkbox v-model="isShowMe" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist(key_word)}">只看我的</el-checkbox>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- id="reportwin"
|
|
|
- ref="chartListRef"
|
|
|
- style="
|
|
|
- height: calc(100vh - 370px);
|
|
|
- overflow-x: hidden;
|
|
|
- overflow-y: auto;
|
|
|
- "
|
|
|
- v-infinite-scroll="loadReportHandle"
|
|
|
- :infinite-scroll-immediate="false"
|
|
|
- >
|
|
|
- <template v-if="newreportlist.length">
|
|
|
- <div
|
|
|
- v-for="(item, index) in newreportlist"
|
|
|
- :key="item.ChartInfoId"
|
|
|
- :style="item.Disabled && 'cursor: not-allowed;'"
|
|
|
- class="liststy"
|
|
|
- >
|
|
|
- <p class="color_primary">{{ item.ChartName }}</p>
|
|
|
- <img
|
|
|
- :src="item.ChartImage"
|
|
|
- :id="'listnode' + index"
|
|
|
- @click="insertHtml(item)"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
-
|
|
|
- <tableNoData text="暂无图表" size="mini" v-else/>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div v-if="tabsactive == '沙盘插入'">
|
|
|
- <el-input
|
|
|
- placeholder="沙盘名称/品种"
|
|
|
- v-model="sandTabelQuery.Keyword"
|
|
|
- size="medium"
|
|
|
- prefix-icon="el-icon-search"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
- <div
|
|
|
- id="sandTable-container"
|
|
|
- ref="sandTable"
|
|
|
- style="
|
|
|
- height: calc(100vh - 370px);
|
|
|
- overflow-x: hidden;
|
|
|
- overflow-y: auto;
|
|
|
- "
|
|
|
- @scroll="sandTableHandleScroll"
|
|
|
- >
|
|
|
- <template v-if="sandTableList.length">
|
|
|
- <div
|
|
|
- v-for="(item, index) in sandTableList"
|
|
|
- :key="item.SandboxId"
|
|
|
- class="liststy"
|
|
|
- >
|
|
|
- <p class="color_primary">{{ item.Name }}</p>
|
|
|
- <img
|
|
|
- :src="item.PicUrl"
|
|
|
- :id="'sandTable' + index"
|
|
|
- @click="insertHtml(item,'image')"
|
|
|
- />
|
|
|
- <p class="source-identification">来源:弘则研究</p>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <tableNoData text="暂无数据" size="mini" v-else/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div v-if="tabsactive == '表格插入'">
|
|
|
+ <div v-if="tabsactive == '图表插入'">
|
|
|
+ <el-input
|
|
|
+ placeholder="标题/子标题/作者"
|
|
|
+ v-model="key_word"
|
|
|
+ size="medium"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ @input="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist(key_word)}"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ <el-radio-group v-model="chart_source" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist()}" style="margin-top: 10px;">
|
|
|
+ <el-radio :label="1">ETA图库</el-radio>
|
|
|
+ <el-radio :label="2">商品价格曲线</el-radio>
|
|
|
+ <el-radio :label="3">相关性图表</el-radio>
|
|
|
+ <el-radio :label="6">拟合方程曲线</el-radio>
|
|
|
+ <el-radio :label="7">统计特征</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ <div style="margin: 10px 0">
|
|
|
+ <el-checkbox v-model="isShowMe" @change="() => {search_page=1;$refs.chartListRef.scrollTop = 0;getreportlist(key_word)}">只看我的</el-checkbox>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ id="reportwin"
|
|
|
+ ref="chartListRef"
|
|
|
+ style="
|
|
|
+ height: calc(100vh - 370px);
|
|
|
+ overflow-x: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
+ "
|
|
|
+ v-infinite-scroll="loadReportHandle"
|
|
|
+ :infinite-scroll-immediate="false"
|
|
|
+ >
|
|
|
+ <template v-if="newreportlist.length">
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in newreportlist"
|
|
|
+ :key="item.ChartInfoId"
|
|
|
+ class="liststy"
|
|
|
+ :style="item.Disabled && 'cursor: not-allowed;'"
|
|
|
+ >
|
|
|
+ <p class="color_primary">{{ item.ChartName }}</p>
|
|
|
+ <img
|
|
|
+ :src="item.ChartImage"
|
|
|
+ :id="'listnode' + index"
|
|
|
+ @click="insertHtml(item)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <tableNoData text="暂无图表" size="mini" v-else/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="tabsactive == '沙盘插入'">
|
|
|
+ <el-input
|
|
|
+ placeholder="沙盘名称/品种"
|
|
|
+ v-model="sandTabelQuery.Keyword"
|
|
|
+ size="medium"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ <div
|
|
|
+ id="sandTable-container"
|
|
|
+ ref="sandTable"
|
|
|
+ style="
|
|
|
+ height: calc(100vh - 3780px);
|
|
|
+ overflow-x: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
+ "
|
|
|
+ @scroll="sandTableHandleScroll"
|
|
|
+ >
|
|
|
+ <template v-if="sandTableList.length">
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in sandTableList"
|
|
|
+ :key="item.SandboxId"
|
|
|
+ class="liststy"
|
|
|
+ >
|
|
|
+ <p class="color_primary">{{ item.Name }}</p>
|
|
|
+ <img
|
|
|
+ :src="item.PicUrl"
|
|
|
+ :id="'sandTable' + index"
|
|
|
+ @click="insertHtml(item, 'image')"
|
|
|
+ />
|
|
|
+ <p class="source-identification">来源:弘则研究</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <tableNoData text="暂无数据" size="mini" v-else/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="tabsactive == '表格插入'">
|
|
|
<el-input
|
|
|
placeholder="表格名称"
|
|
|
v-model="sheetSearchObj.Keyword"
|
|
@@ -283,8 +281,11 @@
|
|
|
<tableNoData text="暂无数据" size="mini" v-else/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="tabsactive == 'MyETA批量插入'">
|
|
|
- <importMyChart @handleImportMyChart="handleImportMyChart"/>
|
|
|
+ <div v-if="tabsactive == 'MyETA批量插入'">
|
|
|
+ <importMyChart @handleImportMyChart="handleImportMyChart" />
|
|
|
+ </div>
|
|
|
+ <div v-if="tabsactive == '语义分析插入'">
|
|
|
+ <importSemantics @handleImportSemantic="(item)=>insertHtml(item,'image')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -317,6 +318,7 @@ import mixinMsg from "./mixins/messagePush";
|
|
|
import reportMixin from './mixins/reportMixin';
|
|
|
import moment from "moment";
|
|
|
import importMyChart from "./components/importMyChart.vue";
|
|
|
+import importSemantics from './components/importSemantics.vue';
|
|
|
let ALOSSINS = null; //阿里云上传实例
|
|
|
export default {
|
|
|
beforeRouteEnter(to, from, next) {
|
|
@@ -329,7 +331,15 @@ export default {
|
|
|
},
|
|
|
mixins: [mixinMsg,reportMixin],
|
|
|
data() {
|
|
|
+ let that=this
|
|
|
return {
|
|
|
+ weekPanelTabs:[
|
|
|
+ "基础信息",
|
|
|
+ "图表插入",
|
|
|
+ "MyETA批量插入",
|
|
|
+ "沙盘插入",
|
|
|
+ "语义分析插入"
|
|
|
+ ],
|
|
|
//批量导入图表
|
|
|
importChartNum: 0, //批量导入图表的数量 如果大于0则说明在加载
|
|
|
|
|
@@ -855,7 +865,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
- components: { importMyChart },
|
|
|
+ components: { importMyChart,importSemantics },
|
|
|
};
|
|
|
</script>
|
|
|
|