From cf22fb461f13b7136807fc5272e8ef254ff29db4 Mon Sep 17 00:00:00 2001 From: mrzhssss <pro6@qq.com> Date: 星期二, 11 一月 2022 10:01:32 +0800 Subject: [PATCH] 完成提交 --- src/main/webapp/static/js/projectPlan/projectPlan.js | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/static/js/projectPlan/projectPlan.js b/src/main/webapp/static/js/projectPlan/projectPlan.js index 38f7715..ab05220 100644 --- a/src/main/webapp/static/js/projectPlan/projectPlan.js +++ b/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); @@ -296,4 +303,5 @@ } }); -} \ No newline at end of file +} + -- Gitblit v1.9.1