...
|
...
|
@@ -64,6 +64,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
edit: function () {
|
|
|
Controller.api.change();
|
|
|
Controller.api.bindevent();
|
|
|
setTimeout(function () {
|
|
|
$('input[name="row[type]"]').trigger("change");
|
|
|
}, 100);
|
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
...
|
...
|
@@ -74,12 +77,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
var type = $('input[name="row[type]"]:checked').val();
|
|
|
console.log(type);
|
|
|
if(type == 1) {
|
|
|
$('#goods_id').show();
|
|
|
$('#goods_id').hide();
|
|
|
$('#href').hide();
|
|
|
} else {
|
|
|
} else if(type == 2) {
|
|
|
$('#goods_id').hide();
|
|
|
$('#href').show();
|
|
|
}
|
|
|
} else {
|
|
|
$('#goods_id').show();
|
|
|
$('#href').hide();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}
|
...
|
...
|
|