update
This commit is contained in:
@@ -30,8 +30,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<v-client-table
|
<v-client-table
|
||||||
:data="dataTableTriggers"
|
:data="dataTableTriggers"
|
||||||
:columns="columns"
|
:columns="columnsTriggers"
|
||||||
:options="options"
|
:options="optionsTriggers"
|
||||||
ref="vueTableTriggers"
|
ref="vueTableTriggers"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -47,7 +47,7 @@ import api from "../../../api/index";
|
|||||||
export default {
|
export default {
|
||||||
name: "ButtonFleft",
|
name: "ButtonFleft",
|
||||||
props: {
|
props: {
|
||||||
data: Object
|
data: Object,
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
Tabs,
|
Tabs,
|
||||||
@@ -64,15 +64,27 @@ export default {
|
|||||||
dataTable: [],
|
dataTable: [],
|
||||||
dataTableTriggers: [],
|
dataTableTriggers: [],
|
||||||
columns: ["key", "value"],
|
columns: ["key", "value"],
|
||||||
|
columnsTriggers: ["name", "execution"],
|
||||||
options: {
|
options: {
|
||||||
perPage: 200,
|
perPage: 200,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
pagination: {
|
pagination: {
|
||||||
show: false
|
show: false,
|
||||||
},
|
},
|
||||||
headings: {
|
headings: {
|
||||||
key: this.$i18n.t("ID_NAME"),
|
key: this.$i18n.t("ID_NAME"),
|
||||||
value: this.$i18n.t("ID_FIELD_DYNAFORM_TEXT")
|
value: this.$i18n.t("ID_FIELD_DYNAFORM_TEXT"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
optionsTriggers: {
|
||||||
|
perPage: 200,
|
||||||
|
filterable: true,
|
||||||
|
pagination: {
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
|
headings: {
|
||||||
|
name: this.$i18n.t("ID_NAME"),
|
||||||
|
execution: this.$i18n.t("ID_EXECUTION"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
optionsDebugVars: {
|
optionsDebugVars: {
|
||||||
@@ -80,14 +92,13 @@ export default {
|
|||||||
options: [
|
options: [
|
||||||
{ text: this.$i18n.t("ID_OPT_ALL"), value: "all" },
|
{ text: this.$i18n.t("ID_OPT_ALL"), value: "all" },
|
||||||
{ text: this.$i18n.t("ID_DYNAFORM"), value: "dyn" },
|
{ text: this.$i18n.t("ID_DYNAFORM"), value: "dyn" },
|
||||||
{ text: this.$i18n.t("ID_SYSTEM"), value: "sys" }
|
{ text: this.$i18n.t("ID_SYSTEM"), value: "sys" },
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDebugVars({ filter: "all" });
|
this.loadData();
|
||||||
this.getDebugVarsTriggers();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
classBtn(cls) {
|
classBtn(cls) {
|
||||||
@@ -96,6 +107,13 @@ export default {
|
|||||||
showDebugger() {
|
showDebugger() {
|
||||||
this.$refs["modal-debugger"].show();
|
this.$refs["modal-debugger"].show();
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Load the data for debugger
|
||||||
|
*/
|
||||||
|
loadData() {
|
||||||
|
this.getDebugVars({ filter: "all" });
|
||||||
|
this.getDebugVarsTriggers();
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* Get debug variables
|
* Get debug variables
|
||||||
*/
|
*/
|
||||||
@@ -106,7 +124,7 @@ export default {
|
|||||||
_.forIn(response.data.data[0], function (value, key) {
|
_.forIn(response.data.data[0], function (value, key) {
|
||||||
dt.push({
|
dt.push({
|
||||||
key,
|
key,
|
||||||
value
|
value,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.dataTable = dt;
|
this.dataTable = dt;
|
||||||
@@ -119,11 +137,11 @@ export default {
|
|||||||
let that = this,
|
let that = this,
|
||||||
dt = [];
|
dt = [];
|
||||||
api.cases.debugVarsTriggers(data).then((response) => {
|
api.cases.debugVarsTriggers(data).then((response) => {
|
||||||
if (response.data.length > 0) {
|
if (response.data.data.length > 0) {
|
||||||
_.forIn(response.data.data[0], function (value, key) {
|
_.each(response.data.data, function (o) {
|
||||||
dt.push({
|
dt.push({
|
||||||
key,
|
name: o.name,
|
||||||
value
|
execution: o.execution_time,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.dataTableTriggers = dt;
|
this.dataTableTriggers = dt;
|
||||||
@@ -135,14 +153,15 @@ export default {
|
|||||||
*/
|
*/
|
||||||
changeOption(opt) {
|
changeOption(opt) {
|
||||||
this.getDebugVars({ filter: opt });
|
this.getDebugVars({ filter: opt });
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.debugger-container {
|
.debugger-container {
|
||||||
overflow: auto;
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
max-width: 25%;
|
max-width: 25%;
|
||||||
min-width: 25%;
|
min-width: 25%;
|
||||||
padding: 0.1rem;
|
padding: 0.1rem;
|
||||||
@@ -297,4 +316,12 @@ input[type="radio"] {
|
|||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.debugger-container .btn-group-sm > .btn,
|
||||||
|
.btn-sm {
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
font-size: 0.6rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
border-radius: 0.2rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -121,12 +121,14 @@ export default {
|
|||||||
eventMethod === "attachEvent" ? "onmessage" : "message";
|
eventMethod === "attachEvent" ? "onmessage" : "message";
|
||||||
|
|
||||||
eventer(messageEvent, function(e) {
|
eventer(messageEvent, function(e) {
|
||||||
if (
|
if ( e.data === "redirect=todo" || e.message === "redirect=todo"){
|
||||||
e.data === "redirect=todo" ||
|
|
||||||
e.message === "redirect=todo"
|
|
||||||
) {
|
|
||||||
that.page = "todo";
|
that.page = "todo";
|
||||||
}
|
}
|
||||||
|
if ( e.data === "update=debugger" || e.message === "update=debugger"){
|
||||||
|
if(that.$refs["component"].updateView){
|
||||||
|
that.$refs["component"].updateView();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ export default {
|
|||||||
APP_UID: data.data.APPLICATION,
|
APP_UID: data.data.APPLICATION,
|
||||||
DEL_INDEX: 1,
|
DEL_INDEX: 1,
|
||||||
ACTION: "draft",
|
ACTION: "draft",
|
||||||
|
PRO_UID: data.data.PROCESS
|
||||||
};
|
};
|
||||||
self.disable = false;
|
self.disable = false;
|
||||||
self.$parent.$parent.page = "XCase";
|
self.$parent.$parent.page = "XCase";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
allowfullscreen
|
allowfullscreen
|
||||||
@load="onLoadIframe"
|
@load="onLoadIframe"
|
||||||
></iframe>
|
></iframe>
|
||||||
<Debugger v-if="openDebug === true" :style="'height:' + height + 'px'" />
|
<Debugger v-if="openDebug === true" :style="'height:' + height + 'px'" ref="debugger"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -62,6 +62,14 @@ export default {
|
|||||||
classBtn(cls) {
|
classBtn(cls) {
|
||||||
return "btn v-btn-request " + cls;
|
return "btn v-btn-request " + cls;
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* update view in component
|
||||||
|
*/
|
||||||
|
updateView(){
|
||||||
|
if(this.openDebug){
|
||||||
|
this.$refs["debugger"].loadData();
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoadIframe() {},
|
onLoadIframe() {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -598,6 +598,14 @@ Ext.onReady(function(){
|
|||||||
Ext.getCmp('actionMenu').hide();
|
Ext.getCmp('actionMenu').hide();
|
||||||
Ext.getCmp('returnButton').hide();
|
Ext.getCmp('returnButton').hide();
|
||||||
|
|
||||||
|
document.getElementById("openCaseFrame").onload = function ()
|
||||||
|
{
|
||||||
|
if(window.parent){
|
||||||
|
window.parent.postMessage("update=debugger","*");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
hideCaseNavigatorPanel();
|
hideCaseNavigatorPanel();
|
||||||
if(typeof appStatus !== "undefined") {
|
if(typeof appStatus !== "undefined") {
|
||||||
showCaseNavigatorPanel(appStatus);
|
showCaseNavigatorPanel(appStatus);
|
||||||
|
|||||||
Reference in New Issue
Block a user