| | |
| | | },'json') |
| | | }) |
| | | |
| | | /** |
| | | * css样式编辑器 xin 2024-1-29 10:34:34 |
| | | * @param grid |
| | | * @param panel |
| | | */ |
| | | //getTextCssEdit(option)//option是格线当前行触发的对象可以获取值和返回 |
| | | var textCssOption={}; |
| | | function getTextCssEdit(option){ |
| | | if (option && option.close) {//关闭 |
| | | if (option.type == 1 && option.value != null) {//给面板赋值 |
| | | $doc(textCssOption.id).val(option.value); |
| | | } |
| | | layer.closeAll(); |
| | | return false; |
| | | } |
| | | let cssText = ""; |
| | | let type = 0; |
| | | let pindex = panIndex; |
| | | textCssOption = option; |
| | | if (option && option.id) {//获取值(面板) |
| | | if (option.index != null) {//取对应元素的控件值 |
| | | panIndex = option.index; |
| | | cssText = $doc(option.id).val(); |
| | | } else { |
| | | cssText = $("#" + option.id).val(); |
| | | } |
| | | type = 1;//面板控件 |
| | | } |
| | | if(option.grid || option.value){//获取值(格线) |
| | | cssText=option.value; |
| | | } |
| | | layer.open({ |
| | | type: 2, |
| | | area: ['400px', '780px'], |
| | | closeBtn: 0, |
| | | isOutAnim: false, |
| | | title: false, |
| | | resize: false, |
| | | fixed: false, |
| | | shade: 0.6, |
| | | skin: 'layui-layer-molv', |
| | | shadeClose: true, // 点击遮罩区域,关闭弹层, |
| | | content: encodeURL('/general/textCssEdit/textCssEdit.html?cssText=' + cssText + '&type=' + type),//cssText有值时候可以传过去 |
| | | move: false, |
| | | success: function (layero, index) { |
| | | // createFormElement(); |
| | | }, cancel: function (index, layero) { |
| | | panIndex = pindex; |
| | | }, end: function () { |
| | | panIndex = pindex; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function checkVersion(){ |
| | | setTimeout(checkVersion, 86400000); |
| | | setTimeout(checkVersion2, 86400000);//24小时调用一次 |