fix:工艺路线指导文件在日志中查看

This commit is contained in:
shijing 2025-02-26 13:46:45 +08:00
parent ca9c398241
commit 40bcad0275
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@
<el-descriptions-item label="创建时间">{{
mlogItem.create_time
}}</el-descriptions-item>
<el-descriptions-item label="指导文件">
<el-descriptions-item label="指导文件" v-if="route_file!==null">
<el-button @click="showFile">查看</el-button>
</el-descriptions-item>
</el-descriptions>
@ -317,7 +317,7 @@
<div style="display: flex;justify-content: flex-end;padding: 10px 20px;">
<el-icon size="30" class="el-dialog__close" @click="fileVisible=false"><el-icon-close/></el-icon>
</div>
<iframe src="http://49.232.14.174/media/2025/02/24/9%E6%9C%88%E4%BB%BD410_ebI85X4.pdf" style="width: 60%;height: 90%;">预览</iframe>
<iframe :src="route_file" style="width: 100%;height: 90%;">预览</iframe>
</div>
</el-drawer>
</template>
@ -408,7 +408,7 @@ export default {
},
],
},
route_file:'',
route_file:null,
handle_date:'',
handle_user:'',
wm:'',
@ -463,7 +463,7 @@ export default {
that.tableData2 = res;
})
that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => {
that.route_file = res[0].document_.file;
that.route_file = res[0].document_!==null?res[0].document_.path:null;
})
});
},