|
@@ -38,10 +38,6 @@ const handleTypeUpdate = async (row: DictTypeVO) => {
|
|
const res = await DictTypeApi.getDictTypeApi(row.id)
|
|
const res = await DictTypeApi.getDictTypeApi(row.id)
|
|
unref(typeFormRef)?.setValues(res)
|
|
unref(typeFormRef)?.setValues(res)
|
|
}
|
|
}
|
|
-// 字典分类删除操作
|
|
|
|
-const handleTypeDelete = async (row: DictTypeVO) => {
|
|
|
|
- await delTypeList(row.id, false)
|
|
|
|
-}
|
|
|
|
|
|
|
|
// ========== 字典数据列表相关 ==========
|
|
// ========== 字典数据列表相关 ==========
|
|
const tableTypeSelect = ref(false)
|
|
const tableTypeSelect = ref(false)
|
|
@@ -71,10 +67,6 @@ const handleDataUpdate = async (row: DictDataVO) => {
|
|
const res = await DictDataApi.getDictDataApi(row.id)
|
|
const res = await DictDataApi.getDictDataApi(row.id)
|
|
unref(dataFormRef)?.setValues(res)
|
|
unref(dataFormRef)?.setValues(res)
|
|
}
|
|
}
|
|
-// 字典数据删除操作
|
|
|
|
-const handleDataDelete = async (row: DictTypeVO) => {
|
|
|
|
- await delDataList(row.id, false)
|
|
|
|
-}
|
|
|
|
// 字典分类点击行事件
|
|
// 字典分类点击行事件
|
|
const parentType = ref('')
|
|
const parentType = ref('')
|
|
const onClickType = async (data: { [key: string]: any }) => {
|
|
const onClickType = async (data: { [key: string]: any }) => {
|
|
@@ -195,7 +187,7 @@ onMounted(async () => {
|
|
link
|
|
link
|
|
type="primary"
|
|
type="primary"
|
|
v-hasPermi="['system:dict:delete']"
|
|
v-hasPermi="['system:dict:delete']"
|
|
- @click="handleTypeDelete(row)"
|
|
|
|
|
|
+ @click="delTypeList(row.id, false)"
|
|
>
|
|
>
|
|
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
|
|
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
|
|
</el-button>
|
|
</el-button>
|
|
@@ -252,7 +244,7 @@ onMounted(async () => {
|
|
link
|
|
link
|
|
type="primary"
|
|
type="primary"
|
|
v-hasPermi="['system:dict:delete']"
|
|
v-hasPermi="['system:dict:delete']"
|
|
- @click="handleDataDelete(row)"
|
|
|
|
|
|
+ @click="delDataList(row.id, false)"
|
|
>
|
|
>
|
|
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
|
|
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
|
|
</el-button>
|
|
</el-button>
|