基于MVVM架构的解析木信息管理系统的开发

2021-04-01 09:41:39柯小龙周春国
森林工程 2021年1期

柯小龙 周春国

摘 要:为满足解析木信息日常管理需要和提高树干解析内业工作效率,本文基于MVVM(模型(Model)-视图(View)-视图模型(ViewModel))架构,结合MongoDB数据库、Express后端框架和Vue前端框架,设计与开发前后端分离的解析木信息管理系统,提供用户管理、信息管理、信息查询、信息编辑、信息一键解析、通知管理和日志管理等功能,实现解析木信息的数字化管理和树干解析内业工作的自动化,以同时满足解析木信息的管理和处理需要。结果表明,该系统具有界面美观、简单易用、快速高效和支持在线使用的特点,通过MVVM架构可以极大提高系统开发效率和系统性能。

关键词:解析木信息;树干解析;MVVM架构;信息管理系统

中图分类号:TP391.7    文献标识码:A   文章编号:1006-8023(2021)01-0018-10

Abstract:In order to meet the needs of daily management of stem analysis information and improve the efficiency of internal work of stem analysis, based on the MVVM (Model-View-View Model) architecture, combined with the MongoDB database, the Express back-end framework and the Vue front-end framework, this paper designed and developed the stem analysis information management system, which was decomposed into front-end and back-end. It provided user management, information management, information query, information edit, one-click analysis of information, notification management, log management and other functions. It realized the digital management of stem analysis information and automation of internal work of stem analysis, so as to meet both the needs of information management and processing. The results showed that the stem analysis information management system had the characteristics of beautiful interface, easy to use, fast and efficient, and supports online use. The MVVM architecture can greatly improve the system development efficiency and system performance.

Keywords:Stem analysis information; stem analysis; MVVM architecture; information management system

0 引言

树干解析,是从树干基部到树梢顶端,每隔一定距离取横切面,根据横切面上年轮数量及其直径来计算树木直径生长经过和绘制树干纵断面图,以研究树木直径、高度和材积生长过程的基本方法,其中,作为解析对象的树木被称为解析木。树干解析作为当前研究树木生长规律最准确的方法,应用普遍,如陈晨等[1]和丛健等[2]通过树干解析分别对白皮松(Pinus bungeana Zucc. ex Endl.)和樟子松(Pinus sylvestris L. var. mongolica Litv.)的生长规律进行研究,孙虎等[3]通过树干解析探究红松(Pinus koraiensis Sieb. et Zucc.)的生长区域、胸径和各器官对其含碳率的影响。

然而,树干解析内业工作数据量大、計算繁琐、制图困难,若采用传统手工方法进行计算和绘图,不仅费时费力,而且精度偏低[4]。其后虽然出现了利用Visual Basic、Delphi等多种开发语言开发的树干解析桌面程序[5-6],但由于桌面程序受操作系统和软件成本的限制,难以得到普及。……

登录APP查看全文