执法地区、跳转

zhangtao
laozt 1 year ago
parent 10776813ee
commit f668c26da1

@ -98,7 +98,7 @@
>
<el-table-column
prop="lawAreas"
label="行政区划"
label="执法地区"
header-align="center"
show-overflow-tooltip
>
@ -111,6 +111,12 @@
<span v-if="scope.row.lawAreas == ''"
>{{ scope.row.count }}</span
>
<span
v-else-if="scope.row.lawAreas == '苏州'"
class="numb-hover"
@click="routerLink('苏州市局')"
>{{ scope.row.count }}</span
>
<span v-else class="numb-hover" @click="openDialog(scope.row)"
>{{ scope.row.count }}</span
>
@ -168,7 +174,7 @@
>
<el-table-column
prop="lawAreas"
label="行政区划"
label="执法地区"
header-align="center"
show-overflow-tooltip
>
@ -181,7 +187,10 @@
<span v-if="scope.row.lawAreas == ''"
>{{ scope.row.count }}</span
>
<span v-else class="numb-hover" @click="routerLink(scope.row)"
<span
v-else
class="numb-hover"
@click="routerLink(scope.row.lawAreas)"
>{{ scope.row.count }}</span
>
</template>
@ -374,8 +383,8 @@ export default {
this.tableInfoData = response.data;
});
},
routerLink(row) {
this.$router.push(`/planManage?lawHierarchy=${row.lawAreas}`);
routerLink(lawHierarchy) {
this.$router.push(`/planManage?lawHierarchy=${lawHierarchy}`);
},
active(e) {
this.activeIndex = e;

@ -57,10 +57,7 @@
ref="executive"
/>
</el-form-item>
<el-form-item
label="执法层级"
prop="lawHierarchy"
>
<el-form-item label="执法层级" prop="lawHierarchy">
<el-select
v-model="queryParams.lawHierarchy"
placeholder="请选择执法层级"
@ -389,6 +386,9 @@ export default {
this.resetForm("queryForm");
this.plannedMonth = "";
this.$refs.executive.onClear();
if (this.$route.query.lawHierarchy) {
this.queryParams.lawHierarchy = null;
}
this.handleQuery();
},
/** 新增按钮操作 */

Loading…
Cancel
Save