Commit 3729680c authored by 何远江's avatar 何远江

1

parent 7ddb81a3
......@@ -3575,7 +3575,7 @@ field\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\
</div>
</div>
`,botton:`<button id="luckysheet-protection-sheet-validation-confirm" class="btn btn-primary">${l.confirm}</button>
<button class="btn btn-default luckysheet-model-close-btn">${l.cancel}</button>`,style:"z-index:100003"}))}function Qs(e){e==null&&(e={});for(let a=0;a<La.length;a++){let o=La[a],s="luckysheet-protection-check-"+o,u=e[o];u==null&&(u=0),u==null&&o in{selectLockedCells:1,selectunLockedCells:1}&&(u=1),$("#"+s).prop("checked",u==1)}e.password!=null&&e.password.length>0?e.algorithmName=="None"||e.algorithmName==null?$("#protection-password").val(e.password):$("#protection-password").val("\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"):$("#protection-password").val("");let n=e.sheet;e.sheet==null&&(n=0),$("#protection-swichProtectionState").prop("checked",n==1);let t=e.hintText;t==null&&(t=""),$("#protection-hint").val(t),on=[],$("#luckysheet-protection-rangeItem-container").empty();let l=e.allowRangeList;if(l!=null&&l.length>0)for(let a=0;a<l.length;a++){let o=l[a];tf(o),on.push(o)}}function rf(e){if(Kd||(Wy(e),Gy(e),Kd=!0),Qd=e,e!=null&&e.config!=null&&e.config.authority!=null){let n=e.config.authority;if(Zs&&n.sheet==1&&n.password!=null&&n.password.length>0){bo=n,$("#luckysheet-protection-sheet-validation input").val(""),sa("luckysheet-protection-sheet-validation");return}else Qs(n)}else $("#luckysheet-protection-check-selectLockedCells").prop("checked",!0),$("#luckysheet-protection-check-selectunLockedCells").prop("checked",!0);$("#luckysheet-modal-dialog-slider-protection").show(),$t()}function nf(){$("#luckysheet-protection-rangeItem-dialog").hide(),$("#luckysheet-modal-dialog-slider-protection").hide(),$t()}function ec(e,n,t,l,a=!0,o=!0){let s=!1,u=t.allowRangeList;if(u!=null&&u.length>0){let d=!1;for(let f=0;f<u.length;f++){let m=u[f],g=m.sqref,y=Ye.getRangeByTxt(g);if(y.length>0)for(let v=0;v<y.length;v++){let k=y[v].row[0],b=y[v].row[1],w=y[v].column[0],x=y[v].column[1];if(e>=k&&e<=b&&n>=w&&n<=x){d=!0;break}}if(d){let v=m.password;if(v!=null&&v.length>0&&!(g in Js))return a&&(Yy(m),$("#luckysheet-selection-copy .luckysheet-selection-copy").hide()),!1;s=!0;break}}}if(!s&&!o&&(s=!0),!s&&a){let d;t.hintText!=null&&t.hintText.length>0?d=t.hintText:d=l.defaultSheetHintText,U.info("",d),$("#luckysheet-selection-copy .luckysheet-selection-copy").hide()}return s}function Yy(e){let n=Q(),t=n.protection,l=n.button;ef||$("body").append(xe(ft,{id:"luckysheet-protection-range-validation",addclass:"luckysheet-protection-sheet-validation",title:t.validationTitle,content:`
<button class="btn btn-default luckysheet-model-close-btn">${l.cancel}</button>`,style:"z-index:100003"}))}function Qs(e){e==null&&(e={});for(let a=0;a<La.length;a++){let o=La[a],s="luckysheet-protection-check-"+o,u=e[o];u==null&&(u=0),u==null&&o in{selectLockedCells:1,selectunLockedCells:1}&&(u=1),$("#"+s).prop("checked",u==1)}e.password!=null&&e.password.length>0?e.algorithmName=="None"||e.algorithmName==null?$("#protection-password").val(e.password):$("#protection-password").val("\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"):$("#protection-password").val("");let n=e.sheet;e.sheet==null&&(n=0),$("#protection-swichProtectionState").prop("checked",n==1);let t=e.hintText;t==null&&(t=""),$("#protection-hint").val(t),on=[],$("#luckysheet-protection-rangeItem-container").empty();let l=e.allowRangeList;if(l!=null&&l.length>0)for(let a=0;a<l.length;a++){let o=l[a];tf(o),on.push(o)}}function rf(e){if(Kd||(Wy(e),Gy(e),Kd=!0),Qd=e,e!=null&&e.config!=null&&e.config.authority!=null){let n=e.config.authority;if(Zs&&n.sheet==1&&n.password!=null&&n.password.length>0){bo=n,$("#luckysheet-protection-sheet-validation input").val(""),sa("luckysheet-protection-sheet-validation");return}else Qs(n)}else $("#luckysheet-protection-check-selectLockedCells").prop("checked",!0),$("#luckysheet-protection-check-selectunLockedCells").prop("checked",!0);$("#luckysheet-modal-dialog-slider-protection").show(),$t()}function nf(){$("#luckysheet-protection-rangeItem-dialog").hide(),$("#luckysheet-modal-dialog-slider-protection").hide(),$t()}function ec(e,n,t,l,a=!0,o=!0){let s=!1,u=t.allowRangeList;if(u!=null&&u.length>0){let d=!1;for(let f=0;f<u.length;f++){let m=u[f],g=m.sqref,y=Ye.getRangeByTxt(g);if(y.length>0)for(let v=0;v<y.length;v++){let k=y[v].row[0],b=y[v].row[1],w=y[v].column[0],x=y[v].column[1];if(e>=k&&e<=b&&n>=w&&n<=x){d=!0;break}}if(d){let v=m.password;if(v!=null&&v.length>0&&!(g in Js))return a&&(Yy(m),$("#luckysheet-selection-copy .luckysheet-selection-copy").hide()),!1;s=!0;break}}}if(!s&&!o&&(s=!0),!s&&a){let d;t.hintText!=null&&t.hintText.length>0?d=t.hintText:d=l.defaultSheetHintText,$("#luckysheet-selection-copy .luckysheet-selection-copy").hide()}return s}function Yy(e){let n=Q(),t=n.protection,l=n.button;ef||$("body").append(xe(ft,{id:"luckysheet-protection-range-validation",addclass:"luckysheet-protection-sheet-validation",title:t.validationTitle,content:`
<div class="luckysheet-slider-protection-row">
<div id="luckysheet-protection-range-validation-hint" class="luckysheet-slider-protection-column luckysheet-protection-column-10x">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment