指标分类管理优化

main
zhangxiaodi1 9 months ago
parent 542a11dbdc
commit 712a862b0e

@ -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>

@ -18,7 +18,7 @@ const detailSchema = ref<DescriptionsSchema[]>([
label: '分类值'
},
{
field: 'parentName',
field: 'parentname',
label: '上级分类'
},
{

@ -34,7 +34,7 @@ const formSchema = reactive<FormSchema[]>([
label: '分类值'
},
{
field: 'parentName',
field: 'parentname',
label: '上级分类'
},
{

Loading…
Cancel
Save