|
@@ -213,7 +213,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="缺陷占比" width="120" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.count">{{(scope.row.count/tongjiData.qxSum).toFixed(2)*100}}%</span>
|
|
|
+ <span v-if="scope.row.count">{{(scope.row.count/tongjiData.qxSum *100).toFixed(2)}}%</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -275,11 +275,10 @@
|
|
|
<span>{{ scope.$index + 1 + (paginationDataDoctor.page - 1) * paginationDataDoctor.size }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="医师姓名" width="100" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="code" label="医师工号" width="100" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column label="医师姓名/工号" width="160" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.code">
|
|
|
- {{ scope.row.code }}
|
|
|
+ <span v-if="scope.row.name">
|
|
|
+ {{scope.row.name}}/{{ scope.row.code }}
|
|
|
<i class="el-icon-document-copy" style="color: green" @click="yiCodeCopy(scope.row.code)" />
|
|
|
</span>
|
|
|
</template>
|
|
@@ -302,17 +301,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="qx_total_num" label="缺陷总数" width="120" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="typeof scope.row.qx_total_num === 'number'">{{ scope.row.qx_total_num }}列</span>
|
|
|
+ <span v-if="typeof scope.row.qx_total_num === 'number'">{{ scope.row.qx_total_num }}例</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="qx_zb" label="个人缺陷占比" width="120" align="center">
|
|
|
+ <el-table-column label="占缺占比" width="120" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="typeof scope.row.qx_zb === 'number'">{{ scope.row.qx_zb }}%</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="占缺陷列数总比" width="120" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="typeof scope.row.qx_total_num === 'number'">{{ (scope.row.qx_total_num/tongjiData.qxSum ).toFixed(2)*100}}%</span>
|
|
|
+ <span v-if="typeof scope.row.qx_percentage === 'number'">{{ scope.row.qx_percentage}}%</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -483,8 +477,18 @@ export default {
|
|
|
methods: {
|
|
|
//医师工号复制
|
|
|
yiCodeCopy(value) {
|
|
|
- navigator.clipboard.writeText(value)
|
|
|
- this.$message.success('复制成功');
|
|
|
+ const textArea = document.createElement('textarea');
|
|
|
+ textArea.value = value;
|
|
|
+ textArea.style.position = 'fixed'; // 避免触发滚动条
|
|
|
+ document.body.appendChild(textArea);
|
|
|
+ textArea.select();
|
|
|
+ try {
|
|
|
+ document.execCommand('copy');
|
|
|
+ this.$message.success('复制成功');
|
|
|
+ } catch (err) {
|
|
|
+ this.$message.error('复制失败');
|
|
|
+ }
|
|
|
+ document.body.removeChild(textArea);
|
|
|
},
|
|
|
//医师排名排序
|
|
|
handleSortChange({ prop, order }){
|