Commit 2791812cdd9f82c118850bb89ecdc4d641df0f0d

Authored by pengye
1 parent e3b4d69d

no message

... ... @@ -120,7 +120,7 @@
<script>
layui.use(['table','form'], function() {
var table = layui.table,laydate = layui.laydate,form = layui.form,$ = layui.jquery,layer = layui.layer;
form.find("select[name='areaid']").html("");
var tableIn = table.render({
elem: '#list',
url: '{:url("sellerList")}',
... ...
... ... @@ -16,7 +16,6 @@ layui.define(['jquery', 'form'], function () {
treeSelect(defaults);
});
function treeSelect(config) {
$form.find('select[name=' + config.s3 + ']').html("");
config.v1 = config.v1 ? config.v1 : '';
config.v2 = config.v2 ? config.v2 : '';
config.v3 = config.v3 ? config.v3 : '';
... ... @@ -25,12 +24,12 @@ function treeSelect(config) {
});
form.render();
cityEvent(config);
areaEvent(config);
//areaEvent(config);
form.on('select(' + config.s1 + ')', function (data) {
cityEvent(data);
form.on('select(' + config.s2 + ')', function (data) {
areaEvent(data);
});
//form.on('select(' + config.s2 + ')', function (data) {
// areaEvent(data);
//});
});
function cityEvent(data) {
... ... @@ -47,7 +46,7 @@ function treeSelect(config) {
});
form.render();
config.v2 = $('select[name=' + config.s2 + ']').val();
areaEvent(config);
//areaEvent(config);
}
function areaEvent(data) {
$form.find('select[name=' + config.s3 + ']').html("");
... ...