From d8f97ebbbe27affff762f4f131f29f773e4c4738 Mon Sep 17 00:00:00 2001 From: he wei <858544502@qq.com> Date: 星期六, 21 十月 2023 08:55:43 +0800 Subject: [PATCH] UA 物料图纸历史 0809详情等修改 --- src/pages/resourceManage/product/list.vue | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 51 insertions(+), 1 deletions(-) diff --git a/src/pages/resourceManage/product/list.vue b/src/pages/resourceManage/product/list.vue index 0e39b12..3d4be88 100644 --- a/src/pages/resourceManage/product/list.vue +++ b/src/pages/resourceManage/product/list.vue @@ -41,6 +41,9 @@ >鏂板</a-button > <a-button type="primary" @click="prodDiff">浜у搧姣旇緝</a-button> + <a-button type="primary" @click="ownerDownloadLog" + >鎴戠殑閿佸畾璁板綍</a-button + > </a-space> </template> <template slot="enabled" slot-scope="{ record }"> @@ -351,7 +354,9 @@ <div> <span class="user">{{ item.owner }}</span> 鍦� <span class="time">{{ item.createTime }}</span> - {{ {"-1": "涓婁紶", "0": "婵�娲�", "1": "閿佸畾"}[item.lockFlag] }}浜嗙増鏈� + {{ + { "-1": "涓婁紶", "0": "婵�娲�", "1": "閿佸畾" }[item.lockFlag] + }}浜嗙増鏈� <span class="version">{{ item.versionTime }}</span> </div> <div>鎿嶄綔鍘熷洜: {{ item.reason ? item.reason : "鏃�" }}</div> @@ -494,6 +499,19 @@ :type="12" :oprate-info="oprateInfo" ></download-logs> + <a-modal + :visible="ownerLogVisible" + title="鎴戠殑涓嬭浇璁板綍" + width="100%" + :destroyOnClose="true" + @cancel="ownerLogClose" + wrapClassName="full-modal" + > + <owner-download></owner-download> + <template v-slot:footer> + <a-button @click="ownerLogClose">鍏抽棴</a-button> + </template> + </a-modal> </div> </template> @@ -532,6 +550,7 @@ import createWs from "@/assets/js/websocket"; import DiffList from "@/pages/components/diffList"; import FeedbackForm from "../components/feedbackForm.vue"; +import OwnerDownload from "../components/ownerDownload"; const WSMixin = createWs("product"); export default { @@ -618,6 +637,7 @@ }, ]; return { + ownerLogVisible: false, reason: "", reasonVisible: false, oprateInfo: "", @@ -848,6 +868,7 @@ FeedbackForm, DownloadReason, DownloadLogs, + OwnerDownload, }, methods: { rowClassFn(record) { @@ -1487,6 +1508,12 @@ this.oprateInfo = parentCode + "_" + customCode; this.downloadlogVisible = true; }, + ownerDownloadLog() { + this.ownerLogVisible = true; + }, + ownerLogClose() { + this.ownerLogVisible = false; + }, }, watch: { update(n) { @@ -1727,3 +1754,26 @@ background: #fcd583; } </style> + +<style lang="less"> +.full-modal { + height: 100%; + .ant-modal { + max-width: 100%; + height: 100%; + top: 0; + padding-bottom: 0; + margin: 0; + } + .ant-modal-content { + display: flex; + flex-direction: column; + height: 100%; + overflow: hidden; + // height: calc(100vh); + } + .ant-modal-body { + flex: 1; + } +} +</style> -- Gitblit v1.9.1