update 添加载砖的逻辑“
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
class="dialog-car-payload"
|
||||
title="装载详情"
|
||||
:visible="dialogVisible"
|
||||
@close="handleClose"
|
||||
:destroy-on-close="false"
|
||||
:close-on-click-modal="configs.clickModalToClose ?? true"
|
||||
:width="configs.dialogWidth ?? '50%'"
|
||||
>
|
||||
<!-- title -->
|
||||
<div slot="title" class="dialog-title" style="display: flex; align-items: center;">
|
||||
<span style="font-size: 18px;">装载详情</span>
|
||||
<el-button v-if="configs.showAdd ?? false" size="small" type="primary" plain style="margin-left: 16px;" @click="$emit('add-record', id)">添加记录</el-button>
|
||||
</div>
|
||||
|
||||
<!-- main content -->
|
||||
<BaseListTable
|
||||
v-loading="tableLoading"
|
||||
@@ -52,6 +57,10 @@ export default {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
updateKey: {
|
||||
type: Number,
|
||||
default: 1
|
||||
}
|
||||
// extraParams: {
|
||||
// type: Object,
|
||||
// default: () => ({})
|
||||
@@ -71,8 +80,13 @@ export default {
|
||||
showPaination: false,
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
mounted() {},
|
||||
watch: {
|
||||
updateKey(val, oldVal) {
|
||||
if (val !== oldVal) {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
activated() {
|
||||
this.refreshLayoutKey = Math.random();
|
||||
},
|
||||
@@ -190,5 +204,4 @@ export default {
|
||||
.dialog-car-payload >>> .el-dialog__body {
|
||||
padding: 5px 20px 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user