|  | @@ -0,0 +1,26 @@
 | 
												
													
														
															|  | 
 |  | +<div class="modal fade" id="common-hint" data-backdrop="static">
 | 
												
													
														
															|  | 
 |  | +    <div class="modal-dialog" role="document">
 | 
												
													
														
															|  | 
 |  | +        <div class="modal-content">
 | 
												
													
														
															|  | 
 |  | +            <div class="modal-header">
 | 
												
													
														
															|  | 
 |  | +                <h5 class="modal-title">确认</h5>
 | 
												
													
														
															|  | 
 |  | +            </div>
 | 
												
													
														
															|  | 
 |  | +            <div class="modal-body">
 | 
												
													
														
															|  | 
 |  | +                <h6 id="common-hint-str">此操作会替换台账里所有同编号、名称、单位的清单,请谨慎操作</h6>
 | 
												
													
														
															|  | 
 |  | +            </div>
 | 
												
													
														
															|  | 
 |  | +            <div class="modal-footer">
 | 
												
													
														
															|  | 
 |  | +                <button type="button" class="btn btn-sm btn-primary" id="common-hint-ok" data-dismiss="modal">确定</button>
 | 
												
													
														
															|  | 
 |  | +                <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
 | 
												
													
														
															|  | 
 |  | +            </div>
 | 
												
													
														
															|  | 
 |  | +        </div>
 | 
												
													
														
															|  | 
 |  | +    </div>
 | 
												
													
														
															|  | 
 |  | +</div>
 | 
												
													
														
															|  | 
 |  | +<script>
 | 
												
													
														
															|  | 
 |  | +    const doAfterHint = function (option) {
 | 
												
													
														
															|  | 
 |  | +        $('#common-hint-ok').bind('click', option.fun);
 | 
												
													
														
															|  | 
 |  | +        if (option.hint) $('#common-hint-str').html(option.hint);
 | 
												
													
														
															|  | 
 |  | +        $('#common-hint').modal('show');
 | 
												
													
														
															|  | 
 |  | +        $('#common-hint').bind('hidden.bs.modal', function () {
 | 
												
													
														
															|  | 
 |  | +            $('#common-hint-ok').unbind('click');
 | 
												
													
														
															|  | 
 |  | +        });
 | 
												
													
														
															|  | 
 |  | +    }
 | 
												
													
														
															|  | 
 |  | +</script>
 |