├── backend
├── __init__.py
├── migrations
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-38.pyc
│ │ └── 0001_initial.cpython-38.pyc
│ └── 0001_initial.py
├── README.md
├── apps.py
├── static
│ ├── image
│ │ └── bg.jpg
│ └── css
│ │ ├── login.css
│ │ └── register.css
├── __pycache__
│ ├── admin.cpython-38.pyc
│ ├── apps.cpython-38.pyc
│ ├── forms.cpython-38.pyc
│ ├── tests.cpython-38.pyc
│ ├── views.cpython-38.pyc
│ ├── models.cpython-38.pyc
│ └── __init__.cpython-38.pyc
├── templates
│ └── backend
│ │ ├── tenantview.html
│ │ ├── acadminview.html
│ │ ├── managerview.html
│ │ ├── waiterview.html
│ │ ├── index.html
│ │ ├── login.html
│ │ └── register.html
├── const.json
├── admin.py
├── forms.py
├── views.py
├── tests.py
└── models.py
├── frontendDevServer
├── server
│ ├── __init__.py
│ ├── websocket
│ │ ├── __init__.py
│ │ ├── routing.py
│ │ ├── msg.py
│ │ ├── databasectrl.py
│ │ └── consumers.py
│ ├── apps.py
│ ├── admin.py
│ ├── urls.py
│ ├── serializers.py
│ ├── models.py
│ └── views.py
├── roomMonitor
│ ├── __init__.py
│ ├── asgi.py
│ ├── routing.py
│ ├── wsgi.py
│ ├── urls.py
│ └── settings.py
├── .gitignore
├── readme.md
├── manage.py
└── requirements.txt
├── AirConditioningManagementSystem
├── __init__.py
├── __pycache__
│ ├── urls.cpython-38.pyc
│ ├── wsgi.cpython-38.pyc
│ ├── __init__.cpython-38.pyc
│ └── settings.cpython-38.pyc
├── asgi.py
├── wsgi.py
├── urls.py
└── settings.py
├── .DS_Store
├── .vscode
└── settings.json
├── frontend
├── public
│ ├── favicon.ico
│ └── index.html
├── vue.config.js
├── api
│ ├── README.md
│ ├── database.js
│ ├── roomAPI.js
│ └── roomAPI.js.backup
├── src
│ ├── assets
│ │ └── logo.png
│ ├── plugins
│ │ └── bootstrap-vue.js
│ ├── main.js
│ ├── store
│ │ └── index.js
│ ├── components
│ │ ├── Room
│ │ │ └── Room.vue
│ │ ├── Waiter
│ │ │ ├── Waiter.vue
│ │ │ └── RoomDetailForWaiter.vue
│ │ ├── Manager
│ │ │ ├── Manager.vue
│ │ │ └── RoomDetailForManager.vue
│ │ ├── Administrator
│ │ │ ├── Administrator.vue
│ │ │ └── RoomDetailForAdmin.vue
│ │ ├── Login.vue
│ │ └── Tenant
│ │ │ └── Tenant.vue
│ ├── router
│ │ └── index.js
│ └── App.vue
├── babel.config.js
├── .gitignore
├── README.md
└── package.json
├── .idea
├── .gitignore
├── vcs.xml
├── dictionaries
│ └── zhoufengchongyang.xml
├── modules.xml
├── misc.xml
├── dataSources.xml
├── inspectionProfiles
│ └── Project_Default.xml
└── AirConditioningManagementSystem.iml
├── manage.py
├── README.md
└── doc
├── 分布式温控系统的解决方案.md
├── 静态结构设计-房客.md
├── 动态结构设计-房客.md
├── 分布式温控系统的需求定义及其领域模型.md
└── 用例模型-房客.md
/backend/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/backend/migrations/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frontendDevServer/server/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/AirConditioningManagementSystem/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frontendDevServer/roomMonitor/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/frontendDevServer/server/websocket/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/backend/README.md:
--------------------------------------------------------------------------------
1 | 个人感觉还是在前后端建立连接后初始化的时候,把const.json发给前端,这样前端就可以保存这个信息了。这些变量在重启的时候才可以被修改,女少口阿!
2 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/.DS_Store
--------------------------------------------------------------------------------
/backend/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class BackendConfig(AppConfig):
5 | name = 'backend'
6 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "python.pythonPath": "C:\\Users\\lenovo\\AppData\\Local\\Programs\\Python\\Python38\\python.exe"
3 | }
--------------------------------------------------------------------------------
/backend/static/image/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/static/image/bg.jpg
--------------------------------------------------------------------------------
/frontend/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/frontend/public/favicon.ico
--------------------------------------------------------------------------------
/frontend/vue.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | // 输出目录
3 | assetsDir: 'static',
4 | // 基本路径
5 | // baseUrl: './',
6 | };
--------------------------------------------------------------------------------
/frontendDevServer/.gitignore:
--------------------------------------------------------------------------------
1 | /.idea/
2 | .vscode
3 | client/*
4 | upload/
5 | */__pycache__/*
6 | */migrations/*
7 | __pycache__/*
8 |
--------------------------------------------------------------------------------
/frontend/api/README.md:
--------------------------------------------------------------------------------
1 | #论API的使用方法
2 | 在database.js中export的API中有两个函数
3 | * queryRoomStatus
4 | * updateRoomStatus
5 | 分别用于查询和更新单个room的温度
6 |
--------------------------------------------------------------------------------
/frontend/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/frontend/src/assets/logo.png
--------------------------------------------------------------------------------
/frontendDevServer/server/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class ServerConfig(AppConfig):
5 | name = 'server'
6 |
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /workspace.xml
3 | # Datasource local storage ignored files
4 | /dataSources/
5 | /dataSources.local.xml
--------------------------------------------------------------------------------
/backend/__pycache__/admin.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/admin.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/apps.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/apps.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/forms.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/forms.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/tests.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/tests.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/views.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/views.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/models.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/models.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/__init__.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/__pycache__/__init__.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/migrations/__pycache__/__init__.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/migrations/__pycache__/__init__.cpython-38.pyc
--------------------------------------------------------------------------------
/backend/migrations/__pycache__/0001_initial.cpython-38.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimonGH0STRiley/AirConditioningManagementSystem/HEAD/backend/migrations/__pycache__/0001_initial.cpython-38.pyc
--------------------------------------------------------------------------------
/frontendDevServer/server/websocket/routing.py:
--------------------------------------------------------------------------------
1 | from django.urls import path
2 | from .consumers import MonitorConsumer
3 |
4 | websocket_urlpatterns=[
5 | path('ws/monitor/',MonitorConsumer)
6 | ]
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 | 登出 11 |
12 | 13 | -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw? 22 | -------------------------------------------------------------------------------- /frontendDevServer/server/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Device,Software,Tracker 3 | # Register your models here. 4 | admin.site.site_header = 'ACMS 数据库管理系统' 5 | admin.site.site_title = 'ACMS 数据库管理系统' 6 | 7 | admin.site.register(Device) 8 | admin.site.register(Software) 9 | admin.site.register(Tracker) 10 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 |