mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
unnecessary requests (#383)
* unnecessary requests * validate isDocument * validate when new registration
This commit is contained in:
parent
2c586f6a7e
commit
fab480816b
@ -315,7 +315,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// get fields with uuid
|
// get fields with uuid
|
||||||
this.$store.dispatch('listWorkflows', this.metadata.tableName)
|
|
||||||
this.getPanel()
|
this.getPanel()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -615,11 +614,11 @@ export default {
|
|||||||
return groupsList
|
return groupsList
|
||||||
},
|
},
|
||||||
setTagsViewTitle(actionValue) {
|
setTagsViewTitle(actionValue) {
|
||||||
if (!this.isEmptyValue(this.$route.params.recordId) && this.getterPanel.isDocument) {
|
if (this.getterPanel.isDocument && this.getterDataStore.isLoaded) {
|
||||||
|
this.$store.dispatch('listWorkflows', this.metadata.tableName)
|
||||||
this.$store.dispatch('listDocumentStatus', {
|
this.$store.dispatch('listDocumentStatus', {
|
||||||
recordUuid: this.$route.query.action,
|
recordUuid: this.$route.query.action,
|
||||||
recordId: this.$route.params.recordId,
|
tableName: this.metadata.tableName
|
||||||
tableName: this.$route.params.tableName
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (actionValue === 'create-new' || this.isEmptyValue(actionValue)) {
|
if (actionValue === 'create-new' || this.isEmptyValue(actionValue)) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-steps v-if="!isEmptyValue(gettersNodeList)" :active="getActive" finish-status="success" simple :style="styleSteps">
|
<el-steps :active="getActive" finish-status="success" simple :style="styleSteps">
|
||||||
<el-step
|
<el-step
|
||||||
v-for="(node, index) in listDocumentStatus"
|
v-for="(node, index) in listDocumentStatus"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -58,11 +58,12 @@
|
|||||||
<resize-observer @notify="handleResize" />
|
<resize-observer @notify="handleResize" />
|
||||||
<Split v-shortkey="['f8']" direction="vertical" @onDrag="onDrag" @shortkey.native="handleChangeShowedRecordNavigation(!isShowedRecordNavigation)">
|
<Split v-shortkey="['f8']" direction="vertical" @onDrag="onDrag" @shortkey.native="handleChangeShowedRecordNavigation(!isShowedRecordNavigation)">
|
||||||
<SplitArea :size="sizeAreaStyle" :style="splitAreaStyle">
|
<SplitArea :size="sizeAreaStyle" :style="splitAreaStyle">
|
||||||
<el-header :style="gettersNodeList ? 'height: 45px; background: #F5F7FA' : 'height: 40px'">
|
<el-header :style="isWorkflowBarStatus ? 'height: 45px; background: #F5F7FA' : 'height: 40px'">
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-aside width="100%" style="width: 78vw;overflow: hidden;">
|
<el-aside width="100%" style="width: 78vw;overflow: hidden;">
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<workflow-status-bar
|
<workflow-status-bar
|
||||||
|
v-if="isWorkflowBarStatus"
|
||||||
:style-steps="styleStepsSimple"
|
:style-steps="styleStepsSimple"
|
||||||
:container-uuid="windowMetadata.currentTabUuid"
|
:container-uuid="windowMetadata.currentTabUuid"
|
||||||
:parent-uuid="windowUuid"
|
:parent-uuid="windowUuid"
|
||||||
@ -528,9 +529,9 @@ export default {
|
|||||||
})
|
})
|
||||||
return record
|
return record
|
||||||
},
|
},
|
||||||
gettersNodeList() {
|
isWorkflowBarStatus() {
|
||||||
var node = this.$store.getters.getNodeWorkflow
|
const panel = this.$store.getters.getPanel(this.windowMetadata.currentTabUuid)
|
||||||
if (!this.isEmptyValue(node.workflowsList)) {
|
if (!this.isEmptyValue(panel) && panel.isDocument && this.$route.meta.type === 'window' && this.$route.query.action !== 'create-new') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user