feat: 添加一个测试页

This commit is contained in:
caoqianming 2024-08-01 13:46:02 +08:00
parent 8566b8a6be
commit 51ef980600
2 changed files with 48 additions and 0 deletions

View File

@ -25,6 +25,16 @@ const routes = [
perms: ["home"],
},
children: [
{
name: "testx",
path: "/testx",
meta: {
title: "测试页",
icon: "el-icon-monitor",
perms: ["testx"],
},
component: "home/testx",
},
{
name: "dashboard",
path: "/dashboard",

38
src/views/home/testx.vue Normal file
View File

@ -0,0 +1,38 @@
<template>
<div>
<scQrCode text="xxxx"></scQrCode>
</div>
<div>
<ehsSelect :apiObj="apiObj" v-model="x" :showName="x_name" placeholder="部门" clearable :params="{'search': '生产'}"></ehsSelect>
</div>
<div>
<scIconSelect></scIconSelect>
</div>
<div>
<ehsTableSelect :apiObj="apiObj2" v-model="x2">
<el-table-column label="姓名" prop="name"></el-table-column>
<el-table-column label="账号" prop="username"></el-table-column>
</ehsTableSelect>
</div>
</template>
<script>
export default {
name: 'testx',
components: {
},
data() {
return {
apiObj: this.$API.system.dept.list,
x: '3607937377546706944',
x_name: '光芯科技',
// x:null,
apiObj2: this.$API.system.user.list,
x2: {}
}
},
mounted() {
},
methods: {
}
}
</script>