cxmo 1 anno fa
parent
commit
f26b88323a

+ 26 - 1
src/routes/modules/chartRoutes.js

@@ -202,7 +202,7 @@ export default [
 	},
 
 	/* 持仓分析 */
-	{
+	/* {
 		path:'/',
 		component: home,
 		name: '持仓分析',
@@ -219,5 +219,30 @@ export default [
 				component:()=>import('@/views/positionAnalysis_manage/detail.vue'),
 			}
 		]
+	}, */
+	/* 工具箱 */
+	//ETA1.1.3:将持仓分析,商品价格曲线合并至工具箱
+	{
+		path:'/',
+		component:home,
+		name:'工具箱',
+		hidden:false,
+		children:[
+			{
+				path: 'positionAnalysisList',
+				name: '持仓列表',
+				component:()=>import('@/views/positionAnalysis_manage/list.vue')
+			},
+			{
+				path: 'positionAnalysisDetail',
+				name: '持仓详情',
+				component:()=>import('@/views/positionAnalysis_manage/detail.vue'),
+			},
+			{
+				path:'federalReserveWatch',
+				name:'联储观察',
+				component:()=>import('@/views/toolBox_manage/FederaReserveWatch.vue')
+			}
+		]
 	}
 ]

+ 35 - 0
src/views/toolBox_manage/FederalReserveWatch.vue

@@ -0,0 +1,35 @@
+<template>
+    <!-- 联储观察 -->
+    <div class="federal-reserve-wrap">
+        <div class="select-box">
+            <el-date-picker
+                v-model="value1"
+                type="date"
+                placeholder="选择日期">
+            </el-date-picker>
+        </div>
+        <div class="tool-box">
+            <el-button>下载</el-button>
+        </div>
+        <div class="table-box">
+            
+        </div>
+    </div>
+</template>
+
+<script>
+export default {
+    data() {
+        return {
+
+        };
+    },
+    methods: {
+
+    },
+};
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 44 - 0
src/views/toolBox_manage/components/Sheet.vue

@@ -0,0 +1,44 @@
+<template>
+    <div class="table-wrapper">
+        <table cellpadding="0" cellspacing="0">
+            <tbody>
+                <tr v-for="(item, index) in props.data" :key="index">
+                    <td :class="['data-cell', {
+                        'one-bg': (index + 1) % 2 && index > 0,
+                        'tow-bg': (index + 1) % 2 !== 0 && index > 0,
+                        'head-column': index === 0
+                    }]" v-for="(cell, cell_index) in item" :key="cell_index" :colspan="cell.mc.cs || 1"
+                        :rowspan="cell.mc.rs || 1" :style="`
+            color: ${cell.fc};
+                                    font-weight: ${cell.bl ? 'bold' : 'normal'};
+                                    font-style: ${cell.it ? 'italic' : 'normal'};
+                                    background: ${cell.bg};
+          `">
+                        <!-- 单元格拆分 -->
+                        <div class="split-word" v-if="cell.ct.s">
+                            <span v-for="(word, word_index) in cell.ct.s" :key="`${index}_${cell_index}_${word_index}`"
+                                :style="`color: ${word.fc};font-weight: ${word.bl ? 'bold' : 'normal'};font-style: ${word.it ? 'italic' : 'normal'};
+                            `">{{ word.v }}</span>
+                        </div>
+                        <div v-else>{{ cell.m }}</div>
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+    </div>
+</template>
+
+<script>
+    export default {
+        data() {
+            return {
+
+            };
+        },
+        methods: {
+
+        },
+    };
+</script>
+
+<style scoped lang="scss"></style>