How are the values in the vue child component submitted to the parent component for AJAX to request different data?

I am a novice, expecting VUER to give me the strength to move forward. I encountered a problem. I couldn"t find out many solutions for two days.
this is the sub-component code I wrote:

Vue.component("list-ol",{
    props:["name_en","name_cn"],
    created:function(){
    },
    template:`
        <li class="li-catalog pull-left">{{ name_cn }} {{ name_en }}
        <span v-on:click="$emit("pronouce", name_en)" class="glyphicon glyphicon glyphicon-headphones headphone-icon"></span></li>
             `
});

var app = new Vue({
    el:"-sharpapp",
    data:{
        catalogList:[],
        level:""
    },
    created: function(){
            this.getCatalogList();
            this.levelHandler();
    },
    methods:{
        // word$emit
        // vm.$emit( eventName, [args] )
        // :
        // {string} eventName
        // [...args]
        // 

        pronouce:function(word){
            pronouceIt(word);

        },
        levelHandler:function(level){
            //Vue.set(this,"level",lvl);
            //alert(level);
        },
        getCatalogList:function(event){
            var componentObj = this;//In case of "this" will be pointed to Jquery object
            //:JQUERYAJAXJSONVUE
            $.getJSON("getcataloglist.php", {act: "fetchcatalog",level:"1"}, function(json, textStatus) {
                Vue.set(componentObj,"catalogList",json);
            });
        }
    }

});

this is HTML"s COMPONENT:

           <level-tip **level="1"**></level-tip>
            <ol>
                <list-ol v-on:pronouce="pronouce"
                        v-on:levelHandler ="levelHandler"
                        v-for="item in catalogList"
                        v-bind:key="item.Id"
                        v-bind:name_en="item.name_en"
                        v-bind:name_cn="item.name_cn"
                        >
                </list-ol>
                
The level=1 in

means that if I want to reuse this COMPONENT, I just need to change the level=2, in it and pass this value to $.getJSON to get different data blocks, so that I can display different contents in the list-ol. (this level=1 should be better placed in the list-ol component? )
asked a lot of questions at once. I don"t know if my question is clear. Thank you

.
May.22,2021

probably looked at the problem, it seems that you want to pass values to the list child components in the parent component. You can use the props in the subcomponents to solve the problem.

search for "vue subcomponent props" on Baidu. Read this article: https://www.cnblogs.com/ygtq-.

.

the first question JSON is sent to VUE

can be written directly before $.getJSON with
var _ this = this / /
_ this.catalogList = JSON.parse (json)

the second question is where to put level=1

if list-ol is a general-purpose component, the general component only needs to be passed to different data sources to display values. I usually give it the data to be displayed directly, so it is more general. If you just give it a level value and you need to write the code to get the data, the component becomes a dedicated

.

Thank you very much for the first question, which does solve my pain point. is this a scope problem?

level=1 is put in list-ol. I was thinking that components can be reused, so I thought this was the way to call my different sections:
< list-ol level=1 > < / list-ol >
< list-ol level=2 > < / list-ol >
< list-ol level=3 > < / list-ol >
to call my own data for different LEVEL.

how can PS, allow me to combine this requirement with what you call a generic component?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb46ec-48296.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb46ec-48296.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?