后台导航数据添加错误修复、地域分布图表优化,公共提示优化
parent
ae6a9d0327
commit
ba9bbaec85
|
|
@ -104,7 +104,6 @@ class Navigation extends Base
|
||||||
public function Save()
|
public function Save()
|
||||||
{
|
{
|
||||||
$params = $this->data_request;
|
$params = $this->data_request;
|
||||||
$params['nav_type'] = $this->nav_type;
|
|
||||||
return ApiService::ApiDataReturn(NavigationService::NavSave($params));
|
return ApiService::ApiDataReturn(NavigationService::NavSave($params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -485,6 +485,9 @@ function EchartsOrderMapWholeCountry (name_arr, data) {
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
|
splitArea: { //是否显示echarts背景分隔区域
|
||||||
|
show: false
|
||||||
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
show: true, // 显示坐标线
|
show: true, // 显示坐标线
|
||||||
lineStyle: { // 坐标颜色
|
lineStyle: { // 坐标颜色
|
||||||
|
|
|
||||||
|
|
@ -1849,7 +1849,7 @@ function FunSaveWinAdditional (data, type, tag = null) {
|
||||||
// 是否有数据
|
// 是否有数据
|
||||||
if ((value || null) != null) {
|
if ((value || null) != null) {
|
||||||
// 先清空数据、组合上传和显示则不清除
|
// 先清空数据、组合上传和显示则不清除
|
||||||
if(!is_compose) {
|
if (!is_compose) {
|
||||||
$tag.empty();
|
$tag.empty();
|
||||||
}
|
}
|
||||||
// 循环追加
|
// 循环追加
|
||||||
|
|
@ -1882,10 +1882,10 @@ function FunSaveWinAdditional (data, type, tag = null) {
|
||||||
if (is_delete == 1) {
|
if (is_delete == 1) {
|
||||||
html += '<i>x</i>';
|
html += '<i>x</i>';
|
||||||
}
|
}
|
||||||
if(is_eye == 1) {
|
if (is_eye == 1) {
|
||||||
html += '<i class="iconfont icon-eye"></i>';
|
html += '<i class="iconfont icon-eye"></i>';
|
||||||
}
|
}
|
||||||
if(is_compose) {
|
if (is_compose) {
|
||||||
$tag.find('li.plug-file-upload-submit').html(html);
|
$tag.find('li.plug-file-upload-submit').html(html);
|
||||||
} else {
|
} else {
|
||||||
$tag.append(`<li>` + html + `</li>`);
|
$tag.append(`<li>` + html + `</li>`);
|
||||||
|
|
@ -1894,7 +1894,7 @@ function FunSaveWinAdditional (data, type, tag = null) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(is_compose) {
|
if (is_compose) {
|
||||||
$tag.find('li.plug-file-upload-submit').html('<i class="iconfont icon-upload-add"></i>');
|
$tag.find('li.plug-file-upload-submit').html('<i class="iconfont icon-upload-add"></i>');
|
||||||
} else {
|
} else {
|
||||||
// 没数据则判断是否可以删除、可以就清空则值赋为空
|
// 没数据则判断是否可以删除、可以就清空则值赋为空
|
||||||
|
|
@ -3340,13 +3340,13 @@ function CommonFormUploadEditorDataViewHandle (data, type = 'images') {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 是否上传和显示组合模式
|
// 是否上传和显示组合模式
|
||||||
if(is_compose) {
|
if (is_compose) {
|
||||||
var html = '<input type="text" name="' + form_name + '" value="' + src + '" />';
|
var html = '<input type="text" name="' + form_name + '" value="' + src + '" />';
|
||||||
html += '<img src="' + src + '" />';
|
html += '<img src="' + src + '" />';
|
||||||
if (is_delete == 1) {
|
if (is_delete == 1) {
|
||||||
html += '<i>x</i>';
|
html += '<i>x</i>';
|
||||||
}
|
}
|
||||||
if(is_eye == 1) {
|
if (is_eye == 1) {
|
||||||
html += '<i class="iconfont icon-eye"></i>';
|
html += '<i class="iconfont icon-eye"></i>';
|
||||||
}
|
}
|
||||||
$tag.find('li.plug-file-upload-submit').html(html);
|
$tag.find('li.plug-file-upload-submit').html(html);
|
||||||
|
|
@ -3365,7 +3365,7 @@ function CommonFormUploadEditorDataViewHandle (data, type = 'images') {
|
||||||
if (is_delete == 1) {
|
if (is_delete == 1) {
|
||||||
html += '<i>×</i>';
|
html += '<i>×</i>';
|
||||||
}
|
}
|
||||||
if(is_eye == 1) {
|
if (is_eye == 1) {
|
||||||
html += '<i class="iconfont icon-eye"></i>';
|
html += '<i class="iconfont icon-eye"></i>';
|
||||||
}
|
}
|
||||||
html += '</li>';
|
html += '</li>';
|
||||||
|
|
@ -3386,13 +3386,13 @@ function CommonFormUploadEditorDataViewHandle (data, type = 'images') {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 是否上传和显示组合模式
|
// 是否上传和显示组合模式
|
||||||
if(is_compose) {
|
if (is_compose) {
|
||||||
var html = '<input type="text" name="' + form_name + '" value="' + src + '" />';
|
var html = '<input type="text" name="' + form_name + '" value="' + src + '" />';
|
||||||
html += '<video src="' + src + '" controls>your browser does not support the video tag</video>';
|
html += '<video src="' + src + '" controls>your browser does not support the video tag</video>';
|
||||||
if (is_delete == 1) {
|
if (is_delete == 1) {
|
||||||
html += '<i>x</i>';
|
html += '<i>x</i>';
|
||||||
}
|
}
|
||||||
if(is_eye == 1) {
|
if (is_eye == 1) {
|
||||||
html += '<i class="iconfont icon-eye"></i>';
|
html += '<i class="iconfont icon-eye"></i>';
|
||||||
}
|
}
|
||||||
$tag.find('li.plug-file-upload-submit').html(html);
|
$tag.find('li.plug-file-upload-submit').html(html);
|
||||||
|
|
@ -3428,7 +3428,7 @@ function CommonFormUploadEditorDataViewHandle (data, type = 'images') {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 是否上传和显示组合模式
|
// 是否上传和显示组合模式
|
||||||
if(is_compose) {
|
if (is_compose) {
|
||||||
var html = '<input type="text" name="' + form_name + '[' + index + '][title]" value="' + data[i].title + '" />';
|
var html = '<input type="text" name="' + form_name + '[' + index + '][title]" value="' + data[i].title + '" />';
|
||||||
html += '<input type="text" name="' + form_name + '[' + index + '][url]" value="' + src + '" />';
|
html += '<input type="text" name="' + form_name + '[' + index + '][url]" value="' + src + '" />';
|
||||||
html += '<a href="' + src + '" target="_blank">' + data[i].title + '</a>';
|
html += '<a href="' + src + '" target="_blank">' + data[i].title + '</a>';
|
||||||
|
|
@ -4709,7 +4709,7 @@ $(function () {
|
||||||
// 打开编辑器插件
|
// 打开编辑器插件
|
||||||
$(document).on('click', '.plug-file-upload-submit', function () {
|
$(document).on('click', '.plug-file-upload-submit', function () {
|
||||||
// 是否查看文件操作、则阻止往下执行
|
// 是否查看文件操作、则阻止往下执行
|
||||||
if($(this).find('>i.icon-eye').length > 0) {
|
if ($(this).find('>i.icon-eye').length > 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4807,7 +4807,7 @@ $(function () {
|
||||||
var $tag = $(this).parents('ul.plug-file-upload-view');
|
var $tag = $(this).parents('ul.plug-file-upload-view');
|
||||||
// 是否上传和显示组合
|
// 是否上传和显示组合
|
||||||
var $compose = $tag.find('li.plug-file-upload-submit');
|
var $compose = $tag.find('li.plug-file-upload-submit');
|
||||||
if($compose.length > 0) {
|
if ($compose.length > 0) {
|
||||||
$compose.html('<i class="iconfont icon-upload-add"></i>');
|
$compose.html('<i class="iconfont icon-upload-add"></i>');
|
||||||
} else {
|
} else {
|
||||||
var $parent = $(this).parent();
|
var $parent = $(this).parent();
|
||||||
|
|
@ -4815,7 +4815,7 @@ $(function () {
|
||||||
var remove_default_images = $tag.attr('data-remove-default-images');
|
var remove_default_images = $tag.attr('data-remove-default-images');
|
||||||
if (remove_default_images === undefined) {
|
if (remove_default_images === undefined) {
|
||||||
// 删除数据、延迟10毫秒删除、避免业务层页面有其他操作
|
// 删除数据、延迟10毫秒删除、避免业务层页面有其他操作
|
||||||
setTimeout(function() {
|
setTimeout(function () {
|
||||||
$parent.remove();
|
$parent.remove();
|
||||||
}, 10);
|
}, 10);
|
||||||
|
|
||||||
|
|
@ -4837,29 +4837,29 @@ $(function () {
|
||||||
|
|
||||||
// 文件预览
|
// 文件预览
|
||||||
$(document).on('click', '.plug-file-upload-view li', function () {
|
$(document).on('click', '.plug-file-upload-view li', function () {
|
||||||
if($(this).find('i.icon-eye').length > 0) {
|
if ($(this).find('i.icon-eye').length > 0) {
|
||||||
// 容器
|
// 容器
|
||||||
var $tag = $(this).parents('ul.plug-file-upload-view');
|
var $tag = $(this).parents('ul.plug-file-upload-view');
|
||||||
var type = $tag.attr('data-dialog-type') || 'images';
|
var type = $tag.attr('data-dialog-type') || 'images';
|
||||||
var title = null;
|
var title = null;
|
||||||
var html = null;
|
var html = null;
|
||||||
var style = 'max-width:100%; max-height:calc(80vh - 4.5rem); margin: 0 auto;';
|
var style = 'max-width:100%; max-height:calc(80vh - 4.5rem); margin: 0 auto;';
|
||||||
switch(type) {
|
switch (type) {
|
||||||
case 'video' :
|
case 'video':
|
||||||
var video = $(this).find('>video').attr('src') || null;
|
var video = $(this).find('>video').attr('src') || null;
|
||||||
if(video != null) {
|
if (video != null) {
|
||||||
title = window['lang_video_preview_title'] || '视频预览';
|
title = window['lang_video_preview_title'] || '视频预览';
|
||||||
html = '<video src="'+video+'" style="'+style+'" controls autoplay>your browser does not support the video tag</video>';
|
html = '<video src="' + video + '" style="' + style + '" controls autoplay>your browser does not support the video tag</video>';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default :
|
default:
|
||||||
var img = $(this).find('>img').attr('src') || null;
|
var img = $(this).find('>img').attr('src') || null;
|
||||||
if(img != null) {
|
if (img != null) {
|
||||||
title = window['lang_images_preview_title'] || '图片预览';
|
title = window['lang_images_preview_title'] || '图片预览';
|
||||||
html = '<img src="' + img + '" class="am-block" style="'+style+'" />';
|
html = '<img src="' + img + '" class="am-block" style="' + style + '" />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(html != null) {
|
if (html != null) {
|
||||||
AMUI.dialog.alert({
|
AMUI.dialog.alert({
|
||||||
title: title,
|
title: title,
|
||||||
isClose: true,
|
isClose: true,
|
||||||
|
|
@ -5623,10 +5623,16 @@ $(function () {
|
||||||
var $parent = $(this).parent();
|
var $parent = $(this).parent();
|
||||||
if ($parent.hasClass('am-close-tips')) {
|
if ($parent.hasClass('am-close-tips')) {
|
||||||
$parent.removeClass('am-close-tips');
|
$parent.removeClass('am-close-tips');
|
||||||
$parent.animate({ height: '100%', width: '100%' }, 500);
|
const tips = document.querySelector('.am-operate-stretch-tips');
|
||||||
|
tips.style.height = 'auto';
|
||||||
|
tips.style.width = '100%';
|
||||||
|
const { height } = tips.getBoundingClientRect();
|
||||||
|
tips.style.height = '35px';
|
||||||
|
tips.style.width = '90px';
|
||||||
|
$parent.animate({ height: height + 'px', width: '100%' }, 300);
|
||||||
} else {
|
} else {
|
||||||
$parent.addClass('am-close-tips');
|
$parent.addClass('am-close-tips');
|
||||||
$parent.animate({ height: '35px', width: '90px' }, 500);
|
$parent.animate({ height: '35px', width: '90px' }, 300);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Loading…
Reference in New Issue