H5/Js/Cpbdsj.js
@@ -27,6 +27,9 @@
                //}
            ],
            DAA001: [],
            show: false,//列表展示
            actions: [],//列表的值
            xt:"",
        }
    },
    mounted() {
@@ -252,7 +255,7 @@
            that.LsBar = ""; // 清空输入框
        },
        GetWeightByXt() {
        handleClear() {
            
        },
@@ -344,5 +347,20 @@
                    that.$refs.KbBar.focus();
                });
        },
        onSelect(item) {
            // 默认情况下点击选项时不会自动收起
            // 可以通过 close-on-click-action 属性开启自动收起
            this.show = false;
            console.log(item);
            // 正则匹配第一个方括号内容
            const regex = /\[([^\]]+)\]/;
            const matchResult = item.name.match(regex);
            this.xt = item.name;
            //this.$toast(item.name);
        },
    }
})