Commit 550cd783cc12b60b173ac58c4fe33bf6c537616c

Authored by pengye
1 parent 480dfc2e

no message

@@ -120,7 +120,6 @@ @@ -120,7 +120,6 @@
120 <script> 120 <script>
121 layui.use(['table','form'], function() { 121 layui.use(['table','form'], function() {
122 var table = layui.table,laydate = layui.laydate,form = layui.form,$ = layui.jquery,layer = layui.layer; 122 var table = layui.table,laydate = layui.laydate,form = layui.form,$ = layui.jquery,layer = layui.layer;
123 - var form = layui.form;  
124 var tableIn = table.render({ 123 var tableIn = table.render({
125 elem: '#list', 124 elem: '#list',
126 url: '{:url("sellerList")}', 125 url: '{:url("sellerList")}',
@@ -151,11 +150,10 @@ @@ -151,11 +150,10 @@
151 }); 150 });
152 151
153 // 监听第一个下拉框的选择 152 // 监听第一个下拉框的选择
154 - form.on('select(provid)', function(data){  
155 - //alert(11111);  
156 - //var $select2 = $('#areaid');  
157 - //$select2.empty(); // 清空第二个下拉框的选项  
158 - //form.render('select'); // 更新第二个下拉框的渲染 153 + table.on('select(cityid)', function(data){
  154 + $('#areaid').html(''); // 清空区域下拉框
  155 + //$('#areaid').append('<option value="' + city + '区">' + city + '区</option>');
  156 + form.render('select'); // 更新区域下拉框
159 }); 157 });
160 158
161 //监听单元格编辑 159 //监听单元格编辑