清单版本

This commit is contained in:
shenyanpei
2021-09-02 18:02:48 +08:00
parent cb9513fb45
commit 08237cbf1f
2 changed files with 5 additions and 1 deletions
@@ -1377,10 +1377,12 @@ export default {
}, { }, {
_this: this, loading: "loading" _this: this, loading: "loading"
}, res => { }, res => {
this.detailedListVersion = res.data[0].detailedListVersion
if (res.data) { if (res.data) {
this.$router.push({ this.$router.push({
name: "LocalProductDetail", name: "LocalProductDetail",
query: { query: {
detailedListVersion: this.detailedListVersion,
tabName: this.ifMaintaince tabName: this.ifMaintaince
} }
}); });
@@ -47,7 +47,7 @@
<div class="action-bar"> <div class="action-bar">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<span style="font-size: 16px;font-weight: bold">清单版本: {{ }}</span> <span style="font-size: 16px;font-weight: bold">清单版本: {{ detailedListVersion ? $moment(detailedListVersion).format('YYYY-MM-DD HH:mm:ss') : '-' }}</span>
</el-col> </el-col>
<el-col :span="12" style="text-align: end"> <el-col :span="12" style="text-align: end">
<el-button <el-button
@@ -473,6 +473,7 @@ export default {
}, },
data() { data() {
return { return {
detailedListVersion: '',
standSortOptions: [], standSortOptions: [],
standCommonlySearch: { standCommonlySearch: {
standSort: '', standSort: '',
@@ -959,6 +960,7 @@ export default {
...mapGetters(['getLocalPro']) ...mapGetters(['getLocalPro'])
}, },
mounted() { mounted() {
this.detailedListVersion = this.$route.query.detailedListVersion
this.$nextTick(() => { this.$nextTick(() => {
this.Height = $('.contaiiner').height() - $('.contaiinerCard').height() - 190 this.Height = $('.contaiiner').height() - $('.contaiinerCard').height() - 190
window.onresize = () => { window.onresize = () => {