|  |  |  | 
|---|
|  |  |  | ,{field: 'vadf2', align: 'center',title: '分解段,%', hide:true,edit:true} | 
|---|
|  |  |  | ,{field: 'yellowness', align: 'center',title: '黄度',edit:true} | 
|---|
|  |  |  | ,{field: 'opacity', align: 'center',title: '不透明度,%',edit:true} | 
|---|
|  |  |  | ,{field: 'lactideContent', align: 'center',title: '丙交酯含量,%',edit:true} | 
|---|
|  |  |  | ,{field: 'l', align: 'center',title: 'L*', hide:true,edit:true} | 
|---|
|  |  |  | ,{field: 'a', align: 'center',title: 'a*', hide:true,edit:true} | 
|---|
|  |  |  | ,{field: 'b', align: 'center',title: 'b*', hide:true,edit:true} | 
|---|
|  |  |  | 
|---|
|  |  |  | laydate = layui.laydate; | 
|---|
|  |  |  | var form = layui.form; | 
|---|
|  |  |  | admin = layui.admin; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 模拟从后端接口获取数据 | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl + "/pla/dropdownValues/list", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | var data = res.data | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (data.owner && Array.isArray(data.owner)) { | 
|---|
|  |  |  | data.owner.forEach(function(item) { | 
|---|
|  |  |  | $('#ownerSelect').append(new Option(item, item)); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (data.workshop && Array.isArray(data.workshop)) { | 
|---|
|  |  |  | data.workshop.forEach(function(item) { | 
|---|
|  |  |  | $('#workshopSelect').append(new Option(item, item)); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 重新渲染 LayUI 表单 | 
|---|
|  |  |  | form.render('select'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 日期时间范围 | 
|---|
|  |  |  | laydate.render({ | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var iframe = window['layui-layer-iframe' + index]; | 
|---|
|  |  |  | iframe.child(dataSave) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | end: function() { | 
|---|
|  |  |  | // ✅ 子页面关闭时刷新表格 | 
|---|
|  |  |  | tableReload(false); // 或根据实际情况传 true/false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }) | 
|---|