cloudhao1999 / cloud-app-admin Goto Github PK
View Code? Open in Web Editor NEWcloud-app-admin 使用了最新的 Vue3.2 + Vite3 + Element-Plus + TypeScript 等主流技术开发。
License: MIT License
cloud-app-admin 使用了最新的 Vue3.2 + Vite3 + Element-Plus + TypeScript 等主流技术开发。
License: MIT License
您好,我在使用的过程中发现,刷新页面的时候组装路由的autoLoad方法会被调用两次
一次是初始化路由
一次是在路由守卫中
发现有token但是没有用户信息,则重新装载路由
不知道您是处于什么考虑,是因为权限么
因为,这种装载,远程路由接口会调用两次,而且,routes会出现重复的数据,希望大佬能解答我的疑虑
建议完善的方法分为 : 新增、根据id删除、批量id删除、根据id的更新、查询。
同时写个简单使用示例。
您提供的文章列表页面demo可展示的组件使用方式有点简单,我提供您两个json,您看看能否按照这个写一个各个组件的使用demo。
如有需要,我可以提供公网接口供您测试
第一个:租户管理的 json
{
"code":200,
"msg":"请求成功",
"data":[
{
"id":"1",
"name":"芋道源码",
"contactUserId":null,
"contactName":"芋艿",
"contactMobile":"17321315478",
"status":0,
"domain":"https://www.iocoder.cn/",
"packageId":"0",
"expireTime":4075175656000,
"accountCount":9999,
"creator":"1",
"createTime":1609837427000,
"updater":"1",
"updateTime":1645589711000,
"deleted":false
},
{
"id":"121",
"name":"小租户",
"contactUserId":"110",
"contactName":"小王2",
"contactMobile":"15601691300",
"status":0,
"domain":"http://www.iocoder.cn/",
"packageId":"111",
"expireTime":1710086400000,
"accountCount":20,
"creator":"1",
"createTime":1645462574000,
"updater":"1",
"updateTime":1652753039000,
"deleted":false
},
{
"id":"122",
"name":"测试租户",
"contactUserId":"113",
"contactName":"芋道",
"contactMobile":"15601691300",
"status":0,
"domain":"https://www.iocoder.cn/",
"packageId":"111",
"expireTime":1651248000000,
"accountCount":50,
"creator":"1",
"createTime":1646660278000,
"updater":"1",
"updateTime":1646660278000,
"deleted":false
}
],
"total":"3",
"pageIndex":1,
"pageSize":10,
"nextPageIndex":2
}
第二个 租户套餐管理json
{
"code":200,
"msg":"请求成功",
"data":[
{
"id":"111",
"name":"普通套餐",
"status":0,
"remark":"小功能",
"menuIds":"[1024,1025,1,102,103,104,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023]",
"creator":"1",
"createTime":1645462440000,
"updater":"1",
"updateTime":1647686353000,
"deleted":false
}
],
"total":"1",
"pageIndex":1,
"pageSize":10,
"nextPageIndex":2
}
请问下树形数据该如何使用呢?
需求: 单表字段特别多,只展示个别比较重要的字段所以分为多个操作按钮:
1:查看 按钮,跳转到一个新的窗口展示完整信息(根据id去后台查询完整信息)。
2:编辑 按钮,跳转到一个单开的路由页面。
3:新增 按钮,跳转到和编辑页面一样,携带空参数。
以上操作需要携带参数,如何携带参数跳转?
辛苦您写个例子吧。
比如后台时间戳转字符串、字符串切分等等
作者你好 ! 可以留一个联系方式吗? 运行的时候报错了,没办法解决,想请教一下
meta: { menu: { title: "router.dashboard" }, keepAlive: true }
console.log('HomePage init')
有计划加入动态权限和路由吗?权限和路由都是从后台获取的。
通过pnpm run build 打包运行一些css和js文件提示找不到
表格列比较多的时候,同时将第一列和第二列固定的时候,下方滚动条使用错误。
在cform中设置强制一行一个输入项,或者自适应多个。我的需求是:我一个表单大概有50个字段,弹出窗口小,而且一行放置了两个输入项,但是我好几个字段是富文本的,大多需要单独占一行,这个您看看怎么设置比较好。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.