Explorar o código

导入接口文件增加文件选择上传

Chente %!s(int64=6) %!d(string=hai) anos
pai
achega
8f56b384a1
Modificáronse 2 ficheiros con 25 adicións e 0 borrados
  1. 16 0
      css/main.css
  2. 9 0
      project-management.html

+ 16 - 0
css/main.css

@@ -39,6 +39,22 @@ a{
 .form-check .form-check-label,.form-radio .form-check-label{
   cursor: pointer;
 }
+.custom-file-sm,.custom-file-sm .custom-file-label{
+  height: calc(1.5em + .5rem + 2px);
+  padding-top: .25rem;
+  padding-bottom: .25rem;
+  padding-left: .5rem;
+}
+.custom-file-sm .custom-file-label:after{
+  height: calc(1.4em + .5rem + 2px);
+padding-top: .25rem;
+padding-bottom: .25rem;
+font-size: .875rem;
+}
+.custom-file-sm input{
+  height: calc(1.5em + .5rem + 2px);
+font-size: .875rem;
+}
 /*自定义css*/
 .login-body,.login-html{
   height:100%;

+ 9 - 0
project-management.html

@@ -1274,6 +1274,15 @@
                 <div class="modal-body">
                     <form>
                         <div class="form-group row">
+                            <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">选择文件</label>
+                            <div class="col">
+                              <div class="custom-file custom-file-sm">
+                                    <input type="file" class="custom-file-input" id="customFile" accept=".xls,.xlsx" lang="zh">
+                                    <label class="custom-file-label" for="customFile">请选择上传文件</label>
+                                </div>
+                            </div>
+                        </div>
+                        <div class="form-group row">
                             <label for="staticEmail" class="col-auto col-form-label col-form-label-sm">建设项目</label>
                             <div class="col">
                               <input type="text" class="form-control form-control-sm" value="建设项目名称" readonly="">