diff --git a/subpages/InspectionReport/pages/InspectionReport/InspectionReport.js b/subpages/InspectionReport/pages/InspectionReport/InspectionReport.js index 6a0166c..fd76fc5 100644 --- a/subpages/InspectionReport/pages/InspectionReport/InspectionReport.js +++ b/subpages/InspectionReport/pages/InspectionReport/InspectionReport.js @@ -17,6 +17,7 @@ Page({ * 页面的初始数据 */ data: { + inspectIf:false, orderDate:"", selectedEnterpriseNames:[], EnterpriseName:[], @@ -112,7 +113,7 @@ Page({ // showqiye:true }) console.log( this.data.companyList); - + }) @@ -121,6 +122,7 @@ Page({ // // 调用后台接口或者模拟数据获取搜索结果 // // this.pickerChange2(e); // }, 300); // 设置延迟时间,比如300毫秒 + }, onInputChange(e){ const index = e.currentTarget.dataset.index; @@ -452,14 +454,18 @@ Page({ const targetMonth = parseInt(item.orderDate.substring(5, 7), 10); console.log(currentMonth,targetMonth); if (targetMonth === currentMonth) { - console.log("turedv"); - item.inspectIf=true + this.setData({ + inspectIf:true + }) } else { - item.inspectIf=false + this.setData({ + inspectIf:false + }) } - + }) console.log(this.data.companyList); + // let names = [] // res.data.list.forEach(item=>{ // names.push(item.name) @@ -482,6 +488,7 @@ Page({ }); this.showRecordData() + console.log(this.data.inspectIf); }, confirmSelection() { // 点击确定按钮后触发,处理选中的复选框项 diff --git a/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml b/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml index 4dbc7ed..0730302 100644 --- a/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml +++ b/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml @@ -18,7 +18,7 @@ 企业名称
- +
diff --git a/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss b/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss index 9f57a55..6c4c902 100644 --- a/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss +++ b/subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss @@ -580,7 +580,6 @@ margin-bottom: 20rpx; .EnterperiseName1{ width:300rpx; display: flex; - color:#999999 ; white-space: nowrap; overflow-x: hidden; text-overflow:ellipsis diff --git a/utils/config.js b/utils/config.js index 671f7a7..78cc30d 100644 --- a/utils/config.js +++ b/utils/config.js @@ -5,8 +5,8 @@ module.exports = { }; function BASEURL() { - // return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 - return 'http://192.168.1.144/api/' //测试环境 + return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 + // return 'http://192.168.1.144/api/' //测试环境 // return 'http://219.146.91.110:30801/api/' // return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 // return 'http://192.168.1.144/api/' //测试环境