walter 11 tháng trước cách đây
mục cha
commit
96bd4eb0dd

+ 4 - 5
src/components/Steps.vue

@@ -37,14 +37,13 @@
             </span>
           </template>
           <template slot="description" style="">
-            <el-descriptions >
+            <el-descriptions :column="1" size="small" border>
+              <el-descriptions-item v-if="item.time" label="时间">{{item.time}}</el-descriptions-item>
               <el-descriptions-item label="姓名">{{item.name}}</el-descriptions-item>
-              <el-descriptions-item label="申请分值">{{item.point ? item.point : ''}}</el-descriptions-item>
+              <el-descriptions-item v-if="item.point" label="申请分值" >{{item.point ? item.point : ''}}</el-descriptions-item>
               <el-descriptions-item v-if="index > 0" label="发放奖票">{{item.ticket_count ? '是' :'否'}}</el-descriptions-item>
-              <el-descriptions-item v-if="item.remark !== '发起'" label="审批分值">{{item.review_point ? item.review_point : ''}}</el-descriptions-item>
+              <el-descriptions-item v-if="item.remark !== '发起' && item.review_point" label="审批分值">{{item.review_point ? item.review_point : ''}}</el-descriptions-item>
               <el-descriptions-item v-if="item.review_remark" label="备注">{{item.review_remark}}</el-descriptions-item>
-              <el-descriptions-item v-if="item.time" label="时间">{{item.time}}</el-descriptions-item>
-
             </el-descriptions>
 
 <!--            <div class="fontColorB" style="margin: 5px 0;">{{ item.review_remark }}</div>-->

+ 1 - 1
src/point/views/common/rewardTask.vue

@@ -88,7 +88,7 @@
               @change="scheduleExpireDateChange"
               @input="scheduleExpireDateInput"
             ></el-date-picker>
-            <el-tooltip placement="right" content="设置该选项,重复悬赏任务到了当该日期不再自动发布。默认一直重复发布悬赏" style="margin-left: 10px"><span class="tips">?</span></el-tooltip>
+            <el-tooltip placement="right" content="设置此选项,到了有效日期不再自动发布。默认一直重复发布悬赏" style="margin-left: 10px"><span class="tips">?</span></el-tooltip>
           </el-form-item>
 
           <el-form-item label="任务备注" prop="task_remark" :rules="[{ max: 300, message: '长度不能超过 300 个字'}]">

+ 1 - 1
src/point/views/common/temporaryTask.vue

@@ -87,7 +87,7 @@
               @change="scheduleExpireDateChange"
               @input="scheduleExpireDateInput"
             ></el-date-picker>
-            <el-tooltip placement="right" content="设置该选项,到了当该日期不再自动发布任务。默认一直重复发布任务" style="margin-left: 10px"><span class="tips">?</span></el-tooltip>
+            <el-tooltip placement="right" content="设置此选项,到了有效日期不再自动发布。默认一直重复发布任务" style="margin-left: 10px"><span class="tips">?</span></el-tooltip>
           </el-form-item>
 
           <el-form-item label="任务备注" prop="task_remark" :rules="[{ max: 300, message: '长度不能超过 300 个字'}]">

+ 2 - 2
src/point/views/pointHome.vue

@@ -186,7 +186,7 @@
             <div class="flex-box-ce">
               <div class="flex-1">
                 <b class="title">
-                  部门排名
+                  部门对比
                   <el-tooltip placement="top">
                     <div slot="content">统计同级部门积分数据</div>
                     <i class="el-icon-question fontColorC"></i>
@@ -237,7 +237,7 @@
                   placeholder="规则分类"
                 />
               </el-form-item>
-              <el-form-item label="子分类">
+              <el-form-item label="子规则分类">
                 <el-checkbox v-model="deptRankForm.ruleIncludeSub">包含</el-checkbox>
               </el-form-item>
               <el-form-item label="积分类型">

+ 1 - 1
src/point/views/statistics/integral_event.vue

@@ -37,7 +37,7 @@
         </div>
         <div class="sleItem">
           <span class="label">积分类型</span>
-          <el-select class="date-picker-width" v-model="formData.pt_id" clearable placeholder="请选择积分分类">
+          <el-select class="date-picker-width" v-model="formData.pt_id" clearable placeholder="全部">
             <el-option v-for="item in $getTyps()" :key="item.name" :label="item.name" :value="item.id"></el-option>
           </el-select>
         </div>

+ 6 - 1
src/point/views/statistics/integral_event_two.vue

@@ -2,7 +2,8 @@
 	<div>
 		<div class="all boxMinHeight">
 			<header class="flex-box-ce" style="padding-bottom: 20px;">
