update 设备类型,父类选择
This commit is contained in:
@@ -26,7 +26,13 @@
|
||||
:page-size.sync="pageSize" -->
|
||||
|
||||
<DialogWithMenu ref="edit-dialog" v-if="dialogType === DIALOG_WITH_MENU && dialogVisible" :configs="dialogConfigs" @refreshDataList="getList" />
|
||||
<DialogJustForm ref="edit-dialog" v-if="dialogType === DIALOG_JUST_FORM && dialogVisible" :configs="dialogConfigs" @refreshDataList="getList" />
|
||||
<DialogJustForm
|
||||
ref="edit-dialog"
|
||||
v-if="dialogType === DIALOG_JUST_FORM && dialogVisible"
|
||||
:configs="dialogConfigs"
|
||||
@refreshDataList="getList"
|
||||
@dialog-closed="destroyDialog"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -89,6 +95,12 @@ export default {
|
||||
this.initDataWhenLoad && this.getList();
|
||||
},
|
||||
methods: {
|
||||
/* 从dom移除对话框 */
|
||||
destroyDialog() {
|
||||
// console.log('[ListViewWithHead] destroyDialog')
|
||||
this.dialogVisible = false
|
||||
},
|
||||
|
||||
/**
|
||||
* 转换服务器数据的中间层
|
||||
* 为了抹平真实服务器数据和我本地的测试服务器数据的差异
|
||||
@@ -134,10 +146,10 @@ export default {
|
||||
// // 如果需要树形结构的列表
|
||||
// return this.reConstructDataList(res.data.list)
|
||||
// } else {
|
||||
return {
|
||||
...item,
|
||||
id: item._id ?? item.id,
|
||||
};
|
||||
return {
|
||||
...item,
|
||||
id: item._id ?? item.id,
|
||||
};
|
||||
// }
|
||||
});
|
||||
// this.dataList = res.data.records;
|
||||
|
||||
Reference in New Issue
Block a user