fix:el-drawer缓存显示问题-成品检验

This commit is contained in:
shijing 2024-05-30 09:40:11 +08:00
parent b768946738
commit c2034fc737
2 changed files with 294 additions and 287 deletions

View File

@ -63,15 +63,14 @@
@closed="dialog.save = false" @closed="dialog.save = false"
> >
</save-dialog> </save-dialog>
<el-drawer title="成品检验" v-model="dialog.check" :size="'90%'">
<check-dialog <check-dialog
ref="checkDialogs" ref="checkDialogs"
v-if="dialog.check"
:type="product_type" :type="product_type"
:ftestWork="ftestWork" :ftestWork="ftestWork"
@closed="dialog.check = false"
> >
</check-dialog> </check-dialog>
</el-drawer>
</el-container> </el-container>
</template> </template>
<script> <script>
@ -149,13 +148,9 @@ export default {
that.product_type = type; that.product_type = type;
that.ftestWork = row.id; that.ftestWork = row.id;
that.dialog.check = true; that.dialog.check = true;
// this.$router.push({ this.$nextTick(() => {
// name: "productDetail", this.$refs.checkDialogs.open();
// query: { });
// type: type,
// ftestWork: row.id,
// },
// });
}, },
handleQuery() { handleQuery() {
this.$refs.table.queryData(this.query); this.$refs.table.queryData(this.query);

View File

@ -1,4 +1,11 @@
<template> <template>
<el-drawer
v-model="visible"
title="成品检验"
:size="'90%'"
destroy-on-close
@closed="$emit('closed')"
>
<div style="padding: 8px"> <div style="padding: 8px">
<div> <div>
<el-card style="width: 100%" header="基本信息" shadow="hover"> <el-card style="width: 100%" header="基本信息" shadow="hover">
@ -278,6 +285,7 @@
</el-card> </el-card>
</div> </div>
</div> </div>
</el-drawer>
<save-dialog <save-dialog
v-if="dialog.save" v-if="dialog.save"
ref="saveDialog" ref="saveDialog"
@ -333,6 +341,7 @@ export default {
// type: "", // type: "",
userList: [], userList: [],
workObj: {}, workObj: {},
visible: false,
}; };
}, },
watch: { watch: {
@ -356,6 +365,9 @@ export default {
that.getUserList(that.ftestWork); that.getUserList(that.ftestWork);
}, },
methods: { methods: {
open() {
this.visible = true;
},
// //
getTestItem(tag, ftestWork) { getTestItem(tag, ftestWork) {
let that = this; let that = this;