This commit is contained in:
@@ -19,7 +19,7 @@ export default {
|
|||||||
//ERROR
|
//ERROR
|
||||||
vm.$gzevent.$on("notify-error", function handleNotifyWarn(msg) {
|
vm.$gzevent.$on("notify-error", function handleNotifyWarn(msg) {
|
||||||
vm.$dialog.notify.info(msg, {
|
vm.$dialog.notify.info(msg, {
|
||||||
position: "top-right",
|
position: "bottom-right",
|
||||||
icon: "fa-exclamation-triangle",
|
icon: "fa-exclamation-triangle",
|
||||||
timeout: 8000
|
timeout: 8000
|
||||||
});
|
});
|
||||||
@@ -29,7 +29,7 @@ export default {
|
|||||||
//WARNING
|
//WARNING
|
||||||
vm.$gzevent.$on("notify-warning", function handleNotifyWarn(msg) {
|
vm.$gzevent.$on("notify-warning", function handleNotifyWarn(msg) {
|
||||||
vm.$dialog.notify.warning(msg, {
|
vm.$dialog.notify.warning(msg, {
|
||||||
position: "top-right",
|
position: "bottom-right",
|
||||||
icon: "fa-exclamation",
|
icon: "fa-exclamation",
|
||||||
timeout: 7000
|
timeout: 7000
|
||||||
});
|
});
|
||||||
@@ -39,9 +39,9 @@ export default {
|
|||||||
//INFO
|
//INFO
|
||||||
vm.$gzevent.$on("notify-info", function handleNotifyWarn(msg) {
|
vm.$gzevent.$on("notify-info", function handleNotifyWarn(msg) {
|
||||||
vm.$dialog.notify.info(msg, {
|
vm.$dialog.notify.info(msg, {
|
||||||
position: "top-right",
|
position: "bottom-right",
|
||||||
icon: "fa-info-circle",
|
icon: "fa-info-circle",
|
||||||
timeout: 6000
|
timeout: 3000
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -49,9 +49,9 @@ export default {
|
|||||||
//SUCCESS
|
//SUCCESS
|
||||||
vm.$gzevent.$on("notify-success", function handleNotifyWarn(msg) {
|
vm.$gzevent.$on("notify-success", function handleNotifyWarn(msg) {
|
||||||
vm.$dialog.notify.success(msg, {
|
vm.$dialog.notify.success(msg, {
|
||||||
position: "top-right",
|
position: "bottom-right",
|
||||||
icon: "fa-check-circle ",
|
icon: "fa-check-circle ",
|
||||||
timeout: 5000
|
timeout: 3000
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -188,11 +188,13 @@ function clickHandler(menuItem) {
|
|||||||
var selectedItem = reportList[0].value;
|
var selectedItem = reportList[0].value;
|
||||||
m.vm.$gzdialog
|
m.vm.$gzdialog
|
||||||
.getReportChoice(m.vm, reportList, selectedItem)
|
.getReportChoice(m.vm, reportList, selectedItem)
|
||||||
.then(result => {
|
.then(res => {
|
||||||
m.vm.$gzevent.$emit(
|
if (res) {
|
||||||
"notify-success",
|
m.vm.$gzevent.$emit(
|
||||||
FORM_KEY + "::report click, selected is: [" + result + "]"
|
"notify-success",
|
||||||
);
|
FORM_KEY + "::report click, selected is: [" + res + "]"
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user