缓存添加
This commit is contained in:
parent
be2d7f7685
commit
fbf9002ca6
|
|
@ -6,7 +6,9 @@
|
|||
:pageContent="pageContent"
|
||||
@goBack="goBack"
|
||||
/>
|
||||
<keep-alive include="Home">
|
||||
<component
|
||||
ref="componentRef"
|
||||
:is="isShowComponent"
|
||||
:isEdit="isEdit"
|
||||
:editTaskId="editTaskId"
|
||||
|
|
@ -20,6 +22,7 @@
|
|||
@addToolsSuccess="addToolsSuccess"
|
||||
@queryTools="queryTools"
|
||||
/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -62,6 +65,9 @@ export default {
|
|||
/* 新增成功 */
|
||||
addToolsSuccess() {
|
||||
this.isShowComponent = "Home";
|
||||
this.$nextTick(() => {
|
||||
this.$refs.componentRef.resetQuery()
|
||||
})
|
||||
},
|
||||
/* 编辑工机具 */
|
||||
editTools(taskId, id) {
|
||||
|
|
|
|||
|
|
@ -886,7 +886,7 @@ export default {
|
|||
const data = res.data
|
||||
this.queryParams.unitId = data.backApplyInfo.unitId
|
||||
// this.unitId = this.treeParentsById(this.unitList, this.queryParams.unitId)
|
||||
this.GetProData()
|
||||
await this.GetProData()
|
||||
setTimeout(() => {
|
||||
this.queryParams.proId = data.backApplyInfo.proId
|
||||
}, 500)
|
||||
|
|
@ -996,7 +996,7 @@ export default {
|
|||
if (res.code == 200) {
|
||||
this.$message({ type: 'success', message: res.msg })
|
||||
setTimeout(() => {
|
||||
this.$emit('goBackPage')
|
||||
this.$emit('addToolsSuccess')
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@
|
|||
:pageContent="pageContent"
|
||||
@goBack="goBack"
|
||||
/>
|
||||
<keep-alive include="Home">
|
||||
<component
|
||||
ref="componentRef"
|
||||
:is="isShowComponent"
|
||||
:backId="backId"
|
||||
:agreementId="agreementId"
|
||||
|
|
@ -14,8 +16,10 @@
|
|||
@returnApply="returnApply"
|
||||
@returnEdit="returnEdit"
|
||||
@queryReturn="queryReturn"
|
||||
@addToolsSuccess="addToolsSuccess"
|
||||
@goBackPage="goBack"
|
||||
/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -65,6 +69,12 @@ export default {
|
|||
goBack() {
|
||||
this.isShowComponent = 'Home'
|
||||
},
|
||||
addToolsSuccess() {
|
||||
this.isShowComponent = "Home";
|
||||
this.$nextTick(() => {
|
||||
this.$refs.componentRef.resetQuery()
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@
|
|||
:pageContent="pageContent"
|
||||
@goBack="goBack"
|
||||
/>
|
||||
<keep-alive include="Home">
|
||||
<component
|
||||
ref="componentRef"
|
||||
:is="isShowComponent"
|
||||
:isEdit="isEdit"
|
||||
:editTaskId="editTaskId"
|
||||
|
|
@ -20,6 +22,7 @@
|
|||
@addToolsSuccess="addToolsSuccess"
|
||||
@queryTools="queryTools"
|
||||
/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -62,6 +65,9 @@ export default {
|
|||
/* 新增成功 */
|
||||
addToolsSuccess() {
|
||||
this.isShowComponent = "Home";
|
||||
this.$nextTick(() => {
|
||||
this.$refs.componentRef.resetQuery()
|
||||
})
|
||||
},
|
||||
/* 编辑工机具 */
|
||||
editTools(taskId, id) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@
|
|||
:pageContent="pageContent"
|
||||
@goBack="goBack"
|
||||
/>
|
||||
<keep-alive include="Home">
|
||||
<component
|
||||
ref="componentRef"
|
||||
:is="isShowComponent"
|
||||
:repairRow="repairRow"
|
||||
:isView="isView"
|
||||
|
|
@ -15,6 +17,7 @@
|
|||
@handelView="handelView"
|
||||
@goBackPage="goBack"
|
||||
/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@
|
|||
:pageContent="pageContent"
|
||||
@goBack="goBack"
|
||||
/>
|
||||
<keep-alive include="Home">
|
||||
<component
|
||||
ref="componentRef"
|
||||
:is="isShowComponent"
|
||||
:isEdit="isEdit"
|
||||
:editTaskId="editTaskId"
|
||||
|
|
@ -19,6 +21,7 @@
|
|||
@addTools="addTools"
|
||||
@queryTools="queryTools"
|
||||
/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ import {
|
|||
import { formatTime } from '@/utils/bonus'
|
||||
|
||||
export default {
|
||||
name: "testedInBound",
|
||||
name: "Home",
|
||||
dicts: ["repair_end_task_status"],
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@
|
|||
:pageContent="pageContent"
|
||||
@goBack="goBack"
|
||||
/>
|
||||
<keep-alive include="Home">
|
||||
<component
|
||||
ref="componentRef"
|
||||
:is="isShowComponent"
|
||||
:isEdit="isEdit"
|
||||
:isView="isView"
|
||||
|
|
@ -15,6 +17,7 @@
|
|||
@editApply="editApply"
|
||||
@queryApply="queryApply"
|
||||
/>
|
||||
</keep-alive>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue