no message
This commit is contained in:
parent
9431950719
commit
908ab1642e
37
resources/assets/js/functions/web.js
vendored
37
resources/assets/js/functions/web.js
vendored
@ -11,10 +11,10 @@
|
|||||||
$.extend({
|
$.extend({
|
||||||
// 弹窗
|
// 弹窗
|
||||||
modalConfig(config) {
|
modalConfig(config) {
|
||||||
if (typeof config === "string") {
|
if (typeof config === "undefined") {
|
||||||
config = {
|
config = {content: "Undefined"};
|
||||||
content: config
|
} else if (typeof config === "string") {
|
||||||
};
|
config = {content: config};
|
||||||
}
|
}
|
||||||
config.title = $A.L(config.title || (typeof config.render === 'undefined' ? '温馨提示' : ''));
|
config.title = $A.L(config.title || (typeof config.render === 'undefined' ? '温馨提示' : ''));
|
||||||
config.content = $A.L(config.content || '');
|
config.content = $A.L(config.content || '');
|
||||||
@ -112,27 +112,6 @@
|
|||||||
$A.Modal.error($A.modalConfig(config));
|
$A.Modal.error($A.modalConfig(config));
|
||||||
},
|
},
|
||||||
|
|
||||||
modalInfoShow(title, data, addConfig) {
|
|
||||||
let content = '';
|
|
||||||
for (let i in data) {
|
|
||||||
let item = data[i];
|
|
||||||
content += `<div class="modal-info-show">`;
|
|
||||||
content += ` <div class="column">${item.column}:</div>`;
|
|
||||||
content += ` <div class="value">${item.value || item.value == '0' ? item.value : '-'}</div>`;
|
|
||||||
content += `</div>`;
|
|
||||||
}
|
|
||||||
let config = {
|
|
||||||
title: title,
|
|
||||||
content: content,
|
|
||||||
okText: $A.L('关闭'),
|
|
||||||
closable: true
|
|
||||||
};
|
|
||||||
if (typeof addConfig == 'object' && addConfig) {
|
|
||||||
config = Object.assign(config, addConfig);
|
|
||||||
}
|
|
||||||
this.Modal.info(config);
|
|
||||||
},
|
|
||||||
|
|
||||||
modalAlert(msg) {
|
modalAlert(msg) {
|
||||||
alert($A.L(msg));
|
alert($A.L(msg));
|
||||||
},
|
},
|
||||||
@ -152,10 +131,10 @@
|
|||||||
|
|
||||||
//通知
|
//通知
|
||||||
noticeConfig(config) {
|
noticeConfig(config) {
|
||||||
if (typeof config === "string") {
|
if (typeof config === "undefined") {
|
||||||
config = {
|
config = {desc: "Undefined"};
|
||||||
desc: config
|
} else if (typeof config === "string") {
|
||||||
};
|
config = {desc: config};
|
||||||
}
|
}
|
||||||
config.title = $A.L(config.title || (typeof config.render === 'undefined' ? '温馨提示' : ''));
|
config.title = $A.L(config.title || (typeof config.render === 'undefined' ? '温馨提示' : ''));
|
||||||
config.desc = $A.L(config.desc || '');
|
config.desc = $A.L(config.desc || '');
|
||||||
|
18
resources/assets/sass/pages/common.scss
vendored
18
resources/assets/sass/pages/common.scss
vendored
@ -242,24 +242,6 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-info-show {
|
|
||||||
display: flex;
|
|
||||||
.column {
|
|
||||||
color: #6D6D6D;
|
|
||||||
margin: 5px 0;
|
|
||||||
min-width: 70px;
|
|
||||||
max-width: 100px;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.value {
|
|
||||||
flex: 1;
|
|
||||||
width: 0;
|
|
||||||
color: #414141;
|
|
||||||
margin: 5px 0 5px 5px;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
*[hidden="hidden"] {
|
*[hidden="hidden"] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user