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