修复通过右键窗口添加轮询后,再次右键窗口修改轮询无数据的BUG
This commit is contained in:
parent
a9285b0666
commit
4f9359875c
|
@ -1994,6 +1994,8 @@ export namespace Protocol {
|
||||||
|
|
||||||
export class SetWindowPollingDataResponseEntity extends Protocol.PacketEntity {
|
export class SetWindowPollingDataResponseEntity extends Protocol.PacketEntity {
|
||||||
success = false;
|
success = false;
|
||||||
|
polling = false;
|
||||||
|
new_polling_uuid = "";
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1052,9 +1052,11 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const polling = GlobalData.getInstance()._pollings.find(
|
const polling = GlobalData.getInstance().pollings.find(
|
||||||
(element) => element && element.uuid == window.polling_uuid
|
(element) => element && element.uuid == window.polling_uuid
|
||||||
);
|
);
|
||||||
|
console.log(GlobalData.getInstance().pollings);
|
||||||
|
console.log(window.polling_uuid);
|
||||||
const signal_source = GlobalData.getInstance().signal_source.find(
|
const signal_source = GlobalData.getInstance().signal_source.find(
|
||||||
(element) =>
|
(element) =>
|
||||||
element && element.uuid == window.signal_source_table_uuid
|
element && element.uuid == window.signal_source_table_uuid
|
||||||
|
@ -1072,6 +1074,12 @@ export default defineComponent({
|
||||||
?.setWindowPollingData(window_id, name, datas);
|
?.setWindowPollingData(window_id, name, datas);
|
||||||
if (resposne) {
|
if (resposne) {
|
||||||
if (resposne.success) {
|
if (resposne.success) {
|
||||||
|
$store.commit("setWindowProperty", {
|
||||||
|
window,
|
||||||
|
property_name: "polling_uuid",
|
||||||
|
value: resposne.new_polling_uuid,
|
||||||
|
});
|
||||||
|
window.polling_uuid = resposne.new_polling_uuid;
|
||||||
$q.notify({
|
$q.notify({
|
||||||
color: "positive",
|
color: "positive",
|
||||||
icon: "done",
|
icon: "done",
|
||||||
|
|
Loading…
Reference in New Issue