|
...
|
...
|
@@ -120,6 +120,13 @@ |
|
|
|
<script>
|
|
|
|
layui.use(['table','form'], function() {
|
|
|
|
var table = layui.table,laydate = layui.laydate,form = layui.form,$ = layui.jquery,layer = layui.layer;
|
|
|
|
// 监听第一个下拉框的选择
|
|
|
|
form.on('select(cityid)', function(data){
|
|
|
|
alert(1);
|
|
|
|
$('#areaid').html(''); // 清空区域下拉框
|
|
|
|
//$('#areaid').append('<option value="' + city + '区">' + city + '区</option>');
|
|
|
|
form.render('select'); // 更新区域下拉框
|
|
|
|
});
|
|
|
|
var tableIn = table.render({
|
|
|
|
elem: '#list',
|
|
|
|
url: '{:url("sellerList")}',
|
|
...
|
...
|
@@ -149,12 +156,7 @@ |
|
|
|
,page: true
|
|
|
|
});
|
|
|
|
|
|
|
|
// 监听第一个下拉框的选择
|
|
|
|
form.on('select(cityid)', function(data){
|
|
|
|
$('#areaid').html(''); // 清空区域下拉框
|
|
|
|
//$('#areaid').append('<option value="' + city + '区">' + city + '区</option>');
|
|
|
|
form.render('select'); // 更新区域下拉框
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//监听单元格编辑
|
|
|
|
table.on('edit(list)', function(obj){
|
...
|
...
|
|