执法地区、跳转

zhangtao
laozt 1 year ago
parent 10776813ee
commit f668c26da1

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

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

Loading…
Cancel
Save