|
@@ -14,19 +14,36 @@
|
|
|
size="60"
|
|
|
/>
|
|
|
<h3 class="sys-item-title">{{ item.menuName }}</h3>
|
|
|
+ <h3 class="sys-item-title" @click="openDrawer">配置IP地址</h3>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-drawer
|
|
|
+ v-model="drawerVisible"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ title="配置IP地址"
|
|
|
+ >
|
|
|
+ <Addresss @finish="saveAddressFinish" />
|
|
|
+ </el-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { useUserStore } from "@/store";
|
|
|
+import Addresss from "@/views/sets/address.vue";
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
-const sysData = ref<any[]>([{ menuName: "设置", icon: "set" }]);
|
|
|
+const sysData = ref<any[]>([{ menuName: "设置权限", icon: "set" }]);
|
|
|
|
|
|
const openSetPage = () => {};
|
|
|
+
|
|
|
+const drawerVisible = ref(false);
|
|
|
+const openDrawer = () => {
|
|
|
+ drawerVisible.value = true;
|
|
|
+};
|
|
|
+const saveAddressFinish = () => {
|
|
|
+ drawerVisible.value = false;
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -53,11 +70,12 @@ const openSetPage = () => {};
|
|
|
font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
margin-bottom: 10px;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.sys-item:hover {
|
|
|
- background-color: #87cefa;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
+//.sys-item:hover {
|
|
|
+// background-color: #87cefa;
|
|
|
+// cursor: pointer;
|
|
|
+//}
|
|
|
</style>
|