18516761980
2022-01-14 111d09d2f3fadf841e3df1c72dfd423ea1c91649
src/main/webapp/static/js/projectPlan/projectPlan.js
@@ -29,7 +29,7 @@
        cols: [[
            {type: 'checkbox', hide:true}
            // ,{field: 'id', align: 'center',title: '唯一ID'}
            // ,{field: 'itemId', align: 'center',title: '项目ID'}
            ,{field: 'itemId$', align: 'center',title: '项目名称'}
            ,{field: 'flowId$', align: 'center',title: '节点名称'}
            ,{field: 'weightNum', align: 'center',title: '权重值'}
            // ,{field: 'flowId', align: 'center',title: '节点ID'}
@@ -172,8 +172,9 @@
                layDateRender();
                form.val('detail', mData);
                form.on('submit(editSubmit)', function (data) {
                    data.field.itemId = items
                    if(mData === '添加'){
                        data.field.push(items);
                    }
                    var loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/projectPlan/"+(mData?'update':'add')+"/auth",
@@ -295,7 +296,8 @@
        if (res.data != null) {
            // console.log(res.data[0].key)
            items = res.data[0].key;
            // items = res.data[0].key;
            items='0';
            var tpl = $("#parentNodeGroup").html();
            var template = Handlebars.compile(tpl);
            var html = template(res);