Commit cbd7c7e788d0182c1dfdfa003e947b1ff20f907c

Authored by Andy
1 parent 2b0ce64b

添加提示弹窗 工时填写页面

resource/public/commoncss.css
... ... @@ -168,4 +168,51 @@ header{
168 168  
169 169 .fixed-table-container tbody td {
170 170 border-left: none !important;
  171 +}
  172 +/*弹窗 提示*/
  173 +.ITD-modal-config, .ITD-modal-dialog {
  174 + position: absolute;
  175 + left: 50%;
  176 + top: 50%;
  177 + transform: translate(-50%,-50%)!important;
  178 + -webkit-transform: translate(-50%,-50%)!important;
  179 + -moz-transform: translate(-50%,-50%)!important;
  180 + -ms-transform: translate(-50%,-50%)!important;
  181 + -o-transform: translate(-50%,-50%)!important;
  182 +}
  183 +
  184 +.blue-modal {
  185 + width: 380px;
  186 +}
  187 +.modal-content {
  188 + color: rgba(0,0,0,.7);
  189 +}
  190 +.modal-content {
  191 + border-radius: 4px !important;
  192 +}
  193 +.ITD-model-header {
  194 + line-height: 67px;
  195 + height: 67px;
  196 + padding: 0 15px 0 38px;
  197 +}
  198 +.ITD-alertmodel-contentmsg {
  199 + height: 100px;
  200 + line-height: 100px;
  201 + text-align: center;
  202 + width: 100%;
  203 + margin-top: 8px;
  204 +}
  205 +.ITD-model-close {
  206 + margin-top: 10px !important;
  207 +}
  208 +.ITD-common-fontsize16 {
  209 + font-size: 16px;
  210 +}
  211 +.ITD-ztree-headername {
  212 + border-left: 3px solid #1E95CD;
  213 + padding-left: 12px;
  214 + height: 16px;
  215 + color: #1E95CD;
  216 + line-height: 16px;
  217 + display: inline-block;
171 218 }
172 219 \ No newline at end of file
... ...
topages/workfill/workfill.html
... ... @@ -132,5 +132,19 @@
132 132 </li>
133 133  
134 134 </ul>
135   -
  135 +<!--提示弹窗 sta-->
  136 +<div class="modal fade " id="ITD-tipsmodel" style="display: none" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  137 + <div class="ITD-modal-dialog blue-modal">
  138 + <div class="modal-content">
  139 + <div class="modal-header ITD-model-header">
  140 + <button type="button" class="close ITD-model-close" data-dismiss="modal" aria-hidden="true">×</button>
  141 + <span class="ITD-common-fontsize16 colorbig ITD-ztree-headername">提示</span>
  142 + </div>
  143 + <div class="modal-body">
  144 + <div class="ITD-alertmodel-contentmsg"></div>
  145 + </div>
  146 + </div>
  147 + </div>
  148 +</div>
  149 +<!--提示弹窗 end-->
136 150 <script src="../topages/workfill/workfill.js"></script>
137 151 \ No newline at end of file
... ...
topages/workfill/workfill.js
... ... @@ -163,7 +163,13 @@ var fun = {
163 163 var dailyDate = $("#weekday"+id).attr("data-date");
164 164 var dailyContent = $("#daily-report"+id).text();
165 165 if(dailyContent==''){
166   - alert('')
  166 + $('.ITD-alertmodel-contentmsg').text('工作内容不能为空!');
  167 + $('#ITD-tipsmodel').modal('show');
  168 + setTimeout(function () {
  169 + $('.ITD-alertmodel-contentmsg').text('');
  170 + $('#ITD-tipsmodel').modal('hide');
  171 + },3000);
  172 + return false;
167 173 }else{
168 174 var req= {
169 175 id:arsaId,
... ... @@ -190,7 +196,12 @@ var fun = {
190 196 _this.parent().parent().find('.workfill-list-projectnamewrap .workfill-list-projectname').text(projectName);
191 197  
192 198 }else{
193   - alert("失败");
  199 + $('.ITD-alertmodel-contentmsg').text('提交失败!');
  200 + $('#ITD-tipsmodel').modal('show');
  201 + setTimeout(function () {
  202 + $('.ITD-alertmodel-contentmsg').text('');
  203 + $('#ITD-tipsmodel').modal('hide');
  204 + },3000);
194 205 return false;
195 206 }
196 207 }
... ...