update carPayloadDialogConfigs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user