From dad957f2d33ba871beeba251e7c51c1e7bb2b1ab Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期四, 02 六月 2022 10:46:33 +0800
Subject: [PATCH] 'lct;

---
 src/views/doublePreventAction/riskLevelManage/analyseUnit/index.vue |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/src/views/doublePreventAction/riskLevelManage/analyseUnit/index.vue b/src/views/doublePreventAction/riskLevelManage/analyseUnit/index.vue
index a1749f7..57b9f9b 100644
--- a/src/views/doublePreventAction/riskLevelManage/analyseUnit/index.vue
+++ b/src/views/doublePreventAction/riskLevelManage/analyseUnit/index.vue
@@ -30,6 +30,7 @@
             </div>
             <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-refresh" @click="refreshHandle">搜索</el-button>
             <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-plus" @click="showAnalyseUnitForm('','新增')">新增</el-button>
+            <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary"  @click="showDepartmentChart()">图表</el-button>
         </div>
         <div class="table_content">
             <el-table
@@ -84,10 +85,10 @@
                 <el-form-item label="责任部门" prop="hazardDep">
                     <el-select v-model="analyseUnitForm.hazardDep" value-key="item" class="analyseUnit_input" @change="departmentChange" @clear="departmentClear">
                         <el-option
-                        v-for="item in departmentList"
-                        :key="item.id"
-                        :value="item"
-                        :label="item.department"
+                            v-for="item in departmentList"
+                            :key="item.id"
+                            :value="item"
+                            :label="item.department"
                         ></el-option>
                     </el-select>
                 </el-form-item>
@@ -109,19 +110,23 @@
                 </el-form-item>
             </el-form>
             <div  align="right">
-                <el-button @click="unitFormVisible = false">取消</el-button>
+                <el-button @click="analyseUnitVisible = false">取消</el-button>
                 <el-button type="primary" @click="submitAnalyseUnit()">确认</el-button>
             </div>
         </el-dialog>
+        <department-chart ref="chart"></department-chart>
+
     </div>
 </template>
 
 <script>
+    import departmentChart from "./components/departmentChart";
     import { mapGetters } from 'vuex'
     import { computePageCount } from '@/utils'
     import { addAnalyseUnit, deleteAnalyseUnit, getAnalyseUnitList, updateAnalyseUnit } from '@/api/riskLevelManage'
     import {getAllDepartment, getDepartmentList} from "../../../../api/departmentManage";
     import {safetyInspectionItemName} from "../../../../api/safetySelfInspection";
+    import {getDepartmentChart} from "../../../../api/riskLevelManage";
     export default {
         name: 'index',
         filters: {
@@ -137,6 +142,9 @@
             ...mapGetters([
                 'userType'
             ])
+        },
+        components :{
+            departmentChart
         },
         data() {
             return {
@@ -228,6 +236,9 @@
                         type:'warning'
                     })
                 }
+            },
+            showDepartmentChart() {
+                this.$refs.chart.show()
             },
             showAnalyseUnitForm(value,type){
                 this.analyseUnitVisible = true
@@ -359,4 +370,8 @@
     .analyseUnit_input{
         width:320px;
     }
+    .image{
+        width:70%;
+        height:70%;
+    }
 </style>

--
Gitblit v1.9.2