vue-intergrall-plugins 0.0.156 → 0.0.159
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.
|
@@ -8259,10 +8259,10 @@ const standardMessages = {
|
|
|
8259
8259
|
try {
|
|
8260
8260
|
return this.$httpRequest({
|
|
8261
8261
|
method: 'get',
|
|
8262
|
-
url: `${baseURL}/get-messages/${type}?token_cliente=${token}${dev}
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8262
|
+
url: `${baseURL}/get-messages/${type}?token_cliente=${token}${dev}` // headers: {
|
|
8263
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
|
|
8264
|
+
// }
|
|
8265
|
+
|
|
8266
8266
|
}).then(response => {
|
|
8267
8267
|
const {
|
|
8268
8268
|
data
|
|
@@ -8319,7 +8319,6 @@ var script$g = {
|
|
|
8319
8319
|
data() {
|
|
8320
8320
|
return {
|
|
8321
8321
|
placement: "top",
|
|
8322
|
-
firstMount: true,
|
|
8323
8322
|
formatted_messages_1: [{
|
|
8324
8323
|
cod: "T",
|
|
8325
8324
|
value: "Todos"
|
|
@@ -8345,15 +8344,29 @@ var script$g = {
|
|
|
8345
8344
|
return () => popper.destroy();
|
|
8346
8345
|
},
|
|
8347
8346
|
|
|
8347
|
+
inputSelectKey1() {
|
|
8348
|
+
if (!this.key_1) {
|
|
8349
|
+
if (this.formatted_messages_2.length) this.formatted_messages_2 = [];
|
|
8350
|
+
if (this.key_2) this.key_2 = "";
|
|
8351
|
+
return;
|
|
8352
|
+
}
|
|
8353
|
+
|
|
8354
|
+
this.receiveValueFormattedMessage(this.key_1, 2);
|
|
8355
|
+
},
|
|
8356
|
+
|
|
8357
|
+
inputSelectKey2() {
|
|
8358
|
+
if (!this.key_2) {
|
|
8359
|
+
if (this.formatted_messages_3.length) this.formatted_messages_3 = [];
|
|
8360
|
+
if (this.key_3) this.key_3 = "";
|
|
8361
|
+
return;
|
|
8362
|
+
}
|
|
8363
|
+
|
|
8364
|
+
this.receiveValueFormattedMessage(`T/${this.key_2}`, 3);
|
|
8365
|
+
},
|
|
8366
|
+
|
|
8348
8367
|
receiveValueFormattedMessage(cod, selectionIndex) {
|
|
8349
8368
|
try {
|
|
8350
8369
|
if (!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ");
|
|
8351
|
-
|
|
8352
|
-
if (this.firstMount) {
|
|
8353
|
-
cod = `${this.key_1}/${cod}`;
|
|
8354
|
-
this.firstMount = false;
|
|
8355
|
-
}
|
|
8356
|
-
|
|
8357
8370
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
8358
8371
|
if (data && typeof data == 'string') return this.$toasted.global.emConstrucao({
|
|
8359
8372
|
msg: data
|
|
@@ -8387,7 +8400,7 @@ var script$g = {
|
|
|
8387
8400
|
if (this.formatted_messages_2.length == 1) {
|
|
8388
8401
|
if (this.formatted_messages_2[0].cod) {
|
|
8389
8402
|
this.key_2 = this.formatted_messages_2[0].cod;
|
|
8390
|
-
this.receiveValueFormattedMessage(this.key_2
|
|
8403
|
+
this.receiveValueFormattedMessage(`T/${this.key_2}`, 3);
|
|
8391
8404
|
}
|
|
8392
8405
|
}
|
|
8393
8406
|
}
|
|
@@ -8496,9 +8509,7 @@ var __vue_render__$g = function () {
|
|
|
8496
8509
|
}
|
|
8497
8510
|
},
|
|
8498
8511
|
on: {
|
|
8499
|
-
"input":
|
|
8500
|
-
_vm.key_1 ? _vm.receiveValueFormattedMessage(_vm.key_1, 2) : false;
|
|
8501
|
-
}
|
|
8512
|
+
"input": _vm.inputSelectKey1
|
|
8502
8513
|
},
|
|
8503
8514
|
model: {
|
|
8504
8515
|
value: _vm.key_1,
|
|
@@ -8525,9 +8536,7 @@ var __vue_render__$g = function () {
|
|
|
8525
8536
|
}
|
|
8526
8537
|
},
|
|
8527
8538
|
on: {
|
|
8528
|
-
"input":
|
|
8529
|
-
return _vm.receiveValueFormattedMessage(_vm.key_2, 3);
|
|
8530
|
-
}
|
|
8539
|
+
"input": _vm.inputSelectKey2
|
|
8531
8540
|
},
|
|
8532
8541
|
model: {
|
|
8533
8542
|
value: _vm.key_2,
|