diff --git a/ruoyi-ui/src/assets/images/profile.jpg b/ruoyi-ui/src/assets/images/profile.jpg index b3a940b..e263760 100644 Binary files a/ruoyi-ui/src/assets/images/profile.jpg and b/ruoyi-ui/src/assets/images/profile.jpg differ diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 466cd98..c3a1185 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -9,13 +9,13 @@ - + + + - + + + @@ -480,6 +488,18 @@ riskGrade: [ { required: true, message: "风险点等级不能为空", trigger: "change" } ], + riskLocation1: [ + { required: true, message: "位置不能为空", trigger: "change" } + ], + riskLocation2: [ + { required: true, message: "位置不能为空", trigger: "change" } + ], + peopleQuantity1: [ + { required: true, message: "涉及群众数量不能为空", trigger: "change" } + ], + peopleQuantity2: [ + { required: true, message: "涉及群众数量不能为空", trigger: "change" } + ], reportAddressType: [ { required: true, message: "风险点类型不能为空", trigger: "change" } ], @@ -541,8 +561,12 @@ riskGrade: null, reportAddressType: null, riskLocation: null, + riskLocation1: "", + riskLocation2: "", riskDesc: null, peopleQuantity: null, + peopleQuantity1: "", + peopleQuantity2: "", materialsAddr: null, materialsQuantity: null, lifeAddr: null, @@ -603,6 +627,8 @@ submitForm() { this.$refs["form"].validate(valid => { if (valid) { + this.form.riskLocation = this.form.riskLocation1+";"+this.form.riskLocation2; + this.form.peopleQuantity = this.form.peopleQuantity1+";"+this.form.peopleQuantity2 if (this.form.riskId != null) { updateEhsRisk(this.form).then(response => { this.$modal.msgSuccess("修改成功"); @@ -634,7 +660,23 @@ this.download('ehsRisk/ehsRisk/export', { ...this.queryParams }, `ehsRisk_${new Date().getTime()}.xlsx`) - } + }, + toStr(v,t) { + if(v!=null){ + let s = v.split(";"); + if(s.length>1){ + if(t==1){//位置 + return s[0]+"村(社区)"+s[1]+"位置" + }else { + return s[0]+"户"+s[1]+"人" + } + }else + return v; + }else + return "" + + + }, } }; diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 93a0d0a..e0b36fb 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -6,31 +6,31 @@ 本年度共有 {{ yearData.unitNum - }} + }} 家单位开展安全生产事故隐患排查治理,排查出隐患 {{ yearData.hiddenDangerNum - }} + }} 项,已整改 {{ yearData.haveRectifiedNum - }} + }} 项( 整改率为 {{ yearData.rectifyRate - }} + }} 未整改 {{ yearData.notRectifiedNum - }} + }} 项,超期未整改 {{ yearData.exceedNotRectifiedNum - }} + }} 项,累计落实整改治理资金 {{ yearData.rectifyMoneySum - }} + }} 万元。

@@ -39,23 +39,23 @@ 累计排查出{{ item.name }} {{ item.hiddenDangerNum - }} + }} 项,已整改 {{ item.haveRectifiedNum - }} + }} 项(整改率为 {{ item.rectifyRate - }} + }} ),未整改 {{ item.notRectifiedNum - }} + }} 项,超期未整改 {{ item.exceedNotRectifiedNum - }} + }} 项

@@ -64,23 +64,23 @@ 其中,列入督办隐患治理项目 {{ collectData.hiddenDangerNum - }} + }} 项,已整改 {{ collectData.haveRectifiedNum - }} + }} 项(整改率为 {{ collectData.rectifyRate - }} + }} 未整改 {{ collectData.notRectifiedNum - }} + }} 项,超期未整改 {{ collectData.exceedNotRectifiedNum - }} + }} 项)
@@ -225,10 +225,10 @@ icon="el-icon-search" size="mini" @click="handleQuery" - >搜索搜索 重置重置 @@ -298,181 +298,181 @@ diff --git a/ruoyi-ui/src/views/index_v1.vue b/ruoyi-ui/src/views/index_v1.vue deleted file mode 100644 index 405cb9e..0000000 --- a/ruoyi-ui/src/views/index_v1.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 95cff50..2a892dc 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -1,7 +1,7 @@