学生端页面完成
@ -0,0 +1,23 @@
|
||||
import request from '@/utils/request'
|
||||
export const getMarketQuotation = () => {
|
||||
return request({
|
||||
url: 'api/trading/getMarketQuotation',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
// 可用资金
|
||||
export const getMemberById = ( memberId) => {
|
||||
return request({
|
||||
url: 'api/member/getMemberById ',
|
||||
method: 'post',
|
||||
data: memberId
|
||||
})
|
||||
}
|
||||
// 可用资金
|
||||
export const getMarketQuotationByCode = ( code) => {
|
||||
return request({
|
||||
url: 'api/trading/getMarketQuotationByCode ',
|
||||
method: 'post',
|
||||
data: code
|
||||
})
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
import request from '@/utils/request'
|
||||
export const getMember = (data) => {
|
||||
return request({
|
||||
url: 'api/member/getMember',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
@ -0,0 +1 @@
|
||||
<svg t="1688354357249" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8715" data-spm-anchor-id="a313x.7781069.0.i17" width="200" height="200"><path d="M446.275089 956.340017c-3.76679 0-7.633864-0.199545-11.533684-0.649799l-273.066189-30.800493c-55.399751-6.250354-98.800213-54.667064-98.800213-110.199845l0-685.533288c0-57.300031 47.89994-101.43318 106.732883-94.132914l273.066189 33.099862c54.999638 6.650467 98.066503 55.150064 98.066503 110.400413l0 682.667008C540.741601 914.540006 499.241418 956.340017 446.275089 956.340017zM157.208485 102.540398c-15.366989 0-26.066679 10.933003-26.066679 26.616194l0 685.533288c0 20.632923 17.499559 40.033785 38.20002 42.366923l273.066189 30.800493c17.10047 1.833765 30.066783-9.533121 30.066783-26.666336L472.474798 178.523953c0-20.61655-17.400299-40.133046-38.000476-42.632983L161.408133 102.791108C159.974481 102.623285 158.574598 102.540398 157.208485 102.540398z" fill="#ffffff" p-id="8716" data-spm-anchor-id="a313x.7781069.0.i18" class="selected"></path><path d="M616.474446 956.140473c-17.133216 0-31.933293-12.867052-33.900088-30.300097-2.099824-18.733667 11.366885-35.633568 30.099529-37.749766l273.066189-30.816866c20.700461-2.333138 38.20002-21.732977 38.20002-42.366923l0-685.533288c0-8.316409-3.000334-15.550161-8.400321-20.35049-5.566786-4.916986-13.267165-7.033184-21.86703-6.01704l-273.066189 33.099862c-18.699897 2.366907-35.732829-11.067057-38.000476-29.783327-2.266623-18.699897 11.067057-35.716456 29.7997-37.983079l273.066189-33.099862c27.566846-3.499707 55.232952 4.883217 75.333756 22.683628 20.233833 17.949814 31.400151 43.316551 31.400151 71.450309l0 685.533288c0 55.533804-43.400462 103.950514-98.800213 110.199845L620.339474 955.923532C619.041922 956.073958 617.741299 956.140473 616.474446 956.140473z" fill="#ffffff" p-id="8717" data-spm-anchor-id="a313x.7781069.0.i16" class="selected"></path></svg>
|
After Width: | Height: | Size: 1.9 KiB |
@ -1 +1 @@
|
||||
<svg width="128" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z"/></svg>
|
||||
<svg t="1688353918888" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6018" width="200" height="200"><path d="M98.033 480.211c-10.115 0-20.065-4.783-26.285-13.712-10.102-14.501-6.536-34.446 7.966-44.548l414.033-288.425a32.003 32.003 0 0 1 37.505 0.667l384.137 288.424c14.133 10.612 16.987 30.671 6.376 44.804s-30.67 16.988-44.804 6.375L511.335 199.272l-395.04 275.193a31.845 31.845 0 0 1-18.262 5.746zM831.241 927.64H608.515c-17.673 0-32-14.327-32-32V671.965H448.118V895.64c0 17.673-14.327 32-32 32H188.589c-17.673 0-32-14.327-32-32V513.167c0-17.673 14.327-32 32-32s32 14.327 32 32V863.64h163.529V639.965c0-17.673 14.327-32 32-32h192.397c17.673 0 32 14.327 32 32V863.64h158.727V513.167c0-17.673 14.327-32 32-32s32 14.327 32 32V895.64c-0.001 17.672-14.328 32-32.001 32z" fill="" p-id="6019"></path></svg>
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 848 B |
@ -0,0 +1 @@
|
||||
<svg t="1688354284616" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8003" width="200" height="200"><path d="M876.3 848.9h-19V363.5c0-21.6-17.3-39.1-38.6-39.1H689.9c-21.3 0-38.6 17.5-38.6 39.1v485.4H614V178c0-22.5-17.3-40.7-38.7-40.7H446.2c-21.4 0-38.7 18.2-38.7 40.7v670.9h-37.2V551.3c0-21.9-17.3-39.7-38.6-39.7H202.9c-21.3 0-38.6 17.8-38.6 39.7v297.6h-19.2c-10.3 0-18.7 8.4-18.7 18.7s8.4 18.7 18.7 18.7h731.2c10.4 0 18.7-8.4 18.7-18.7s-8.3-18.7-18.7-18.7zM688.8 363.5c0-1.1 0.7-1.6 1.2-1.6h128.6c0.5 0 1.2 0.6 1.2 1.6v485.4h-131V363.5zM445 178c0-2.2 1.2-3.2 1.3-3.2h128.9c0.3 0.2 1.3 1.2 1.3 3.2v670.9H445V178zM201.8 551.3c0-1.5 0.9-2.2 1.2-2.2h128.6c0.2 0 1.2 0.7 1.2 2.2v297.6h-131V551.3z" p-id="8004"></path></svg>
|
After Width: | Height: | Size: 765 B |
@ -0,0 +1 @@
|
||||
<svg t="1688354047105" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7192" width="200" height="200"><path d="M831.825474 63.940169H191.939717C121.2479 63.940169 63.940169 121.2479 63.940169 191.939717v639.885757C63.940169 902.517291 121.2479 959.825022 191.939717 959.825022h639.885757c70.691817 0 127.999548-57.307731 127.999548-127.999548V191.939717C959.825022 121.2479 902.517291 63.940169 831.825474 63.940169zM895.884854 831.998871A63.835408 63.835408 0 0 1 831.912173 895.884854H192.087827c-17.112123 0-33.270563-6.574639-45.372232-18.67631S127.880338 849.110994 127.880338 831.998871V192.001129A64.236389 64.236389 0 0 1 192.087827 127.880338h639.824346A64.037705 64.037705 0 0 1 895.884854 192.001129v639.997742z" fill="" p-id="7193"></path><path d="M791.998335 351.851551h-255.999097a31.970084 31.970084 0 0 0 0 63.940169h255.999097a31.970084 31.970084 0 0 0 0-63.940169zM791.998335 607.973471h-255.999097a31.970084 31.970084 0 0 0 0 63.940169h255.999097a31.970084 31.970084 0 0 0 0-63.940169zM344.001722 527.997686c-61.855792 0-111.985607 50.144265-111.985607 111.985606s50.144265 111.985607 111.985607 111.985607 111.985607-50.144265 111.985606-111.985607-50.129815-111.985607-111.985606-111.985606z m33.982213 145.982269a48.045438 48.045438 0 1 1 14.088511-33.982213 47.745605 47.745605 0 0 1-14.088511 33.985826zM417.395643 297.394035L311.999125 402.78694 270.6078 361.392003a31.970084 31.970084 0 1 0-45.213286 45.213285l63.997968 64.001581a31.970084 31.970084 0 0 0 45.213286 0l127.999548-127.999549a31.970084 31.970084 0 0 0-45.209673-45.213285z" fill="" p-id="7194"></path></svg>
|
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1 @@
|
||||
<svg t="1688354357249" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8715" data-spm-anchor-id="a313x.7781069.0.i17" width="200" height="200"><path d="M446.275089 956.340017c-3.76679 0-7.633864-0.199545-11.533684-0.649799l-273.066189-30.800493c-55.399751-6.250354-98.800213-54.667064-98.800213-110.199845l0-685.533288c0-57.300031 47.89994-101.43318 106.732883-94.132914l273.066189 33.099862c54.999638 6.650467 98.066503 55.150064 98.066503 110.400413l0 682.667008C540.741601 914.540006 499.241418 956.340017 446.275089 956.340017zM157.208485 102.540398c-15.366989 0-26.066679 10.933003-26.066679 26.616194l0 685.533288c0 20.632923 17.499559 40.033785 38.20002 42.366923l273.066189 30.800493c17.10047 1.833765 30.066783-9.533121 30.066783-26.666336L472.474798 178.523953c0-20.61655-17.400299-40.133046-38.000476-42.632983L161.408133 102.791108C159.974481 102.623285 158.574598 102.540398 157.208485 102.540398z" fill="#ffffff" p-id="8716" data-spm-anchor-id="a313x.7781069.0.i18" class="selected"></path><path d="M616.474446 956.140473c-17.133216 0-31.933293-12.867052-33.900088-30.300097-2.099824-18.733667 11.366885-35.633568 30.099529-37.749766l273.066189-30.816866c20.700461-2.333138 38.20002-21.732977 38.20002-42.366923l0-685.533288c0-8.316409-3.000334-15.550161-8.400321-20.35049-5.566786-4.916986-13.267165-7.033184-21.86703-6.01704l-273.066189 33.099862c-18.699897 2.366907-35.732829-11.067057-38.000476-29.783327-2.266623-18.699897 11.067057-35.716456 29.7997-37.983079l273.066189-33.099862c27.566846-3.499707 55.232952 4.883217 75.333756 22.683628 20.233833 17.949814 31.400151 43.316551 31.400151 71.450309l0 685.533288c0 55.533804-43.400462 103.950514-98.800213 110.199845L620.339474 955.923532C619.041922 956.073958 617.741299 956.140473 616.474446 956.140473z" fill="#ffffff" p-id="8717" data-spm-anchor-id="a313x.7781069.0.i16" class="selected"></path></svg>
|
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 57 KiB |
@ -1,15 +1,39 @@
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
const TokenKey = 'Admin-Token'
|
||||
|
||||
const username = 'NAME'
|
||||
const schoolId = 'SCHOOLID'
|
||||
const memberId = 'MEMBERID'
|
||||
const roleId='ROLEID'
|
||||
export function getToken() {
|
||||
return Cookies.get(TokenKey)
|
||||
}
|
||||
|
||||
export function setToken(token) {
|
||||
return Cookies.set(TokenKey, token)
|
||||
}
|
||||
|
||||
export function removeToken() {
|
||||
return Cookies.remove(TokenKey)
|
||||
}
|
||||
export function getname() {
|
||||
return Cookies.get(username)
|
||||
}
|
||||
export function setname(name) {
|
||||
return Cookies.set(username, name)
|
||||
}
|
||||
export function getschoolId() {
|
||||
return Cookies.get(schoolId)
|
||||
}
|
||||
export function setschoolId(id) {
|
||||
return Cookies.set(schoolId, id)
|
||||
}
|
||||
export function getmemberId() {
|
||||
return Cookies.get(memberId)
|
||||
}
|
||||
export function setmemberId(id) {
|
||||
return Cookies.set(memberId, id)
|
||||
}
|
||||
export function getroleId() {
|
||||
return Cookies.get(roleId)
|
||||
}
|
||||
export function setroleId(id) {
|
||||
return Cookies.set(roleId, id)
|
||||
}
|
@ -1,98 +1,24 @@
|
||||
<template>
|
||||
<div class="dashboard-editor-container">
|
||||
|
||||
<!-- <panel-group @handleSetLineChartData="handleSetLineChartData" />
|
||||
|
||||
<el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
|
||||
<line-chart :chart-data="lineChartData" />
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="32">
|
||||
<el-col :xs="24" :sm="24" :lg="8">
|
||||
<div class="chart-wrapper">
|
||||
<raddar-chart />
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="24" :lg="8">
|
||||
<div class="chart-wrapper">
|
||||
<pie-chart />/index
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="24" :lg="8">
|
||||
<div class="chart-wrapper">
|
||||
<bar-chart />
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
-->
|
||||
</div>
|
||||
<div>
|
||||
御剑乘风来,除魔天地间!
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PanelGroup from './dashboard/PanelGroup'
|
||||
import LineChart from './dashboard/LineChart'
|
||||
import RaddarChart from './dashboard/RaddarChart'
|
||||
import PieChart from './dashboard/PieChart'
|
||||
import BarChart from './dashboard/BarChart'
|
||||
|
||||
const lineChartData = {
|
||||
newVisitis: {
|
||||
expectedData: [100, 120, 161, 134, 105, 160, 165],
|
||||
actualData: [120, 82, 91, 154, 162, 140, 145]
|
||||
},
|
||||
messages: {
|
||||
expectedData: [200, 192, 120, 144, 160, 130, 140],
|
||||
actualData: [180, 160, 151, 106, 145, 150, 130]
|
||||
},
|
||||
purchases: {
|
||||
expectedData: [80, 100, 121, 104, 105, 90, 100],
|
||||
actualData: [120, 90, 100, 138, 142, 130, 130]
|
||||
},
|
||||
shoppings: {
|
||||
expectedData: [130, 140, 141, 142, 145, 150, 160],
|
||||
actualData: [120, 82, 91, 154, 162, 140, 130]
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'Index',
|
||||
components: {
|
||||
PanelGroup,
|
||||
LineChart,
|
||||
RaddarChart,
|
||||
PieChart,
|
||||
BarChart
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
lineChartData: lineChartData.newVisitis
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSetLineChartData(type) {
|
||||
this.lineChartData = lineChartData[type]
|
||||
export default{
|
||||
name:'',
|
||||
data () {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
created () {
|
||||
},
|
||||
computed:{
|
||||
},
|
||||
methods:{
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.dashboard-editor-container {
|
||||
padding: 32px;
|
||||
background-color: rgb(240, 242, 245);
|
||||
position: relative;
|
||||
|
||||
.chart-wrapper {
|
||||
background: #fff;
|
||||
padding: 16px 16px 0;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:1024px) {
|
||||
.chart-wrapper {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style lang='less' scoped>
|
||||
|
||||
</style>
|