wanghairong 5 ماه پیش
والد
کامیت
0861639df8
3فایلهای تغییر یافته به همراه67 افزوده شده و 1 حذف شده
  1. 31 0
      src/views/lotCard/cardList/config.js
  2. 35 0
      src/views/lotCard/cardList/index.vue
  3. 1 1
      vite.config.js

+ 31 - 0
src/views/lotCard/cardList/config.js

@@ -0,0 +1,31 @@
+export const columns = [
+  { title: '序号', dataIndex: 'key',rowScope: 'row'},
+  { title: '用户ID', dataIndex: 'id', align: 'center', width:100   },
+  { title: '员工账号', dataIndex: 'username', align: 'center', width:100   },
+  { title: '用户工号', dataIndex: 'jobId', align: 'center' , width:100   },
+  { title: '用户姓名', dataIndex: 'name', align: 'center',  width:100   },
+  {
+    title: '登录角色',
+    dataIndex: 'roleList',
+    slotName: 'roleList',
+    align: 'center',
+    width:200 
+  },
+  {
+    title: '用户状态',
+    dataIndex: 'state',
+    align: 'center',
+    slotName: 'state',
+    width:200 
+  },
+  { title: '更新时间', dataIndex: 'updatedAt', align: 'center', width:200 },
+  { title: '创建时间', dataIndex: 'createdAt', align: 'center', width:200 },
+  {
+    title: '操作',
+    dataIndex: 'id',
+    slotName: 'id',
+    align: 'center',
+    width: 180,
+    fixed: "right",
+  }
+]

+ 35 - 0
src/views/lotCard/cardList/index.vue

@@ -0,0 +1,35 @@
+<template>
+  <div class="container">
+    <template>
+      <div class="head-title">
+        <!-- <span>{{  route.meta.title }} </span> -->
+        <span>物联 </span>
+
+        
+      </div>
+      
+    </template>
+  </div>
+</template>
+
+<script setup>
+import { onMounted, ref, h } from "vue";
+import { useRoute } from "vue-router";
+import { columns } from "./config";
+import { Message, Notification } from '@arco-design/web-vue'
+
+const route = useRoute();
+
+</script>
+
+<style scoped lang="less">
+.container {
+  .head-title {
+    display: flex;
+    justify-content: space-between;
+  }
+  .form-row {
+    display: flex;
+  }
+}
+</style>

+ 1 - 1
vite.config.js

@@ -61,7 +61,7 @@ export default defineConfig({
     hmr: true,
     proxy: {
       '/api': {
-        target: "http://localhost:3001",
+        target: "http://sim.nanodreamtech.com",
         changeOrigin: true,
         ws: true,
         secure: true,