|
|
|
@ -73,7 +73,7 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
label: '分类值'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'parentName',
|
|
|
|
|
field: 'parentname',
|
|
|
|
|
label: '上级分类'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -160,16 +160,6 @@ const action = async (row: any, type: string) => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const AddAction = (e: MouseEvent, node?: TableData) => {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
dialogTitle.value = t('tableDemo.add')
|
|
|
|
|
currentRow.value = node ? { parentid: node.id, type: '1' } : undefined
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
actionType.value = ''
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const saveLoading = ref(false)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 单行删除 */
|
|
|
|
@ -201,7 +191,7 @@ onMounted(() => {
|
|
|
|
|
const defaultProps = { children: 'childs', label: 'nodeName' }
|
|
|
|
|
const queryOntInfo = (node,data)=>{
|
|
|
|
|
console.log(node,data)
|
|
|
|
|
setSearchParams({dicid:data.props.dicid});
|
|
|
|
|
setSearchParams({dicid:data.id});
|
|
|
|
|
/*queryIndexCategoryApi(data.props.dicid).then(res=>{
|
|
|
|
|
console.log(res,"查询的信息");
|
|
|
|
|
dataList = [];
|
|
|
|
@ -263,11 +253,6 @@ const queryOntInfo = (node,data)=>{
|
|
|
|
|
@register="tableRegister"
|
|
|
|
|
@refresh="refresh"
|
|
|
|
|
>
|
|
|
|
|
<template #buttons>
|
|
|
|
|
<ElButton type="primary" @click="(e) => AddAction(e)">{{
|
|
|
|
|
t('tableDemo.add')
|
|
|
|
|
}}</ElButton>
|
|
|
|
|
</template>
|
|
|
|
|
</Table>
|
|
|
|
|
</ElCol>
|
|
|
|
|
</ElRow>
|
|
|
|
|