刘洪青 | e984f3c | 2021-11-06 09:27:00 +0800 | [diff] [blame^] | 1 | |
| 2 | |
| 3 | (function () { |
| 4 | |
| 5 | // 业务部门管理员字段: comment_1617789305692 |
| 6 | // 部门领导字段: comment_1617789469827 |
| 7 | |
| 8 | //获取表单数据 |
| 9 | function getData(model){ |
| 10 | var temp; |
| 11 | window.globalBus.$on('getData',function(data){ |
| 12 | //子表数据返回list |
| 13 | if(data.model.indexOf("sonform") != -1){ |
| 14 | temp = data.sonValues; |
| 15 | }else{ |
| 16 | temp = data.options.value; |
| 17 | } |
| 18 | }); |
| 19 | window.globalBus.$emit('findData',model); |
| 20 | return temp; |
| 21 | } |
| 22 | |
| 23 | function contains(arr, obj) { |
| 24 | var i = arr.length; |
| 25 | while (i--) { |
| 26 | if (arr[i] === obj) { |
| 27 | return true; |
| 28 | } |
| 29 | } |
| 30 | return false; |
| 31 | } |
| 32 | |
| 33 | |
| 34 | var comment = getData('comment_1617789305692'); console.log('comment', comment); |
| 35 | |
| 36 | |
| 37 | })(); |