|
|
@@ -34,20 +34,25 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
- <el-table :data="tableData" style="width: 100%" stripe v-loading="loading">
|
|
|
- <el-table-column prop="DeviceName" label="设备名称" ></el-table-column>
|
|
|
+ <el-table :data="tableData" size="mini" style="width: 100%" stripe v-loading="loading">
|
|
|
+ <el-table-column prop="DeviceName" label="设备名称" >
|
|
|
+
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-link type="primary" @click="showPie(scope.row)">{{scope.row.DeviceName}}</el-link>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column prop="DeviceQty" label="设备总量" ></el-table-column>
|
|
|
|
|
|
- <el-table-column prop="WaitMonth" label="本月待检"></el-table-column>
|
|
|
+ <!--<el-table-column prop="WaitMonth" label="本月待检"></el-table-column>
|
|
|
|
|
|
- <el-table-column prop="FinishMonth" label="本月检测" ></el-table-column>
|
|
|
+ <el-table-column prop="FinishMonth" label="本月检测" ></el-table-column>-->
|
|
|
|
|
|
<el-table-column prop="WaitYear" label="全年待检"></el-table-column>
|
|
|
|
|
|
<el-table-column prop="FinishYear" label="全年已检"></el-table-column>
|
|
|
|
|
|
- <el-table-column prop="FinishYear" label="全年检测"></el-table-column>
|
|
|
+ <!-- <el-table-column prop="FinishYear" label="全年检测"></el-table-column>-->
|
|
|
|
|
|
<el-table-column prop="PassRate" label="合格率(%)"></el-table-column>
|
|
|
</el-table>
|
|
|
@@ -63,6 +68,10 @@
|
|
|
</v-chart>
|
|
|
</el-card>
|
|
|
|
|
|
+ <el-dialog :visible="pieDialogVisible" width="85%" title="防雷装置检测率">
|
|
|
+ <pie-check-result></pie-check-result>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@@ -70,6 +79,8 @@
|
|
|
|
|
|
<script>
|
|
|
import api from '@/api/lims/secondcenter'
|
|
|
+
|
|
|
+ import pieCheckResult from './pieCheckResult.vue'
|
|
|
import {
|
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
|
@@ -79,9 +90,13 @@
|
|
|
computed: mapGetters({
|
|
|
authUser: 'authUser'
|
|
|
}),
|
|
|
+ components: {
|
|
|
+ pieCheckResult
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
loading: true,
|
|
|
+ pieDialogVisible: false,
|
|
|
Isauthority: false,
|
|
|
beijiance: false,
|
|
|
jiancedidian: false,
|
|
|
@@ -152,6 +167,9 @@
|
|
|
this.getDictOptions()
|
|
|
},
|
|
|
methods: {
|
|
|
+ showPie (row) {
|
|
|
+ this.pieDialogVisible = true
|
|
|
+ },
|
|
|
getAuthority () {
|
|
|
let params = {
|
|
|
Code: 'lims.secondcenter.all'
|