|
@@ -50,10 +50,10 @@
|
|
<!--切换和搜索-->
|
|
<!--切换和搜索-->
|
|
<div class="dashboard-tab flex">
|
|
<div class="dashboard-tab flex">
|
|
<div class="tab">
|
|
<div class="tab">
|
|
- <el-radio-group v-model="radio">
|
|
|
|
|
|
+ <!-- <el-radio-group v-model="radio">
|
|
<el-radio label="1">数据分析</el-radio>
|
|
<el-radio label="1">数据分析</el-radio>
|
|
<el-radio label="2">日志查询</el-radio>
|
|
<el-radio label="2">日志查询</el-radio>
|
|
- </el-radio-group>
|
|
|
|
|
|
+ </el-radio-group> -->
|
|
</div>
|
|
</div>
|
|
<div class="search flex-wrap">
|
|
<div class="search flex-wrap">
|
|
<div class="search-input flex-wrap r24">
|
|
<div class="search-input flex-wrap r24">
|
|
@@ -71,28 +71,38 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--数据分析-->
|
|
<!--数据分析-->
|
|
- <Analysis @sendLog="sendLog" v-show="radio == 1" />
|
|
|
|
|
|
+ <!-- <Analysis @sendLog="sendLog" v-show="radio == 1" /> -->
|
|
<!--个人日志-->
|
|
<!--个人日志-->
|
|
- <Journal @clearQuery="clearQuery" :logObj="logObj" v-show="radio == 2" />
|
|
|
|
|
|
+ <!-- <Journal @clearQuery="clearQuery" :logObj="logObj" v-show="radio == 2" /> -->
|
|
|
|
+ <div class="temp-banner">
|
|
|
|
+ <h1 class="temp-banner-title">
|
|
|
|
+ 欢迎使用<br>
|
|
|
|
+ <span class="temp-banner-title-sub">
|
|
|
|
+ {{ defaultSettings.title }}
|
|
|
|
+ </span>
|
|
|
|
+ </h1>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import defaultSettings from '@/settings'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
-import Analysis from './components/analysis.vue'
|
|
|
|
-import Journal from './components/journal.vue'
|
|
|
|
|
|
+// import Analysis from './components/analysis.vue'
|
|
|
|
+// import Journal from './components/journal.vue'
|
|
import { GetOthSystem } from '@/api/apiHome'
|
|
import { GetOthSystem } from '@/api/apiHome'
|
|
import axios from 'axios'
|
|
import axios from 'axios'
|
|
import qs from 'qs'
|
|
import qs from 'qs'
|
|
-import { externalSSO } from '@/api/login'
|
|
|
|
|
|
+// import { externalSSO } from '@/api/login'
|
|
import { sendLog } from '@/api/apiLog'
|
|
import { sendLog } from '@/api/apiLog'
|
|
import { parseTime } from '@/utils'
|
|
import { parseTime } from '@/utils'
|
|
import { getLogId, getUserId, getUserName } from '@/utils/auth'
|
|
import { getLogId, getUserId, getUserName } from '@/utils/auth'
|
|
export default {
|
|
export default {
|
|
name: 'Dashboard',
|
|
name: 'Dashboard',
|
|
- components: { Analysis, Journal },
|
|
|
|
|
|
+ // components: { Analysis, Journal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ defaultSettings,
|
|
roleFlag: true,
|
|
roleFlag: true,
|
|
inputFlag: false,
|
|
inputFlag: false,
|
|
// 搜索信息
|
|
// 搜索信息
|
|
@@ -167,14 +177,14 @@ export default {
|
|
this.getOthSystem()
|
|
this.getOthSystem()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- //清除日志搜索
|
|
|
|
|
|
+ // 清除日志搜索
|
|
clearQuery (val) {
|
|
clearQuery (val) {
|
|
if (val) {
|
|
if (val) {
|
|
this.$router.replace('/dashboard')
|
|
this.$router.replace('/dashboard')
|
|
this.radio = '2'
|
|
this.radio = '2'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //获取日志信息
|
|
|
|
|
|
+ // 获取日志信息
|
|
sendLog (item) {
|
|
sendLog (item) {
|
|
this.radio = '2'
|
|
this.radio = '2'
|
|
this.logObj = item
|
|
this.logObj = item
|
|
@@ -500,6 +510,27 @@ export default {
|
|
height: 100%;
|
|
height: 100%;
|
|
padding: 0 64px;
|
|
padding: 0 64px;
|
|
padding-top: 32px;
|
|
padding-top: 32px;
|
|
|
|
+ .temp-banner {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: calc(100vh - 112px - 32px - 112px - 32px);
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: calc(32px + 112px);
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 0;
|
|
|
|
+ user-select: none;
|
|
|
|
+ &-title {
|
|
|
|
+ width: 100%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: #96a0b0;
|
|
|
|
+ font-size: 32px;
|
|
|
|
+ &-sub {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.tu-fl {
|
|
.tu-fl {
|
|
.fl-list {
|
|
.fl-list {
|
|
min-width: 240px;
|
|
min-width: 240px;
|
|
@@ -552,6 +583,8 @@ export default {
|
|
.dashboard-tab {
|
|
.dashboard-tab {
|
|
margin: 24px 0 32px 0;
|
|
margin: 24px 0 32px 0;
|
|
line-height: 48px;
|
|
line-height: 48px;
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 1;
|
|
::v-deep .tab {
|
|
::v-deep .tab {
|
|
.el-radio__label {
|
|
.el-radio__label {
|
|
font-size: 16px;
|
|
font-size: 16px;
|