|
@ -3,8 +3,15 @@ |
|
|
<div class="opCon"> |
|
|
<div class="opCon"> |
|
|
<el-dropdown class="userBox"> |
|
|
<el-dropdown class="userBox"> |
|
|
<span class="user"> |
|
|
<span class="user"> |
|
|
<img class="icon head" src="@/assets/jihe/images/user/author.png" alt=""> |
|
|
<img |
|
|
<p class="title"><span class="txt">admin</span><i class="menuIcon el-icon-arrow-down el-icon--right"></i></p> |
|
|
class="icon head" |
|
|
|
|
|
src="@/assets/jihe/images/user/author.png" |
|
|
|
|
|
alt="" |
|
|
|
|
|
/> |
|
|
|
|
|
<p class="title"> |
|
|
|
|
|
<span class="txt">admin</span |
|
|
|
|
|
><i class="menuIcon el-icon-arrow-down el-icon--right"></i> |
|
|
|
|
|
</p> |
|
|
</span> |
|
|
</span> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-item> |
|
|
<el-dropdown-item> |
|
@ -14,22 +21,26 @@ |
|
|
</el-dropdown-item> |
|
|
</el-dropdown-item> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
<div class="config"><img class="icon" src="@/assets/jihe/images/user/set.png" alt=""></div> |
|
|
<div class="config"> |
|
|
<div class="logout" @click="logout"><img class="icon" src="@/assets/jihe/images/user/out.png" alt=""></div> |
|
|
<img class="icon" src="@/assets/jihe/images/user/set.png" alt="" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="logout" @click="logout"> |
|
|
|
|
|
<img class="icon" src="@/assets/jihe/images/user/out.png" alt="" /> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from "vuex"; |
|
|
import Breadcrumb from '@/components/Breadcrumb' |
|
|
import Breadcrumb from "@/components/Breadcrumb"; |
|
|
import Hamburger from '@/components/Hamburger' |
|
|
import Hamburger from "@/components/Hamburger"; |
|
|
import Screenfull from '@/components/Screenfull' |
|
|
import Screenfull from "@/components/Screenfull"; |
|
|
import SizeSelect from '@/components/SizeSelect' |
|
|
import SizeSelect from "@/components/SizeSelect"; |
|
|
import Search from '@/components/HeaderSearch' |
|
|
import Search from "@/components/HeaderSearch"; |
|
|
import RuoYiGit from '@/components/RuoYi/Git' |
|
|
import RuoYiGit from "@/components/RuoYi/Git"; |
|
|
// import BigScreen from '@/components/bigScreen' |
|
|
// import BigScreen from '@/components/bigScreen' |
|
|
import RuoYiDoc from '@/components/RuoYi/Doc' |
|
|
import RuoYiDoc from "@/components/RuoYi/Doc"; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -37,17 +48,17 @@ export default { |
|
|
warningList: [], |
|
|
warningList: [], |
|
|
unReadWarningList: [], |
|
|
unReadWarningList: [], |
|
|
warnTypes: [ |
|
|
warnTypes: [ |
|
|
{ value: 0, label: '遥测越限' }, |
|
|
{ value: 0, label: "遥测越限" }, |
|
|
{ value: 1, label: '遥信告警' }, |
|
|
{ value: 1, label: "遥信告警" }, |
|
|
{ value: 2, label: '通道告警' }, |
|
|
{ value: 2, label: "通道告警" }, |
|
|
{ value: 3, label: '其他事项' } |
|
|
{ value: 3, label: "其他事项" }, |
|
|
], |
|
|
], |
|
|
dealStatuss: [ |
|
|
dealStatuss: [ |
|
|
{ value: '', label: '全部' }, |
|
|
{ value: "", label: "全部" }, |
|
|
{ value: 0, label: '未处理' }, |
|
|
{ value: 0, label: "未处理" }, |
|
|
{ value: 1, label: '处理中' }, |
|
|
{ value: 1, label: "处理中" }, |
|
|
{ value: 2, label: '已处理' }, |
|
|
{ value: 2, label: "已处理" }, |
|
|
{ value: 3, label: '已忽略' } |
|
|
{ value: 3, label: "已忽略" }, |
|
|
], |
|
|
], |
|
|
// 总条数 |
|
|
// 总条数 |
|
|
total: 0, |
|
|
total: 0, |
|
@ -55,11 +66,11 @@ export default { |
|
|
queryParams: { |
|
|
queryParams: { |
|
|
pageNum: 1, |
|
|
pageNum: 1, |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
deviceCode: '' |
|
|
deviceCode: "", |
|
|
}, |
|
|
}, |
|
|
visible: false, |
|
|
visible: false, |
|
|
recordForm: {} |
|
|
recordForm: {}, |
|
|
} |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
Breadcrumb, |
|
|
Breadcrumb, |
|
@ -69,72 +80,111 @@ export default { |
|
|
Search, |
|
|
Search, |
|
|
RuoYiGit, |
|
|
RuoYiGit, |
|
|
// BigScreen, |
|
|
// BigScreen, |
|
|
RuoYiDoc |
|
|
RuoYiDoc, |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters(['sidebar', 'avatar', 'device']), |
|
|
...mapGetters(["sidebar", "avatar", "device"]), |
|
|
setting: { |
|
|
setting: { |
|
|
get() { |
|
|
get() { |
|
|
return this.$store.state.settings.showSettings |
|
|
return this.$store.state.settings.showSettings; |
|
|
}, |
|
|
}, |
|
|
set(val) { |
|
|
set(val) { |
|
|
this.$store.dispatch('settings/changeSetting', { |
|
|
this.$store.dispatch("settings/changeSetting", { |
|
|
key: 'showSettings', |
|
|
key: "showSettings", |
|
|
value: val |
|
|
value: val, |
|
|
}) |
|
|
}); |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
topNav: { |
|
|
topNav: { |
|
|
get() { |
|
|
get() { |
|
|
return this.$store.state.settings.topNav |
|
|
return this.$store.state.settings.topNav; |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
sideTheme: { |
|
|
sideTheme: { |
|
|
get() { |
|
|
get() { |
|
|
return this.$store.state.settings.sideTheme |
|
|
return this.$store.state.settings.sideTheme; |
|
|
} |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
toggleSideBar() { |
|
|
toggleSideBar() { |
|
|
this.$store.dispatch('app/toggleSideBar') |
|
|
this.$store.dispatch("app/toggleSideBar"); |
|
|
}, |
|
|
}, |
|
|
async logout() { |
|
|
async logout() { |
|
|
this.$confirm('确定注销并退出系统吗?', '提示', { |
|
|
this.$confirm("确定注销并退出系统吗?", "提示", { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: "确定", |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: "取消", |
|
|
type: 'warning' |
|
|
type: "warning", |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
this.$store.dispatch('LogOut').then(() => { |
|
|
this.$store.dispatch("LogOut").then(() => { |
|
|
//location.href = '/index'; |
|
|
//location.href = '/index'; |
|
|
location.reload() |
|
|
location.reload(); |
|
|
|
|
|
}); |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
.catch(() => {}); |
|
|
.catch(() => {}) |
|
|
}, |
|
|
} |
|
|
}, |
|
|
} |
|
|
}; |
|
|
} |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.operations { |
|
|
.operations { |
|
|
display: flex; justify-content: flex-end; |
|
|
display: flex; |
|
|
.opCon{ width:100%; max-width: 160px; display: flex; flex-direction: row; height: 16px; justify-content: space-between; align-items: center; |
|
|
justify-content: flex-end; |
|
|
.icon{ height: 16px; width: 16px; object-fit: contain;} |
|
|
.opCon { |
|
|
.userBox{ flex: 1; |
|
|
width: 100%; |
|
|
.user{ display: flex; flex-direction: row; align-items: center; cursor: pointer; |
|
|
max-width: 160px; |
|
|
.head{ width: 16px; } |
|
|
display: flex; |
|
|
.title{flex: 1; width: 0; display: flex; flex-direction: row; color: #fff; display: flex; |
|
|
flex-direction: row; |
|
|
.txt{ flex: 1; width: 0; text-align: center; white-space: nowrap; word-break: break-all; overflow: hidden; text-overflow: ellipsis;} |
|
|
height: 16px; |
|
|
.menuIcon{ line-height: 16px;} |
|
|
justify-content: space-between; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
.icon { |
|
|
|
|
|
height: 16px; |
|
|
|
|
|
width: 16px; |
|
|
|
|
|
object-fit: contain; |
|
|
|
|
|
cursor: pointer; |
|
|
} |
|
|
} |
|
|
|
|
|
.userBox { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
.user { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: row; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
.head { |
|
|
|
|
|
width: 16px; |
|
|
} |
|
|
} |
|
|
|
|
|
.title { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
width: 0; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: row; |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
.txt { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
width: 0; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
word-break: break-all; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
} |
|
|
|
|
|
.menuIcon { |
|
|
|
|
|
line-height: 16px; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
& > * { |
|
|
|
|
|
padding: 0 5px; |
|
|
|
|
|
border-right: 1px solid rgba($color: #fff, $alpha: 0.1); |
|
|
|
|
|
&:last-child { |
|
|
|
|
|
border: none; |
|
|
} |
|
|
} |
|
|
&>*{padding:0 5px; border-right: 1px solid rgba($color: #FFF, $alpha: 0.1); |
|
|
|
|
|
&:last-child{border: none;} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|