|
@@ -10,12 +10,7 @@
|
|
<div class="dashboard">
|
|
<div class="dashboard">
|
|
<!--分类信息-->
|
|
<!--分类信息-->
|
|
<div class="flex-wrap tu-fl">
|
|
<div class="flex-wrap tu-fl">
|
|
- <div
|
|
|
|
- v-for="(item, index) in flList"
|
|
|
|
- :key="index"
|
|
|
|
- @click="toApp(item)"
|
|
|
|
- class="flex fl-list"
|
|
|
|
- >
|
|
|
|
|
|
+ <div v-for="(item, index) in flList" :key="index" @click="toApp(item)" class="flex fl-list">
|
|
<div class="fl-list-img">
|
|
<div class="fl-list-img">
|
|
<template v-if="item.logo">
|
|
<template v-if="item.logo">
|
|
<img :alt="item.appName" :src="item.logo" />
|
|
<img :alt="item.appName" :src="item.logo" />
|
|
@@ -37,37 +32,17 @@
|
|
</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">
|
|
- <el-select
|
|
|
|
- :style="inputFlag ? 'width:150px;' : 'width:200px;'"
|
|
|
|
- @change="handleChange"
|
|
|
|
- v-model="select"
|
|
|
|
- placeholder="功能菜单"
|
|
|
|
- @keyup.enter.native="searchByLink"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in routes"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.meta.title"
|
|
|
|
- :value="item.path"
|
|
|
|
- ></el-option>
|
|
|
|
|
|
+ <el-select :style="inputFlag ? 'width:150px;' : 'width:200px;'" @change="handleChange" v-model="select" placeholder="功能菜单">
|
|
|
|
+ <el-option v-for="(item, index) in routes" :key="index" :label="item.meta.title" :value="item.path"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- <el-input
|
|
|
|
- v-show="inputFlag"
|
|
|
|
- :style="inputFlag ? 'width:330px;' : 'width:280px;'"
|
|
|
|
- @keyup.enter.native="searchByLink"
|
|
|
|
- placeholder="如需搜索,请输入"
|
|
|
|
- v-model.trim="input"
|
|
|
|
- class="input-with-select"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input v-show="inputFlag" :style="inputFlag ? 'width:330px;' : 'width:280px;'" @keyup.enter.native="searchByLink" placeholder="如需搜索,请输入" v-model.trim="input" class="input-with-select">
|
|
</el-input>
|
|
</el-input>
|
|
<!-- <el-select v-model="select" slot="prepend" placeholder="功能菜单">
|
|
<!-- <el-select v-model="select" slot="prepend" placeholder="功能菜单">
|
|
<el-option v-for="(item,index) in selectArr" :key="index" :label="item.name" :value="item.value"></el-option>
|
|
<el-option v-for="(item,index) in selectArr" :key="index" :label="item.name" :value="item.value"></el-option>
|
|
</el-select> -->
|
|
</el-select> -->
|
|
</div>
|
|
</div>
|
|
<div class="search-btn">
|
|
<div class="search-btn">
|
|
- <el-button @click="searchByLink" class="btn" type="primary"
|
|
|
|
- >进入</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button @click="searchByLink" class="btn" type="primary">进入</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -87,7 +62,7 @@ import axios from "axios";
|
|
export default {
|
|
export default {
|
|
name: "Dashboard",
|
|
name: "Dashboard",
|
|
components: { Analysis, Journal },
|
|
components: { Analysis, Journal },
|
|
- data() {
|
|
|
|
|
|
+ data () {
|
|
return {
|
|
return {
|
|
roleFlag: true,
|
|
roleFlag: true,
|
|
inputFlag: false,
|
|
inputFlag: false,
|
|
@@ -151,7 +126,7 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(["systemSet", "UserType", "UserId"]),
|
|
...mapGetters(["systemSet", "UserType", "UserId"]),
|
|
- routes() {
|
|
|
|
|
|
+ routes () {
|
|
const arrs = this.$store.getters.permission_routes;
|
|
const arrs = this.$store.getters.permission_routes;
|
|
const datas = arrs.filter(
|
|
const datas = arrs.filter(
|
|
(item) => item.meta && item.meta.title != "首页"
|
|
(item) => item.meta && item.meta.title != "首页"
|
|
@@ -159,20 +134,20 @@ export default {
|
|
return datas;
|
|
return datas;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
|
|
+ mounted () {
|
|
this.isPower();
|
|
this.isPower();
|
|
this.getOthSystem();
|
|
this.getOthSystem();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//搜索-跳转
|
|
//搜索-跳转
|
|
- searchByLink() {
|
|
|
|
|
|
+ searchByLink () {
|
|
const url = this.select;
|
|
const url = this.select;
|
|
this.input
|
|
this.input
|
|
? this.$router.push({ path: url, query: { keyWords: this.input } })
|
|
? this.$router.push({ path: url, query: { keyWords: this.input } })
|
|
: this.$router.push(url);
|
|
: this.$router.push(url);
|
|
},
|
|
},
|
|
//获取接入系统信息
|
|
//获取接入系统信息
|
|
- async getOthSystem() {
|
|
|
|
|
|
+ async getOthSystem () {
|
|
try {
|
|
try {
|
|
const result = await GetOthSystem({
|
|
const result = await GetOthSystem({
|
|
userId: Number(this.UserId),
|
|
userId: Number(this.UserId),
|
|
@@ -188,7 +163,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//判断页面展示权限
|
|
//判断页面展示权限
|
|
- isPower() {
|
|
|
|
|
|
+ isPower () {
|
|
const obj =
|
|
const obj =
|
|
typeof this.systemSet === "string"
|
|
typeof this.systemSet === "string"
|
|
? JSON.parse(this.systemSet)
|
|
? JSON.parse(this.systemSet)
|
|
@@ -216,14 +191,14 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- handleChange(val) {
|
|
|
|
|
|
+ handleChange (val) {
|
|
if (val !== "/systemManagement") {
|
|
if (val !== "/systemManagement") {
|
|
this.inputFlag = true;
|
|
this.inputFlag = true;
|
|
} else {
|
|
} else {
|
|
this.inputFlag = false;
|
|
this.inputFlag = false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- paramsType(t, num, url, name) {
|
|
|
|
|
|
+ paramsType (t, num, url, name) {
|
|
let type = "application/json";
|
|
let type = "application/json";
|
|
let result = "";
|
|
let result = "";
|
|
if (t == "json") {
|
|
if (t == "json") {
|
|
@@ -265,7 +240,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//应用跳转
|
|
//应用跳转
|
|
- toApp(item) {
|
|
|
|
|
|
+ toApp (item) {
|
|
if (item.appUrl) {
|
|
if (item.appUrl) {
|
|
window.open(item.appUrl);
|
|
window.open(item.appUrl);
|
|
const datas = item.inputs;
|
|
const datas = item.inputs;
|