Commit 96520b57 authored by 李苏's avatar 李苏 💬

字段修改

parent cdaab156
...@@ -68,6 +68,12 @@ ...@@ -68,6 +68,12 @@
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
computed:{
radio(){
let val=this.queryParams.hzfs
return val
}
},
data() { data() {
return { return {
/*需要的额外参数 */ /*需要的额外参数 */
...@@ -86,36 +92,32 @@ ...@@ -86,36 +92,32 @@
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{ {
prop: 'gsid', prop: 'gsName',
label: '公司', label: '公司',
width:292,transform:{ width:292
url:'jcsj/common/bm/queryGs',label:'bmmc',value:'id'
}
}, },
{ {
prop: 'bmid', prop: 'bzName',
label: '班组', label: '班组',
width:292,transform:{ width:292
url:'jcsj/common/bm/queryBz',label:'bmmc',value:'id'
}
}, },
{ {
prop: 'zrrName', prop: 'sbrName',
label: '责任人', label: '责任人',
width: 300 width: 300
}, },
{ {
prop: 'sl', prop: 'allCount',
label: '数量', label: '数量',
width: 100 width: 100
}, },
{ {
prop: 'fxrq', prop: 'recordCount',
label: '未处理完毕数量', label: '未处理完毕数量',
width: 300 width: 300
}, },
{ {
prop: 'yqzgsj', prop: 'cqCount',
label: '超期数量', label: '超期数量',
width:300 width:300
} }
...@@ -124,9 +126,9 @@ ...@@ -124,9 +126,9 @@
}, },
watch:{ watch:{
radio(val){ radio(val){
val=='gs'&&this.$refs['TablePager']['newGridList'].forEach(item=>{item.prop=='bmid'&&(item.show=false);item.prop=='zrrName'&&(item.show=false);item.prop=='gsid'&&(item.show=true)}) val=='GS'&&this.$refs['TablePager']['newGridList'].forEach(item=>{item.prop=='bzName'&&(item.show=false);item.prop=='sbrName'&&(item.show=false);item.prop=='gsName'&&(item.show=true)})
val=='bz'&&this.$refs['TablePager']['newGridList'].forEach(item=>{item.prop=='bmid'&&(item.show=true);item.prop=='zrrName'&&(item.show=false);item.prop=='gsid'&&(item.show=true)}) val=='BM'&&this.$refs['TablePager']['newGridList'].forEach(item=>{item.prop=='bzName'&&(item.show=true);item.prop=='sbrName'&&(item.show=false);item.prop=='gsName'&&(item.show=true)})
val=='ry'&&this.$refs['TablePager']['newGridList'].forEach(item=>{item.prop=='bmid'&&(item.show=true);item.prop=='zrrName'&&(item.show=true);item.prop=='gsid'&&(item.show=true)}) val=='RY'&&this.$refs['TablePager']['newGridList'].forEach(item=>{item.prop=='bzName'&&(item.show=true);item.prop=='sbrName'&&(item.show=true);item.prop=='gsName'&&(item.show=true)})
} }
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment