mrzhssss
2022-01-11 cf22fb461f13b7136807fc5272e8ef254ff29db4
src/main/webapp/static/js/projectPlan/projectPlan.js
@@ -1,5 +1,5 @@
var pageCurr;
var firstId;
var items;
getItems();
layui.config({
@@ -23,7 +23,7 @@
        toolbar: '#toolbar',
        cellMinWidth: 50,
        where: {
            target: firstId
            items: items
        },
        cols: [[
@@ -81,6 +81,11 @@
            where: searchData,
            page: {curr: 1}
        });
    });
    form.on('select(items)',function (data) {
        items = data.value
        tableReload();
    });
    // 监听头工具栏事件
@@ -157,6 +162,7 @@
    /* 弹窗 - 新增、修改 */
    function showEditModel(mData) {
        admin.open({
            type: 1,
            area: '600px',
@@ -166,6 +172,7 @@
                layDateRender();
                form.val('detail', mData);
                form.on('submit(editSubmit)', function (data) {
                    data.field.itemId = items
                    var loadIndex = layer.load(2);
                    $.ajax({
@@ -288,7 +295,7 @@
        if (res.data != null) {
            // console.log(res.data[0].key)
            firstId = res.data[0].key;
            items = res.data[0].key;
            var tpl = $("#parentNodeGroup").html();
            var template = Handlebars.compile(tpl);
            var html = template(res);
@@ -297,3 +304,4 @@
        }
    });
}