add support to zoom action (#171)
parent
97c13e23a5
commit
557e82489e
|
@ -14,6 +14,7 @@
|
||||||
:xl="sizeFieldResponsive.xl"
|
:xl="sizeFieldResponsive.xl"
|
||||||
:class="classField"
|
:class="classField"
|
||||||
>
|
>
|
||||||
|
<!-- POPOVER FOR FIELD CONTEXT INFO -->
|
||||||
<el-popover
|
<el-popover
|
||||||
v-if="field.contextInfo && field.contextInfo.isActive"
|
v-if="field.contextInfo && field.contextInfo.isActive"
|
||||||
ref="contextOptions"
|
ref="contextOptions"
|
||||||
|
@ -24,7 +25,24 @@
|
||||||
>
|
>
|
||||||
<p v-html="field.contextInfo.messageText.msgText" />
|
<p v-html="field.contextInfo.messageText.msgText" />
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<el-form-item v-popover:contextOptions :label="isFieldOnly()" :required="isMandatory()">
|
<!-- POPOVER FOR ZOOM IN FIELD -->
|
||||||
|
<el-popover
|
||||||
|
v-if="field.reference.zoomWindowList.length"
|
||||||
|
ref="zoomIn"
|
||||||
|
placement="bottom"
|
||||||
|
:title="$t('table.ProcessActivity.zoomIn')"
|
||||||
|
trigger="click"
|
||||||
|
>
|
||||||
|
<template v-for="(zoomItem, index) in field.reference.zoomWindowList">
|
||||||
|
<el-button :key="index" type="text" @click="redirect(zoomItem)">{{ zoomItem.name }}</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
|
<el-form-item
|
||||||
|
v-popover:zoomIn
|
||||||
|
v-popover:contextOptions
|
||||||
|
:label="isFieldOnly()"
|
||||||
|
:required="isMandatory()"
|
||||||
|
>
|
||||||
<component
|
<component
|
||||||
:is="componentRender"
|
:is="componentRender"
|
||||||
:ref="field.columnName"
|
:ref="field.columnName"
|
||||||
|
@ -207,6 +225,9 @@ export default {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
},
|
||||||
|
permissionRoutes() {
|
||||||
|
return this.$store.getters.permission_routes
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -291,6 +312,11 @@ export default {
|
||||||
if (this.isDisplayed() && this.isMandatory() && !this.isReadOnly()) {
|
if (this.isDisplayed() && this.isMandatory() && !this.isReadOnly()) {
|
||||||
this.$refs[columnName].activeFocus(columnName)
|
this.$refs[columnName].activeFocus(columnName)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
redirect(item) {
|
||||||
|
this.$store.dispatch('getWindowByUuid', { routes: this.permissionRoutes, windowUuid: item.uuid })
|
||||||
|
var windowRoute = this.$store.getters.getWindowRoute(item.uuid)
|
||||||
|
this.$router.push({ name: windowRoute.name, query: { action: 'create-new', tabParent: 0 }})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue