@@ -81,8 +81,16 @@ export default {
arr.push(con);
}
});
- this.$emit('chooseCon', arr);
- this.isShow = false;
+ if(arr.length == 0){
+ uni.showToast({
+ title:'参数值不能为空',
+ icon:'none'
+ })
+ }else{
+ this.$emit('chooseCon', arr);
+ this.isShow = false;
+ }
+
},
getChooseItem(e) {
const row = this.list.find(item => item.code == e.name)
@@ -64,6 +64,11 @@ export default {
submit(index) {
if (!this.chooseVal) {
this.chooseObj = null;
+ return;
this.$emit('chooseItem', this.chooseObj);
this.isShow = false;