当前位置:网站首页>场景题:A系统如何使用B系统的页面
场景题:A系统如何使用B系统的页面
2022-04-23 03:15:00 【小道仙97】
大多数我们的系统都是独立的,即便是A、B系统有所交互那也是数据层的交互,用接口调用的方式就满足了,但最近接到了这样的一个需求。
A系统新增一个按钮,点击打开B系统的B.B页面,从B系统直接去B.B页面,会比从A系统进去少一些按钮和字段。
思路一
单独为这个写一个页面,然后全部交互都以后端接口的方式去调用。
优点
思路简单理解方便,开发起来也比较简单。
缺点
代码复用率低,维护性差,如果有一个通用的字段改了那么就要修改两个页面。
下次如果C系统也需要B.B页面那不是又得重新开发?或者下次C系统需要B.C页面?这样的开发不合乎代码规范。
思路二
上述方案成立的条件是,B系统必须有一个完整的用户角色菜单功能,也就是你可以通过权限去控制菜单的显示与否。
其实最后就是:设置一个特殊的用户这个用户只能访问特定的页面和特定的按钮。
优点
一次代码多次复用,以后如果xx系统要访问B系统的页面,直接新增一个用户然后配置即可,代码是通用的。
缺点
思路想起来有点麻烦
版权声明
本文为[小道仙97]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Tomwildboar/article/details/119119692
边栏推荐
猜你喜欢

編碼電機PID調試(速度環|比特置環|跟隨)

IOTOS物联中台对接海康安防平台(iSecure Center)门禁系统

Xamarin effect Chapter 22 recording effect

Charles uses three ways to modify requests and responses

The backtracking of stack is used to solve the problem of "the longest absolute path of file"

Recommend reading | share the trader's book list and ask famous experts for trading advice. The trading is wonderful

“如何实现集中管理、灵活高效的CI/CD”在线研讨会精彩内容分享

Top ten project management software similar to JIRA

Blazor University (11) component - replace attributes of subcomponents

PID debugging of coding motor (speed loop | position loop | follow)
随机推荐
Charles uses three ways to modify requests and responses
TP5 inherits base and uses the variables in base
TP5 email (2020-05-27)
手机连接电脑后,QT的QDIR怎么读取手机文件路径
Mysql database
TP5 where query one field is not equal to multiple values
Is it difficult to choose binary version control tools? After reading this article, you will find the answer
Blazor University (12) - component lifecycle
7-11 重排链表 (25 分)
General test technology [II] test method
2022g2 boiler stoker examination question bank and online simulation examination
The backtracking of stack is used to solve the problem of "the longest absolute path of file"
JS recursive tree structure calculates the number of leaf nodes of each node and outputs it
JSON related
2022山东省安全员C证上岗证题库及在线模拟考试
Middle and rear binary tree
Recommend reading | share the trader's book list and ask famous experts for trading advice. The trading is wonderful
12. < tag linked list and common test site synthesis > - lt.234 palindrome linked list
EasyUI's combobox implements three-level query
Tencent video VIP member, weekly card special price of 9 yuan! Tencent official direct charging, members take effect immediately!