企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` methods: { confirm(e) { this.list = [] this.result = ''; this.keya = ''; e.map((val, index) => { let result = val.label this.result += result; let keya = val.value; this.keya += keya }) }, cancel(e) {}, getLightType() { this.$http.get('/cableData/powerCategory', {}).then(res => { if (res.data.result === 1) { let server = res.data.data; let values = server.typeList for (var i = 0; i < values.length; i++) { var obj = { label: values[i].name, value: values[i].key }; this.list.push(obj); } } else { uni.showToast({ icon: "none", title: '暂无数据' }) } }) } } ```