Explorar el Código

Merge branch 'master' of http://git.cc-lotus.info/studio_vue3/jcyjdt_studio

zs hace 2 años
padre
commit
15bf065b90

+ 1 - 1
src/views/center/users/company/index.vue

@@ -11,7 +11,7 @@
           </template>
         </component>
       </el-col>
-      <el-col :span="24" class="two">
+      <el-col :span="24" class="two"> 
         <component
           :is="CTable"
           :fields="fields"

+ 1 - 2
src/views/center/users/scientist/index.vue

@@ -94,8 +94,7 @@ let fields: Ref<any[]> = ref([
 // 操作
 let opera: Ref<any[]> = ref([
   { label: '详情', method: 'view' },
-  { label: '审核', method: 'exam', type: 'warning' },
-  // { label: '审核', method: 'exam', type: 'warning', display: (i) => i.status == '0' },
+  { label: '审核', method: 'exam', type: 'warning', display: (i) => i.status == '0' },
   { label: '删除', method: 'del', type: 'danger', confirm: true },
 ]);
 // 多选

+ 31 - 0
src/views/userInfo/center/index.vue

@@ -0,0 +1,31 @@
+<template>
+  <el-row>
+    <el-col :span="24" class="main animate__animated animate__backInRight">
+      <el-col :span="24" class="one">个人中心</el-col>
+    </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);
+};
+</script>
+<style scoped lang="less"></style>

+ 3 - 3
vite.config.ts

@@ -12,17 +12,17 @@ export default defineConfig({
         target: 'http://basic.waityou24.cn',
       },
       '/jcyjdtglpt/v1/api': {
-        target: 'http://192.168.1.113:13010',
+        target: 'http://192.168.230.1:13010',
         changeOrigin: true,
         ws: false,
       },
       '/semail/api': {
-        target: 'http://192.168.1.113:16001',
+        target: 'http://192.168.230.1:16001',
         changeOrigin: true,
         ws: false,
       },
       '/studioadmin/api': {
-        target: 'http://192.168.1.113:16001',
+        target: 'http://192.168.230.1:16001',
         changeOrigin: true,
         ws: false,
       },