Commit 745a1a49 authored by 陶进's avatar 陶进

提交一下

parent 05ce003c
Pipeline #135 failed with stages
const { app } = require('electron').remote
const axios = require('axios')
const path = app.getAppPath()
const baseUrl = require(path + '/config/url').baseUrl
const baseUrl = require(path + '/build_config/url').baseUrl
const { BrowserWindow } = require('electron').remote
var info = JSON.parse(localStorage.getItem('userInfo'))
......
This diff is collapsed.
......@@ -52,7 +52,7 @@
</div>
<div class="index-tab tab" style="min-width: 38px; flex: none">
<div class="icon-bg" @click="reloadActivePage">
<span class="iconfont" style="font-size: 12px;line-height: 16px">&#xe63a;</span>
<span class="iconfont" style="font-size: 12px;line-height: 20px">&#xe63a;</span>
</div>
</div>
<div class="tab-container">
......@@ -131,10 +131,10 @@
const ipcRenderer = require('electron').ipcRenderer
const { app } = require('electron').remote
const path = app.getAppPath()
const env = require(path + '/config/url').env
const env = require(path + '/build_config/url').env
const Datastore = require('nedb')
const { BrowserWindow } = require('electron').remote
const loadUrl = eval(require(path + '/config/url').loadUrl)
const loadUrl = require(path + '/build_config/url').loadUrl
new Vue({
el: '#index',
......
......@@ -91,9 +91,9 @@
disable: false,
title: "股市行情",
detail: '',
id: 'stockList',
id: 'stockMarket',
name: '全部A股',
path: './stockList.html',
path: '../../main_views/stockMarket/stockMarket.html',
useful: 1
},
{
......
This diff is collapsed.
<template>
<div style="height: 100%">
<div class="search-condition shadow">
<div style="font-size: 16px; color: #333; margin-bottom: 12px">
全部A股
</div>
<div style="display: flex">
<div style="flex: auto; display: flex; align-items: center">
<div style="display: flex; align-items: center; margin-right: 24px">
<span>选择日期:</span>
<div class="block">
<el-date-picker
class="inline-input"
:clearable="false"
v-model="choosedDate"
@change="changeDate"
value-format="yyyy-MM-dd"
type="date"
size="mini"
style="width: 160px"
placeholder="选择日期"
>
</el-date-picker>
</div>
</div>
<div>
<span>检索条件:</span>
<span>暂无更多检索条件</span>
<!-- <el-select
v-model="inputCompany"
class="inline-input"
size="mini"
filterable
remote
clearable
style="width:160px"
reserve-keyword
placeholder="请输入公司名称或代码"
:remote-method="remoteMethod"
:loading="selectLoading">
<el-option
v-for="item in companyList"
:key="item.HS_SECCODE_SECCODE"
:label="item.SECNAME+ ' ' + item.HS_SECCODE_SECCODE"
:value="item.HS_SECCODE_SECCODE">
<span>{{item.SECNAME}}</span>
<span style="padding: 0 6px"></span>
<span>{{item.HS_SECCODE_SECCODE}}</span>
</el-option>
</el-select>
<el-input placeholder="请输入搜索内容" v-model="inputSearch" clearable size="mini" class="input-with-select inline-input" style="width:240px;">
<el-select v-model="selectType" slot="append" placeholder="请选择" style="width:76px; font-size:13px">
<el-option label="标题" value="1">标题</el-option> -->
<!-- <el-option label="正文" value="2">正文</el-option> -->
<!-- </el-select>
</el-input> -->
<!-- <el-button size="mini" style="margin-left:8px" type="primary" @click="conditionSearch">搜索</el-button> -->
</div>
<!-- <div class="search-container">
<i class="iconfont iconsearch"></i>
<span @click="highLevelSearch">高级搜索</span>
</div> -->
</div>
<!-- <div style="display:flex; align-items:center">
<el-button plain size="mini" @click="openFile">查看下载目录</el-button>
</div> -->
</div>
</div>
<div class="search-result">
<div class="result-condition shadow" :style="{ width: conditionWidth }">
<span
class="iconfont iconopenmenu close-condition"
@click="hideSearch"
v-show="showCondition"
></span>
<span
class="iconfont iconopenmenu open-condition"
@click="showSearch"
v-show="!showCondition"
></span>
<div v-show="!showCondition" style="font-size: 16px">筛选条件</div>
<div
style="font-size: 13px; color: #333; margin-bottom: 12px"
v-show="showCondition"
>
筛选条件
</div>
<div class="my-tabs" v-show="showCondition">
<div class="tabs-list">
<div
v-for="(item, index) in tabTitle"
class="tab"
:id="'tab' + index"
:key="'tab' + index"
@click="changeTabs(index)"
:class="{ active: isShowTab == index }"
>
{{ item }}
</div>
<div
class="move-line"
:style="{ left: moveLeft, width: moveWidth }"
></div>
</div>
<div class="tab-content">
<div
label="行业"
name="行业"
style="padding: 16px 0"
v-show="isShowTab === 0"
>
<el-tree
style="margin-left: -8px"
:data="industryData"
default-expand-all
highlight-current
:props="defaultProps"
@node-click="industryNodeClick"
></el-tree>
</div>
<div
label="地域"
name="地域"
style="padding: 16px 0"
v-show="isShowTab === 1"
>
<el-tree
style="margin-left: -8px"
:data="positionData"
highlight-current
:expand-on-click-node="false"
:props="defaultProps"
@node-click="positionNodeClick"
></el-tree>
</div>
</div>
</div>
</div>
<div
class="result-wrap shadow"
style="padding: 16px 20px; font-size: 13px; overflow: scroll"
>
<el-table
:data="tableData"
v-loading="!showTable"
class="table-container"
style="width: 100%; font-size: 13px"
height="calc(100% - 52px)"
:cell-style="handleColor"
@sort-change="changeSort"
border
size="medium"
:header-cell-style="{ background: '#f5f7fa', color: '#666' }"
>
<el-table-column
show-overflow-tooltip
:prop="key"
v-for="(val, key) in historyPrice"
:sortable="key === 'F010N' ? 'custom' : false"
:width="
key === 'F020N' ||
key === 'F021N' ||
key === 'TRADEDATE' ||
key === 'F010N'
? '130px'
: ''
"
:key="key"
:label="val"
>
<template slot-scope="scope">
<span
@click="
key === 'SECNAME'
? goToCompanyIndex(scope.row.SECNAME, scope.row.SECCODE)
: false
"
>{{ scope.row[key] === null ? "-" : scope.row[key] }}</span
>
</template>
</el-table-column>
</el-table>
<div style="padding-top: 20px">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[50, 100, 150]"
:page-size="psize"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</div>
</template>
\ No newline at end of file
const { app } = require('electron').remote
const path = app.getAppPath()
const { main } = require(path + '/src/views/main_views/stockMarket/routers/main/main.js')
const routes = [
{ path: '/', component: main }
]
module.exports = {
routes: routes
}
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../../static/plTable/index.css">
<link rel="stylesheet" href="../../../static/element/theme/index.css">
<link rel="stylesheet" href="../../../static/global/global.css">
<link rel="stylesheet" href="./stockMarket.css">
</head>
<body>
<div id="app" class="report-page-container">
<router-view></router-view>
</div>
</body>
<script src="../../../static/vue/vue.min.js"></script>
<script src="../../../static/element/index.js"></script>
<script src="../../../static/vue-router/vue-router.js"></script>
<script src='../../../static/xlsx/xlsx.full.min.js'></script>
<script src="../../../static/plTable/index.js"></script>
<script>
const { app } = require('electron').remote
const path = app.getAppPath()
const { routes } = require(path + '/src/views/main_views/stockMarket/routers/router.js')
const router = new VueRouter({ routes })
const http = require(path + '/src/assist/axios.js')
var info = JSON.parse(localStorage.getItem('userInfo'))
const { splitPane } = require('vue-splitpane')
Vue.component('split-pane', splitPane)
new Vue({
router,
el: '#app',
data: function() {
return {
}
},
mounted () {
},
methods: {
}
})
</script>
</html>
\ No newline at end of file
......@@ -373,4 +373,4 @@
}
.block-checkbox .active .el-checkbox__label{
background: #ffabb3;
}
\ No newline at end of file
}
......@@ -10,7 +10,7 @@
</head>
<body>
<div id="app" v-cloak>
<div id="app">
<router-view></router-view>
</div>
</body>
......
module.exports = (filename, dirname)=>{
const fs = require('fs')
const os = require('os')
const platform = os.platform()
const filePath = filename.replace('.js','.vue')
const dirName = dirname.replace('.js','.vue')
var name
if(platform == 'darwin'){
name = dirName.split('/').pop()
}else{
name = dirName.split('\\').pop()
}
var data = fs.readFileSync(filePath);
var str = data.toString()
str.substring(0, str.lastIndexOf('</template>'))
str = str.replace('<template>','')
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
var href = filename.replace('.js','.css')
link.href = href;
link.rel = 'stylesheet';
link.type = 'text/css';
head.appendChild(link);
return {
name: name,
template: str
}
}
\ No newline at end of file
// module.exports = (filename, dirname)=>{
// const fs = require('fs')
// const os = require('os')
// const platform = os.platform()
// const filePath = filename.replace('.js','.vue')
// const dirName = dirname.replace('.js','.vue')
// var name
// if(platform == 'darwin'){
// name = dirName.split('/').pop()
// }else{
// name = dirName.split('\\').pop()
// }
// var data = fs.readFileSync(filePath);
// var str = data.toString()
// str.substring(0, str.lastIndexOf('</template>'))
// str = str.replace('<template>','')
// var head = document.getElementsByTagName('head')[0];
// var link = document.createElement('link');
// var href = filename.replace('.js','.css')
// link.href = href;
// link.rel = 'stylesheet';
// link.type = 'text/css';
// head.appendChild(link);
// return {
// name: name,
// template: str
// }
// }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment