feat: 添加一个测试页
This commit is contained in:
parent
8566b8a6be
commit
51ef980600
|
|
@ -25,6 +25,16 @@ const routes = [
|
||||||
perms: ["home"],
|
perms: ["home"],
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
name: "testx",
|
||||||
|
path: "/testx",
|
||||||
|
meta: {
|
||||||
|
title: "测试页",
|
||||||
|
icon: "el-icon-monitor",
|
||||||
|
perms: ["testx"],
|
||||||
|
},
|
||||||
|
component: "home/testx",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "dashboard",
|
name: "dashboard",
|
||||||
path: "/dashboard",
|
path: "/dashboard",
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue