diff --git a/main.py b/main.py index 7d981c6c26fac4843cf95e6b24c4580ee604f95c..46027328764b738d2409d4113868e414f383fcda 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ from flask import Flask -from flask_uploads import configure_uploads, patch_request_class +from flask_uploads import configure_uploads from applications.config import database, common from applications.models import db from applications.service.debug_tool import open_debug_tool @@ -27,7 +27,6 @@ def create_app(): init_flask_login(app) # 文件上传 configure_uploads(app, photos) - patch_request_class(app) # 调试工具栏 open_debug_tool(app) # logo diff --git a/static/admin/admin/css/other/user.css b/static/admin/admin/css/other/user.css new file mode 100644 index 0000000000000000000000000000000000000000..63ec98524d81fdf8b536cfc56b50a8517d2cefc7 --- /dev/null +++ b/static/admin/admin/css/other/user.css @@ -0,0 +1,58 @@ +.dept-tree { + width: 100%; + height: -webkit-calc(100vh - 247px); + height: -moz-calc(100vh - 247px); + height: calc(100vh - 247px); + margin-top: 20px; +} +.dtree-laySimple-item-this{ + background-color: transparent!important; +} +.dtree-nav-div:hover{ + background-color: transparent!important; +} +.button{ + margin-top: 10px; + width: 94%; + margin-left: 3%; + display: block; + height: 40px; + line-height: 40px; + padding: 0 15px; + white-space: nowrap; + text-align: center; + font-size: 14.5px; + border: none; + cursor: pointer; + box-sizing: border-box; + display:inline-block; + outline: 0; + border-radius: 2px; + -webkit-appearance: none; + box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); +} +.button-primary{ + background-color: #5FB878; + color: white; +} +.button-default{ + color: #2f495e; + background-color: #edf2f7; +} +.user-main{ + width: calc(100% - 312px); + float: right; +} +.user-left{ + width: 300px; + float: left; +} +.user-collasped.user-main{ + width: 100%; +} +.user-collasped.user-left{ + width: 0px; +} +.user-collasped.user-left .user-group{ + display: none; +} \ No newline at end of file