Browse Source

本月查询为灰色

xiaowang-data
是小王呀\24601 1 year ago
parent
commit
38b90b300a
  1. 17
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  2. 2
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml
  3. 1
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss
  4. 4
      utils/config.js

17
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() {
// 点击确定按钮后触发,处理选中的复选框项

2
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml

@ -18,7 +18,7 @@
<view class="conclusion">
<text class="prosecutors_pre">企业名称</text>
<div >
<input class="{{inspectIf ? 'search-input1' : 'search-input'}}" type="text" placeholder="请输入要查找的公司" bindfocus="handleFocus" bindinput="inputChange" value="{{searchKeyword}}" />
<input class="{{inspectIf ? 'search-input' : 'search-input1'}}" type="text" placeholder="请输入要查找的公司" bindfocus="handleFocus" bindinput="inputChange" value="{{searchKeyword}}" />
<view class="Enterpris">
<scroll-view scroll-y="{{true}}" wx:if="{{ showscroll }}" class="searchKeyword" >
<div class="searchList" wx:for="{{companyList}}" bindtap="onChange2" data-item="{{item}}" wx:key="index">

1
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

4
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/' //测试环境

Loading…
Cancel
Save