| | |
| | | }, |
| | | sava(pageData, event) { |
| | | var $this = this; |
| | | if (pageData.DefList.length == 0) { |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate( |
| | | "tip_no_data_first") + |
| | | this.translateSys( |
| | | "quotation_mark_left") + pageData.Name + this |
| | | .translateSys( |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return false; |
| | | } |
| | | // if (pageData.DefList.length == 0) { |
| | | // uni.showModal({ |
| | | // title: this.translateSys("tip"), |
| | | // content: this.translate( |
| | | // "tip_no_data_first") + |
| | | // this.translateSys( |
| | | // "quotation_mark_left") + pageData.Name + this |
| | | // .translateSys( |
| | | // "quotation_mark_right") + |
| | | // this.translate( |
| | | // "tip_no_data_last"), |
| | | // showCancel: false, |
| | | // confirmText: this.translateSys('close') |
| | | // }); |
| | | // return false; |
| | | // } |
| | | //获取表头属性 |
| | | var head_attr = {}; |
| | | this.head_styledef.form.items.forEach(item => { |