作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

cost

@@ -84,14 +84,20 @@ @@ -84,14 +84,20 @@
84 <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script> 84 <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
85 <script type="text/javascript"> 85 <script type="text/javascript">
86 function confirm() { 86 function confirm() {
87 - var serial_number = [];  
88 - var test_oil_name = [];  
89 - var selectedCategories = []; 87 + var serial_number = $('#serial_number').val();
  88 + var mac_address = $('#mac_address').val();
  89 + var name = $('#name').val();
  90 + var hospital = $('#hospital').val();
  91 + var note = $('#note').val();
  92 + var create_time = $('#create_time').val();
90 93
91 return { 94 return {
92 - selectedCategories: selectedCategories,  
93 - selectedCategoriesId: selectedCategoriesId,  
94 - selectedCategoriesName: selectedCategoriesName 95 + serial_number:serial_number,
  96 + mac_address :mac_address,
  97 + name :name,
  98 + hospital :hospital,
  99 + note :note,
  100 + create_time :create_time
95 }; 101 };
96 } 102 }
97 </script> 103 </script>
@@ -121,12 +121,10 @@ @@ -121,12 +121,10 @@
121 yes: function (index, layero) { 121 yes: function (index, layero) {
122 //do something 122 //do something
123 var iframeWin = window[layero.find('iframe')[0]['name']]; 123 var iframeWin = window[layero.find('iframe')[0]['name']];
124 - var selectedCategories = iframeWin.confirm();  
125 - if (selectedCategories.selectedCategoriesId.length == 0) { 124 + console.log(iframeWin);
  125 +
  126 +
126 127
127 - }  
128 - $('#js-categories-id-input').val(selectedCategories.selectedCategoriesId.join(','));  
129 - $('#js-categories-name-input').val(selectedCategories.selectedCategoriesName.join(' '));  
130 //console.log(layer.getFrameIndex(index)); 128 //console.log(layer.getFrameIndex(index));
131 layer.close(index); //如果设定了yes回调,需进行手工关闭 129 layer.close(index); //如果设定了yes回调,需进行手工关闭
132 } 130 }