|
@@ -66,7 +66,7 @@
|
|
<view class="filterBtnWrap" :style="{paddingBottom:i==2?'20px':0}">
|
|
<view class="filterBtnWrap" :style="{paddingBottom:i==2?'20px':0}">
|
|
<com-button v-for="(item, index) in v.list" :btnText="item.label" :width="`${32}%`" :height="80" :marginBottom="20"
|
|
<com-button v-for="(item, index) in v.list" :btnText="item.label" :width="`${32}%`" :height="80" :marginBottom="20"
|
|
:marginRight="(index+1)%3==0?0:`2%`"
|
|
:marginRight="(index+1)%3==0?0:`2%`"
|
|
- :type="setFilterBtnType(item.value,v.key)" v-on:btnClick="btnClick(item.value,v.key,v.code)" />
|
|
|
|
|
|
+ :type="setFilterBtnType(item.value,v.key)" v-on:btnClick="btnClick(item.value,v.key,item.code)" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -209,9 +209,11 @@
|
|
nowPermission: uni.getStorageSync('nowPermission'),
|
|
nowPermission: uni.getStorageSync('nowPermission'),
|
|
active:{
|
|
active:{
|
|
result:['全部'],
|
|
result:['全部'],
|
|
|
|
+ resultCode:-1,
|
|
checkStatus:'全部',
|
|
checkStatus:'全部',
|
|
|
|
+ checkStatusCode:-1,
|
|
other:'全部',
|
|
other:'全部',
|
|
- code:-1,
|
|
|
|
|
|
+ otherCode:-1,
|
|
}, //筛选tab下标
|
|
}, //筛选tab下标
|
|
checkId: '',
|
|
checkId: '',
|
|
deptId: '',
|
|
deptId: '',
|
|
@@ -380,7 +382,7 @@
|
|
{key:'查核结果',list:_checkResults},
|
|
{key:'查核结果',list:_checkResults},
|
|
{key:'其他',list:_others},
|
|
{key:'其他',list:_others},
|
|
];
|
|
];
|
|
-
|
|
|
|
|
|
+ console.log('2023070503',this.btnArr);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//绑定当事人
|
|
//绑定当事人
|
|
@@ -442,8 +444,9 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
loadItemData() {
|
|
loadItemData() {
|
|
-
|
|
|
|
|
|
+ console.log('2023070404',this.active);
|
|
if(this.isZichaDucha){
|
|
if(this.isZichaDucha){
|
|
|
|
+ console.log('2023070401',this.active);
|
|
|
|
|
|
//自查督查的情况下
|
|
//自查督查的情况下
|
|
this.$store.dispatch({
|
|
this.$store.dispatch({
|
|
@@ -451,10 +454,10 @@
|
|
key: 'getZichaduchaCheckItems',
|
|
key: 'getZichaduchaCheckItems',
|
|
data:{
|
|
data:{
|
|
functionId:this.functionId,
|
|
functionId:this.functionId,
|
|
- // filter:
|
|
|
|
- checkStatus:this.active.checkStatus.code,
|
|
|
|
- checkResult:this.active.result.code,
|
|
|
|
- other:this.active.other.code
|
|
|
|
|
|
+ //filter:"",
|
|
|
|
+ checkStatus:this.active.checkStatusCode,
|
|
|
|
+ checkResult:this.active.resultCode,//this.active.result.join(','),
|
|
|
|
+ checkImages:this.active.otherCode
|
|
}
|
|
}
|
|
}).then(data => {
|
|
}).then(data => {
|
|
if (data) {
|
|
if (data) {
|
|
@@ -702,8 +705,10 @@
|
|
},
|
|
},
|
|
btnClick(val,key,code) {
|
|
btnClick(val,key,code) {
|
|
const _active = this.active;
|
|
const _active = this.active;
|
|
|
|
+ console.log('2023070501',_active);
|
|
if(key == '查核结果'){
|
|
if(key == '查核结果'){
|
|
|
|
|
|
|
|
+ //_active.result=val;
|
|
const index = _active.result.findIndex(t=>t == val);
|
|
const index = _active.result.findIndex(t=>t == val);
|
|
if(index >= 0){
|
|
if(index >= 0){
|
|
//当前已存在该id
|
|
//当前已存在该id
|
|
@@ -712,15 +717,19 @@
|
|
_active.result.push(val);
|
|
_active.result.push(val);
|
|
console.log({_active});
|
|
console.log({_active});
|
|
}
|
|
}
|
|
|
|
+ _active.resultCode=code;
|
|
}
|
|
}
|
|
if(key == '查核状态'){
|
|
if(key == '查核状态'){
|
|
- _active.checkStatus = val
|
|
|
|
|
|
+ _active.checkStatus = val;
|
|
|
|
+ _active.checkStatusCode=code;
|
|
}
|
|
}
|
|
if(key == '其他'){
|
|
if(key == '其他'){
|
|
- _active.other = val
|
|
|
|
|
|
+ _active.other = val;
|
|
|
|
+ _active.otherCode=code;
|
|
}
|
|
}
|
|
- _active.code=code;
|
|
|
|
|
|
+
|
|
this.active = _active;
|
|
this.active = _active;
|
|
|
|
+ console.log('2023070502',_active);
|
|
//更新列表
|
|
//更新列表
|
|
this.loadItemData();
|
|
this.loadItemData();
|
|
},
|
|
},
|
|
@@ -769,7 +778,7 @@
|
|
checkResult:this.active.result.join(','),
|
|
checkResult:this.active.result.join(','),
|
|
other:this.active.other
|
|
other:this.active.other
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ console.log('2023070402',params);
|
|
//增加受访人
|
|
//增加受访人
|
|
if (situationType == 2) params['investigationId'] = investigationId;
|
|
if (situationType == 2) params['investigationId'] = investigationId;
|
|
|
|
|