mooho-base-admin-plus 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12051,8 +12051,8 @@ const tParam = (str) => {
|
|
|
12051
12051
|
let result2 = window.$t(array[0]);
|
|
12052
12052
|
if (array.length > 1) {
|
|
12053
12053
|
for (let i2 = 0; i2 < array.length - 1; i2++) {
|
|
12054
|
-
result2 = result2.replace("
|
|
12055
|
-
result2 = result2.replace("
|
|
12054
|
+
result2 = result2.replace("[" + i2 + "]", array[i2 + 1]);
|
|
12055
|
+
result2 = result2.replace("{" + i2 + "}", window.$t("Model_" + array[i2 + 1]));
|
|
12056
12056
|
}
|
|
12057
12057
|
}
|
|
12058
12058
|
return result2;
|
|
@@ -19976,7 +19976,7 @@ var mixinPage = {
|
|
|
19976
19976
|
},
|
|
19977
19977
|
confirm(title, onConfirm) {
|
|
19978
19978
|
let swal = this.$swal.fire({
|
|
19979
|
-
title: this
|
|
19979
|
+
title: this.tParam(title),
|
|
19980
19980
|
icon: "question",
|
|
19981
19981
|
confirmButtonText: this.$t("Front_Btn_OK"),
|
|
19982
19982
|
cancelButtonText: this.$t("Front_Btn_Cancel"),
|
|
@@ -19993,7 +19993,7 @@ var mixinPage = {
|
|
|
19993
19993
|
},
|
|
19994
19994
|
confirmInput(title, inputLabel, onConfirm, preConfirm) {
|
|
19995
19995
|
let swal = this.$swal.fire({
|
|
19996
|
-
title: this
|
|
19996
|
+
title: this.tParam(title),
|
|
19997
19997
|
input: "text",
|
|
19998
19998
|
confirmButtonText: this.$t("Front_Btn_OK"),
|
|
19999
19999
|
cancelButtonText: this.$t("Front_Btn_Cancel"),
|
|
@@ -20013,7 +20013,7 @@ var mixinPage = {
|
|
|
20013
20013
|
},
|
|
20014
20014
|
success(message, onConfirm) {
|
|
20015
20015
|
var swal = this.$swal.fire({
|
|
20016
|
-
title: this
|
|
20016
|
+
title: this.tParam(message),
|
|
20017
20017
|
icon: "success",
|
|
20018
20018
|
confirmButtonText: this.$t("Front_Btn_OK")
|
|
20019
20019
|
});
|
|
@@ -20026,7 +20026,7 @@ var mixinPage = {
|
|
|
20026
20026
|
},
|
|
20027
20027
|
warning(message, onConfirm) {
|
|
20028
20028
|
var swal = this.$swal.fire({
|
|
20029
|
-
title: this
|
|
20029
|
+
title: this.tParam(message),
|
|
20030
20030
|
icon: "warning",
|
|
20031
20031
|
confirmButtonText: this.$t("Front_Btn_OK")
|
|
20032
20032
|
});
|
|
@@ -20039,7 +20039,7 @@ var mixinPage = {
|
|
|
20039
20039
|
},
|
|
20040
20040
|
error(message, onConfirm) {
|
|
20041
20041
|
var swal = this.$swal.fire({
|
|
20042
|
-
title: this
|
|
20042
|
+
title: this.tParam(message),
|
|
20043
20043
|
icon: "error",
|
|
20044
20044
|
confirmButtonText: this.$t("Front_Btn_OK")
|
|
20045
20045
|
});
|
|
@@ -20116,11 +20116,12 @@ var mixinPage = {
|
|
|
20116
20116
|
}
|
|
20117
20117
|
},
|
|
20118
20118
|
tParam(str) {
|
|
20119
|
+
console.log("str", str);
|
|
20119
20120
|
let array = str.split("|");
|
|
20120
20121
|
let result2 = this.$t(array[0]);
|
|
20121
20122
|
if (array.length > 1) {
|
|
20122
20123
|
for (let i2 = 0; i2 < array.length - 1; i2++) {
|
|
20123
|
-
result2 = result2.replace("
|
|
20124
|
+
result2 = result2.replace("[" + i2 + "]", array[i2 + 1]);
|
|
20124
20125
|
}
|
|
20125
20126
|
}
|
|
20126
20127
|
return result2;
|