From 7ea9e40063bb40954b1c73675e2ed1963df99c4d Mon Sep 17 00:00:00 2001 From: mrzhssss <pro6@qq.com> Date: 星期五, 14 一月 2022 08:57:23 +0800 Subject: [PATCH] 更新baseurl地址 --- src/main/webapp/static/js/projectPlan/projectPlan.js | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/main/webapp/static/js/projectPlan/projectPlan.js b/src/main/webapp/static/js/projectPlan/projectPlan.js index 38f7715..bc873fd 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,14 +23,14 @@ toolbar: '#toolbar', cellMinWidth: 50, where: { - target: firstId + items: items }, cols: [[ - {type: 'checkbox'} + {type: 'checkbox', hide:true} // ,{field: 'id', align: 'center',title: '鍞竴ID'} - // ,{field: 'itemId', align: 'center',title: '椤圭洰ID'} - ,{field: 'flowName', align: 'center',title: '鑺傜偣鍚嶇О'} + ,{field: 'itemId$', align: 'center',title: '椤圭洰鍚嶇О'} + ,{field: 'flowId$', align: 'center',title: '鑺傜偣鍚嶇О'} ,{field: 'weightNum', align: 'center',title: '鏉冮噸鍊�'} // ,{field: 'flowId', align: 'center',title: '鑺傜偣ID'} @@ -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,7 +172,9 @@ layDateRender(); form.val('detail', mData); form.on('submit(editSubmit)', function (data) { - + if(mData === '娣诲姞'){ + data.field.push(items); + } var loadIndex = layer.load(2); $.ajax({ url: baseUrl+"/projectPlan/"+(mData?'update':'add')+"/auth", @@ -288,7 +296,8 @@ if (res.data != null) { // console.log(res.data[0].key) - firstId = res.data[0].key; + // items = res.data[0].key; + items='0'; var tpl = $("#parentNodeGroup").html(); var template = Handlebars.compile(tpl); var html = template(res); @@ -296,4 +305,5 @@ } }); -} \ No newline at end of file +} + -- Gitblit v1.9.1