update carPayloadDialogConfigs

This commit is contained in:
lb
2023-03-23 15:04:59 +08:00
parent b05d7bc52b
commit b6a50cd1ef
7 changed files with 70 additions and 16 deletions

View File

@@ -44,9 +44,9 @@
/>
<DialogCarPayload
ref="car-payload-dialog"
v-if="!!dialogConfigs && dialogType === DIALOG_CARPAYLOAD"
:dialog-visible.sync="dialogVisible"
:configs="dialogConfigs"
v-if="!!carPayloadDialogConfigs"
:dialog-visible.sync="carPayloadDialogVisible"
:configs="carPayloadDialogConfigs"
@refreshDataList="getList"
/>
</div>
@@ -95,6 +95,10 @@ export default {
type: Object,
default: () => null,
},
carPayloadDialogConfigs: {
type: Object,
default: () => null,
},
triggerUpdate: {
type: String,
default: "",
@@ -102,7 +106,7 @@ export default {
},
computed: {
dialogType() {
return this.dialogConfigs.menu ? DIALOG_WITH_MENU : this.dialogConfigs.carPayloadDialog ? DIALOG_CARPAYLOAD : DIALOG_JUST_FORM;
return this.dialogConfigs.menu ? DIALOG_WITH_MENU : DIALOG_JUST_FORM;
},
},
activated() {
@@ -125,13 +129,14 @@ export default {
DIALOG_JUST_FORM,
DIALOG_CARPAYLOAD,
dialogVisible: false,
carPayloadDialogVisible: false,
topBtnConfig: null,
totalPage: 100,
page: 1,
size: 20, // 默认20
dataList: [],
tableLoading: false,
refreshLayoutKey: null
refreshLayoutKey: null,
};
},
inject: ["urls"],
@@ -426,7 +431,7 @@ export default {
},
openCarPayloadDialog(id) {
this.dialogVisible = true;
this.carPayloadDialogVisible = true;
this.$nextTick(() => {
this.$refs["car-payload-dialog"].init(id);
});
@@ -440,6 +445,7 @@ export default {
break;
case "手动添加": {
this.openDialog();
return;
}