|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="pagePadding">
|
|
|
- <div v-if="powers.some((i) => i == '001')">
|
|
|
+ <div v-if="powers.some((i) => i == '001') && currentCompany">
|
|
|
<!-- <el-tabs v-model="activeName" @tab-click="handleClick"> -->
|
|
|
<el-tabs v-model="activeName">
|
|
|
<el-tab-pane label="日报" name="table1"></el-tab-pane>
|
|
@@ -69,6 +69,12 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="company-error" v-else-if="!currentCompany">
|
|
|
+ <i class="el-icon-warning"></i>
|
|
|
+ <p>请选择一家业务公司</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div v-else>
|
|
|
<no-auth></no-auth>
|
|
|
</div>
|
|
@@ -185,4 +191,14 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.company-error{
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ display: flex;
|
|
|
+ position: fixed;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ align-items: center;
|
|
|
+ gap: 10px;
|
|
|
+}
|
|
|
+</style>
|