347617796@qq.com hace 3 años
padre
commit
1efa7982f2
Se han modificado 1 ficheros con 13 adiciones y 9 borrados
  1. 13 9
      src/views/ranking/individual_statistics.vue

+ 13 - 9
src/views/ranking/individual_statistics.vue

@@ -43,7 +43,7 @@
 							<el-row :gutter="40" style="margin:0;padding:0;">
 								<el-col :span="24" class="user_info" style="display:flex;" v-loading="personnelMessage">
 									<div class="headimg fl" style=" margin: 0 10px 0 20%;">
-										<userImage  :img_url="personnel.img_url" :user_name="personnel.name" fontSize="1" width="50px" height="50px"></userImage>
+										<userImage :img_url="personnel.img_url" :user_name="personnel.name" fontSize="1" width="50px" height="50px"></userImage>
 									</div>
 									<div style="width:100%;">
 										<div
@@ -78,7 +78,6 @@
 										<br />
 										<span style="color:#606266;font-size:14px;padding-top:8px;display: inline-block;">{{ yearhORmontStr }}度A分</span>
 									</p>
-									<!-- <p style="text-align:center;cursor:pointer;margin: 0;"><b style="color:#26A2FF;font-size:27px;">{{authorityManagerHeaders.performance?authorityManagerHeaders.performance.review_point:'0'}}</b><br><span style="color:#606266;font-size:14px;padding-top:8px;display: inline-block;">绩效分</span></p> -->
 									<p style="text-align:center;cursor:pointer;margin: 0;">
 										<b style="color:#26A2FF;font-size:27px;">
 											{{
@@ -183,7 +182,10 @@
 											<!-- <el-table-column align="center" prop="create_time" label="创建时间" width="140"></el-table-column> -->
 											<el-table-column align="center" prop="point" label="积分" width="110">
 												<template slot-scope="scope">
-													<span>{{ scope.row.point > 0 ? '+' : '' }}{{ scope.row.point }} <span class="blue">{{getType(scope.row.pt_id)}}</span></span>
+													<span>
+														{{ scope.row.point > 0 ? '+' : '' }}{{ scope.row.point }}
+														<span class="blue">{{ getType(scope.row.pt_id) }}</span>
+													</span>
 												</template>
 											</el-table-column>
 										</el-table>
@@ -224,7 +226,10 @@
 											<!-- <el-table-column align="center" prop="create_time" label="创建时间" width="140"></el-table-column> -->
 											<el-table-column align="center" prop="point_mark" label="积分" width="110">
 												<template slot-scope="scope">
-													<span>{{ scope.row.point > 0 ? '+' : '' }}{{ scope.row.point }} <span class="blue">{{getType(scope.row.pt_id)}}</span></span>
+													<span>
+														{{ scope.row.point > 0 ? '+' : '' }}{{ scope.row.point }}
+														<span class="blue">{{ getType(scope.row.pt_id) }}</span>
+													</span>
 												</template>
 											</el-table-column>
 											<!-- <el-table-column align="center" prop="remark_data.rule" show-overflow-tooltip label="规则" width="180"></el-table-column> -->
@@ -246,7 +251,6 @@
 				</el-col>
 			</el-col>
 		</el-row>
-
 	</div>
 </template>
 <script>
@@ -393,13 +397,13 @@ export default {
 		this.executiveFunction();
 	},
 	methods: {
-		getType(id){
+		getType(id) {
 			return this.$getTyps(id).name;
 		},
-		
+
 		//获取员工列表
 		getEmployee() {
-			this.$axios('get', '/api/employee/index', { dept_id: 0, keywords: '', page: 1, page_size: 3000,is_official:1 })
+			this.$axios('get', '/api/employee/index', { dept_id: 0, keywords: '', page: 1, page_size: 3000, is_official: 1 })
 				.then(res => {
 					let list = res.data.data.list;
 					this.employee_map = list;
@@ -971,6 +975,6 @@ box-sizing: content-box;
 }
 .popperSPBOX {
 	max-width: calc(100vh - 400px);
-	background-color:#fff;
+	background-color: #fff;
 }
 </style>