/*
 * title: unit-manage
 *
*/
layui.extend({
    common    :   'js/common',
}).use(['table', 'jquery','layer','common','form','element'], function () {
    //  弹窗插件
    var layer = layui.layer;
    //  Jquery插件
    var $ = layui.jquery;
    //  引入公共模块
    var common = layui.common;
    //  引入表格
    var table = layui.table;
    //  引入表单
    var form = layui.form;

    var element = layui.element;

    //  页面数据
    var pageData = {
        residentialId  :  $('#residential_id').val(),
    };

    //按钮监听
    form.on('submit(manage)', function (data) {
        let index = data.elem.value;
        common.openDefaultIframe({
            content:  '/estate/residential/manage/' + pageData.residentialId + '/' + index
        });
    });

});