|
@@ -7,9 +7,14 @@
|
|
<span>{{ webInfo.zhTitle }}</span>
|
|
<span>{{ webInfo.zhTitle }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="16" class="two">
|
|
<el-col :span="16" class="two">
|
|
- <el-button plain v-for="(item, index) in moduleList" :key="index" @click="modulePath(item)" :class="[active == item.active ? 'active' : '']">{{
|
|
|
|
- item.name
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ plain
|
|
|
|
+ v-for="(item, index) in moduleList"
|
|
|
|
+ :key="index"
|
|
|
|
+ @click="modulePath(item)"
|
|
|
|
+ :class="[active == item.active ? 'active two_1' : 'two_1']"
|
|
|
|
+ >{{ item.name }}</el-button
|
|
|
|
+ >
|
|
<el-dropdown @command="toDrop">
|
|
<el-dropdown @command="toDrop">
|
|
<el-button type="danger" plain size="large">
|
|
<el-button type="danger" plain size="large">
|
|
{{ user && user._id ? user.name || user.unit_name || user.nick_name : '暂无昵称' }}
|
|
{{ user && user._id ? user.name || user.unit_name || user.nick_name : '暂无昵称' }}
|
|
@@ -29,13 +34,14 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
+import { studio_style_Info, project_module_menus } from '../../../layout/site';
|
|
|
|
+import type { Ref } from 'vue';
|
|
|
|
+import { ref, onMounted } from 'vue';
|
|
import { useRouter } from 'vue-router';
|
|
import { useRouter } from 'vue-router';
|
|
-import { ArrowDown, User, SwitchButton } from '@element-plus/icons-vue';
|
|
|
|
import store from '@/stores/counter';
|
|
import store from '@/stores/counter';
|
|
-import { ref, onMounted } from 'vue';
|
|
|
|
-import type { Ref } from 'vue';
|
|
|
|
-import { studio_style_Info, project_module_menus } from '../../../layout/site';
|
|
|
|
|
|
+import { ArrowDown, User, SwitchButton } from '@element-plus/icons-vue';
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
+
|
|
let webInfo = studio_style_Info.webInfo;
|
|
let webInfo = studio_style_Info.webInfo;
|
|
let active: Ref<number> = ref(3);
|
|
let active: Ref<number> = ref(3);
|
|
let moduleList: Ref<any[]> = ref([]);
|
|
let moduleList: Ref<any[]> = ref([]);
|
|
@@ -94,8 +100,8 @@ const search = () => {
|
|
button {
|
|
button {
|
|
margin: 0 0 0 10px;
|
|
margin: 0 0 0 10px;
|
|
}
|
|
}
|
|
- .el-button {
|
|
|
|
- margin: 0 0 0 10px;
|
|
|
|
|
|
+ .two_1 {
|
|
|
|
+ margin: 5px 0 0 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|