-				<el-link :underline="false" :disabled="loading" class="fh" @click="$router.go(-1)">返回</el-link>
+<!--				<el-link :underline="false" :disabled="loading" class="fh" @click="$router.go(-1)">返回</el-link>-->
+				<el-link :underline="false" :disabled="loading" class="fh" @click="goBack">返回</el-link>
 				<div>{{parameter.name}}的奖扣执行明细</div>
 			</header>
 			<el-form ref="form" :inline="true" label-width="80px">
@@ -388,6 +389,10 @@ export default {
       this.page = 1;
 			this.get_integral_list();
 		},
+    goBack(){
+      let source = this.parameter.source ? this.parameter.source : 'target';
+      this.$router.replace({path : '/manager_statistics', query : {tag : source}});
+    }
 	},
 	beforeRouteLeave(to, from, next) {
 		this.$socketApiTow.closewebsocket();

+ 20 - 9
src/point/views/statistics/managerStatisticsV2.vue

@@ -21,7 +21,7 @@
           </el-form-item>
           <!--     关键字     -->
           <el-form-item class="persons_names">
-            <el-input v-model="formData.keyword" :clearable="true" placeholder="输入同事姓名" max="200" class="persons_name" @clear="keywordSearch" >
+            <el-input v-model="formData.keyword" :clearable="true" placeholder="搜索姓名" max="200" class="persons_name" @clear="keywordSearch" >
               <el-button slot="append" icon="el-icon-search" @click="keywordSearch"></el-button>
             </el-input>
           </el-form-item>
@@ -54,7 +54,7 @@
             />
           </el-form-item>
 <!--     达标选项     -->
-          <el-form-item v-if="currentTag === 'target'" label="查看达标员工" >
+          <el-form-item v-if="currentTag === 'target'" label="只看全部达标的" >
             <el-checkbox v-model="formData.complete" size="medium" />
           </el-form-item>
           <el-form-item>
@@ -144,7 +144,7 @@
           </el-table-column>
           <el-table-column label="奖分" prop="reward_point" />
           <el-table-column label="扣分" prop="deduction_point"/>
-          <el-table-column label="奖扣比例" prop="ratio"/>
+          <el-table-column label="奖扣比例" prop="ratio" :formatter="ratioFormatter"/>
           <el-table-column label="奖扣人次" prop="exec" />
         </el-table>
         <center style="padding: 20px 0;">
@@ -236,6 +236,10 @@ export default {
       downloadData:[]
     }
   },
+  created() {
+    this.currentTag = this.$route.query.tag || 'target';
+    if (['target','search'].indexOf(this.currentTag) < 0) this.currentTag = 'target';
+  },
   computed:{
     downloadFields: function (){
       return this.currentTag === 'target' ? this.downloadTargetFields : this.downloadSearchFields;
@@ -297,6 +301,7 @@ export default {
     currentTag(val,oVal){
       if (val === oVal) return;
       this.getList();
+      // this.$router.push({path: '/manager_statistics',query:{tag:val}})
     },
     timeScope(val,oVal){
       this.formData.startDate = val[0];
@@ -423,7 +428,7 @@ export default {
         if (msg.page === 0){
           self.downloadData = self.search.list.map((item) => {
             let i = self.parseDownloadDataSearch(item);
-            i.timeScope = msg.start_date + "-" + msg.end_date;
+            i.timeScope = msg.start_date + "" + msg.end_date;
             return i;
           });
           self.loading = false;
@@ -433,7 +438,7 @@ export default {
             if (res.type !== msg.type || res.code !== 1) return;
             self.downloadData = res.result.list.map((item) => {
               let i = self.parseDownloadDataSearch(item);
-              i.timeScope = msg.start_date + "-" + msg.end_date;
+              i.timeScope = msg.start_date + "" + msg.end_date;
               return i;
             });
             self.loading = false;
@@ -465,7 +470,8 @@ export default {
       this.openDetail({
         date:this.formData.month,
         id:e.id,
-        name:e.name
+        name:e.name,
+        source:'target',
       });
     },
     openDetailSearch(e){
@@ -473,12 +479,17 @@ export default {
         startDate:this.formData.startDate,
         endDate:this.formData.endDate,
         id:e.id,
-        name:e.name
+        name:e.name,
+        source:'search',
       });
     },
     openDetail(data){
-      this.$router.push({path:'/integral_event_two',query:{data:JSON.stringify(data)}})
-    }
+      // this.$router.push({path:'/integral_event_two',query:{data:JSON.stringify(data)}})
+      this.$router.replace({path:'/integral_event_two',query:{data:JSON.stringify(data)}});
+    },
+    ratioFormatter(row, column, cellValue, index){
+      return cellValue ? cellValue : '--';
+    },
   }
 }