微调
This commit is contained in:
@@ -38,7 +38,7 @@ const proTable = ref<ProTableInstance>()
|
||||
const dialogVisible = ref(false)
|
||||
//字典数据所属的字典类型Id
|
||||
const dictTypeId = ref('')
|
||||
const dictTypeCode = ref('')
|
||||
const dictTypeName = ref('')
|
||||
|
||||
|
||||
const initParam = reactive({typeId: ''})
|
||||
@@ -113,7 +113,7 @@ const columns = reactive<ColumnProps<Dict.ResDictData>[]>([
|
||||
const open = (row: Dict.ResDictType) => {
|
||||
dialogVisible.value = true
|
||||
dictTypeId.value = row.id
|
||||
dictTypeCode.value = row.code
|
||||
dictTypeName.value = row.name
|
||||
initParam.typeId = row.id
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ defineExpose({open})
|
||||
|
||||
// 打开 dialog(新增、查看、编辑)
|
||||
const openDialog = (titleType: string, row: Partial<Dict.ResDictData> = {}) => {
|
||||
dataPopup.value?.open(titleType, dictTypeId.value, dictTypeCode.value, row)
|
||||
dataPopup.value?.open(titleType, dictTypeId.value, dictTypeName.value, row)
|
||||
}
|
||||
|
||||
// 批量删除字典数据
|
||||
|
||||
Reference in New Issue
Block a user