mooho-base-admin-plus 0.4.3 → 0.4.6
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.
|
@@ -12048,12 +12048,11 @@ function errorLog(err) {
|
|
|
12048
12048
|
const service = axios.create({});
|
|
12049
12049
|
const tParam = (str) => {
|
|
12050
12050
|
let array = str.split("|");
|
|
12051
|
-
let
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
}
|
|
12051
|
+
let key = array[0];
|
|
12052
|
+
array.shift();
|
|
12053
|
+
let result2 = window.$t(key, array);
|
|
12054
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
12055
|
+
result2 = result2.replace("[" + i2 + "]", array[i2]);
|
|
12057
12056
|
}
|
|
12058
12057
|
return result2;
|
|
12059
12058
|
};
|
|
@@ -19976,7 +19975,7 @@ var mixinPage = {
|
|
|
19976
19975
|
},
|
|
19977
19976
|
confirm(title, onConfirm) {
|
|
19978
19977
|
let swal = this.$swal.fire({
|
|
19979
|
-
title: this
|
|
19978
|
+
title: this.tParam(title),
|
|
19980
19979
|
icon: "question",
|
|
19981
19980
|
confirmButtonText: this.$t("Front_Btn_OK"),
|
|
19982
19981
|
cancelButtonText: this.$t("Front_Btn_Cancel"),
|
|
@@ -19993,7 +19992,7 @@ var mixinPage = {
|
|
|
19993
19992
|
},
|
|
19994
19993
|
confirmInput(title, inputLabel, onConfirm, preConfirm) {
|
|
19995
19994
|
let swal = this.$swal.fire({
|
|
19996
|
-
title: this
|
|
19995
|
+
title: this.tParam(title),
|
|
19997
19996
|
input: "text",
|
|
19998
19997
|
confirmButtonText: this.$t("Front_Btn_OK"),
|
|
19999
19998
|
cancelButtonText: this.$t("Front_Btn_Cancel"),
|
|
@@ -20013,7 +20012,7 @@ var mixinPage = {
|
|
|
20013
20012
|
},
|
|
20014
20013
|
success(message, onConfirm) {
|
|
20015
20014
|
var swal = this.$swal.fire({
|
|
20016
|
-
title: this
|
|
20015
|
+
title: this.tParam(message),
|
|
20017
20016
|
icon: "success",
|
|
20018
20017
|
confirmButtonText: this.$t("Front_Btn_OK")
|
|
20019
20018
|
});
|
|
@@ -20026,7 +20025,7 @@ var mixinPage = {
|
|
|
20026
20025
|
},
|
|
20027
20026
|
warning(message, onConfirm) {
|
|
20028
20027
|
var swal = this.$swal.fire({
|
|
20029
|
-
title: this
|
|
20028
|
+
title: this.tParam(message),
|
|
20030
20029
|
icon: "warning",
|
|
20031
20030
|
confirmButtonText: this.$t("Front_Btn_OK")
|
|
20032
20031
|
});
|
|
@@ -20039,7 +20038,7 @@ var mixinPage = {
|
|
|
20039
20038
|
},
|
|
20040
20039
|
error(message, onConfirm) {
|
|
20041
20040
|
var swal = this.$swal.fire({
|
|
20042
|
-
title: this
|
|
20041
|
+
title: this.tParam(message),
|
|
20043
20042
|
icon: "error",
|
|
20044
20043
|
confirmButtonText: this.$t("Front_Btn_OK")
|
|
20045
20044
|
});
|
|
@@ -20117,13 +20116,9 @@ var mixinPage = {
|
|
|
20117
20116
|
},
|
|
20118
20117
|
tParam(str) {
|
|
20119
20118
|
let array = str.split("|");
|
|
20120
|
-
let
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
result2 = result2.replace("{" + i2 + "}", array[i2 + 1]);
|
|
20124
|
-
}
|
|
20125
|
-
}
|
|
20126
|
-
return result2;
|
|
20119
|
+
let key = array[0];
|
|
20120
|
+
array.shift();
|
|
20121
|
+
return this.$t(key, array);
|
|
20127
20122
|
}
|
|
20128
20123
|
}
|
|
20129
20124
|
};
|