查询条件

zhangtao
laozt 1 year ago
parent c7841e2765
commit 143b2710f6

@ -88,7 +88,7 @@ export default {
console.log(index); console.log(index);
this.activeTab = index; this.activeTab = index;
if (index == 2) { if (index == 2) {
this.$refs.tabs.getList(); this.$refs.tabs.reList();
} }
}, },
// //

@ -228,7 +228,7 @@ export default {
lawLevel: null, lawLevel: null,
lawHierarchy: null, lawHierarchy: null,
plannedMonth: null, plannedMonth: null,
status: 1, status: 0,
checkStatus: null, checkStatus: null,
checkId: null, checkId: null,
checkAgeing: null, checkAgeing: null,
@ -243,6 +243,7 @@ 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.queryPlanEnterpriseParams.district = userInfo.permissionCode;
} }
this.getList(); this.getList();
this.getPlanEnterpriseList(); this.getPlanEnterpriseList();

@ -228,7 +228,7 @@ export default {
lawLevel: null, lawLevel: null,
lawHierarchy: null, lawHierarchy: null,
plannedMonth: null, plannedMonth: null,
status: 1, status: 0,
checkStatus: null, checkStatus: null,
checkId: null, checkId: null,
checkAgeing: null, checkAgeing: null,
@ -240,6 +240,11 @@ export default {
}; };
}, },
created() { created() {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
this.queryParams.district = userInfo.permissionCode;
this.queryPlanEnterpriseParams.district = userInfo.permissionCode;
}
this.getList(); this.getList();
this.getPlanEnterpriseList(); this.getPlanEnterpriseList();
}, },
@ -265,8 +270,15 @@ export default {
}, },
// 稿 // 稿
handleAddDrafts(row) { handleAddDrafts(row) {
// console.log("1", row);
this.resetPlanEnterprise(); this.resetPlanEnterprise();
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
// console.log(userInfo.lawSort);
this.formPlanEnterprise.lawSort = userInfo.lawSort;
this.formPlanEnterprise.lawAreas = userInfo.lawAreas;
this.formPlanEnterprise.lawLevel = userInfo.lawLevel;
this.formPlanEnterprise.lawHierarchy = userInfo.userName;
this.formPlanEnterprise.plannedYear = this.$moment(new Date()).format( this.formPlanEnterprise.plannedYear = this.$moment(new Date()).format(
"yyyy" "yyyy"
); );
@ -331,7 +343,9 @@ export default {
}, },
// //
quhuadizhi(district) { quhuadizhi(district) {
this.option = district; // console.log(">>>>>>>>");
// console.log(district);
// console.log(">>>>>>>>");
}, },
// //
componendDistrict(district) { componendDistrict(district) {

@ -142,7 +142,11 @@ export default {
}; };
}, },
created() { created() {
this.$nextTick(() => {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
this.queryParams.district = userInfo.permissionCode;
this.getList(); this.getList();
});
}, },
methods: { methods: {
// //
@ -175,6 +179,13 @@ export default {
}); });
}); });
}, },
reList() {
this.$nextTick(() => {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
this.queryParams.district = userInfo.permissionCode;
this.getList();
});
},
/** 查询计划企业列表 */ /** 查询计划企业列表 */
getList() { getList() {
this.loading = true; this.loading = true;

Loading…
Cancel
Save