vue-intergrall-plugins 0.0.164 → 0.0.165
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.
|
@@ -8278,7 +8278,7 @@ const standardMessages = {
|
|
|
8278
8278
|
return this.$httpRequest({
|
|
8279
8279
|
method: 'get',
|
|
8280
8280
|
url: `${baseURL}/get-messages/${type}?token_cliente=${token}${dev}` // headers: {
|
|
8281
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
8281
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VuWHd3eGI0NGF3dzkwVVRXOGlIYUREd2doNm1sOFB0RVdoUHRWUjRHZW5YNnd3aW00bDV3d3M5SHB0bUIiLCJtYW5hZ2VyIjoiTUtVWHJHY2hOUlRZTkF3aHRvVUxldmtJYUdHcW9vSTVad3d4YjQ0YXd3ODRZQWxIVXpPZFZ3d3hiNDRhd3dpIiwibnJvcyI6WyI0OCJdLCJhdXRoIjoiTUtVd3d4YjQ0YXd3ZFVQVXQwVUlhaTNwanFGcmlQZ2dtaTY0SkViVnJJOXVjWFdBODRXRzR5ciIsImlhdCI6MTY0NjY1NzA0OSwiZXhwIjoxNjQ2NzQzNDQ5fQ.MqUARy1bbSc0iSOBcERwPYesIf-AdDcZaHa1yvn3RDM"
|
|
8282
8282
|
// }
|
|
8283
8283
|
|
|
8284
8284
|
}).then(response => {
|
|
@@ -8443,12 +8443,14 @@ var script$g = {
|
|
|
8443
8443
|
if (!messageData.length) {
|
|
8444
8444
|
this.formatted_messages_3.push(this.dictionary.msg_erro_sem_msg_formatada);
|
|
8445
8445
|
this.key_3 = this.formatted_messages_3[0];
|
|
8446
|
+
this.openFormattedMsgType2(this.key_3);
|
|
8446
8447
|
} else {
|
|
8447
8448
|
this.formatted_messages_3 = messageData;
|
|
8448
8449
|
|
|
8449
8450
|
if (this.formatted_messages_3.length == 1) {
|
|
8450
8451
|
if (this.formatted_messages_3[0].cod) {
|
|
8451
8452
|
this.key_3 = this.formatted_messages_3[0];
|
|
8453
|
+
this.openFormattedMsgType2(this.key_3);
|
|
8452
8454
|
}
|
|
8453
8455
|
}
|
|
8454
8456
|
}
|
|
@@ -8467,7 +8469,8 @@ var script$g = {
|
|
|
8467
8469
|
|
|
8468
8470
|
openMsg() {
|
|
8469
8471
|
try {
|
|
8470
|
-
this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
|
|
8472
|
+
// this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
|
|
8473
|
+
this.openFormattedMsgType2(this.key_3);
|
|
8471
8474
|
} catch (e) {
|
|
8472
8475
|
console.error("Error in openMsg: ", e);
|
|
8473
8476
|
}
|
|
@@ -8487,19 +8490,13 @@ var script$g = {
|
|
|
8487
8490
|
}
|
|
8488
8491
|
},
|
|
8489
8492
|
|
|
8490
|
-
insertFormattedMessage(
|
|
8493
|
+
insertFormattedMessage() {
|
|
8491
8494
|
try {
|
|
8492
|
-
if (!
|
|
8495
|
+
if (!this.key_3) return this.$toasted.global.defaultError({
|
|
8493
8496
|
msg: 'Selecione uma mensagem'
|
|
8494
|
-
});
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
value
|
|
8498
|
-
} = key;
|
|
8499
|
-
const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`;
|
|
8500
|
-
return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({
|
|
8501
|
-
msg: 'Mensagem vazia'
|
|
8502
|
-
});
|
|
8497
|
+
}); // const { value } = key
|
|
8498
|
+
// const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`
|
|
8499
|
+
// return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({msg: 'Mensagem vazia'})
|
|
8503
8500
|
} catch (e) {
|
|
8504
8501
|
console.error("Erro ao inserir mensagem formatada: ", e);
|
|
8505
8502
|
}
|
|
@@ -8618,21 +8615,7 @@ var __vue_render__$g = function () {
|
|
|
8618
8615
|
"slot": "no-options"
|
|
8619
8616
|
},
|
|
8620
8617
|
slot: "no-options"
|
|
8621
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [
|
|
8622
|
-
staticClass: "text-footer--btn-select-03",
|
|
8623
|
-
attrs: {
|
|
8624
|
-
"title": _vm.dictionary.title_btn_preencher_msg_formatada
|
|
8625
|
-
},
|
|
8626
|
-
on: {
|
|
8627
|
-
"click": function ($event) {
|
|
8628
|
-
return _vm.insertFormattedMessage(_vm.key_3);
|
|
8629
|
-
}
|
|
8630
|
-
}
|
|
8631
|
-
}, [_c('fa-icon', {
|
|
8632
|
-
attrs: {
|
|
8633
|
-
"icon": ['fas', 'level-up-alt']
|
|
8634
|
-
}
|
|
8635
|
-
})], 1) : _vm.messageType == 2 ? _c('span', {
|
|
8618
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [_c('span', {
|
|
8636
8619
|
staticClass: "text-footer--btn-select-03",
|
|
8637
8620
|
attrs: {
|
|
8638
8621
|
"title": _vm.dictionary.title_btn_abrir_msg_tipo_2
|
|
@@ -8646,7 +8629,7 @@ var __vue_render__$g = function () {
|
|
|
8646
8629
|
attrs: {
|
|
8647
8630
|
"icon": ['fas', 'file-alt']
|
|
8648
8631
|
}
|
|
8649
|
-
})], 1)
|
|
8632
|
+
})], 1)] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8650
8633
|
staticClass: "loader-select"
|
|
8651
8634
|
}, [_c('VueLoader')], 1) : _vm._e()])], 1)], 1);
|
|
8652
8635
|
};
|
|
@@ -8656,7 +8639,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
8656
8639
|
|
|
8657
8640
|
const __vue_inject_styles__$g = function (inject) {
|
|
8658
8641
|
if (!inject) return;
|
|
8659
|
-
inject("data-v-
|
|
8642
|
+
inject("data-v-2e6ac510_0", {
|
|
8660
8643
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}",
|
|
8661
8644
|
map: undefined,
|
|
8662
8645
|
media: undefined
|