YY %!s(int64=2) %!d(string=hai) anos
pai
achega
8b423b1f14

+ 0 - 1
src/components/common/web/index.vue

@@ -84,7 +84,6 @@ const toView = (e: { data; component: any }) => {
 // 返回
 const toBack = (component: any) => {
   data_type.value = 'list';
-  console.log(component);
   if (component == 'build') list_component.value = build;
   else if (component == 'studio') list_component.value = studio;
   else if (component == 'unit') list_component.value = unit;

+ 0 - 1
src/components/common/web/list/unit.vue

@@ -136,7 +136,6 @@ const searchOther = async () => {
         display: flex;
         flex-direction: row;
         flex-wrap: wrap;
-
         .other_1 {
           margin: 0 0 10px 0;
           span {

+ 14 - 21
src/views/userInfo/center/index.vue

@@ -1,31 +1,24 @@
 <template>
   <el-row>
     <el-col :span="24" class="main animate__animated animate__backInRight">
-      <el-col :span="24" class="one">个人中心</el-col>
+      <el-tabs type="border-card">
+        <el-tab-pane label="个人中心">
+          <component :is="Admin1" v-if="(user && user.role_type == '0') || (user && user.role_type == '1')"></component>
+
+          <!-- <user-1 v-else-if="user.role_type == '2'"></user-1>
+          <unit-1 v-else-if="user.role_type == '3'"></unit-1> -->
+        </el-tab-pane>
+        <el-tab-pane label="修改密码">
+          <updatepwd-1></updatepwd-1>
+        </el-tab-pane>
+      </el-tabs>
     </el-col>
   </el-row>
 </template>
 
 <script setup lang="ts">
-// 基础
-// import type { Ref } from 'vue'
-// reactive, ref, onMounted
-import { onMounted } from 'vue';
-// 接口
-import { TestStore } from '@common/src/stores/test';
-import type { IQueryResult } from '@/util/types.util';
-const testAxios = TestStore();
-// 分页数据
-const skip = 0;
-const limit = 10;
-// 请求
-onMounted(async () => {
-  await search({ skip, limit });
-});
-const search = async (e: { skip: number; limit: number }) => {
-  const info = { skip: e.skip, limit: e.limit };
-  const res: IQueryResult = await testAxios.query(info);
-  console.log(res);
-};
+import store from '@/stores/counter';
+import Admin1 from '@common/src/components/account/admin-1.vue';
+let user = store.state.user as { _id: string; role_type: string };
 </script>
 <style scoped lang="less"></style>