zhangtao
laozt 1 year ago
parent 5baca05809
commit 348ccf7ac7

@ -101,11 +101,12 @@ export default {
let isGovernmentAffairsNetwork = localStorage.getItem( let isGovernmentAffairsNetwork = localStorage.getItem(
"isGovernmentAffairsNetwork" "isGovernmentAffairsNetwork"
); );
const G_USER_INFO = JSON.parse(localStorage.getItem("G_USER_INFO")); // const G_USER_INFO = JSON.parse(localStorage.getItem("G_USER_INFO"));
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
if (isGovernmentAffairsNetwork == "1") { if (isGovernmentAffairsNetwork == "1") {
this.userName = G_USER_INFO.data.username; this.userName = userInfo.lawLevel + " " + userInfo.nickName;
} else { } else {
this.userName = this.dept.deptName + " " + this.username; this.userName = userInfo.lawLevel + " " + userInfo.nickName;
} }
}, },
watch: { watch: {
@ -146,7 +147,6 @@ export default {
localStorage.removeItem("isGovernmentAffairsNetwork"); localStorage.removeItem("isGovernmentAffairsNetwork");
location.href = "/login?redirect=%2Findex"; location.href = "/login?redirect=%2Findex";
} }
}); });
}) })
.catch(() => {}); .catch(() => {});

@ -82,7 +82,7 @@
</el-form> </el-form>
</div> </div>
<div class="tables" v-loading="loading"> <div class="tables" v-loading="loading">
<el-table v-loading="loading" :data="newList" height="380"> <el-table v-loading="loading" :data="newList" height="350">
<el-table-column <el-table-column
label="企业名称" label="企业名称"
align="center" align="center"

@ -82,7 +82,7 @@
</el-form> </el-form>
</div> </div>
<div class="tables" v-loading="loading"> <div class="tables" v-loading="loading">
<el-table v-loading="loading" :data="newList"> <el-table v-loading="loading" :data="newList" height="350">
<el-table-column <el-table-column
label="企业名称" label="企业名称"
align="center" align="center"

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="tables" v-loading="loading"> <div class="tables" v-loading="loading">
<el-table v-loading="loading" :data="enterpriseList"> <el-table v-loading="loading" :data="enterpriseList" height="350">
<el-table-column label="计划年份" align="center" prop="plannedYear" /> <el-table-column label="计划年份" align="center" prop="plannedYear" />
<el-table-column label="计划月份" align="center" prop="plannedMonth"> <el-table-column label="计划月份" align="center" prop="plannedMonth">

@ -106,6 +106,11 @@
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="enterpriseName"
label="企业名称"
header-align="center"
/>
<el-table-column <el-table-column
prop="district" prop="district"
label="行政区划" label="行政区划"
@ -117,12 +122,7 @@
<span>{{ componendDistrict(scope.row.district) }}</span> <span>{{ componendDistrict(scope.row.district) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="enterpriseName"
label="企业名称"
header-align="center"
>
</el-table-column>
<el-table-column <el-table-column
prop="checkStatus" prop="checkStatus"
label="检查状态" label="检查状态"
@ -131,22 +131,32 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
style="font-family: 'Alibaba PuHuiTi'" style="font-family: 'Alibaba PuHuiTi'"
:class="scope.row.checkStatus == '2' ? 'isStyle' : 'isStyle1'" :class="scope.row.checkStatus == '1' ? 'isStyle1' : 'isStyle'"
> >
{{ scope.row.checkStatus == 2 ? "未检查" : "已检查" }} {{ scope.row.checkStatus == 1 ? "已检查" : "未检查" }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="examineEndTime" label="检查结束时间" header-align="center" /> <el-table-column
prop="examineEndTime"
label="检查结束时间"
header-align="center"
/>
<el-table-column <el-table-column
prop="checkAgeing" prop="checkAgeing"
label="检查时效" label="检查时效"
header-align="center" header-align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span style="color:green" v-if="scope.row.checkAgeing == 1">{{ scope.row.checkAgeing | checkAgeing }}</span> <span style="color: green" v-if="scope.row.checkAgeing == 1">{{
<span style="color:blue" v-else-if="scope.row.checkAgeing == 2">{{ scope.row.checkAgeing | checkAgeing }}</span> scope.row.checkAgeing | checkAgeing
<span style="color:red" v-else-if="scope.row.checkAgeing == 3">{{ scope.row.checkAgeing | checkAgeing }}</span> }}</span>
<span style="color: blue" v-else-if="scope.row.checkAgeing == 2">{{
scope.row.checkAgeing | checkAgeing
}}</span>
<span style="color: red" v-else-if="scope.row.checkAgeing == 3">{{
scope.row.checkAgeing | checkAgeing
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" header-align="center"> <el-table-column label="操作" header-align="center">
@ -289,6 +299,7 @@ export default {
// //
checkStatus: "", checkStatus: "",
enterpriseName: "", enterpriseName: "",
status: 1,
}, },
plannedMonth: "", plannedMonth: "",
checkList: [""], checkList: [""],

@ -57,11 +57,15 @@
ref="executive" ref="executive"
/> />
</el-form-item> </el-form-item>
<el-form-item label="执法层级" prop="lawHierarchy"> <el-form-item
label="执法层级"
prop="lawHierarchy"
>
<el-select <el-select
v-model="queryParams.lawHierarchy" v-model="queryParams.lawHierarchy"
placeholder="请选择执法层级" placeholder="请选择执法层级"
filterable filterable
:disabled="islawHierarchy"
> >
<el-option <el-option
v-for="item in dict.type.dict_law_hierarchy" v-for="item in dict.type.dict_law_hierarchy"
@ -207,6 +211,7 @@ export default {
dicts: ["dict_law_hierarchy"], dicts: ["dict_law_hierarchy"],
data() { data() {
return { return {
islawHierarchy: false,
lawHierarchys: [ lawHierarchys: [
{ {
value: "1", value: "1",
@ -470,12 +475,18 @@ export default {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
this.queryParams.district = userInfo.permissionCode; this.queryParams.district = userInfo.permissionCode;
this.queryParams.lawHierarchy = userInfo.userName;
}
if (userInfo.lawLevel == "镇级") {
this.islawHierarchy = true;
} }
this.queryParams.plannedYear = this.$moment(new Date()).format("yyyy"); this.queryParams.plannedYear = this.$moment(new Date()).format("yyyy");
if (this.$route.query.lawHierarchy) { if (this.$route.query.lawHierarchy) {
// console.log(this.$route.query.lawHierarchy); // console.log(this.$route.query.lawHierarchy);
this.queryParams.lawHierarchy = this.$route.query.lawHierarchy; this.queryParams.lawHierarchy = this.$route.query.lawHierarchy;
} }
// //
this.getList(); this.getList();
}, },

Loading…
Cancel
Save