Vue.component("http-request-conds-view", { props: ["v-conds"], data: function () { let conds = this.vConds if (conds == null) { conds = { isOn: true, connector: "or", groups: [] } } return { conds: conds, components: window.REQUEST_COND_COMPONENTS } }, methods: { typeName: function (cond) { let c = this.components.$find(function (k, v) { return v.type == cond.type }) if (c != null) { return c.name; } return cond.param + " " + cond.operator } }, template: `
{{cond.param}} {{cond.operator}} {{typeName(cond)}}: {{cond.value}} {{group.connector}}  
` })