Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NEW-MT-WD-DESKTOP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶进
NEW-MT-WD-DESKTOP
Commits
745a1a49
Commit
745a1a49
authored
Nov 20, 2020
by
陶进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交一下
parent
05ce003c
Pipeline
#135
failed with stages
Changes
13
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
2840 additions
and
36 deletions
+2840
-36
src/assist/axios.js
src/assist/axios.js
+1
-1
src/assist/dictionary.js
src/assist/dictionary.js
+1513
-0
src/views/base_views/main/main.html
src/views/base_views/main/main.html
+3
-3
src/views/main_views/router/router.html
src/views/main_views/router/router.html
+2
-2
src/views/main_views/stockMarket/routers/main/main.js
src/views/main_views/stockMarket/routers/main/main.js
+402
-0
src/views/main_views/stockMarket/routers/main/main.vue
src/views/main_views/stockMarket/routers/main/main.vue
+198
-0
src/views/main_views/stockMarket/routers/router.js
src/views/main_views/stockMarket/routers/router.js
+11
-0
src/views/main_views/stockMarket/stockMarket.css
src/views/main_views/stockMarket/stockMarket.css
+632
-0
src/views/main_views/stockMarket/stockMarket.html
src/views/main_views/stockMarket/stockMarket.html
+48
-0
src/views/main_views/stockMarket/stockMarket.js
src/views/main_views/stockMarket/stockMarket.js
+0
-0
src/views/main_views/szxData/szxData.css
src/views/main_views/szxData/szxData.css
+1
-1
src/views/main_views/szxData/szxData.html
src/views/main_views/szxData/szxData.html
+1
-1
src/views/main_views/szxData/szxData.js
src/views/main_views/szxData/szxData.js
+28
-28
No files found.
src/assist/axios.js
View file @
745a1a49
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
'
))
...
...
src/assist/dictionary.js
0 → 100644
View file @
745a1a49
This diff is collapsed.
Click to expand it.
src/views/base_views/main/main.html
View file @
745a1a49
...
...
@@ -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:
16
px"
>

</span>
<span
class=
"iconfont"
style=
"font-size: 12px;line-height:
20
px"
>

</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
'
,
...
...
src/views/main_views/router/router.html
View file @
745a1a49
...
...
@@ -91,9 +91,9 @@
disable
:
false
,
title
:
"
股市行情
"
,
detail
:
''
,
id
:
'
stock
Lis
t
'
,
id
:
'
stock
Marke
t
'
,
name
:
'
全部A股
'
,
path
:
'
.
/stockLis
t.html
'
,
path
:
'
.
./../main_views/stockMarket/stockMarke
t.html
'
,
useful
:
1
},
{
...
...
src/views/main_views/stockMarket/routers/main/main.js
0 → 100644
View file @
745a1a49
This diff is collapsed.
Click to expand it.
src/views/main_views/stockMarket/routers/main/main.vue
0 → 100644
View file @
745a1a49
<
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
src/views/main_views/stockMarket/routers/router.js
0 → 100644
View file @
745a1a49
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
src/views/main_views/stockMarket/stockMarket.css
0 → 100644
View file @
745a1a49
This diff is collapsed.
Click to expand it.
src/views/main_views/stockMarket/stockMarket.html
0 → 100644
View file @
745a1a49
<!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
src/views/main_views/stockMarket/stockMarket.js
0 → 100644
View file @
745a1a49
src/views/main_views/szxData/szxData.css
View file @
745a1a49
...
...
@@ -373,4 +373,4 @@
}
.block-checkbox
.active
.el-checkbox__label
{
background
:
#ffabb3
;
}
\ No newline at end of file
}
src/views/main_views/szxData/szxData.html
View file @
745a1a49
...
...
@@ -10,7 +10,7 @@
</head>
<body>
<div
id=
"app"
v-cloak
>
<div
id=
"app"
>
<router-view></router-view>
</div>
</body>
...
...
src/views/main_views/szxData/szxData.js
View file @
745a1a49
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment