Commit c68b516d authored by danfuman's avatar danfuman

修改

parent af29fa40
...@@ -348,7 +348,6 @@ ...@@ -348,7 +348,6 @@
if(this.sffx.length > 0 && this.gsfx.length > 0){ if(this.sffx.length > 0 && this.gsfx.length > 0){
params.condition.riskType='司法风险,工商风险' params.condition.riskType='司法风险,工商风险'
params.condition.dimension=this.sffx.concat(this.gsfx) params.condition.dimension=this.sffx.concat(this.gsfx)
console.log(this.sffx.concat(this.gsfx))
} }
if(this.sffx.length > 0 && this.gsfx.length === 0){ if(this.sffx.length > 0 && this.gsfx.length === 0){
params.condition.riskType='司法风险' params.condition.riskType='司法风险'
...@@ -358,6 +357,10 @@ ...@@ -358,6 +357,10 @@
params.condition.riskType='工商风险' params.condition.riskType='工商风险'
params.condition.dimension=this.gsfx params.condition.dimension=this.gsfx
} }
if(this.sffx.length === 0 && this.gsfx.length === 0){
delete params.condition.riskType
delete params.condition.dimension
}
dynamicPage(params).then(res => { dynamicPage(params).then(res => {
this.isSkeleton = false; this.isSkeleton = false;
this.tableData=res.rows; this.tableData=res.rows;
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
border border
highlight-current-row highlight-current-row
> >
<el-table-column label="序号" width="60" align="left" fixed> <el-table-column label="序号" width="60" align="center" fixed>
<template slot-scope="scope">{{ queryParams.pageNum * queryParams.pageSize - queryParams.pageSize + scope.$index + 1 }}</template> <template slot-scope="scope">{{ queryParams.pageNum * queryParams.pageSize - queryParams.pageSize + scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column label="监控对象" prop="companyName" align="left" width="250"></el-table-column> <el-table-column label="监控对象" prop="companyName" align="left" width="250"></el-table-column>
...@@ -104,8 +104,6 @@ ...@@ -104,8 +104,6 @@
label="操作" label="操作"
align="center" align="center"
width="150" width="150"
class-name="small-padding fixed-width"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span style="cursor: pointer;color:#0081FF;" @click="handleDetail(scope.row)">查看详情</span> <span style="cursor: pointer;color:#0081FF;" @click="handleDetail(scope.row)">查看详情</span>
...@@ -352,7 +350,6 @@ ...@@ -352,7 +350,6 @@
if(this.sffx.length > 0 && this.gsfx.length > 0){ if(this.sffx.length > 0 && this.gsfx.length > 0){
params.condition.riskType='司法风险,工商风险' params.condition.riskType='司法风险,工商风险'
params.condition.dimension=this.sffx.concat(this.gsfx) params.condition.dimension=this.sffx.concat(this.gsfx)
console.log(this.sffx.concat(this.gsfx))
} }
if(this.sffx.length > 0 && this.gsfx.length === 0){ if(this.sffx.length > 0 && this.gsfx.length === 0){
params.condition.riskType='司法风险' params.condition.riskType='司法风险'
...@@ -362,6 +359,10 @@ ...@@ -362,6 +359,10 @@
params.condition.riskType='工商风险' params.condition.riskType='工商风险'
params.condition.dimension=this.gsfx params.condition.dimension=this.gsfx
} }
if(this.sffx.length === 0 && this.gsfx.length === 0){
delete params.condition.riskType
delete params.condition.dimension
}
dynamicPage(params).then(res => { dynamicPage(params).then(res => {
this.isSkeleton = false; this.isSkeleton = false;
this.object=res.object; this.object=res.object;
......
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