Browse Source

绩效系统,批量录入结果值,多条件筛选,关联OKR

manywhy 3 tháng trước cách đây
mục cha
commit
dcd46cd37f
27 tập tin đã thay đổi với 853 bổ sung5091 xóa
  1. 1 1
      build/webpack.base.conf.js
  2. BIN
      dist.rar
  3. BIN
      gdy_pc_8.rar
  4. 2 1
      package.json
  5. BIN
      src/assets/perform/gs1.jpg
  6. BIN
      src/assets/perform/gs2.jpg
  7. BIN
      src/assets/perform/gs3.jpg
  8. BIN
      src/assets/perform/gs4.jpg
  9. 0 1478
      src/performance/components/evaluate/Template copy.vue
  10. 9 9
      src/performance/components/evaluate/Template.vue
  11. 0 578
      src/performance/views/assessManagement/TargetListComp copy.vue
  12. 24 27
      src/performance/views/assessManagement/TargetListComp.vue
  13. 21 19
      src/performance/views/assessManagement/TargetSearch.vue
  14. 36 36
      src/performance/views/assessManagement/assessDetails.vue
  15. 0 151
      src/performance/views/assessManagement/assessManagement copy.vue
  16. 101 47
      src/performance/views/assessManagement/assessManagement.vue
  17. 2 3
      src/performance/views/assessManagement/evaluateSet.vue
  18. 0 2619
      src/performance/views/assessManagement/staffAssDet copy.vue
  19. 5 0
      src/performance/views/assessManagement/staffAssDet.vue
  20. 20 19
      src/performance/views/myPerformance/adjustment.vue
  21. 17 14
      src/performance/views/myPerformance/adjustment2.vue
  22. 15 2
      src/performance/views/myPerformance/resultSetAll.vue
  23. 16 2
      src/performance/views/myPerformance/resultSetAll2.vue
  24. 92 0
      src/performance/views/statement/Export2Excel.js
  25. 372 0
      src/performance/views/statement/statistics copy.vue
  26. 119 84
      src/performance/views/statement/statistics.vue
  27. 1 1
      src/router/performanceRouter.js

+ 1 - 1
build/webpack.base.conf.js

@@ -25,7 +25,7 @@ module.exports = {
   resolve: {
     extensions: ['.js', '.vue', '.json'],
     alias: {
-      '@': resolve('src')
+      '@': resolve('src'),
     }
   },
   module: {

BIN
dist.rar


BIN
gdy_pc_8.rar


+ 2 - 1
package.json

@@ -61,7 +61,8 @@
     "vue-seamless-scroll": "^1.1.23",
     "vue-shepherd": "^3.0.0",
     "vuex": "^3.6.2",
-    "xlsx": "^0.17.5"
+    "xlsx": "^0.17.5",
+    "xlsx-style": "^0.8.13"
   },
   "devDependencies": {
     "autoprefixer": "8.5.0",

BIN
src/assets/perform/gs1.jpg


BIN
src/assets/perform/gs2.jpg


BIN
src/assets/perform/gs3.jpg


BIN
src/assets/perform/gs4.jpg


+ 0 - 1478
src/performance/components/evaluate/Template copy.vue

@@ -1,1478 +0,0 @@
-<template>
-  <div class="all" v-loading="indexLoading">
-    <div class="content">
-      <div class="title">总分计算公式</div>
-      <div class="flex-box-ce" style="width: 100%;">
-        <div class="flex-1 message flex-box-v flex-center-center">
-          <template v-if="ruleForm.calc_type == 1">
-            <div class="message-text">
-              <span v-if="ruleForm.calc_dimension">总分=评分 X 维度权重,再累加</span>
-              <span v-else>总分=评分直接累加</span>
-            </div>
-          </template>
-          <template v-if="ruleForm.calc_type == 2">
-            <div class="message-text">
-              <span v-if="ruleForm.calc_dimension">总分=评分 X 维度权重 X 指标权重,再累加</span>
-              <span v-else>总分=评分 X 指标权重,再累加</span>
-            </div>
-          </template>
-          <el-popover placement="bottom" width="500" trigger="hover">
-            <div style="padding: 10px;">
-              <div class="flex-box-ce popover-text">
-                <template v-if="ruleForm.calc_type == 1">
-                  <div class="fontColorB">
-                    <span v-if="ruleForm.calc_dimension">
-                      <span class="blue" slot="reference">示例</span>
-                      总分=评分 X 维度权重,再累加
-                    </span>
-                    <span v-else>
-                      <span class="blue" slot="reference">示例</span>
-                      总分=评分直接累加
-                    </span>
-                  </div>
-                </template>
-                <template v-if="ruleForm.calc_type == 2">
-                  <div class="fontColorB">
-                    <span v-if="ruleForm.calc_dimension">
-                      <span class="blue" slot="reference">示例</span>
-                      总分=评分 X 维度权重 X 指标权重,再累加
-                    </span>
-                    <span v-else>
-                      <span class="blue" slot="reference">示例</span>
-                      总分=评分 X 指标权重,再累加
-                    </span>
-                  </div>
-                </template>
-              </div>
-            </div>
-            <template v-if="ruleForm.calc_type == 1">
-              <img v-if="ruleForm.calc_dimension" src="static/images/gs3.png" class="popover-img" style="height: auto;" />
-              <img v-else src="static/images/gs4.png" class="popover-img" style="height: auto;" />
-            </template>
-            <template v-if="ruleForm.calc_type == 2">
-              <img v-if="ruleForm.calc_dimension" src="static/images/gs1.png" class="popover-img" style="height: auto;" />
-              <img v-else src="static/images/gs2.png" class="popover-img" style="height: auto;" />
-            </template>
-            <span class="blue" slot="reference">示例</span>
-          </el-popover>
-        </div>
-        <div class="flex-box-v flex-center-center fontColorB" style="padding: 0 20px;height: 100px;">
-          <div style="font-size: 14px;margin-bottom: 5px;">修改总分计算公式</div>
-          <div><i class="el-icon-d-arrow-right" style="font-size: 18px;"></i></div>
-        </div>
-        <div class="flex-1 message">
-          <el-form ref="detailForm" label-width="150px">
-            <el-form-item label="指标评分计算方式" style="margin-bottom: 0px;margin-top: 15px;">
-              <el-radio-group v-model="ruleForm.calc_type">
-                <el-radio :label="1">加和计算</el-radio>
-                <el-radio :label="2">加权计算</el-radio>
-             </el-radio-group>
-            </el-form-item>
-            <el-form-item label="维度权重参与计算" style="margin-bottom: 0px;">
-              <el-switch v-model="ruleForm.calc_dimension" :active-value="1" :inactive-value="0">备选项</el-switch>
-            </el-form-item>
-          </el-form>
-        </div>
-      </div>
-    </div>
-    <div class="flex-box-ce pop-up">
-      <el-button type="primary" @click="addDimensionality = true">
-        <i class="el-icon-plus"></i>
-        添加考核维度
-      </el-button>
-      <div class="fontColorB" style="margin-left: 20px;" v-if="dimensionalityList.length > 0">
-        共 <span class="blue">{{ sumText.num }}</span> 个维度
-        <span v-if="ruleForm.calc_dimension == 1">
-          ,所有维度权重合计:
-          <span style="font-weight: 600;color: #222;">{{ sumText.val }}</span>
-          %
-        </span>
-      </div>
-    </div>
-
-    <div class="wds" v-for="(item, index) in dimensionalityList" :key="index">
-      <div class="wd-header">
-        <div class="flex-box-ce wd-title">
-          <div class="flex-1 fontColorA" style="font-size: 18px;">{{ item.name }}</div>
-          <div class="flex-box-ce titles">
-            <div v-if="item.index_type == 1">量化指标</div>
-            <div v-if="item.index_type == 2">非量化指标</div>
-            <div v-if="item.index_type == 3">额外加分项</div>
-            <div v-if="item.index_type == 4">额外扣分项</div>
-            <div v-if="item.index_type != 3 && item.index_type != 4 && ruleForm.calc_dimension == 1">维度权重{{ item.dimension_weight }}%</div>
-          </div>
-          <el-tooltip effect="dark" content="编辑维度" placement="top"><i class="el-icon-edit" @click="compileItem(item, index)" style="margin-right: 10px;"></i></el-tooltip>
-          <el-tooltip effect="dark" content="删除维度" placement="top"><i class="el-icon-delete-solid" @click="deleteItem(item, index)"></i></el-tooltip>
-        </div>
-      </div>
-      <el-table :data="item.index" style="width: 100%;" border >
-        <el-table-column prop="name" label="指标名称" align="center" width="200">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.name" placeholder="请输入指标名称" clearable></el-input>
-          </template>
-          
-        </el-table-column>
-        <el-table-column prop="per_remark" align="center" :label="item.index_type == 3 || item.index_type == 4 ? (item.index_type == 3 ? '加分标准' : '扣分标准') : '考核标准'" width="200">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.per_remark"  clearable></el-input>
-              <!-- <PreBox :value="scope.row.per_remark"></PreBox> -->
-          </template>
-        </el-table-column>
-        <el-table-column v-if="item.index_type == 3 || item.index_type == 4" prop="point_limit" align="center" :label="item.index_type == 3 ? '加分上限' : '扣分上限'" width="200">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.point_limit"  clearable></el-input>
-          </template>
-        </el-table-column>
-        <el-table-column v-if="item.index_type == 1" prop="target" align="center" label="目标值" width="200">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.target"  clearable></el-input>
-          </template>
-        </el-table-column>
-        <el-table-column v-if="item.index_type == 1" prop="unit" label="量化指标单位" align="center" width="200">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.unit" clearable></el-input>
-          </template>
-        </el-table-column>
-        <el-table-column v-if="item.index_type == 1 || item.index_type == 2" prop="weight" label="权重(%)" align="center" width="200">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.weight" clearable>
-              <template slot="append">%</template>
-            </el-input>
-          </template>
-        </el-table-column>
-        <el-table-column  prop="result_type" label="结果值录入" align="center" width="200">
-          <template slot-scope="scope" width="200">
-            <el-select v-model="scope.row.result_type" @change="changeResultType(scope, index)">
-              <el-option value="none" label="不开启"></el-option>
-              <el-option value="self" label="被考核人"></el-option>
-              <el-option value="special" label="指定员工"></el-option>
-              <el-option value="supervisor" label="直接管理员"></el-option>
-            </el-select>
-          </template>
-        </el-table-column>
-        <el-table-column prop="remark" label="备注" width="200" align="center">
-          <template slot-scope="scope">
-            <el-input class="item" v-model="scope.row.remark" clearable>
-            </el-input>
-          </template>
-        </el-table-column>
-        <el-table-column prop="auto_calculation" label="自动算分" width="200" align="center">
-          <template slot-scope="scope">
-            <el-switch v-model="scope.row.auto_calculation" :disabled="scope.row.result_type == 'none'" :active-value="1" :inactive-value="0"></el-switch>
-          </template>
-        </el-table-column>
-
-        <el-table-column prop="reviewer_name" label="开启指定评分人" width="200" align="center">
-          <template slot-scope="scope">
-            <el-switch v-model="scope.row.auto_calculation" :disabled="scope.row.result_type == 'none'" :active-value="1" :inactive-value="0"></el-switch>
-          </template>
-        </el-table-column>
-        <el-table-column prop="reviewer_name" label="指定评分人" width="200"></el-table-column>
-        <el-table-column prop="reviewer_name" label="管理记录人" width="200"></el-table-column>
-        <el-table-column prop="reviewer_name" label="评级列表" width="200"></el-table-column>
-        <el-table-column label="操作" align="center" fixed="right" width="100">
-          <template slot-scope="scope">
-            <el-button @click="compileIndex(scope, index)" type="text" >编辑</el-button>
-            <el-button @click="deleteIndex(scope, index)" type="text" >删除</el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <div class="wd-footer flex-box-ce">
-        <div class="flex-box flex-1">
-          <!-- <el-button class="primaryBtn" @click="selectIndex(item, index)">
-            <i class="el-icon-s-operation blue"></i>
-            选择指标项
-          </el-button> -->
-          <el-button class="primaryBtn" @click="addIndex(item, index)">
-            <i class="el-icon-plus blue"></i>
-            增加指标项
-          </el-button>
-        </div>
-        <div class="orange" style="font-size: 16px;font-weight: 700;">
-          共
-          <span class="blue">{{ getIndexNum(index, 1) }}</span>
-          项指标
-          <span v-if="item.index_type == 1 || item.index_type == 2">
-            ,所有指标权重合计:
-            <span style="font-weight: 600;color: #222;">{{ getIndexNum(index, 2) }}</span>
-            %
-          </span>
-        </div>
-      </div>
-    </div>
-
-    <!-- 提示弹窗 -->
-    <el-dialog
-      :title="ruleForm.calc_type == 1 ? '维度权重参与计算(加和)' : '维度权重参与计算(加权)'"
-      :visible.sync="dialogVisible"
-      width="500px"
-      :show-close="false"
-      :close-on-click-modal="false"
-    >
-      <el-alert type="warning" :closable="false" show-icon style="margin: 20px 0;">
-        <p><b>请谨慎启用<维度权重参与计算>,如不符合以下条件,请勿启用</b></p>
-        <li class="headLi" style="margin-bottom: 10px;">- 必须保证每个考核维度内的指标权重总和为100%</li>
-        <li class="headLi">- 维度权重会参与计算得分,可参考下图</li>
-      </el-alert>
-      <img src="static/images/gs3.png" v-if="ruleForm.calc_type == 1" style="width: 100%;height: auto;" />
-      <img src="static/images/gs1.png" v-else style="width: 100%;height: auto;" />
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="ruleForm.calc_dimension = 0">不启用</el-button>
-        <el-button @click="dialogVisible = false">启用</el-button>
-      </span>
-    </el-dialog>
-
-    <!-- 新增指标 -->
-    <BrawerBox drawerTitle="指标设置" :showDrawer.sync="isAddIndex" :closeModal="false">
-      <template slot="main">
-        <el-form ref="saveAddIndex" :model="addIndexForm" :rules="addIndexFormRule" @submit.native.prevent label-width="120px">
-          <el-form-item label="指标类型:" prop="type">
-            <el-select v-model="addIndexForm.type" disabled placeholder="请选择指标类型" class="width-250">
-              <el-option label="量化指标" :value="1"></el-option>
-              <el-option label="非量化指标" :value="2"></el-option>
-              <el-option label="额外加分项" :value="3"></el-option>
-              <el-option label="额外扣分项" :value="4"></el-option>
-            </el-select>
-          </el-form-item>
-          <el-form-item label="指标名称:" prop="name">
-            <el-input v-model="addIndexForm.name" placeholder="请输入指标名称" maxlength="30" show-word-limit></el-input>
-          </el-form-item>
-          <el-form-item :label="fromName" prop="per_remark">
-            <el-input type="textarea" placeholder="请输入" v-model="addIndexForm.per_remark" autosize clearable show-word-limit maxlength="500"></el-input>
-          </el-form-item>
-          <el-form-item label="加分上限" prop="point_limit" v-if="addIndexForm.type == 3">
-            <el-input placeholder="请输入加分上限" v-model="addIndexForm.point_limit" id="input3" @input="checkCountry2('input3')"></el-input>
-          </el-form-item>
-          <el-form-item label="扣分上限" prop="point_limit" v-if="addIndexForm.type == 4">
-            <el-input placeholder="请输入扣分上限" v-model="addIndexForm.point_limit" id="input4" @input="checkCountry2('input4')"></el-input>
-          </el-form-item>
-          <el-form-item label="目标值:" prop="target"v-if="addIndexForm.type == 1">
-            <el-input v-model="addIndexForm.target" placeholder="请输入目标值"></el-input>
-          </el-form-item>
-          <el-form-item label="量化指标单位:" prop="unit" v-if="addIndexForm.type == 1">
-            <el-input v-model="addIndexForm.unit" placeholder="请输入量化指标单位"></el-input>
-          </el-form-item>
-          <el-form-item >
-              <template slot="label">
-                <span>结果值录入:</span>
-                <el-tooltip effect="dark" placement="top">
-                  <template slot="content">
-                    结果值用来记录考核周期内指标的实际完成情况<br/>
-                    开启后,评分前需要先录入结果值,否则不能评分<br/>
-                    量化指标必须填写结果值<br/>
-                    其他类型指标必须提供结果附件作为凭据
-                  </template>
-                  <i class="el-icon-warning"></i>
-                </el-tooltip>
-              </template>
-            <el-select v-model="addIndexForm.result_type" placeholder="请选择指标类型" class="width-250">
-              <el-option label="不开启" value="none"></el-option>
-              <el-option label="被考核人" value="self"></el-option>
-              <el-option label="指定员工" value="special"></el-option>
-              <el-option label="直接管理员" value="supervisor"></el-option>
-            </el-select>
-            <div v-if="addIndexForm.result_type == 'special'" style="position: relative; margin-top: 10px;"  class="width-250">
-              <el-input v-model="assignUser.name" placeholder="请选择指定员工"></el-input>
-              <div @click="addUser(1)" class="inputDc"></div>
-            </div>
-          </el-form-item>
-          <el-form-item label="权重:" prop="weight" v-if="addIndexForm.type == 2 || addIndexForm.type == 1">
-            <el-input placeholder="请输入权重(1~100)" id="input2" @input="checkCountry('input2')" v-model.number="addIndexForm.weight">
-              <template slot="append">
-                %
-              </template>
-            </el-input>
-          </el-form-item>
-          <el-form-item label="备注:" prop="remark">
-            <el-input type="textarea" placeholder="请输入" v-model="addIndexForm.remark" :rows="4" show-word-limit maxlength="500"></el-input>
-          </el-form-item>
-          <el-form-item label="自动算分" v-if="addIndexForm.type == 1">
-              <template slot="label">
-                <span>自动算分:</span>
-                <el-tooltip effect="dark" placement="top">
-                  <template slot="content">
-                    <div>需开启结果值录入</div>
-                  </template>
-                  <i class="el-icon-warning"></i>
-                </el-tooltip>
-              </template>
-              <el-switch v-model="addIndexForm.expression.auto_calculation" :disabled="addIndexForm.result_type=='none'" :active-value="1" :inactive-value="0"></el-switch>
-              <div v-if="addIndexForm.expression.auto_calculation==1" class="pointBox">
-                 <div v-if="addIndexForm.expression.expression" style="padding: 10px;padding-top: 0;">
-                    <div class="flex-box-ce">
-                      <div class="flex-1">评分公式</div>
-                      <div class="blue" style="cursor: pointer;" @click="isShowTestCalculate=true">测试计算公式</div>
-                    </div>
-                    <div @click="isE=true" v-html="expressionStr" style="background-color: #f1f1f1;padding: 10px;text-align: left;border-radius: 5px;cursor: pointer;"></div>
-                  </div>
-                  <div  v-else class="blue" style="text-align: center;padding-top: 30px;cursor: pointer;" @click="isE=true">设置评分计算方式</div>
-              </div>
-
-              <div class="fontColorC" style="line-height: 24px;">开启后,系统将根据评分公式自动计算指标得分,供评分人参考实现快速评分</div>
-          </el-form-item>
-          <el-form-item label="开启指定评分人:" prop="isReviewer">
-            <el-switch v-model="addIndexForm.isReviewer"></el-switch>
-            <div style="position: relative;" v-if="addIndexForm.isReviewer">
-              <el-input v-model="assignScoreUser.name" placeholder="请选择评分人" class="width-250"></el-input>
-              <div @click="addUser(2)" class="inputDc"></div>
-            </div>
-          </el-form-item>
-          <el-form-item label="管理记录人" prop="employee_ids">
-            <div class="border flex-box-ce">
-              <div class="flex-1" v-if="record_ids.length == 0">请选择记录人</div>
-              <div v-else style="width: 250px;" class="font-flex-word">
-                <span v-for="(item, index) in record_ids" :key="index">
-                  <i v-if="index != 0">,</i>{{ item.name }}
-                </span>
-              </div>
-              <span v-if="record_ids.length >0" class="blue">{{record_ids.length}}人</span>
-              <i class="el-icon-arrow-down icon-right" v-else></i>
-              <div @click="isShowRecordFun()" class="inputDc"></div>
-            </div>
-          </el-form-item>
-        </el-form>
-        <div>
-          <span style="font-weight: 600;font-size: 14px;color: #606266;">按分数展示对应的评级:</span>
-          <el-select v-model="addIndexForm.index_level_id" @change="levelReadOnly" filterable clearable placeholder="请选择对应的评级">
-            <el-option
-              v-for="item in levelOptions"
-              :key="item.id"
-              :label="item.name"
-              :value="item.id">
-            </el-option>
-          </el-select>
-        </div>
-        <ClassSet v-if="addIndexForm.index_level_id!=0&&getIs" ref="ClassSet" :readOnly="true" :inputs="inputs" style="padding-top: 20px;" :inputsStyle="{paddingLeft:'0px',width: '450px'}"></ClassSet>
-      </template>
-      <template slot="footer">
-        <el-button plain @click="closeAddIndexForm('saveAddIndex')">取消</el-button>
-        <el-button type="primary" @click="saveAddIndex('saveAddIndex', 1)" v-if="isSave">提交</el-button>
-        <el-button type="primary" @click="saveAddIndex('saveAddIndex', 2)" v-else>保存</el-button>
-      </template>
-    </BrawerBox>
-
-    <!-- 选择指标项 -->
-    <BrawerBox drawerTitle="选择指标项" :showDrawer.sync="isSelectIndex">
-      <template slot="main">
-        <div class="flex-box-ce">
-          <el-select v-model="cate_id" filterable placeholder="请选择或搜索分类" class="flex-2">
-            <el-option v-for="item in indexTypeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
-          </el-select>
-          <el-select v-model="tabIds" multiple placeholder="标签搜索" class="flex-1" style="margin-left: 10px;" v-if="tabs.length > 0">
-            <el-option v-for="item in tabs" :key="item.id" :label="item.name" :value="item.id"></el-option>
-          </el-select>
-        </div>
-        <template v-if="indexList.length > 0">
-          <div class="flex-box-ce li" style="margin-top: 20px;"><el-checkbox class="flex-box-ce" v-model="isAllSelectIndex" label="全选"></el-checkbox></div>
-          <div class="infinite-list-wrapper scroll-bar">
-              <ul class="ul" v-loading="indexLoading2" v-infinite-scroll="load" infinite-scroll-disabled="disabled">
-                <li v-for="(item, index) in indexList" :key="index" class="flex-box li">
-                  <el-checkbox class="flex-box-ce" v-model="item.check" :label="item.name">
-                    <div>
-                      <div>
-						  <i class="el-icon-pie-chart blue" v-if="item.enable_ds == 1"></i>
-						  {{item.name}}
-					  </div>
-                      <div class="fontColorD" style="font-size: 12px; width: ;">{{item.cate_name}}</div>
-                    </div>
-                  </el-checkbox>
-                </li>
-                <div class="fontColorC" style="text-align: center;padding: 10px 0;font-size: 12px;">没有更多了</div>
-              </ul>
-          </div>
-        </template>
-        <NoData v-else></NoData>
-      </template>
-      <template slot="footer">
-        <el-button plain @click="isSelectIndex = false">取消</el-button>
-        <el-button type="primary" :loading="indexLoading2" @click="selectCate()">确定</el-button>
-      </template>
-    </BrawerBox>
-
-    <!-- 添加维度 -->
-    <BrawerBox drawerTitle="维度设置" :showDrawer.sync="addDimensionality" :closeModal="false">
-      <template slot="main">
-        <el-form ref="detailForm" :model="dimensionalityForm" @submit.native.prevent label-width="150px" class="detailForm">
-          <el-form-item prop="name" label="维度名称:" :rules="[{ required: true, message: '维度名称不能为空' }]">
-            <el-input type="textarea" v-model="dimensionalityForm.name" :rows="2" :autofocus="false" placeholder="请输入维度名称" class="width-250" clearable   maxlength="30" show-word-limit></el-input>
-          </el-form-item>
-          <el-form-item label="维度指标类型:">
-            <el-select v-model="dimensionalityForm.index_type" :disabled="compileWd" placeholder="请选择指标类型" class="width-250">
-              <el-option label="量化指标" :value="1"></el-option>
-              <el-option label="非量化指标" :value="2"></el-option>
-              <el-option label="额外加分项" :value="3"></el-option>
-              <el-option label="额外扣分项" :value="4"></el-option>
-            </el-select>
-          </el-form-item>
-          <el-form-item
-            label="维度权重:"
-            prop="dimension_weight"
-            :rules="[{ required: true, message: '维度权重不能为空' }]"
-            v-if="dimensionalityForm.index_type != 3 && dimensionalityForm.index_type != 4 && ruleForm.calc_dimension"
-          >
-            <el-input placeholder="请输入" v-model.number="dimensionalityForm.dimension_weight" @input="checkCountry('input')" class="width-250" id="input">
-              <el-button slot="append">%</el-button>
-            </el-input>
-          </el-form-item>
-        </el-form>
-      </template>
-      <template slot="footer">
-        <el-button plain @click="closeWd()">取消</el-button>
-        <el-button type="primary" @click="saveForm('detailForm')" v-if="compileWd">保存</el-button>
-        <el-button type="primary" @click="submitForm('detailForm')" v-else>提交</el-button>
-      </template>
-    </BrawerBox>
-
-    <!-- 评分人 -->
-    <EmployeeSelector :multi="false" :is_filtration_creator="false" :selected="selected" :isChecKedAll="false" :visible.sync="setAdministrator" @confirm="confirmAdministrator" />
-    <!-- 管理记录人 -->
-    <EmployeeSelector :is_filtration_creator="false" :selected="selected2"  :visible.sync="isShowRecord" @confirm="confirmAdministrator2"/>
-
-    <!-- 编辑公式 -->
-    <Equation :visible.sync="isE" :expression.sync="expression"></Equation>
-
-    <!-- 测试计算 -->
-    <TestCalculate :visible.sync="isShowTestCalculate" :str="expressionStr" :expression="expression.expression"></TestCalculate>
-  </div>
-</template>
-
-<script>
-import EmployeeSelector from '@/components/EmployeeSelector';
-import BrawerBox from '@/performance/components/public/BrawerBox';
-import ClassSet from '@/performance/components/public/ClassSet';
-import Equation from '@/performance/components/public/Equation';
-import TestCalculate from '@/performance/components/public/TestCalculate';
-import {getExpressionStr} from '@/performance/utils/auth'
-export default {
-  components: { EmployeeSelector, BrawerBox , ClassSet,Equation,TestCalculate},
-  name: 'Template',
-  props: {
-    data: {
-      type: Object,
-      default: {}
-    }
-  },
-  data() {
-    return {
-      inputs: [],//分值区间(只读)
-      levelOptions: [],//指标等级列表
-      loading: false,
-      compileWd: false, //编辑维度时控制是否可选择
-      dimension: true,
-      ruleForm: {
-        calc_type: 1, //指标评分计算方式 1-加和计算 2-加权计算
-        calc_dimension: 0 //是否维度权重参与计算 1-是 0-否
-      },
-      dialogVisible: false, //弹窗
-      addDimensionality: false, //显示添加维度
-      dimensionalityForm: {
-        name: '',
-        index_type: 1, //维度类型
-        dimension_weight: 100, //维度权重
-        index_num: 0, //所含指标数量
-        weight_type: '', //所含指标总权重
-        target_index: true, //制定目标时是否可以增加指标 1-可以 0-不可以
-        // all_dimension_index_weight:0,//维度内指标总权重数值
-        // total_weight:0,//所有维度所有指标总权重.
-        index: []
-      },
-      dimensionalityList: [],
-      selectItemIndex: 0, //选择的维度下标,
-      selectItemIndex_index: 0, //选择的指标下标,
-
-      indexLoading: false,
-      isSelectIndex: false, //选择指标弹窗控制
-      isAllSelectIndex: false, //是否全选指标
-      cate_id: 0,
-      indexType: 0, //指标分类
-      indexList: [],
-      indexTypeList: [],
-
-      indexLoading2: false,
-      indexPage:1,
-      isAfterLoading:false,//是否加载完
-
-      // 添加指标
-      selected2:{ employee: [], dept: [] },//已经选择人员
-      isAddIndex: false,
-      addIndexForm: {
-        // cate_id: '', //指标分类id
-        id: 0,
-        custom: 1,
-        name: '', //指标名称
-        per_remark: '', //考核标准
-        remark: '', //备注
-        type: '', //默认1 指标种类 1-量化指标 2-非量化指标 3-额外加分项 4-额外扣分项
-        unit: '', //量化指标单位
-        target: '', //目标值
-        result_type: 'none', //(结果值录入者设置,none-不开启 self-被考核人 special-指定员工 supervisor-指定主管’
-        result_employee_id: '', //结果值录入者id, 只有result_type为special时才需要指定
-        weight: '', //权重 0-100之间
-        reviewer_id: '', //指定审批人(评分人)id
-        point_limit: '', //分数上限,只对额外加分项以及额外扣分项有用
-        // tag_ids:'',//指标id 数组或逗号分割
-        // 自定义
-        isReviewer: false, //
-        index_level_id: '',//指标等级
-        record_ids:[],//管理记录人
-        expression:{
-          type: 1,                //1用户模式 2 开发者模式
-          logic_type: 1,        //1连续区间  2  列举  3  百分比加减   4 无条件
-          compare: 1,            //1  结果值  2 结果值/目标值 3结果值=目标值
-          reference: 1,            // 1手动输入   2选择系统字段
-          logic_section: [],            //连续区间的算分逻辑数组
-          logic_enum: [],            //列举的算分逻辑数组
-          logic_percent: [],            //百分比加减的算分逻辑数组
-          logic_eq: [],            //无条件的算分逻辑数组
-          expression: "",        //最终表达式
-          auto_calculation:0,   //是否开启表达式算分  0 否   1 是
-          scorer_change:1,        ////评分人是否允许修改  1 允许   2 不允许
-        }
-      },
-      record_ids:[],
-      isShowRecord:false,
-      fromName: '考核标准:',
-      assignUser: {}, //指定人员
-      assignScoreUser: {}, //指定评分人
-      selected: { employee: [], dept: [] }, //已经选择人员
-      setAdministrator: false,
-      isUserIndex: 1, //判断选择什么人,1是指定人员,2是评分人
-      isSave: true, //判断指标是提交还是编辑
-      addIndexFormRule: {
-        name: [{ required: true, message: '请输入指标名称'}, { min: 2, message: '最少2个字'}],
-        per_remark: [{ required: true, message: '请输入考核标准'}, { min: 2, message: '最少2个字'}],
-        weight: [{ required: true, message: '请输入权重'}]
-      },
-      ids: [], //需要过滤的指标ID
-      isTan: true,
-      sumText: {
-        num: 0,
-        val: 0
-      },
-      // 标签相关
-      tabs: [],
-      tabIds: [],
-
-      //自动计分
-      expression:{
-        type: 1,                //1用户模式 2 开发者模式
-        logic_type: 1,        //1连续区间  2  列举  3  百分比加减   4 无条件
-        compare: 1,            //1  结果值  2 结果值/目标值 3结果值=目标值
-        reference: 1,            // 1手动输入   2选择系统字段
-        logic_section: [],            //连续区间的算分逻辑数组
-        logic_enum: [],            //列举的算分逻辑数组
-        logic_percent: [],            //百分比加减的算分逻辑数组
-        logic_eq: [],            //无条件的算分逻辑数组
-        expression: "",        //最终表达式
-        auto_calculation:0,   //是否开启表达式算分  0 否   1 是
-        scorer_change:1,        ////评分人是否允许修改  1 允许   2 不允许
-      },
-      isE:false,
-      isShowTestCalculate:false,
-      expressionStr:'',//预览公式
-
-    };
-  },
-  watch: {
-    'addIndexForm.result_type'(val){
-      if(val=='none'){
-        this.addIndexForm.expression.auto_calculation=0;
-      }
-    },
-    isAllSelectIndex(val) {
-      this.indexList.forEach(item => {
-        item.check = val;
-      });
-    },
-    'addIndexForm.type'(val) {
-      if (val == 3) {
-        this.fromName = '加分标准:';
-      } else if (val == 4) {
-        this.fromName = '扣分标准:';
-      } else {
-        this.fromName = '考核标准:';
-      }
-    },
-    data(val) {
-      if (val.calc_type) {
-        this.recoverData();
-      }
-    },
-    'ruleForm.calc_dimension'(val) {
-      this.dialogVisible = false;
-      if (val == 1 && this.isTan) {
-        this.dialogVisible = true;
-      }
-    },
-    cate_id() {
-      this.indexPage=1;
-      this.isAfterLoading=false;
-      this.getIndexList();
-    },
-    isSelectIndex(val) {
-      //关闭选择指标时清空过滤的指标
-      if (!val) {
-        this.ids=[];
-        this.tabIds=[];
-        this.isAfterLoading=false;
-        this.isAllSelectIndex=false
-        this.cate_id=0
-        this.indexPage=1;
-      }
-    },
-    tabIds(val) {
-      this.indexPage=1;
-      this.isAfterLoading=false;
-      this.isAllSelectIndex=false
-      this.getIndexList();
-    },
-    record_ids(val) {
-       let ids=val.map(item=>{
-         return item.id
-       })
-       this.addIndexForm.record_ids = ids || '';
-    },
-    expression(val){
-      this.addIndexForm.expression=val;
-      this.expressionStr=getExpressionStr(this.expression);
-    },
-  },
-  created() {
-    this.getTagList();
-    this.getIndexType();
-    this.gradeSetList();
-  },
-  computed: {
-    getIs(){
-      if(this.levelOptions.length>0){
-        let is=false;
-        this.levelOptions.forEach(item=>{
-          if(item.id==this.addIndexForm.index_level_id){
-            is=true;
-          }
-        })
-        return is;
-      }else{
-        return false
-      }
-    },
-    disabled () {
-      return this.indexLoading2||this.isAfterLoading
-    },
-  },
-  methods: {
-
-    changeResultType(e, index) {
-      // console.log(v);
-      if(e.row.result_type == 'special') {
-        this.addUser(1);
-        this.selectItemIndex = index;
-        this.selectItemIndex_index = e.$index;
-        // console.log(this.assignUser);
-        // let index = {
-        //   id: this.addIndexForm.id ? this.addIndexForm.id : 0, //对应的指标库id,0-标识为自定义添加的指标
-        //   custom: this.addIndexForm.custom,
-        //   type: this.addIndexForm.type, //指标种类 1-量化指标 2-非量化指标 3-额外加分项 4-额外扣分项
-        //   name: this.addIndexForm.name, //指标名
-        //   per_remark: this.addIndexForm.per_remark, //考核标准,加分标准,扣分标准等说明
-        //   remark: this.addIndexForm.remark, //指标备注
-        //   target: this.addIndexForm.target, //目标值
-        //   unit: this.addIndexForm.unit, //量化指标单位
-        //   point_limit: this.addIndexForm.point_limit, //分数上限,只对额外加分项以及额外扣分项有用
-        //   weight: this.addIndexForm.weight, //权重 0-100之间
-        //   result_type: 'special', //结果值录入者设置,none-不开启 self-被考核人 special-指定员工 supervisor-指定主管)
-        //   // 当录入者是指定人员时才录入
-        //   result_employee_id: this.assignUser.id, //结果值录入者id,只有result_type为special时才需要指定
-        //   result_employee_name: this.assignUser.name,
-        // }
-        // this.dimensionalityList[this.selectItemIndex].index.splice(this.selectItemIndex_index, 1, index); //替换元素
-      }
-    },
-    isShowRecordFun(){
-      this.selected2.employee = this.record_ids;
-      this.isShowRecord=true;
-    },
-    confirmAdministrator2(e){
-      this.record_ids = e.employee.length > 0 ? e.employee : []
-    },
-    load () {
-      this.indexLoading2 = true
-      this.indexPage=this.indexPage+1;
-      setTimeout(() => {
-        this.getIndexList();
-        this.indexLoading2 = false
-      }, 500)
-    },
-    levelReadOnly(item){
-      var newArr = this.levelOptions.filter(function (obj) {
-          return obj.id == item;
-      });
-      if(newArr.length > 0){
-        this.islevel(newArr[0])
-      }
-    },
-    islevel(levels){
-      var inputs=[];
-      var max=0;//最大值
-      levels.scope.forEach((item,index)=>{
-        var obj;
-        if(index==0){
-          obj={name:item.name,max:Number(item.value),min:0};
-        }else{
-          obj={name:item.name,max:Number(item.value),min:max};//当不是第一个等级时,最小值为上一个的最大值
-        }
-        max=item.value;
-        inputs.push(obj);
-      })
-      this.$nextTick(()=>{
-        this.inputs=inputs
-      })
-    },
-    //指标等级列表
-    gradeSetList(){
-      this.$axiosUser('get', '/api/pro/per/index/level/list').then(res => {
-        if(res.data.code == 1){
-          let list = res.data.data.list
-          this.levelOptions = list
-        }
-      })
-    },
-    checkCountry2(str) {
-      //解决v-model与oninput同时使用失效问题
-      var dom = document.getElementById(str);
-      var value = dom.value;
-      //写你自己的输入规则
-      value = value.replace(/[^\d]/g, '');
-      dom.value = value; //输入框赋值
-      this.addIndexForm.point_limit = dom.value;
-    },
-    checkCountry(str) {
-      //解决v-model与oninput同时使用失效问题
-      var dom = document.getElementById(str);
-      var value = dom.value;
-      //写你自己的输入规则
-      value = value.replace(/[^\d]/g, '');
-      if (value > 100) {
-        str == 'input' ? (this.dimensionalityForm.dimension_weight = '') : (this.addIndexForm.weight = '');
-        this.$message.error('不能大于100');
-        return false;
-      }
-      dom.value = value; //输入框赋值
-      str == 'input' ? (this.dimensionalityForm.dimension_weight = dom.value) : (this.addIndexForm.weight = dom.value);
-    },
-    // 统计指标
-    getIndexNum(index, type) {
-      let num = this.dimensionalityList[index].index.length;
-      let val = 0;
-      if (type == 1) {
-        return num;
-      } else {
-        this.dimensionalityList[index].index.forEach(item => {
-          val += Number(item.weight);
-        });
-        return val;
-      }
-    },
-    // 统计维度
-    getNum() {
-      let num = this.dimensionalityList.length;
-      let val = 0;
-      this.dimensionalityList.forEach(item => {
-        if(item.index_type==1||item.index_type==2){
-          val += Number(item.dimension_weight);
-        }
-      });
-      this.sumText = {
-        num: num,
-        val: val
-      };
-    },
-    // 编辑时复原整个流程数据
-    recoverData() {
-      let data = this.data;
-      let employeeMap = this.$getEmployeeMapAll();
-      this.isTan = false;
-      this.ruleForm.calc_type = data.calc_type;
-      this.ruleForm.calc_dimension = data.calc_dimension;
-      data.dimension.forEach(item => {
-        if (item.index.length > 0) {
-          item.index.forEach(item2 => {
-            item2.result_employee_name = employeeMap[item2.result_employee_id] ? employeeMap[item2.result_employee_id].name : '';
-            item2.reviewer_name = employeeMap[item2.reviewer_id] ? employeeMap[item2.reviewer_id].name : '';
-          });
-        }
-      });
-      this.dimensionalityList = data.dimension;
-      this.$nextTick(() => {
-        setTimeout(() => {
-          this.isTan = true;
-          this.getNum();
-        }, 200);
-      });
-    },
-    // 保存||编辑指标
-    saveAddIndex(formName, val) {
-      this.$refs[formName].validate(valid => {
-        if (valid) {
-          if (this.addIndexForm.result_type == 'special') {
-            if (!this.assignUser.id) {
-              this.$message.error('请选择指定人员');
-              return;
-            }
-          }
-          if (this.addIndexForm.type == 3 || this.addIndexForm.type == 4) {
-            if (this.addIndexForm.point_limit === 0) {
-              this.$message.error('分数上限不能为0');
-              return;
-            }
-          }
-          if (this.addIndexForm.type == 1 || this.addIndexForm.type == 2) {
-            if (this.addIndexForm.weight == 0) {
-              this.$message.error('权重不能为0');
-              return;
-            }
-            if(this.addIndexForm.weight>100){
-              this.$message.error("权重不能大于100")
-              return
-            }
-          }
-          if (this.addIndexForm.isReviewer) {
-            if (!this.assignScoreUser.id) {
-              this.$message.error('请选择指定评分人');
-              return;
-            }
-          }
-          if(this.addIndexForm.type==1) {
-            if(this.addIndexForm.expression.auto_calculation==1 && !this.addIndexForm.expression.expression){
-              this.$message.error('请设置评分计算方式');
-              return;
-            }
-          }
-
-          var index = {
-            id: this.addIndexForm.id ? this.addIndexForm.id : 0, //对应的指标库id,0-标识为自定义添加的指标
-            custom: this.addIndexForm.custom,
-            type: this.addIndexForm.type, //指标种类 1-量化指标 2-非量化指标 3-额外加分项 4-额外扣分项
-            name: this.addIndexForm.name, //指标名
-            per_remark: this.addIndexForm.per_remark, //考核标准,加分标准,扣分标准等说明
-            remark: this.addIndexForm.remark, //指标备注
-            target: this.addIndexForm.target, //目标值
-            unit: this.addIndexForm.unit, //量化指标单位
-            point_limit: this.addIndexForm.point_limit, //分数上限,只对额外加分项以及额外扣分项有用
-            weight: this.addIndexForm.weight, //权重 0-100之间
-            result_type: this.addIndexForm.result_type, //结果值录入者设置,none-不开启 self-被考核人 special-指定员工 supervisor-指定主管)
-            index_level_id: this.addIndexForm.index_level_id,//指标等级
-            // 当录入者是指定人员时才录入
-            result_employee_id: this.addIndexForm.result_type == 'special' ? this.assignUser.id : '', //结果值录入者id,只有result_type为special时才需要指定
-            result_employee_name: this.addIndexForm.result_type == 'special' ? this.assignUser.name : '',
-
-            // 当开启了指定审批人时才录入值
-            reviewer_id: this.addIndexForm.isReviewer ? this.assignScoreUser.id : '', //指定审批人(评分人)id
-            reviewer_name: this.addIndexForm.isReviewer ? this.assignScoreUser.name : '', //指定审批人名称
-            record_ids:this.addIndexForm.record_ids.length>0? this.addIndexForm.record_ids:[],//指定跟踪管理记录人 数组
-            // 自动评分
-            expression:JSON.parse(JSON.stringify(this.expression)),
-          };
-          if (val == 1) {
-            this.dimensionalityList[this.selectItemIndex].index.push(index);
-          } else {
-            this.dimensionalityList[this.selectItemIndex].index.splice(this.selectItemIndex_index, 1, index); //替换元素
-          }
-          this.closeAddIndexForm(formName);
-        }
-      });
-    },
-    // 删除维度
-    deleteItem(e, index) {
-      this.$confirm('确定删除该维度所有内容,删除后无法恢复', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      })
-        .then(() => {
-          this.dimensionalityList.splice(index, 1);
-          this.getNum();
-        })
-        .catch(() => {});
-    },
-    // 编辑维度
-    compileItem(e, index) {
-      this.selectItemIndex = index;
-      this.dimensionalityForm = JSON.parse(JSON.stringify(e));
-      this.compileWd = true;
-      this.addDimensionality = true;
-    },
-    closeAddIndexForm(formName) {
-      // 清空数据
-      this.addIndexForm = {
-        id: 0,
-        custom: 1,
-        name: '', //指标名称
-        per_remark: '', //考核标准
-        remark: '', //备注
-        type: '', //默认1 指标种类 1-量化指标 2-非量化指标 3-额外加分项 4-额外扣分项
-        unit: '', //量化指标单位
-        target: '', //目标值
-        result_type: 'none', //(结果值录入者设置,none-不开启 self-被考核人 special-指定员工 supervisor-指定主管’
-        result_employee_id: '', //结果值录入者id, 只有result_type为special时才需要指定
-        weight: 0, //权重 0-100之间
-        reviewer_id: '', //指定审批人(评分人)id
-        point_limit: '', //分数上限,只对额外加分项以及额外扣分项有用
-        // tag_ids:'',//指标id 数组或逗号分割
-        // 自定义
-        isReviewer: false, //
-        index_level_id: '',
-        record_ids:[],
-        expression:{
-          type: 1,                //1用户模式 2 开发者模式
-          logic_type: 1,        //1连续区间  2  列举  3  百分比加减   4 无条件
-          compare: 1,            //1  结果值  2 结果值/目标值 3结果值=目标值
-          reference: 1,            // 1手动输入   2选择系统字段
-          logic_section: [],            //连续区间的算分逻辑数组
-          logic_enum: [],            //列举的算分逻辑数组
-          logic_percent: [],            //百分比加减的算分逻辑数组
-          logic_eq: [],            //无条件的算分逻辑数组
-          expression: "",        //最终表达式
-          auto_calculation:0,   //是否开启表达式算分  0 否   1 是
-          scorer_change:1,        ////评分人是否允许修改  1 允许   2 不允许
-        }
-      };
-      this.expression={
-        type: 1,                //1用户模式 2 开发者模式
-        logic_type: 1,        //1连续区间  2  列举  3  百分比加减   4 无条件
-        compare: 1,            //1  结果值  2 结果值/目标值 3结果值=目标值
-        reference: 1,            // 1手动输入   2选择系统字段
-        logic_section: [],            //连续区间的算分逻辑数组
-        logic_enum: [],            //列举的算分逻辑数组
-        logic_percent: [],            //百分比加减的算分逻辑数组
-        logic_eq: [],            //无条件的算分逻辑数组
-        expression: "",        //最终表达式
-        auto_calculation:0,   //是否开启表达式算分  0 否   1 是
-        scorer_change:1,        ////评分人是否允许修改  1 允许   2 不允许
-      };
-      this.assignUser = {}; //指定人员
-      this.assignScoreUser = {}; //指定评分人
-      this.record_ids=[];
-      this.isSave = true;
-      this.isAddIndex = false;
-    },
-    //添加指标
-    addIndex(e, index) {
-      this.selectItemIndex = index;
-      this.addIndexForm.type = e.index_type;
-      this.isAddIndex = true;
-    },
-    //选择指标
-    selectIndex(e, index) {
-      this.selectItemIndex = index;
-      this.indexType = e.index_type;
-      this.ids = e.index.map(item => {
-        //过滤已经选择的指标
-        return item.id;
-      });
-      this.indexLoading = true;
-      this.getIndexList(() => {
-        this.indexLoading = false;
-        this.isSelectIndex = true;
-      });
-    },
-    //删除指标
-    deleteIndex(e, index) {
-      this.$confirm('确定删除该指标', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      })
-        .then(() => {
-          this.dimensionalityList[index].index.splice(e.$index, 1);
-        })
-        .catch(() => {});
-    },
-    //编辑指标
-    compileIndex(e, index) {
-      this.selectItemIndex = index;
-      this.selectItemIndex_index = e.$index;
-      let obj = e.row;
-      this.addIndexForm = {
-        id: obj.id,
-        custom: obj.custom,
-        name: obj.name, //指标名称
-        per_remark: obj.per_remark, //考核标准
-        remark: obj.remark, //备注
-        type: obj.type, //默认1 指标种类 1-量化指标 2-非量化指标 3-额外加分项 4-额外扣分项
-        unit: obj.unit, //量化指标单位
-        target: obj.target, //目标值
-        result_type: obj.result_type, //(结果值录入者设置,none-不开启 self-被考核人 special-指定员工 supervisor-指定主管’
-        result_employee_id: obj.result_employee_id, //结果值录入者id, 只有result_type为special时才需要指定
-        weight: obj.weight, //权重 0-100之间
-        reviewer_id: obj.reviewer_id, //指定审批人(评分人)id
-        point_limit: obj.point_limit, //分数上限,只对额外加分项以及额外扣分项有用
-        index_level_id: obj.index_level_id? obj.index_level_id:'',
-        // 自定义
-        isReviewer: obj.reviewer_id ? true : false, //是否显示指定审批人
-        record_ids: obj.record_ids?obj.record_ids:[],
-        expression:{
-          type: 1,                //1用户模式 2 开发者模式
-          logic_type: 1,        //1连续区间  2  列举  3  百分比加减   4 无条件
-          compare: 1,            //1  结果值  2 结果值/目标值 3结果值=目标值
-          reference: 1,            // 1手动输入   2选择系统字段
-          logic_section: [],            //连续区间的算分逻辑数组
-          logic_enum: [],            //列举的算分逻辑数组
-          logic_percent: [],            //百分比加减的算分逻辑数组
-          logic_eq: [],            //无条件的算分逻辑数组
-          expression: "",        //最终表达式
-          auto_calculation:0,   //是否开启表达式算分  0 否   1 是
-          scorer_change:1,        ////评分人是否允许修改  1 允许   2 不允许
-        }
-      };
-      if(obj.type == 1){//自动评分
-        this.addIndexForm.expression=JSON.parse(JSON.stringify(obj.expression));
-        this.expression=JSON.parse(JSON.stringify(obj.expression));
-      }
-      if(obj.index_level_id && obj.index_level_id > 0 && obj.index_level_id != ''){
-        this.levelReadOnly(obj.index_level_id)
-      }
-      let employeeMap = this.$getEmployeeMapAll();
-      // 管理记录
-      if(obj.record_ids){
-        this.record_ids=obj.record_ids.map(e=>{
-          let user=employeeMap[e]
-          return user
-        })
-      }
-      if(obj.result_employee_id){
-        this.assignUser = {
-          name:employeeMap[obj.result_employee_id].name,
-          id: employeeMap[obj.result_employee_id].id
-        }
-      }
-      if(obj.reviewer_id){
-        this.assignScoreUser = {
-          name:employeeMap[obj.reviewer_id].name,
-          id: employeeMap[obj.reviewer_id].id
-        };
-      }
-      this.isSave = false;
-      this.isAddIndex = true;
-    },
-    //保存人员
-    confirmAdministrator(e) {
-      if (this.isUserIndex == 1) {
-        this.assignUser = e.employee.length > 0 ? e.employee[0] : [];
-
-        let index = {
-          // id: this.addIndexForm.id ? this.addIndexForm.id : 0, //对应的指标库id,0-标识为自定义添加的指标
-          // custom: this.addIndexForm.custom,
-          // type: this.addIndexForm.type, //指标种类 1-量化指标 2-非量化指标 3-额外加分项 4-额外扣分项
-          // name: this.addIndexForm.name, //指标名
-          // per_remark: this.addIndexForm.per_remark, //考核标准,加分标准,扣分标准等说明
-          // remark: this.addIndexForm.remark, //指标备注
-          // target: this.addIndexForm.target, //目标值
-          // unit: this.addIndexForm.unit, //量化指标单位
-          // point_limit: this.addIndexForm.point_limit, //分数上限,只对额外加分项以及额外扣分项有用
-          // weight: this.addIndexForm.weight, //权重 0-100之间
-          result_type: 'special', //结果值录入者设置,none-不开启 self-被考核人 special-指定员工 supervisor-指定主管)
-          // 当录入者是指定人员时才录入
-          result_employee_id: this.assignUser.id, //结果值录入者id,只有result_type为special时才需要指定
-          result_employee_name: this.assignUser.name,
-        }
-        this.dimensionalityList[this.selectItemIndex].index.splice(this.selectItemIndex_index, 1, index); //替换元素
-      } else {
-        this.assignScoreUser = e.employee.length > 0 ? e.employee[0] : [];
-      }
-      
-      this.setAdministrator = false;
-    },
-    //筛选指标分类
-    selectCate() {
-      let indexList = JSON.parse(JSON.stringify(this.indexList));
-      let arr = [];
-      indexList.forEach(item => {
-        if (item.check) {
-          if(item.type==3||item.type==4){
-            if(item.point_limit==0){
-              item.point_limit="";
-            }
-          }
-          arr.push(item);
-        }
-      });
-      this.dimensionalityList[this.selectItemIndex].index.push(...arr);
-      this.isSelectIndex = false;
-    },
-    //选择人员
-    addUser(index) {
-      if (index == 1) {
-        this.selected.employee = this.assignUser.name ? [this.assignUser] : [];
-      } else {
-        this.selected.employee = this.assignScoreUser.name ? [this.assignScoreUser] : [];
-      }
-      this.isUserIndex = index;
-      this.setAdministrator = true;
-    },
-    //获取指标分类
-    getIndexType() {
-      this.$axiosUser('get', 'api/pro/per/index/cate/list', { page: 0 }).then(res => {
-        let data = res.data.data.list;
-        let indexTypeList = [{ label: '全部', value: 0 }];
-        data.forEach(item => {
-          indexTypeList.push({ label: item.name, value: item.id });
-        });
-        this.indexTypeList = indexTypeList;
-      });
-    },
-    //获取指标
-    getIndexList(fun = function() {}) {
-      let employeeMap=this.$getEmployeeMapAll()
-      this.$axiosUser('get', '/api/pro/per/index/list', { type: this.indexType, cate_id: this.cate_id,page:this.indexPage,page_size:30,tag_ids: JSON.stringify(this.tabIds) }).then(res => {
-          let list = res.data.data.list || [];
-          let indexList=[];
-          list.forEach(item => {
-            if(this.ids.indexOf(item.id)<0){//过滤已经选择的指标
-              item.check = false;
-              item.result_employee_name=employeeMap[item.result_employee_id]? employeeMap[item.result_employee_id].name:''
-              item.reviewer_name=employeeMap[item.reviewer_id]? employeeMap[item.reviewer_id].name:''
-              item.custom=0;
-              indexList.push(item)
-            }
-         });
-         if(list.length!=30){
-           this.isAfterLoading=true;
-         }
-         if (this.indexPage === 1) {
-           this.indexList = indexList;
-         } else {
-           this.indexList = this.indexList.concat(indexList);
-         }
-          fun();
-       })
-    },
-    //关闭维度
-    closeWd() {
-      this.dimensionalityForm = {
-        name: '',
-        index_type: 1, //维度类型
-        dimension_weight: 100, //维度权重
-        index_num: 0, //所含指标数量
-        weight_type: 0, //所含指标总权重
-        target_index: true, //制定目标时是否可以增加指标 1-可以 0-不可以
-        index: []
-      };
-      this.$nextTick(() => {
-        //消除form自动触发验证的问题
-        this.$refs.detailForm.clearValidate();
-      });
-      this.getNum();
-      this.compileWd = false;
-      this.addDimensionality = false;
-    },
-    //保存维度
-    saveForm(formName) {
-      this.$refs[formName].validate(valid => {
-        if (valid) {
-          let isName = true;
-          if (this.dimensionalityList[this.selectItemIndex].name != this.dimensionalityForm.name) {
-            //排除修改本身名称的情况
-            this.dimensionalityList.some(item => {
-              if (item.name == this.dimensionalityForm.name) {
-                isName = false;
-                return true;
-              }
-            });
-          }
-          if (!isName) {
-            this.$message.error('维度名称不能重复');
-            return false;
-          }
-          if (this.ruleForm.calc_dimension && (this.dimensionalityForm.index_type == 1 || this.dimensionalityForm.index_type == 2)) {
-            if (this.dimensionalityForm.dimension_weight == 0) {
-              this.$message.error('权重不能为0');
-              return;
-            }
-          }
-          if (this.dimensionalityForm.dimension_weight > 100) {
-            this.$message.error('权重不能大于100');
-            return;
-          }
-          this.dimensionalityList[this.selectItemIndex] = this.dimensionalityForm;
-          this.$nextTick(() => {
-            this.closeWd();
-          });
-        } else {
-          console.log('error submit!!');
-          return false;
-        }
-      });
-    },
-    //获取标签列表
-    getTagList() {
-      this.$axiosUser('get', '/api/pro/per/index/tag').then(res => {
-        this.tabs = res.data.data.list || [];
-      });
-    },
-    // 添加维度
-    submitForm(formName) {
-      this.$refs[formName].validate(valid => {
-        if (valid) {
-          let isName = true;
-          this.dimensionalityList.some(item => {
-            if (item.name == this.dimensionalityForm.name) {
-              isName = false;
-              return true;
-            }
-          });
-          if (!isName) {
-            this.$message.error('维度名称不能重复');
-            return false;
-          }
-          if (this.ruleForm.calc_dimension && (this.dimensionalityForm.index_type == 1 || this.dimensionalityForm.index_type == 2)) {
-            if (this.dimensionalityForm.dimension_weight == 0) {
-              this.$message.error('权重不能为0');
-              return;
-            }
-          }
-          if (this.dimensionalityForm.dimension_weight > 100) {
-            this.$message.error('权重不能大于100');
-            return;
-          }
-          this.dimensionalityList.push(this.dimensionalityForm);
-          this.$nextTick(() => {
-            this.closeWd();
-          });
-        } else {
-          console.log('error submit!!');
-          return false;
-        }
-      });
-    }
-  }
-};
-</script>
-<style scoped="scoped">
-  .border {
-    -webkit-appearance: none;
-    background-color: #fff;
-    background-image: none;
-    border-radius: 4px;
-    border: 1px solid #dcdfe6;
-    -webkit-box-sizing: border-box;
-    box-sizing: border-box;
-    color: #C0C4CF;
-    font-size: inherit;
-    height: auto;
-    outline: 0;
-    padding: 0 15px;
-    width: 330px;
-    position: relative;
-    cursor: pointer;
-  }
-  .border .font-flex-word{
-    color: #606266;
-  }
-  .infinite-list-wrapper{
-    height: calc(100vh - 270px);
-    overflow:auto;
-    overflow-x:hidden
-  }
-.pop-up{
-  position: sticky;
-  top: 0px;
-  z-index: 999;
-  background-color: #fff;
-}
-.diy-tip {
-  margin-bottom: 10px;
-  border: 1px solid #e6a23c;
-  padding: 20px 16px;
-  background-color: #fdf6ec;
-  p {
-    color: #e6a23c !important;
-    font-size: 15px;
-    margin: 0 !important;
-    padding-bottom: 4px;
-  }
-}
-::v-deep .el-dialog__header {
-  padding: 20px;
-  border-bottom: 1px solid #ebebeb;
-}
-::v-deep .el-dialog__body {
-  padding: 20px;
-  padding-top: 0px;
-}
-.all {
-  font-size: 14px;
-  padding: 20px 0;
-}
-.title {
-  font-weight: 600;
-  margin-bottom: 15px;
-  position: relative;
-  left: 0;
-  font-size: 16px;
-  color: #606266;
-}
-.title::after {
-  content: " ";
-  position: absolute;
-  width: 4px;
-  height: 18px;
-  background-color: #409EFF;
-  left: -10px;
-  top: 2px;
-}
-.popover-img {
-  width: 100%;
-  height: 200px;
-}
-.el-icon-warning {
-  color: #ccc;
-}
-.inputDc {
-  position: absolute;
-  top: 0;
-  right: 0;
-  left: 0;
-  bottom: 0;
-  z-index: 9;
-  cursor: pointer;
-}
-.inputDc1 {
-  position: absolute;
-  top: 0;
-  left: 85px;
-  bottom: 0;
-  z-index: 9;
-}
-.inputDc2 {
-  position: absolute;
-  top: 0;
-  left: 195px;
-  bottom: 0;
-  z-index: 9;
-}
-.content {
-  /* background-color: #f9fdff; */
-  padding: 15px;
-  margin-bottom: 20px;
-  /* border: 1px solid #ecf5ff; */
-  border-radius: 4px;
-}
-.message {
-  background-color: #ecf5ff;
-  height: 100px;
-  border-radius: 5px;
-}
-.message-text {
-  font-size: 16px;
-  color: #222;
-  margin-bottom: 8px;
-}
-.blue {
-  cursor: pointer;
-  padding: 0 5px;
-}
-.width-250 {
-  width: 250px;
-}
-.wd-header {
-  background-color: #ECF5FF;
-}
-.wd-header i {
-  font-size: 24px;
-  margin-left: 10px;
-  cursor: pointer;
-  color: #888888;
-}
-.wds {
-  border: 1px solid #ebebeb;
-  margin-top: 20px;
-}
-.wd-title {
-  padding: 12px 20px;
-  /* border-bottom: 1px solid #ebebeb; */
-  color: #777777;
-}
-.wd-footer {
-  padding: 12px 20px;
-}
-.titles div {
-  padding-right: 12px;
-  margin-right: 12px;
-  border-right: 1px solid #ccc;
-}
-/* .titles div:last-child {
-  border-right: none;
-} */
-.el-icon-edit:hover {
-  color: #409EFF;
-}
-.el-icon-delete-solid:hover {
-  color: #f56c6c;
-}
-.ul {
-  margin: 20px 0;
-  margin-top: 0;
-}
-.li {
-  border-bottom: 1px solid #ebebeb;
-}
-.li .flex-box-ce {
-  padding: 15px 0;
-}
-.li:hover {
-  background-color: #f5f7fa;
-}
-::v-deep .el-textarea__inner::-webkit-scrollbar {
-  width: 6px;
-  height: 4px;
-}
-/*外层轨道。可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果*/
-::v-deep .el-textarea__inner::-webkit-scrollbar-track {
-  width: 6px;
-  background-color: #fff0;
-  -webkit-border-radius: 2em;
-  -moz-border-radius: 2em;
-  border-radius: 2em;
-}
-/*滚动条的设置*/
-::v-deep .el-textarea__inner::-webkit-scrollbar-thumb {
-  background-color: #fff0;
-  background-clip: padding-box;
-  -webkit-border-radius: 2em;
-  -moz-border-radius: 2em;
-  border-radius: 2em;
-}
-/*滚动条移上去的背景*/
-::v-deep .el-textarea__inner:hover::-webkit-scrollbar-thumb {
-  background-color: rgba(144, 147, 153, 0.3);
-  height: 20px;
-}
-
-
-/* 修改滚动条的宽度 */
-::v-deep .el-table__body-wrapper::-webkit-scrollbar {
-  width: 6px; /* 对于水平滚动条 */
-  height: 6px; /* 对于垂直滚动条 */
-  background-color: #f9f9f9;
-}
- 
-/* 修改滚动条滑块的样式 */
-::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
-  border-radius: 10px;
-  background-color: #c1c1c1;
-}
- 
-/* 修改滚动条轨道的样式 */
-::v-deep .el-table__body-wrapper::-webkit-scrollbar-track {
-  box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
-  border-radius: 10px;
-  background: #ededed;
-}
-
-::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb:hover {
-  background-color: #a8a8a8;
-}
-
-
-</style>

+ 9 - 9
src/performance/components/evaluate/Template.vue

@@ -49,14 +49,14 @@
               </div>
             </div>
             <template v-if="ruleForm.calc_type == 1">
-              <img v-if="ruleForm.calc_dimension" src="static/images/gs3.png" class="popover-img"
+              <img v-if="ruleForm.calc_dimension" src="@/assets/perform/gs3.jpg" class="popover-img"
                 style="height: auto;" />
-              <img v-else src="static/images/gs4.jpg" class="popover-img" style="height: auto;" />
+              <img v-else src="@/assets/perform/gs4.jpg" class="popover-img" style="height: auto;" />
             </template>
             <template v-if="ruleForm.calc_type == 2">
-              <img v-if="ruleForm.calc_dimension" src="static/images/gs1.png" class="popover-img"
+              <img v-if="ruleForm.calc_dimension" src="@/assets/perform/gs1.jpg" class="popover-img"
                 style="height: auto;" />
-              <img v-else src="static/images/gs2.jpg" class="popover-img" style="height: auto;" />
+              <img v-else src="@/assets/perform/gs2.jpg" class="popover-img" style="height: auto;" />
             </template>
             <span class="blue" slot="reference">示例</span>
           </el-popover>
@@ -142,7 +142,7 @@
                 :autosize="{ minRows: 1, maxRows: 2 }"></el-input>
             </template>
           </el-table-column>
-          <el-table-column v-if="item.index_type == 1" prop="target" align="center" label="目标值" min-width="200">
+          <el-table-column v-if="item.index_type == 1" prop="target" align="center" label="目标值" min-width="160">
             <template slot-scope="scope">
               <el-input v-model="scope.row.target" clearable></el-input>
             </template>
@@ -153,7 +153,7 @@
             </template>
           </el-table-column>
           <el-table-column v-if="item.index_type == 1 || item.index_type == 2" prop="weight" label="权重(%)"
-            align="center" min-width="120">
+            align="center" min-width="160">
             <template slot-scope="scope">
               <el-input v-model="scope.row.weight" clearable>
                 <template slot="append">%</template>
@@ -255,7 +255,7 @@
     <el-dialog title="指标设置" :visible.sync="isAddIndex" width="600px">
       <div class="flex-box-ce" style="margin: 20px auto 0 auto; width: 90%;">
         <el-form ref="saveAddIndex" :model="addIndexForm" :rules="addIndexFormRule" @submit.native.prevent
-        label-width="120px" label-position="left">
+          label-width="120px" label-position="left">
           <el-form-item label="指标类型:" prop="type">
             <el-select v-model="addIndexForm.type" disabled placeholder="请选择指标类型" class="width-300">
               <el-option label="量化指标" :value="1"></el-option>
@@ -377,14 +377,14 @@
         </el-form>
       </div>
 
-      <div class="flex-box-ce" style="width: 100%; margin: 0 auto;">
+      <!-- <div class="flex-box-ce" style="width: 100%; margin: 0 auto;">
         <span style="font-weight: 600;font-size: 14px;color: #606266;">按分数展示对应的评级:</span>
         <el-select v-model="addIndexForm.index_level_id" @change="levelReadOnly" filterable clearable
           placeholder="请选择对应的评级">
           <el-option v-for="item in levelOptions" :key="item.id" :label="item.name" :value="item.id" class="width-300">
           </el-option>
         </el-select>
-      </div>
+      </div> -->
 
       <ClassSet v-if="addIndexForm.index_level_id != 0 && getIs" ref="ClassSet" :readOnly="true" :inputs="inputs"
         style="padding-top: 20px;" :inputsStyle="{ paddingLeft: '0px', width: '450px' }"></ClassSet>

+ 0 - 578
src/performance/views/assessManagement/TargetListComp copy.vue

@@ -1,578 +0,0 @@
-<template>
-    <div>
-        <el-dialog title="" :visible.sync="dialogVisible" :fullscreen="true" center>
-            <div>
-                <template>
-                    <div class="title">关联OKR</div>
-                    <div class="itemBox" v-for="(item, index) in okrList" :key="item.id">
-                        <template>
-                            <div class="flex-box-ce fontColorC">
-                                <img class="jt" src="static/images/jt2.png">
-                                <div class="hoverBlue flex-1" style="margin-left: 16px;">
-                                    <span>对齐目标</span>
-                                </div>
-                                <div>
-                                    <span>起止时间:{{ item.start_time + ' ~ ' + item.end_time }}</span>
-                                </div>
-                            </div>
-                            <div class="flex-box" style="margin: 10px 0;">
-                                <div class="huan"><span></span></div>
-                                <div class="flex-1" style="padding-left: 10px;">
-                                    <div class="flex-box-ce">
-                                        <div class="flex-1"
-                                            style="padding-right: 30px; font-size: 18px; font-weight: 550; color: #141c28;"
-                                            @click="openDetail(item, 1)">
-                                            <span class="clamp2 hoverBlue">{{ item.name }}</span>
-                                        </div>
-                                        <Tooltip preHtml="目标评分">
-                                            <div class="orange-box"
-                                                style="width: 40px; border-radius: 25px; text-align: center;">{{
-                                                item.score }}</div>
-                                        </Tooltip>
-                                        <div class="fontColorC" style="padding:0 10px;">
-                                            <svg-icon icon-class="#icon-biaoqian_wode" class="svgIcon"></svg-icon>
-                                            {{ $getEmployeeMapItem(item.owner_id).name }}
-                                        </div>
-                                        <div style="position: relative;">
-                                            <!-- 进度条 -->
-                                            <Progress :status="item.risk_level"
-                                                :value="item.process ? Number(item.process) : 0"
-                                                :cursor="item.isOperation" style="margin-right: 20px;"></Progress>
-                                            <div v-if="item.process != item.process_last"
-                                                style="position: absolute; font-size: 12px;">
-                                                <!-- 上升百分比 -->
-                                                <span v-if="item.process - item.process_last > 0" class="green">
-                                                    <i class="el-icon-top"></i>
-                                                    {{ Math.abs(item.process - item.process_last).toFixed(2) }}%
-                                                </span>
-                                                <!-- 下降百分比 -->
-                                                <span v-else class="red">
-                                                    <i class="el-icon-bottom"></i>
-                                                    {{ Math.abs(item.process - item.process_last).toFixed(2) }}%
-                                                </span>
-                                            </div>
-                                        </div>
-
-                                    </div>
-                                    <div class="flex-box-ce fontColorC" style="margin: 12px 0; font-size: 13px;">
-
-                                        <div class="flex-1"></div>
-                                        <div class="flex-box-ce fontColorB" style="padding-right:20px">
-                                            <span class="width-120" style="padding-left:6px">负责人</span>
-                                            <span class="width-120" style="text-align: center;">截止时间</span>
-                                            <span class="width-120">完成度</span>
-                                        </div>
-                                    </div>
-
-                                    <!-- kr -->
-                                    <CollapseTransition :key="item.id">
-                                        <div>
-                                            <div class="fontColorC" v-for="(krItem, index2) in item.son_krs"
-                                                :key="krItem.id">
-                                                <div class="flex-box-ce kr-item" style="margin-right: 20px;">
-                                                    <span class="okr-index cursor" @click="openDetail(krItem, 2)">KR{{
-                                                        index2 + 1 }}</span>
-                                                    <div class="flex-1" style="margin-right: 30px;">
-                                                        <span class="clamp2 hoverBlue" @click="openDetail(krItem, 2)">{{
-                                                            krItem.name }}</span>
-                                                    </div>
-
-                                                    <template>
-                                                        <div class="width-120">
-                                                            <svg-icon icon-class="#icon-biaoqian_wode"
-                                                                class="svgIcon"></svg-icon>
-                                                            {{ $getEmployeeMapItem(krItem.owner_id).name }}
-                                                        </div>
-                                                        <div class="width-120" style="text-align: center;">
-                                                            <span>{{ $moment(krItem.end_time).format('MM/DD') }}</span>
-                                                        </div>
-                                                    </template>
-
-                                                    <div class="flex-box-ce width-120"
-                                                        :class="{ cursor: krItem.isOperation }"
-                                                        style="text-align: center;">
-                                                        <template v-if="krItem.process && krItem.process / 100 > 100">
-                                                            <el-progress :stroke-width="3"
-                                                                :color="customColorMethod(krItem.risk_level)"
-                                                                :show-text="false" :width="20" type="circle"
-                                                                :percentage="100"
-                                                                style="padding-left: 5px;"></el-progress>
-                                                        </template>
-                                                        <template v-else>
-                                                            <el-progress :stroke-width="3"
-                                                                :color="customColorMethod(krItem.risk_level)"
-                                                                :show-text="false" :width="20" type="circle"
-                                                                v-if="krItem.process"
-                                                                :percentage="krItem.process && Number(krItem.process)"
-                                                                style="padding-left: 5px;"></el-progress>
-                                                        </template>
-                                                        <span style="padding-left: 5px;">{{ krItem.process && krItem.process / 100}}%</span>
-                                                    </div>
-                                                </div>
-
-                                            </div>
-                                        </div>
-                                    </CollapseTransition>
-                                </div>
-                            </div>
-                        </template>
-                    </div>
-                    <!-- <div style="text-align: center;background-color: #fff;padding:10px 0;border-radius: 10px;">
-            <el-pagination layout="total,prev,pager,next,sizes" :current-page.sync="searchForm.page" :total="15"
-              @size-change="handleSizeChange" @current-change="handleCurrentChange" :page-sizes="[10, 20, 50, 100]"
-              :page-size="searchForm.pageSize"></el-pagination>
-          </div> -->
-                </template>
-            </div>
-            <div slot="footer">
-                <el-button @click="close">取 消</el-button>
-                <el-button type="primary" @click="close">确 定</el-button>
-            </div>
-        </el-dialog>
-        <!-- 目标详情 -->
-        <TargetDetail :type="showDetailType" :id="showDetailId" v-if="isShowTargetDetail" readonly
-            :showDrawer.sync="isShowTargetDetail" @confirm="getTargetDateil(o_id, true)"></TargetDetail>
-    </div>
-</template>
-
-<script>
-import TargetDetail from '@/okr/components/public/TargetDetail'; //目标详情
-import Tooltip from '@/components/Tooltip'; //鼠标悬浮显示文字
-import Progress from '@/okr/components/public/Progress'; //进度条
-import TargetType from '@/okr/components/public/TargetType'; //目标类型
-import CollapseTransition from '@/okr/utils/collapse-transition';
-import TaskItem from '@/okr/components/public/TaskItem'; //任务内容
-
-export default {
-    components: {
-        TargetDetail,
-        Tooltip,
-        Progress,
-        TargetType,
-        CollapseTransition,
-        TaskItem
-    },
-    props: {
-        dialogVisible: {
-            type: Boolean,
-            default: false
-        },
-    },
-    data() {
-        return {
-            showDetailId: 0,//打开详情的ID
-            showDetailType: 1,//打开详情的类型
-            searchForm: {
-                page: 1,
-                pageSize: 10,
-            },
-            
-            okrList: [],
-            isShowTargetDetail: false
-        }
-    },
-    created() {
-        let params = {
-            page: 1,
-            page_size: 10,
-            cycle_type: 0,
-            year: 2024,
-            belong_type: 0,
-            quarter: 0,
-            half_year: 0,
-            month: 0,
-            owner_id: 3036,
-            sort_ct: 2
-        }
-        this.$axiosUser('get', '/api/pro/okr/public/obj/search', params).then(res => {
-            if (res.data.code == 1) {
-                this.okrList = res.data.data.list;
-                console.log(this.okrList)
-                // this.headoptions = res.data.data.list;
-                // this.headvalue = Number(assID);
-            }
-        });
-    },
-    methods: {
-        close() {
-            this.emit("close")
-        },
-        customColorMethod(index) {
-            if (index == 1) {
-                return '#2879ff';
-            } else if (index == 2) {
-                return '#FF9600';
-            } else {
-                return '#F16060';
-            }
-        },
-        updateTargetType() { },
-        openDetail(item, type) {
-            if (type) {
-                this.showDetailType = type;//打开详情的类型
-            } else {
-                this.showDetailType = item.type
-            }
-            this.o_id = type == 2 ? item.o_id : item.id;
-            this.showDetailId = item.id;//打开详情的ID
-            this.isShowTargetDetail = true;
-        },
-        //动态更新目标详情
-        getTargetDateil(targetId, isShowText) {
-            let id = targetId ? targetId : this.selectAlignItem.id
-            this.$axiosUser('get', '/api/pro/okr/obj/list', { page: 1, page_size: 1, ids: JSON.stringify([id]) }).then(res => {
-                let data = res.data.data.list[0] || '';
-                if (data) {
-                    this.targetList.some((item, index) => {
-                        if (item.id == id) {
-                            data.isShow = this.targetList[index].isShow
-                            data.isShowSelectPeriod = false;
-                            data.dateStr = getDateStr(data)
-                            data.owner_userInfo = this.$getEmployeeMapItem(data.owner_id);
-                            data.isOperation = getOperation(data.publisher_id, data.owner_id);
-                            if (data.krs.length > 0) {
-                                data.krs.forEach(e => {
-                                    e.isOperation = getOperation(e.publisher_id, e.owner_id);
-                                })
-                            }
-                            this.targetList[index] = data;
-                            if (!isShowText) {
-                                this.$message.success('操作成功')
-                            }
-                            this.$forceUpdate();
-                            return true
-                        }
-                    })
-                }
-                // else {
-                //     this.getTargetList();
-                // }
-            })
-        },
-    }
-}
-</script>
-
-<style scoped lang="scss">
-.el-dialog {
-    ::v-deep .el-dialog__header {
-        width: 80% !important;
-    }
-}
-
-.width-120 {
-    width: 100px;
-    overflow: hidden;
-    text-overflow: ellipsis;
-    white-space: nowrap;
-}
-
-.selectUser ::v-deep input {
-    border-radius: 20px;
-}
-
-.user-item {
-    padding: 4px 6px;
-    border-radius: 5px;
-    cursor: pointer;
-}
-
-.userActive {
-    background-color: #ecf5ff;
-    color: #409EFF;
-}
-
-.span-item span {
-    font-size: 14px;
-    padding: 8px 20px;
-    border-bottom: 2px solid #f1f1f1;
-    // border-radius: 3px;
-    color: #89919f;
-    cursor: pointer;
-}
-
-.spanActive {
-    border-bottom: 2px solid #409EFF !important;
-    color: #409EFF !important;
-}
-
-.okrs-box {
-    padding: 10px 0;
-    border-bottom: 1px solid #f1f1f1;
-    cursor: pointer;
-}
-
-.okrs-box:hover {
-    background-color: #f4f6f9;
-}
-
-.message-items {
-    margin-top: 10px;
-    font-size: 12px;
-}
-
-.message-items div {
-    margin-right: 20px;
-    cursor: pointer;
-}
-
-.message-items i {
-    padding-right: 5px;
-}
-
-.weight {
-    width: 90px;
-    margin-right: 5px;
-    padding: 5px;
-    border: 1px dotted #fff;
-    border-radius: 5px;
-    cursor: pointer;
-}
-
-.weight:hover {
-    border: 1px dotted #ccc;
-}
-
-.weight span {
-    display: inline-block;
-    width: 50px;
-    text-align: center;
-    color: #e6a23c;
-}
-
-.kr-item {
-    padding: 4px 0;
-    position: relative;
-    margin-bottom: 8px;
-    border-radius: 5px;
-}
-
-.kr-item:hover {
-    background-color: #f4f6f9;
-}
-
-.huan {
-    position: relative;
-    width: 24px;
-    height: 24px;
-    border-radius: 100%;
-    background-color: #E9F1FE;
-    box-sizing: border-box;
-    margin: 0 3px;
-    text-align: center;
-    line-height: 25px;
-}
-
-.huan span {
-    border: 2px solid #409EFF;
-    border-radius: 100%;
-    width: 12px;
-    height: 12px;
-    display: inline-block;
-}
-
-.add-task-title {
-    padding: 10px;
-    position: relative;
-}
-
-.add-task-title::after {
-    content: "";
-    position: absolute;
-    width: 4px;
-    height: 14px;
-    border-radius: 5px;
-    background-color: #409EFF;
-    left: 0;
-    top: 13px;
-}
-
-.inputDc {
-    position: absolute;
-    top: 0;
-    right: 0;
-    left: 0;
-    bottom: 0;
-    z-index: 9;
-    cursor: pointer;
-}
-
-.el-icon-more {
-    width: 20px;
-    height: 20px;
-    box-sizing: border-box;
-    text-align: center;
-    line-height: 20px;
-    cursor: pointer;
-}
-
-.el-icon-more:hover {
-    background-color: #606266;
-    border-radius: 25px;
-    color: #fff;
-}
-
-.border {
-    -webkit-appearance: none;
-    background-color: #fff;
-    background-image: none;
-    border-radius: 4px;
-    border: 1px solid #dcdfe6;
-    -webkit-box-sizing: border-box;
-    box-sizing: border-box;
-    color: #C0C4CF;
-    font-size: inherit;
-    height: auto;
-    outline: 0;
-    padding: 0 15px;
-    padding-right: 10px;
-    line-height: 34px;
-    width: 270px;
-    position: relative;
-    cursor: pointer;
-}
-
-.border .font-flex-word {
-    color: #606266;
-}
-
-.border:hover {
-    border: 1px solid #c0c4cc;
-}
-
-.add-task-item {
-    position: relative;
-}
-
-.add-task-item:hover i {
-    cursor: pointer;
-    opacity: 1 !important;
-}
-
-.add-task {
-    // padding-left: 30px;
-}
-
-.oBox {
-    box-shadow: 0 0px 10px #F0F4FA;
-    border-radius: 3px;
-    padding: 5px 8px;
-}
-
-.add-task ::v-deep input {
-    border: none;
-    padding-right: 80px;
-}
-
-.oBox ::v-deep input {
-    border: none;
-    font-size: 18px;
-    font-weight: 600;
-    color: #141c28;
-    padding-right: 80px;
-}
-
-.oBox ::v-deep input::-webkit-input-placeholder {
-    font-weight: 500;
-}
-
-.edit {
-    display: none;
-    position: relative;
-    top: 1px;
-    padding-left: 5px;
-    transition: all .3s;
-}
-
-.edit:hover {
-    color: #409EFF !important;
-}
-
-.selectBox {
-    background-color: #fff;
-    border-radius: 25px;
-    padding: 10px 20px;
-}
-
-.header {
-    margin-bottom: 10px;
-    border-radius: 10px;
-    padding: 10px;
-    background-color: #fff;
-}
-
-.caret {
-    position: absolute;
-    width: 30px;
-    height: 30px;
-    text-align: center;
-    line-height: 30px;
-    left: -30px;
-    top: 50%;
-    margin-top: -15px;
-    box-sizing: border-box;
-    cursor: pointer;
-}
-
-.jt {
-    width: 24px;
-    position: relative;
-    top: 2px;
-    left: 4px;
-    transform: rotateY(180deg);
-    margin-left: 0px;
-}
-
-.title {
-    width: 60%;
-    margin: 0 auto 20px auto;
-    height: 50px;
-    line-height: 50px;
-    border-bottom: 1px solid #dcdfe6;
-    text-align: center;
-    font-size: 20px;
-    font-weight: 600;
-}
-
-.itemBox {
-    width: 60%;
-    padding: 20px;
-    border-radius: 10px;
-    background-color: #fff;
-    margin: 0 auto 20px auto;
-    box-shadow: 0 2px 12px #EBF0F6;
-}
-
-::v-deep .el-tabs__item {
-    color: #89919f;
-}
-
-::v-deep .is-active {
-    color: #409EFF;
-    font-weight: 600;
-}
-
-::v-deep .el-tabs__nav .is-active {
-    font-size: 16px;
-}
-
-::v-deep .el-tabs__header {
-    margin: 0px;
-}
-
-
-
-.select {
-    margin-right: 6px;
-}
-
-.select ::v-deep .el-input__inner {
-    border-radius: 25px;
-}
-
-.input ::v-deep .el-input__inner {
-    border: none;
-    border-bottom: 1px solid #f1f1f1;
-    border-radius: 0px;
-}
-</style>

+ 24 - 27
src/performance/views/assessManagement/TargetListComp.vue

@@ -7,21 +7,23 @@
                     <div class="title">关联OKR</div>
                     <div class="flex-box-ce"
                         style="width: 60%; margin: 20px auto; padding-bottom: 10px; margin-top: 20px; justify-content: space-around;">
-                        <el-select class="select" style="width: 120px;" size="small" v-model="year" placeholder="年份">
+                        <el-select class="select" style="width: 120px;" size="small" v-model="year" placeholder="年份"
+                            clearable>
                             <el-option v-for="item in yearArr" :key="item.value" :label="item.label"
                                 :value="item.value"></el-option>
                         </el-select>
-                        <el-select class="select" style="width: 120px;" size="small" v-model="dataId" placeholder="周期">
+                        <el-select class="select" style="width: 120px;" size="small" v-model="dataId" placeholder="周期"
+                            clearable>
                             <el-option v-for="item in options" :key="item.value" :label="item.name"
                                 :value="item.value"></el-option>
                         </el-select>
                         <el-select class="select" style="width: 120px;" size="small" v-model="belong_type"
-                            placeholder="类型">
+                            placeholder="类型" clearable>
                             <el-option v-for="item in getBelongType2" :key="item.value" :label="item.label"
                                 :value="item.value"></el-option>
                         </el-select>
                         <el-select class="select" style="width: 200px;" filterable size="small" v-model="owner_id"
-                            clearable placeholder="负责人">
+                            clearable placeholder="负责人" >
                             <el-option v-for="item in employeeMap" :key="item.id" :label="item.name"
                                 :value="item.id"></el-option>
                         </el-select>
@@ -36,7 +38,8 @@
                             <div class="flex-box-ce fontColorC">
                                 <img class="jt" src="static/images/jt2.png">
                                 <div class="hoverBlue flex-1" style="margin-left: 16px;">
-                                    <span @click.stop="openDuiQi(2, item)" v-if="!item.p_kr && !item.p_objectives">对齐目标</span>
+                                    <span @click.stop="openDuiQi(2, item)"
+                                        v-if="!item.p_kr && !item.p_objectives">对齐目标</span>
                                     <template v-else>
                                         <template v-if="item.kr_id">
                                             <span v-if="item.p_kr">{{ item.p_kr.name }}</span>
@@ -61,7 +64,8 @@
                                     <div class="flex-box-ce">
                                         <div class="flex-1"
                                             style="padding-right: 30px; font-size: 18; font-weight: 550; color: #141c28;">
-                                            <span class="clamp2 hoverBlue" @click="openDetail(item, 1)">{{ item.name }}</span>
+                                            <span class="clamp2 hoverBlue" @click="openDetail(item, 1)">{{ item.name
+                                                }}</span>
                                         </div>
                                         <Tooltip preHtml="目标评分">
                                             <div v-if="item.score >= 0" class="orange-box"
@@ -85,7 +89,7 @@
                                                 <span v-else class="red"><i class="el-icon-bottom"></i>{{
                                                     Math.abs(item.process - item.process_last).toFixed(2) }}%</span>
                                             </div>
-                                        </div> 
+                                        </div>
                                     </div>
                                     <div class="flex-box-ce fontColorC" style="margin: 12px 0;font-size: 13px;">
                                         <div class="hover-border">
@@ -408,20 +412,12 @@ export default {
             dataId: 1,
             key_word: "",
             belong_type: 0,
-            year: Number(this.$moment().format('YYYY')),
+            year: '',
             owner_id: "",
-            searchForm: {
-                page: 1,
-                page_size: 10,
-                belong_type: 0,
-                quarter: 0,
-                owner_id: "",
-                half_year: 0,
-                month: 0,
-                sort_ct: 2,
-                ids: JSON.stringify(this.ids),
-                composite_states: "1,2,3,4,5"
-            },
+            quarter: '',
+            half_year: '',
+            month: '',
+            okrs: [],
             getBelongType1: getBelongType,
             getBelongType2: getBelongType(false, true),
             employeeMap: this.$getEmployeeMap(),
@@ -473,12 +469,10 @@ export default {
                 belong_type: this.belong_type,
                 cycle_type: 0,
                 year: this.year,
-                quarter: 0,
-                half_year: 0,
-                month: 0,
+                half_year: this.half_year,
+                month: this.month,
                 ids: JSON.stringify(this.ids),
-                composite_states: '1,2,3,4,5',
-                sort_ct: 2,
+                sort_ct: 2
             };
 
             if (this.key_word) {
@@ -494,7 +488,11 @@ export default {
             } else if (this.dataId == 2) {
                 params.cycle_type = 1
             }
-
+            if (!params.owner_id) delete params.owner_id
+            if (!params.year) delete params.year
+            if (!params.belong_type) delete params.belong_type
+            if (!params.half_year) delete params.half_year
+            if (!params.month) delete params.month
             this.$axiosUser('get', '/api/pro/okr/public/obj/list', params).then(res => {
                 if (res.data.code == 1) {
                     this.okrList = res.data.data.list;
@@ -509,7 +507,6 @@ export default {
                             }
                         })
                     }
-                    console.log(this.okrList)
                 }
             });
         },

+ 21 - 19
src/performance/views/assessManagement/TargetSearch.vue

@@ -7,10 +7,10 @@
           <el-select class="select" style="width: 120px;" size="small" v-model="year" placeholder="年份">
             <el-option v-for="item in yearArr" :key="item.value" :label="item.label" :value="item.value"></el-option>
           </el-select>
-          <el-select class="select" style="width: 120px;" size="small" v-model="dataId" placeholder="周期">
+          <el-select class="select" style="width: 120px;" size="small" v-model="dataId" placeholder="周期" clearable>
             <el-option v-for="item in options" :key="item.value" :label="item.name" :value="item.value"></el-option>
           </el-select>
-          <el-select class="select" style="width: 120px;" size="small" v-model="belong_type" placeholder="类型">
+          <el-select class="select" style="width: 120px;" size="small" v-model="belong_type" placeholder="类型" clearable>
             <el-option v-for="item in getBelongType" :key="item.value" :label="item.label"
               :value="item.value"></el-option>
           </el-select>
@@ -220,7 +220,7 @@ export default {
   created() {
     let userInfo=this.$userInfo();
     if(this.isOwner && !userInfo.is_okr_manager){
-       this.owner_id = userInfo.id
+      this.owner_id = userInfo.id
     }
     
   },
@@ -263,16 +263,16 @@ export default {
 
     getMilestoneList(id){
       this.$axiosUser('get', '/api/pro/okr/project/milestones',{project_id:id}).then(res => {
-          let milestones=res.data.data.milestones;
-          milestones.forEach(item=>{
-            item.type=5;
-          })
-          this.projectList.forEach(item=>{
-            if(item.id==id){
-              item.tasks=milestones;
-            }
-          })
-          this.activeNames2=JSON.parse(JSON.stringify(this.activeNames2))
+        let milestones=res.data.data.milestones;
+        milestones.forEach(item=>{
+          item.type=5;
+        })
+        this.projectList.forEach(item=>{
+          if(item.id==id){
+            item.tasks=milestones;
+          }
+        })
+        this.activeNames2=JSON.parse(JSON.stringify(this.activeNames2))
       })
     },
 
@@ -340,7 +340,7 @@ export default {
     },
     //目标列表
     getTargetList(is) {
-      is ? '':this.page=1;
+      is ? '' : this.page=1;
       let params = {
         page: is? this.page:1,
         page_size: this.page_size,
@@ -351,12 +351,14 @@ export default {
         quarter:0,
         half_year:0,
         month:0,
-        composite_states:'1,2,3,4,5',
-        sort_ct: 2,
+        composite_states: '1,2,3,4,5,6',
+        sort_ct: 2
       };
-      if(this.isFinish){
-        params.composite_states='1,2,3,4,5,6';
-      }
+      if (!params.owner_id) delete params.owner_id
+      if (!params.year) delete params.year
+      if (!params.belong_type) delete params.belong_type
+      if (!params.half_year) delete params.half_year
+      if (!params.month) delete params.month
       if(this.key_word){
         params.key_word = this.key_word
       }

+ 36 - 36
src/performance/views/assessManagement/assessDetails.vue

@@ -69,12 +69,11 @@
       <!-- 按钮组 -->
       <div class="navigationL flex-box-ce flex-d-wrap">
 
-        <div v-for="(item, index) in navigationList" :key="index" class="flex-box-ce" 
-          @click="navClick(item)">
+        <div v-for="(item, index) in navigationList" :key="index" class="flex-box-ce" @click="navClick(item)">
           <template v-if="item.num">
             <el-badge :value="item.num" class="item">
               <span class="flex-box-ce" :class="{ action: navcli == item.id }">
-                <div>{{ item.name }}</div>
+                <div>{{ index ? index : '' }} {{ item.name }}</div>
                 <div v-if="item.hint">
                   &nbsp;
                   <el-tooltip class="item" effect="dark" :content="item.hint" placement="top">
@@ -117,14 +116,14 @@
       <el-table :data="asstabData" v-loading="assDetLoad" @row-click="assDetClick" style="width: 100%"
         :header-cell-style="{ background: '#ECF5FF' }" @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="55" v-if="navcli == 3"></el-table-column>
-        <el-table-column label="姓名">
+        <el-table-column label="姓名" min-width="120" align="center">
           <template slot-scope="scope">
             <userImage class="fl" :id="scope.row.employee_id" style="margin-top: 9px;" :user_name="scope.row.name"
               :img_url="scope.row.img_url" width="35px" height="35px" fontSize="12px"></userImage>
             <span style="margin-left: 10px; line-height: 50px;">{{ scope.row.name }}</span>
           </template>
         </el-table-column>
-        <el-table-column prop="dept_list" label="部门">
+        <el-table-column prop="dept_list" label="部门" min-width="300" align="center">
           <template slot-scope="scope">
             <template v-if="scope.row.dept_list.length > 0">
               <span v-for="(item, index) in scope.row.dept_list" :key="index">
@@ -135,13 +134,13 @@
             <span v-else>--</span>
           </template>
         </el-table-column>
-        <el-table-column prop="group_name" label="考核模板">
+        <el-table-column prop="group_name" label="考核模板" min-width="300" align="center">
           <template slot-scope="scope">
             <span v-if="!scope.row.relevance_group.delete_time">{{ scope.row.relevance_group.name }}</span>
             <span v-else class="red">该考核模板已被删除</span>
           </template>
         </el-table-column>
-        <el-table-column prop="final_point" width="140" label="考核结果">
+        <el-table-column prop="final_point" label="考核结果" min-width="120" align="center">
           <template slot-scope="scope">
             <template v-if="scope.row.final_point">
               <span v-if="$getRole(1)">{{ scope.row.final_point }}</span>
@@ -151,7 +150,7 @@
             <span v-else>-</span>
           </template>
         </el-table-column>
-        <el-table-column prop="final_level" width="140" label="绩效等级">
+        <el-table-column prop="final_level" min-width="120" label="绩效等级" align="center">
           <template slot-scope="scope">
             <template v-if="scope.row.final_level">
               <span v-if="$getRole(1)">{{ scope.row.final_level }}</span>
@@ -161,7 +160,7 @@
             <span v-else>-</span>
           </template>
         </el-table-column>
-        <el-table-column prop="peoplenum" width="300" label="操作">
+        <el-table-column prop="peoplenum" min-width="300" label="操作" align="center">
           <template slot-scope="scope">
             <el-button type="text" size="medium" @click="assDetClick(scope.row)">查看</el-button>
             <template v-if="$isAuthoritys_jx($9) && !all_finish && scope.row.doing_id == 11">
@@ -340,6 +339,7 @@
         <el-button type="primary" @click="getPending">导出人员名单</el-button>
       </template>
     </BrawerBox>
+    
   </div>
 </template>
 <script>
@@ -541,7 +541,7 @@ export default {
   },
   activated() {
     let amfTabL;
-    let that = this;
+    that = this;
     if (that.$route.query.amfTabLckick) {
       amfTabL = JSON.parse(that.$route.query.amfTabLckick);
     }
@@ -711,32 +711,32 @@ export default {
         confirmButtonText: '确定',
         cancelButtonText: '取消'
       })
-        .then(() => {
-          let employee_ids = val.employee.map(item => {
-            return item.id;
-          });
-          let data = {
-            package_id: this.asstabParams.package_id,
-            employee_ids: JSON.stringify(employee_ids)
-          };
-          this.$axiosUser('post', '/api/pro/per/package/delete_package_employee', data).then(res => {
-            if (employee_ids.length == this.deleteNum) {
-              this.$alert('删除成功,考核包已无考核人员,该周期的绩效考核也会自动删除', '提示', {
-                confirmButtonText: '确定',
-                showClose: false,
-                callback: action => {
-                  this.$router.go(-1);
-                }
-              });
-            } else {
-              this.$message.success('删除成功');
-              this.isManagement = false;
-              this.getInitData(this.asstabParams.package_id, () => {});
-              this.assDelList();
-            }
-          });
-        })
-        .catch(() => {});
+      .then(() => {
+        let employee_ids = val.employee.map(item => {
+          return item.id;
+        });
+        let data = {
+          package_id: this.asstabParams.package_id,
+          employee_ids: JSON.stringify(employee_ids)
+        };
+        this.$axiosUser('post', '/api/pro/per/package/delete_package_employee', data).then(res => {
+          if (employee_ids.length == this.deleteNum) {
+            this.$alert('删除成功,考核包已无考核人员,该周期的绩效考核也会自动删除', '提示', {
+              confirmButtonText: '确定',
+              showClose: false,
+              callback: action => {
+                this.$router.go(-1);
+              }
+            });
+          } else {
+            this.$message.success('删除成功');
+            this.isManagement = false;
+            this.getInitData(this.asstabParams.package_id, () => {});
+            this.assDelList();
+          }
+        });
+      })
+      .catch(() => {});
     },
     savecomtheResults(dataId, db) {
       this.theResultsButid = true;

+ 0 - 151
src/performance/views/assessManagement/assessManagement copy.vue

@@ -1,151 +0,0 @@
-<template>
-  <div class="all boxMinHeight">
-    <header class="flex-box flex-d-center">
-      <div class="flex-box">
-        <el-select v-model="amhlvalue"  style="width:100px;" placeholder="请选择">
-          <el-option v-for="item in amhlList" :key="item.value" :label="item.label" :value="item.value"></el-option>
-        </el-select>
-        <div style="margin-left:10px;width:250px;"><JxSearch :screen="2"  title="搜索考核名称" @confirm="searchList"></JxSearch></div>
-      </div>
-      <div>
-        <!-- <el-button icon="el-icon-s-promotion" v-if="$getRole(1) && $isAuthoritys_jx($7)"  type="primary" @click="amhrsponsor">发起考核</el-button> -->
-        <!-- <el-button  @click="amhrImport">导入历史绩效</el-button> -->
-      </div>
-    </header>
-
-    <footer v-loading="tableDataLoad">
-      <el-table :data="tableData" @row-click="amfTabLckick" style="width: 100%;">
-        <el-table-column prop="name" label="考核名称"></el-table-column>
-        <el-table-column prop="date" label="考核周期"></el-table-column>
-<!--        <el-table-column prop="employee_num" label="参与人数">
-          <template slot-scope="scope">
-            <div style="width:55px;text-align:center;">{{ scope.row.employee_num }}</div>
-          </template>
-        </el-table-column> -->
-        <el-table-column prop="peoplenum" label="操作">
-          <template slot-scope="scope">
-            <el-button type="text" size="medium" @click="amfTabLckick(scope.row)">查看</el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <Pagination :page="assessData.page" :page_size="assessData.page_size" :total="total" @handleSizeChange="handleSizeChange" @handleCurrentChange="handleCurrentChange"></Pagination>
-    </footer>
-  </div>
-</template>
-
-<script>
-import JxSearch from '@/performance/components/public/JxSearch';
-export default {
-  name:'assessManagement',
-  data() {
-    return {
-      tableDataLoad: false, //列表load
-      amhlvalue: 0, //当前删选的时间
-      amhlList: [
-        { value: 0, label: '全部' },
-        { value: 2, label: '月度' },
-        { value: 3, label: '季度' },
-        { value: 4, label: '半年度' },
-        { value: 5, label: '年度' },
-        { value: 1, label: '日' },
-        { value: 6, label: '自定义' }
-      ],
-      total: 10,
-      assessData: {
-        cycle_type: 0, //周期类型
-        keywords: '', //搜索字
-        page: 1, //当期页
-        page_size: 10 ,//一页多少数据
-        is_manage_scope:1,
-      },
-
-      tableData: []
-    };
-  },
-  components: { JxSearch },
-  watch: {
-    amhlvalue(val) {
-      this.assessData.cycle_type = val;
-      this.assessData.page = 1;
-      this.assessBagList();
-    }
-  },
-  created() {
-    this.assessBagList();
-  },
-  activated() {
-    this.assessBagList();
-  },
-  methods: {
-    assessBagList() {
-      this.tableDataLoad = true;
-      this.$axiosUser('get', '/api/pro/per/package/list', this.assessData)
-        .then(res => {
-          if (res.data.code == 1) {
-            this.tableData = res.data.data.list;
-            this.total = res.data.data.total;
-          }
-        })
-        .finally(() => {
-          this.tableDataLoad = false;
-        });
-    },
-    searchList(data) {
-      //搜索
-      this.assessData.page = 1;
-      this.assessData.keywords = data;
-      this.assessBagList();
-    },
-    //发起考核
-    amhrsponsor() {
-      this.$router.push({ name: 'sponsorAssess' });
-    },
-    //导入历史绩效
-    amhrImport() {},
-
-    //点击表格某一行
-    amfTabLckick(row) {
-      this.$router.push({ path: '/assessDetails', query: { amfTabLckick: JSON.stringify(row) } });
-    },
-
-    // 页面变更
-    handleCurrentChange(val) {
-      this.assessData.page = val;
-      this.assessBagList();
-    },
-    // 页面跳转
-    handleSizeChange(val) {
-      this.assessData.page_size = val;
-      this.assessBagList();
-    }
-  }
-};
-</script>
-
-<style scoped="scoped" lang="scss">
-.all {
-  position: relative;
-  background-color: #fff;
-  padding: 20px;
-}
-header {
- margin-bottom: 20px;
-}
-footer {
-  /deep/ .el-table__row {
-    height: 60px;
-  }
-  // /deep/ .el-table__row .cell {
-  //   font-size: 13px;
-  // }
-  /deep/ .has-gutter tr {
-    background-color: rgb(240, 240, 240);
-  }
-  /deep/ .el-table tr:hover {
-    cursor: pointer;
-  }
-}
-.color_blue {
-  color: #1299f9;
-}
-</style>

+ 101 - 47
src/performance/views/assessManagement/assessManagement.vue

@@ -74,8 +74,7 @@
 
       <div class="navigationL flex-box-ce flex-d-wrap">
 
-        <div v-for="(item, index) in navigationList" :key="index" class="flex-box-ce" 
-          @click="navClick(item)">
+        <div v-for="(item, index) in navigationList" :key="index" class="flex-box-ce" @click="navClick(item)">
           <template v-if="item.num">
             <el-badge :value="item.num" class="item">
               <span class="flex-box-ce" :class="{ action: navcli == item.id }">
@@ -126,14 +125,14 @@
     <el-table :data="asstabData" v-loading="assDetLoad" @row-click="assDetClick" style="width: 100%; margin-top: 20px;"
       :header-cell-style="{ background: '#ECF5FF' }" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" v-if="navcli == 3"></el-table-column>
-      <el-table-column label="姓名" min-width="200">
+      <el-table-column label="姓名" min-width="120" align="center">
         <template slot-scope="scope">
           <userImage class="fl" :id="scope.row.employee_id" style="margin-top: 9px;" :user_name="scope.row.name"
             :img_url="scope.row.img_url" width="35px" height="35px" fontSize="12px"></userImage>
           <span style="margin-left: 10px; line-height: 50px;">{{ scope.row.name }}</span>
         </template>
       </el-table-column>
-      <el-table-column prop="dept_list" label="部门" min-width="300">
+      <el-table-column prop="dept_list" label="部门" min-width="300" align="center">
         <template slot-scope="scope">
           <template v-if="scope.row.dept_list.length > 0">
             <span v-for="(item, index) in scope.row.dept_list" :key="index">
@@ -144,13 +143,13 @@
           <span v-else>--</span>
         </template>
       </el-table-column>
-      <el-table-column prop="group_name" label="考核表" min-width="200">
+      <el-table-column prop="group_name" label="考核表" min-width="300" align="center">
         <template slot-scope="scope">
           <span v-if="!scope.row.relevance_group.delete_time">{{ scope.row.relevance_group.name }}</span>
           <span v-else class="red">该考核表已被删除</span>
         </template>
       </el-table-column>
-      <el-table-column prop="final_point" min-width="140" label="考核结果">
+      <el-table-column prop="final_point" min-width="120" label="考核结果" align="center">
         <template slot-scope="scope">
           <template v-if="scope.row.final_point">
             <span v-if="$getRole(1)">{{ scope.row.final_point }}</span>
@@ -160,7 +159,7 @@
           <span v-else>-</span>
         </template>
       </el-table-column>
-      <el-table-column prop="final_level" min-width="140" label="绩效等级">
+      <el-table-column prop="final_level" min-width="120" label="绩效等级" align="center">
         <template slot-scope="scope">
           <template v-if="scope.row.final_level">
             <span v-if="$getRole(1)">{{ scope.row.final_level }}</span>
@@ -170,7 +169,7 @@
           <span v-else>-</span>
         </template>
       </el-table-column>
-      <el-table-column prop="peoplenum" min-width="200" label="操作">
+      <el-table-column prop="peoplenum" min-width="300" label="操作" align="center">
         <template slot-scope="scope">
           <el-button type="text" size="medium" @click="assDetClick(scope.row)">查看</el-button>
           <template v-if="$isAuthoritys_jx($9) && !all_finish && scope.row.doing_id == 11">
@@ -528,6 +527,7 @@ export default {
         this.navcli = 0;
         this.asstabParams.doing_id = 0; //置空
       }
+      
       this.getInitData(this.asstabParams.package_id, () => { });
       this.assDelList(); //请求绩效详情列表
       this.getDcl();
@@ -538,53 +538,46 @@ export default {
       this.assDelList();
     }
   },
-  activated() {
-    let that = this;
-    let params = {
-      cycle_type: 2, //周期类型
-      keywords: '', //搜索字
-      page: 1, //当期页
-      page_size: 10,//一页多少数据
-      is_manage_scope: 1,
-    }
-    let amfTabL;
-    that.$axiosUser('get', '/api/pro/per/package/list', params)
-    .then(res => {
-      if (res.data.code == 1) {
-        that.tableData = res.data.data.list;
-        amfTabL = that.tableData[0];
-        if (amfTabL) {
-          that.asstabParams.package_id = amfTabL.id;
-          that.pushAssMan = amfTabL.pushs ? amfTabL.pushs : null;
-          that.svaeNavcli = amfTabL.navcli ? amfTabL.navcli : 0;
-          that.asstabParams.doing_id = amfTabL.navcli ? amfTabL.navcli : 0;
-          that.getInitData(this.asstabParams.package_id, () => { });
-          that.assDelList(); //请求绩效详情列表
-          that.getDcl();
-        }
-      }
-    })
-  },
-
   
 
-  created() {
+  
+  activated() {
+    console.log("activated");
     let that = this;
-    let params = {
-      cycle_type: 2, //周期类型
-      keywords: '', //搜索字
-      page: 1, //当期页
-      page_size: 10,//一页多少数据
-      is_manage_scope: 1,
+    if (that.headValue && that.headValue.length > 0) { 
+      let assessDetails = that.$getCache('assessDetails'); //缓存的数据
+      if (!(assessDetails && assessDetails.length > 0)) return
+      assessDetails = assessDetails.filter(item => item !== null)
+      that.asstabParams.package_id = assessDetails[assessDetails.length - 1];
+      that.asstabParams.group_ids = []; //置空
+
+      if (that.svaeNavcli) {
+        that.navcli = that.svaeNavcli;
+        that.asstabParams.doing_id = that.svaeNavcli; //置空
+        that.svaeNavcli = 0;
+      } else {
+        that.navcli = 0;
+        that.asstabParams.doing_id = 0; //置空
+      }
+      that.getInitData(that.asstabParams.package_id, () => { });
+      that.assDelList(); //请求绩效详情列表
+      that.getDcl();
     }
-    let amfTabL;
-    that.$axiosUser('get', '/api/pro/per/package/list', params)
+    else {
+      let params = {
+        cycle_type: 2, //周期类型
+        keywords: '', //搜索字
+        page: 1, //当期页
+        page_size: 10,//一页多少数据
+        is_manage_scope: 1,
+      }
+      let amfTabL;
+      that.$axiosUser('get', '/api/pro/per/package/list', params)
       .then(res => {
         if (res.data.code == 1) {
           that.tableData = res.data.data.list;
           amfTabL = that.tableData[0];
           if (amfTabL) {
-            let assessDetails = that.$getCache('assessDetails'); //缓存的数据
             that.pushAssMan = amfTabL.pushs ? amfTabL.pushs : null;
             that.asstabParams.package_id = amfTabL.id;
             that.assessTree(amfTabL.cycle_type, amfTabL.id); //请求绩效树
@@ -603,9 +596,70 @@ export default {
             //回显绩效树的选中
             that.getAddEmployee();
           }
-
         }
       })
+    }
+  },
+  created() {
+    console.log("created");
+    // let that = this;
+    // if (that.headValue && that.headValue.length > 0) {
+    //   let assessDetails = that.$getCache('assessDetails'); //缓存的数据
+    //   if (assessDetails && assessDetails.length > 0) {
+    //     assessDetails = assessDetails.filter(item => item !== null)
+    //     that.asstabParams.package_id = assessDetails[assessDetails.length - 1];
+    //     that.asstabParams.group_ids = []; //置空
+
+    //     if (that.svaeNavcli) {
+    //       that.navcli = that.svaeNavcli;
+    //       that.asstabParams.doing_id = that.svaeNavcli; //置空
+    //       that.svaeNavcli = 0;
+    //     } else {
+    //       that.navcli = 0;
+    //       that.asstabParams.doing_id = 0; //置空
+    //     }
+    //     that.getInitData(that.asstabParams.package_id, () => { });
+    //     that.assDelList(); //请求绩效详情列表
+    //     that.getDcl();
+    //   }
+    // //默认请求当月最新数据
+    // } else {
+    //   let params = {
+    //     cycle_type: 2, //周期类型
+    //     keywords: '', //搜索字
+    //     page: 1, //当期页
+    //     page_size: 10,//一页多少数据
+    //     is_manage_scope: 1,
+    //   }
+    //   let amfTabL;
+    //   that.$axiosUser('get', '/api/pro/per/package/list', params)
+    //     .then(res => {
+    //       if (res.data.code == 1) {
+    //         that.tableData = res.data.data.list;
+    //         amfTabL = that.tableData[0];
+    //         if (amfTabL) {
+    //           that.pushAssMan = amfTabL.pushs ? amfTabL.pushs : null;
+    //           that.asstabParams.package_id = amfTabL.id;
+    //           that.assessTree(amfTabL.cycle_type, amfTabL.id); //请求绩效树
+    //           that.svaeNavcli = amfTabL.navcli ? amfTabL.navcli : 0;
+    //           that.asstabParams.doing_id = amfTabL.navcli ? amfTabL.navcli : 0;
+    //           that.props = {
+    //             lazy: true,
+    //             label: 'name',
+    //             value: 'id',
+    //             children: 'list',
+    //             lazyLoad(node, resolve) {
+    //               const { level } = node;
+    //               that.getAssessTree(node, resolve);
+    //             }
+    //           }
+    //           //回显绩效树的选中
+    //           that.getAddEmployee();
+    //         }
+    //       }
+    //     })
+    // }
+    
 
   },
   methods: {

+ 2 - 3
src/performance/views/assessManagement/evaluateSet.vue

@@ -40,7 +40,7 @@
                 <el-tooltip effect="dark" content="预览流程" placement="top"><i class="el-icon-tickets blue" @click="preview(scope.row)"></i></el-tooltip>
                 <el-tooltip effect="dark" content="删除" placement="top"><i class="el-icon-delete red" @click="deleteItem(scope.row.id)"></i></el-tooltip> -->
                 <el-dropdown placement="bottom" :show-timeout="150" :hide-timeout="150">
-                  <span class="el-dropdown-links">···</span>
+                  <span class="el-icon-more"></span>
                   <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item :disabled="false">
                       <el-button type="text" class="color-red" v-loading.fullscreen.lock="bodyLoad"
@@ -296,8 +296,7 @@ export default {
 }
 
 
-.el-dropdown-links {
-  font-size: 20px;
+.el-icon-more {
   cursor: pointer;
   color: #a6a8aa;
 }

+ 0 - 2619
src/performance/views/assessManagement/staffAssDet copy.vue

@@ -1,2619 +0,0 @@
-<template>
-  <div class="all boxMinHeight">
-    <template v-if="isDetails">
-      <PageHead phName="员工绩效详情"></PageHead>
-      <div class="flex-box-ce" style="position: absolute;right: 20px;top: 20px;z-index: 2;">
-        <el-select v-model="headvalue" style="width: 300px;" placeholder="请选择" v-if="!isDisabled">
-          <el-option v-for="item in headoptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
-        </el-select>
-        <div v-else class="fontColorB font-flex-word" style="width: 250px;">{{ packageName }}</div>
-      </div>
-      <header v-loading="staffLoad">
-        <div class="flex-box-ce head">
-          <div class="flex-box-ce head2User flex-1">
-            <userImage class="fl" :id="remployee.id" :user_name="remployee.name" :img_url="remployee.img_url"
-              width="50px" height="50px"></userImage>
-            <div class="headTname">
-              <div style="">{{ remployee.name }}</div>
-              <span v-for="(item, index) in remployee.employee_detail.dept_list" :key="index"
-                v-if="remployee.employee_detail.dept_list.length > 0">
-                <span>{{ item.dept_name }}</span>
-                <span v-if="remployee.employee_detail.dept_list.length - index > 1">,</span>
-              </span>
-            </div>
-            <img v-if="has_finish" src="static/images/guidang.png" class="guidang">
-          </div>
-          <template v-if="!gradeBegin">
-            <div class="button-width" v-if="!has_finish">
-              <el-button-group>
-                <!-- 撤销上一次操作 -->
-                <template v-if="revocationShow">
-                  <el-button @click="isShowCx = true" type="primary">撤销上一次操作</el-button>
-                </template>
-
-                <!-- 目标制定节点 -->
-                <template v-if="isShowTargetBtn">
-                  <el-button type="primary" icon="el-icon-s-flag" @click="openFormulate()">制定目标</el-button>
-                  <el-button type="primary" icon="el-icon-mouse" @click="submit()">提交</el-button>
-                </template>
-
-                <!-- 目标确认 -->
-                <template v-if="isShowConfirmBtn">
-                  <el-button type="primary" @click="gradeOk">同意</el-button>
-                  <el-button class="red" type="danger" plain @click="gradeTurn"
-                    style="margin-left: -2px;background-color: #fff;">驳回</el-button>
-                  <el-button v-if="isUpdateIndex" @click="openFormulate()">修改目标</el-button>
-                </template>
-
-                <!-- 录入结果值 -->
-                <el-button v-if="resultButShow" @click="openResult()" type="primary" icon="el-icon-edit-outline">{{
-                  resultStr
-                  }}</el-button>
-                <!-- 审批 -->
-                <template v-if="examineButShow">
-                  <el-button type="primary" icon="el-icon-check" @click="gradeOk">同意</el-button>
-                  <el-button type="danger" icon="el-icon-close" class="red" plain v-if="isAction" @click="gradeTurn"
-                    style="margin-left: -2px;background-color: #fff;">驳回</el-button>
-                </template>
-                <!-- 评分 -->
-                <el-button type="primary" icon="el-icon-finished">关联OKR</el-button>
-                <el-button type="primary" icon="el-icon-finished" v-if="gradeButShow" @click="gradeClick">评分</el-button>
-                <el-button type="primary" icon="el-icon-tickets" v-if="recordsManagement"
-                  @click="isTrack = true">管理记录</el-button>
-                <el-button type="primary" icon="el-icon-pie-chart" v-if="actionButShow"
-                  @click="isPlan = true">执行计划</el-button>
-                <el-button type="primary" icon="el-icon-chat-dot-round" v-if="feedbackBut"
-                  @click="communication = true">沟通反馈</el-button>
-              </el-button-group>
-              <!-- 主次管理员,被考核人上级 -->
-              <template v-if="$getRole(1) || isSj">
-                <el-dropdown style="margin-left:10px;" @command="handleCommand">
-                  <el-button>管理</el-button>
-                  <el-dropdown-menu slot="dropdown">
-                    <el-dropdown-item v-for="(item, index) in dropdownMenu" :key="index" :command="item.key"
-                      :divided="item.bordok" v-if="item.isShow">
-                      {{ item.name }}
-                    </el-dropdown-item>
-                  </el-dropdown-menu>
-                </el-dropdown>
-              </template>
-            </div>
-          </template>
-        </div>
-        <!-- 流程 -->
-        <div class="flex-box-ce flex-d-wrap">
-          <div v-for="(item, index) in flow" :key="index"
-            :class="[item.status == 1 ? 'flow-item-color' : '', index == 0 ? 'flow-item-start' : 'flow-item']"
-            class="flex-box-ce">
-            <el-tooltip effect="dark" :content="item.code == 'execution' ? execution : item.remarks" placement="top">
-              <span class="flow-box">
-                <span>{{ index + 1 }}.{{ item.remark }}</span>
-                <span v-if="item.code == 'execution'">
-                  <i class="el-icon-warning-outline"></i>
-                  :
-                </span>
-                <template v-if="item.target.length > 0">
-                  <span v-for="(item2, index2) in item.target" :key="index2">
-                    {{ item2.employee_name }}
-                    <span v-if="item.target.length - index2 > 1">,</span>
-                  </span>
-                </template>
-              </span>
-            </el-tooltip>
-            <i class="el-icon-success blue" v-if="item.status == 2" style="margin-right:10px;"></i>
-            <div @click.stop="processDet(item)" style="width: 20px;" class="dian"
-              v-if="item.target.length > 0 && !gradeBegin">
-              <i class="el-icon-more detailsPonit"></i>
-            </div>
-            <img src="static/images/jt.png" class="flow-img"
-              v-if="index != (flow.length - 1) || flow[flow.length - 1].status == 2">
-          </div>
-
-          <template v-if="flow.length > 0">
-            <div class="flow-item flex-box-ce flex-center-center" v-if="flow[flow.length - 1].status == 2">
-              <span class="flex-1">{{ flow.length + 1 }}.结束</span>
-              <i class="el-icon-success blue" style="margin-right:10px;"></i>
-            </div>
-          </template>
-        </div>
-        <!-- 考核结果 -->
-        <div class="flex-box-end flex-v-ce" style="margin-top: 20px;">
-          <template v-if="dimension.length > 0">
-            <div class="flex-box-ce result" v-if="dimension[0].final_point" style="margin-right: 20px;">
-              <span style="padding-right: 20px;">考核结果分数:{{ dimension[0].final_point }}分</span>
-              <span>等级:{{ dimension[0].final_level }}</span>
-            </div>
-          </template>
-          <el-tooltip placement="bottom">
-            <div class="popover-box" slot="content">
-              <div class="popover-title">开启显示更多可浏览全部考核内容</div>
-              <div class="popover-content">点击右边箭头和滑动下方滚动条都可以查看更多内容</div>
-            </div>
-            <el-switch v-model="isShowOneselfScore" active-text="显示更多">
-            </el-switch>
-          </el-tooltip>
-        </div>
-
-        <!-- 表格 -->
-        <div class="dimensionCla" v-loading="tableLoad">
-          <!-- 点击滚动 -->
-          <TableBox :tableData="dimension" :isShowYd="isShowOneselfScore"
-            :headerCellStyle="{ background: '#ECF5FF', textAlign: 'center' }" :objectSpanMethod="objectSpanMethod">
-            <el-table-column prop="theDimension" width="80" label="维度" align="center">
-              <template slot-scope="scope">
-                <span style="width: 13px;display: inline-block;">{{ scope.row.theDimension }}</span>
-                <template v-if="calc_dimension && (scope.row.type == 1 || scope.row.type == 2)">
-                  <div v-if="!scope.row.toScore">({{ scope.row.dimension_weight }}%)</div>
-                </template>
-              </template>
-            </el-table-column>
-            <el-table-column prop="name" label="指标名称" min-width="220">
-              <template slot-scope="scope">
-                <!--                   <template v-if="Number(scope.row.weight) > 0">
-                     <PreBox :value="scope.row.name+'(权重:'+scope.row.weight+'%)'"></PreBox>
-                   </template> -->
-                <PreBox :value="scope.row.name"></PreBox>
-              </template>
-            </el-table-column>
-            <el-table-column prop="name" label="权重" align="center" width="60">
-              <template slot-scope="scope">
-                <span v-if="Number(scope.row.weight) > 0">{{ scope.row.weight }}%</span>
-                <span v-else>--</span>
-              </template>
-            </el-table-column>
-            <template v-if="isShowOneselfScore">
-              <el-table-column prop="type" label="指标类型">
-                <template slot-scope="scope">
-                  <span v-if="scope.row.type == 1">量化指标</span>
-                  <span v-if="scope.row.type == 2">非量化指标</span>
-                  <span v-if="scope.row.type == 3">额外加分项</span>
-                  <span v-if="scope.row.type == 4">额外扣分项</span>
-                </template>
-              </el-table-column>
-            </template>
-
-            <el-table-column prop="target" label="目标值" align="left" min-width="150" v-if="getTableItem('target')">
-              <template slot-scope="scope">
-                <div v-if="scope.row.target != '-' && scope.row.target != undefined && scope.row.target != '0'">
-                  目标值:
-                  <span>{{ scope.row.target + '' + scope.row.unit }}</span>
-                </div>
-                <span v-else>-</span>
-                <div v-if="scope.row.result !== null && scope.row.result !== '' && scope.row.result !== undefined"
-                  class="orange">
-                  <template v-if="scope.row.type == 1">
-                    结果值: <span>{{ scope.row.result + '' + scope.row.unit }}</span><span
-                      v-if="scope.row.resultUserName">({{ scope.row.resultUserName }})</span>
-                  </template>
-                  <!-- <template v-if="scope.row.result_file">
-                    <div v-if="scope.row.result_file.images.length>0">
-                      <div style="margin-bottom: 3px;cursor: pointer;" class="blue" v-for="(item, index) in scope.row.result_file.images" :key="index" @click="onFilePreView(item)">{{ item.name }}</div>
-                    </div>
-                    <div v-if="scope.row.result_file.append.length>0">
-                      <div style="margin-bottom: 3px;cursor: pointer;" class="blue" v-for="(item, index) in scope.row.result_file.append" :key="index" @click="onFilePreView2(item)">{{ item.name }}</div>
-                    </div>
-                  </template> -->
-                </div>
-                <span v-else>-</span>
-              </template>
-            </el-table-column>
-
-            <el-table-column prop="target" label="附件" align="left" min-width="150" v-if="getTableItem('result_file')">
-              <template slot-scope="scope" v-if="scope.row.result_file">
-                <div v-if="scope.row.result_file.images.length > 0">
-                  <div style="margin-bottom: 3px;cursor: pointer;" class="blue"
-                    v-for="(item, index) in scope.row.result_file.images" :key="index" @click="onFilePreView(item)">{{
-                      item.name }}</div>
-                </div>
-                <div v-if="scope.row.result_file.append.length > 0">
-                  <div style="margin-bottom: 3px;cursor: pointer;" class="blue"
-                    v-for="(item, index) in scope.row.result_file.append" :key="index" @click="onFilePreView2(item)">{{
-                      item.name }}</div>
-                </div>
-              </template>
-            </el-table-column>
-
-            <template v-if="isShowOneselfScore">
-              <el-table-column prop="point_limit" label="加扣分上限" align="center" width="100"
-                v-if="getTableItem('point_limit')"></el-table-column>
-            </template>
-
-            <el-table-column prop="per_remark" label="考核标准" min-width="200" v-if="getTableItem('per_remark')">
-              <template slot-scope="scope">
-                <PreBox :value="scope.row.per_remark"></PreBox>
-              </template>
-            </el-table-column>
-
-            <el-table-column prop="remark" label="备注" min-width="200" v-if="isShowOneselfScore">
-              <template slot-scope="scope">
-                <PreBox :value="scope.row.remark"></PreBox>
-              </template>
-            </el-table-column>
-
-            <el-table-column prop="schedule" label="执行计划" align="center" min-width="200"
-              v-if="getTableItem('schedule')">
-              <template slot-scope="scope">
-                <div class="flex-box-ce" v-if="scope.row.schedule && scope.row.schedule.length > 0">
-                  <el-button type="text" class="flex-1" @click="openPlan(scope.row.planIndex)">({{
-                    scope.row.schedule.length }}) 条执行计划</el-button>
-                </div>
-                <span v-else>-</span>
-              </template>
-            </el-table-column>
-
-            <el-table-column prop="mamage_record" label="跟踪管理记录" align="center" min-width="200"
-              v-if="getTableItem('mamage_record')">
-              <template slot-scope="scope">
-                <div class="flex-box-ce" v-if="scope.row.mamage_record && scope.row.mamage_record.length > 0">
-                  <el-button type="text" class="flex-1" @click="openTrack(scope.row.planIndex)">({{
-                    scope.row.mamage_record.length }}) 条管理记录</el-button>
-                </div>
-                <span v-else>-</span>
-              </template>
-            </el-table-column>
-
-            <el-table-column v-for="(item, index) in lingScore_infos" :key="index" min-width="200"
-              v-if="(item.poiSco || item.poicom) && isShowOneself(item)">
-              <template slot="header" slot-scope="scope">
-                <el-tooltip effect="dark" :content="item.title" placement="top">
-                  <span>
-                    <div class="font-flex-word">{{ item.title }}</div>
-                  </span>
-                </el-tooltip>
-              </template>
-              <el-table-column prop="title" min-width="100" v-if="item.poiSco">
-                <template slot="header" slot-scope="scope">
-                  <span>评分</span>
-                </template>
-                <template slot-scope="scope">
-                  <div v-for="(arr, att) in scope.row.score_infos" :key="att">
-                    <div v-if="arr.newKey == item.newKey">
-                      <span v-if="arr.employee_id == item.employee_id">{{ initData(arr.point) }} <span
-                          class="blue">{{ arr.level }}</span></span>
-                      <span v-else>-</span>
-                    </div>
-                  </div>
-                  <span v-if="scope.row.score_infos ? scope.row.score_infos.length == 0 : ''">-</span>
-                  <!-- 总分分数 -->
-                  <span v-if="scope.row.toScore">{{ item.totalScore }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column prop="title" min-width="100" v-if="item.poicom">
-                <template slot="header" slot-scope="scope">
-                  <span>说明</span>
-                </template>
-                <template slot-scope="scope">
-                  <div v-for="(arr, att) in scope.row.score_infos" :key="att">
-                    <div v-if="arr.newKey == item.newKey">
-                      <span v-if="arr.employee_id == item.employee_id">
-                        <PreBox :value="initData(arr.remark)"></PreBox>
-                      </span>
-                      <span v-else>-</span>
-                    </div>
-                  </div>
-                  <span v-if="scope.row.score_infos ? scope.row.score_infos.length == 0 : ''">-</span>
-                  <span v-if="scope.row.toScore">
-                    <PreBox :value="item.comment"></PreBox>
-                  </span>
-                </template>
-              </el-table-column>
-            </el-table-column>
-
-            <!-- 输入框 -->
-            <template v-if="gradeBegin">
-              <!-- 评分输入 -->
-              <el-table-column min-width="250" fixed="right">
-                <template slot="header" slot-scope="scope">
-                  <div>{{ scoreTab.title }}</div>
-                </template>
-                <template slot-scope="scope">
-                  <el-popover placement="top" v-if="scope.row.auto_score === 0 || scope.row.auto_score" width="400"
-                    trigger="hover">
-                    <div style="padding: 10px;padding-top: 0;">
-                      <div class="flex-box-ce">
-                        <div class="flex-1">按以下公式和数据自动计算评分</div>
-                      </div>
-                      <div v-html="scope.row.expressionStr"
-                        style="background-color: #f1f1f1;padding: 10px;text-align: left;border-radius: 5px;cursor: pointer;">
-                      </div>
-                      <div class="flex-box-ce">
-                        <div class="orange" style="margin-right: 20px;">结果值:{{ scope.row.result }}</div>
-                        <div class="orange">目标值:{{ scope.row.target }}</div>
-                      </div>
-                    </div>
-                    <div slot="reference">系统评分<i class="el-icon-warning"></i>:<span
-                        class="blue">{{ scope.row.auto_score }}</span></div>
-                  </el-popover>
-                  <div v-if="thecurrentFlow == 'score_supervisor'">
-                    <!-- 评指标分 -->
-                    <el-input v-if="ruleScore == 1 && !scope.row.totalScore" :rows="1" @blur="sgradeBlur(scope.$index)"
-                      @input="[sgradeInp(scope.$index, scope.row), (scope.row.score_grade = scope.row.score_grade.match(/\d+(\.\d{0,2})?/) ? scope.row.score_grade.match(/\d+(\.\d{0,2})?/)[0] : '')]"
-                      v-model="scope.row.score_grade" placeholder="请输入"></el-input>
-                    <span v-else-if="ruleScore == 1 && scope.row.totalScore">{{ tabTotaScore }}</span>
-                    <!-- 评总分 -->
-                    <el-input v-else-if="ruleScore == 2 && scope.row.totalScore" :rows="1"
-                      @input="[sgradeInp(scope.$index, scope.row), (scope.row.score_grade = scope.row.score_grade.match(/\d+(\.\d{0,2})?/) ? scope.row.score_grade.match(/\d+(\.\d{0,2})?/)[0] : '')]"
-                      v-model="scope.row.score_grade" placeholder="请输入"></el-input>
-                    <span v-else>-</span>
-                  </div>
-
-                  <div v-else>
-                    <span v-if="scope.row.totalScore">{{ tabTotaScore }}</span>
-                    <el-input v-else :rows="1" @blur="sgradeBlur(scope.$index)"
-                      @input="[sgradeInp(scope.$index, scope.row), (scope.row.score_grade = scope.row.score_grade.match(/\d+(\.\d{0,2})?/) ? scope.row.score_grade.match(/\d+(\.\d{0,2})?/)[0] : '')]"
-                      v-model="scope.row.score_grade" placeholder="请输入"></el-input>
-                  </div>
-                </template>
-              </el-table-column>
-              <!-- 说明 -->
-              <el-table-column min-width="150" fixed="right">
-                <template slot="header" slot-scope="scope">
-                  <div>{{ scoreTab.explain }}</div>
-                </template>
-                <template slot-scope="scope">
-                  <div style="cursor: pointer;">
-                    <!-- 指标评分说明 -->
-                    <template v-if="ruleScore == 1 && !scope.row.totalScore">
-                      <div @click="showPf(scope.$index, 1)">
-                        <PreBox :value="scope.row.score_remark" v-if="scope.row.score_remark"></PreBox>
-                        <div v-else class="shuru">请输入</div>
-                      </div>
-                    </template>
-                    <!-- 总分说明 -->
-                    <template v-if="ruleScore == 2 && scope.row.totalScore">
-                      <div @click="showPf(scope.$index, 2)">
-                        <PreBox :value="scope.row.total_score_comment" v-if="scope.row.total_score_comment"></PreBox>
-                        <div v-else class="shuru">请输入</div>
-                      </div>
-                    </template>
-                  </div>
-                </template>
-              </el-table-column>
-            </template>
-
-          </TableBox>
-        </div>
-        <Record :record="record"></Record>
-      </header>
-      <footer class="footer flex-box-end" v-if="gradeBegin">
-        <el-button @click="cancel">取消</el-button>
-        <el-button class="primaryBtn" @click="save(0)">暂存</el-button>
-        <el-button type="primary" @click="save(1)">提交评分</el-button>
-      </footer>
-    </template>
-    <resultSetAll2 v-else :peIds="resultData.peIds" :packageName="resultData.packageName"></resultSetAll2>
-
-    <!-- 上一个 下一个 -->
-    <div class="upDown-box" v-if="isDisabled && !gradeBegin">
-      <div class="flex-box-ce flex-center-center fontColorB" style="height: 60px;">
-        <div class="flex-1 orange" v-if="!up.employeeID" style="text-align: center;border-right: 1px solid #f1f1f1;">
-          已无待办</div>
-        <div class="flex-1 flex-box-ce flex-center-center up-item" v-else style="border-right: 1px solid #f1f1f1;"
-          @click="qieh(1)">
-          <userImage :user_name="up.name" :img_url="up.img_url" width="40px" height="40px" fontSize="12"></userImage>
-          <div class="upName font-flex-word">{{ up.name }}</div>
-          <div>上一个</div>
-        </div>
-        <div class="flex-1 orange" v-if="!down.employeeID" style="text-align: center;">已无待办</div>
-        <div class="flex-1 flex-box-ce flex-center-center up-item" v-else @click="qieh(2)">
-          <div>下一个</div>
-          <div class="upName font-flex-word">{{ down.name }}</div>
-          <userImage :user_name="down.name" :img_url="down.img_url" width="40px" height="40px" fontSize="12">
-          </userImage>
-        </div>
-      </div>
-    </div>
-
-    <!-- 流程详情 -->
-    <BrawerBox :drawerTitle="processDel.remarkDel + proNum" :footNo="false" :showDrawer.sync="isChecks">
-      <template slot="main">
-        <div class="processSty">
-          <div v-for="(item, index) in processDel.target" :key="index" class="flex-box flex-d-center proListSty">
-            <div style="width:230px;" class="flex-box flex-d-center flex-h-ce">
-              <div>
-                <userImage class="fl" :id="item.employee_id" :user_name="item.employee_name" width="30px" height="30px"
-                  fontSize="12"></userImage>
-                <span class="proName">{{ item.employee_name }}</span>
-              </div>
-              <el-tag v-if="processDel.status == 0" size="mini" type="warning" color="#ffe7d3"
-                style="color:#ff8d00;">流程未到</el-tag>
-              <!-- 针对任一人处理了,其他人显示无需处理 -->
-              <template v-else-if="item.status == 1">
-                <template v-if="(processDel.multi_executor == 2) && getStrus()">
-                  <el-tag size="mini">无需处理</el-tag>
-                </template>
-                <template v-else>
-                  <el-tag size="mini">处理中</el-tag>
-                </template>
-              </template>
-              <el-tag v-else-if="item.status == 2" size="mini" type="success">已处理</el-tag>
-            </div>
-            <!-- 主子管理员 并且当前节点里包括登录者-->
-            <template v-if="$getRole(1) || item.employee_id == userInfo.id">
-              <template v-if="processDel.code == 'score_supervisor' || processDel.code == 'special_scorer'">
-                <!-- 指定评分人节点 -->
-                <template v-if="processDel.code == 'score_supervisor'">
-                  <el-button v-if="transferBut && item.status == 1 && (processDel.transfer || $getRole(1))" class="proButt"
-                    @click="careOf(item)">转交</el-button>
-                </template>
-                <!-- 特定指标指定评分人,因为默认是可以转交的,所有没有 transfer 字段 -->
-                <template v-else>
-                  <el-button v-if="transferBut && item.status == 1" class="proButt" @click="careOf(item)">转交</el-button>
-                </template>
-              </template>
-              <template v-else-if="processDel.code == 'review' || processDel.code == 'confirm'">
-                <el-button
-                  v-if="transferBut && item.status == 1 && ((processDel.action.indexOf('transfer') >= 0) || $getRole(1))"
-                  class="proButt" @click="careOf(item)">转交</el-button>
-              </template>
-              <template v-else>
-                <el-button v-if="transferBut && item.status == 1" class="proButt" @click="careOf(item)">转交</el-button>
-              </template>
-            </template>
-          </div>
-        </div>
-      </template>
-    </BrawerBox>
-    <!-- 审批同意 -->
-    <el-dialog title="意见说明" :visible.sync="examineConsent" width="500px" :close-on-click-modal="false">
-      <el-input type="textarea" v-model="tDownList.comment" rows="4" placeholder="请输入意见说明(选填)"></el-input>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="tDlose(1)">取 消</el-button>
-        <el-button type="primary" @click="tDownOk(1)">确 定</el-button>
-      </span>
-    </el-dialog>
-    <!--驳回评分 -->
-    <BrawerBox drawerTitle="驳回评分" :showDrawer.sync="turnDown">
-      <template slot="main">
-        <el-form label-position="top" label-width="80px" :rules="rFlowRules" :model="tDownList" ref="tDownList"
-          class="elFrom-margin">
-          <el-form-item label="重置到" prop="node_id">
-            <el-select v-model="tDownList.node_id" clearable placeholder="请选择阶段" style="width:100%;">
-              <el-option v-for="item in rFlowArrive" :key="item.value" :label="item.label"
-                :value="item.value"></el-option>
-            </el-select>
-            <el-select v-if="rUsers.length > 0" multiple v-model="tDownList.employee_id" clearable placeholder="请选择重置人员"
-              style="width:100%;margin-top: 10px;">
-              <el-option v-for="item in rUsers" :key="item.value" :label="item.label" :value="item.value"></el-option>
-            </el-select>
-          </el-form-item>
-          <el-form-item label="驳回说明" :required="true">
-            <el-input type="textarea" rows="7" placeholder="请输入驳回意见(必填)" v-model="tDownList.comment"></el-input>
-          </el-form-item>
-        </el-form>
-      </template>
-      <template slot="footer">
-        <el-button plain size="" @click="tDlose(0)">取消</el-button>
-        <el-button type="primary" @click="tDownOk(0, 'tDownList')">确认</el-button>
-      </template>
-    </BrawerBox>
-    <!-- 重置流程 -->
-    <BrawerBox drawerTitle="重置流程" :showDrawer.sync="resetFlow">
-      <template slot="main">
-        <el-form label-position="top" :rules="rFlowRules" :model="rFlowList" ref="rFlowList" label-width="80px"
-          class="elFrom-margin">
-          <el-form-item label="操作">
-            <el-radio-group v-model="rFlowList.type">
-              <el-radio :label="1">重置到指定节点</el-radio>
-              <el-radio :label="2">重新读取考核模板设置</el-radio>
-            </el-radio-group>
-          </el-form-item>
-          <el-form-item label="指标处理" v-if="rFlowList.type == 2">
-            <el-radio-group v-model="rFlowList.overwrite_mode">
-              <el-radio :label="2">保留已制定指标</el-radio>
-              <el-radio :label="1">重置指标</el-radio>
-            </el-radio-group>
-          </el-form-item>
-          <el-form-item label="重置到" prop="node_id" v-if="rFlowList.type == 1">
-            <el-select v-model="rFlowList.node_id" clearable placeholder="请选择阶段" style="width:100%;">
-              <el-option v-for="item in rFlowArrive" :key="item.value" :label="item.label"
-                :value="item.value"></el-option>
-            </el-select>
-            <el-select v-if="rUsers.length > 0" multiple v-model="rFlowList.employee_id" clearable placeholder="请选择重置人员"
-              style="width:100%;margin-top: 10px;">
-              <el-option v-for="item in rUsers" :key="item.value" :label="item.label" :value="item.value"></el-option>
-            </el-select>
-          </el-form-item>
-          <el-form-item label="重置说明" prop="comment">
-            <el-input type="textarea" rows="6" placeholder="请输入重置说明(必填)" v-model="rFlowList.comment" maxlength="200"
-              show-word-limit></el-input>
-          </el-form-item>
-        </el-form>
-      </template>
-      <template slot="footer">
-        <el-button plain @click="resetFlow = false">取消</el-button>
-        <el-button type="primary" @click="rFlowOk('rFlowList')">确认</el-button>
-      </template>
-    </BrawerBox>
-    <!-- 跟踪管理 -->
-    <TrackManagement :showDrawer.sync="isTrack" :isCz="!isCzData" :recordMemberIds="recordMemberIds" :id="employeeID"
-      :apList="apList" :assessId="employID" @confirm="employeeDet" :planIndex="planIndex"></TrackManagement>
-    <!-- 执行计划 -->
-    <ActionPlan :showDrawer.sync="isPlan" :isCz="!isCzData" :id="employeeID" :apList="apList" :assessId="employID"
-      @confirm="employeeDet" :planIndex="planIndex"></ActionPlan>
-    <!-- 沟通反馈 -->
-    <BrawerBox drawerTitle="沟通反馈" :showDrawer.sync="communication">
-      <template slot="main">
-        <el-input type="textarea" v-model="communicationVal" rows="10" placeholder="请输入反馈内容(必填)" maxlength="300"
-          show-word-limit></el-input>
-        <div class="aite" @click="selectUser = true">@</div>
-        <el-tag style="margin: 0 5px;" v-for="(tag, index) in tags" :key="tag.id" closable
-          @close="handleClose(tag, index)">{{ tag.name }}</el-tag>
-      </template>
-      <template slot="footer">
-        <span class="dialog-footer">
-          <el-button @click="communication = false">取 消</el-button>
-          <el-button type="primary" @click="saveCommunication()">确 定</el-button>
-        </span>
-      </template>
-    </BrawerBox>
-    <!-- 沟通反馈 -->
-    <EmployeeSelector title="选择@人员" :is_filtration_creator="false" :visible.sync="selectUser"
-      @confirm="confirmCreator" />
-    <!-- 转交 -->
-    <EmployeeSelector title="选择人员" :is_filtration_creator="false" :multi="false" :isChecKedAll="false"
-      :visible.sync="careOfSelector" @confirm="confirmcareOf" />
-    <!-- 评分说明 -->
-    <el-dialog title="评分说明" :visible.sync="isShowPf" width="500px" :close-on-click-modal="false">
-      <el-input type="textarea" v-model="pfText" rows="4" placeholder="请输入评分说明" maxlength="100"
-        show-word-limit></el-input>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="isShowPf = false">取 消</el-button>
-        <el-button type="primary" @click="updateText()">确 定</el-button>
-      </span>
-    </el-dialog>
-    <!-- 撤销操作 -->
-    <el-dialog title="撤销" :visible.sync="isShowCx" width="500px" :close-on-click-modal="false">
-      <el-input type="textarea" v-model="cxText" rows="4" placeholder="请输入撤销理由" maxlength="200"
-        show-word-limit></el-input>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="isShowCx = false">取 消</el-button>
-        <el-button type="primary" @click="revocation()">确 定</el-button>
-      </span>
-    </el-dialog>
-    <!-- 调整目标反馈 -->
-    <el-dialog title="调整目标" :visible.sync="isAdjustment" :close-on-click-modal="false" width="700px">
-      <div>
-        <el-radio-group v-model="radio">
-          <div class="flex-box-v">
-            <el-radio :label="1" style="margin-bottom: 30px;">仅修改指标内容,不重置考核流程
-              <br /> <span
-                style="font-size: 12px;color: #C0C4CF;padding-left: 25px;padding-top: 5px;">不影响进行中的考核流程,只对指标内容和信息进行修改</span>
-            </el-radio>
-            <el-radio :label="2">修改指标,并重置考核流程
-              <br /> <span
-                style="font-size: 12px;color: #C0C4CF;padding-left: 25px;">修改指标并按照新的流程来进行考核,已评分和已审批的记录也会被重置</span>
-            </el-radio>>
-          </div>
-        </el-radio-group>
-      </div>
-      <span slot="footer">
-        <el-button @click="isAdjustment = false">取消</el-button>
-        <el-button type="primary" @click="setDataAccess">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <!-- 评分确认 -->
-    <el-dialog title="请确认您的评分" :visible.sync="isPoint" :close-on-click-modal="false" width="700px">
-      <div>
-        <el-table :data="pointList" :header-cell-style="{ background: '#ECF5FF' }" border>
-          <el-table-column prop="name" min-width="150" label="指标">
-            <template slot="header" slot-scope="scope">
-              <span>指标(<span style="color:#ff9600;">每项指标评分</span>)</span>
-            </template>
-          </el-table-column>
-          <!-- <el-table-column prop="score_remark" label="评分说明"></el-table-column> -->
-          <el-table-column prop="score" label="评分" align="left"></el-table-column>
-        </el-table>
-      </div>
-      <span slot="footer">
-        <el-button @click="isPoint = false">返回修改</el-button>
-        <el-button type="primary" @click="score">确定</el-button>
-      </span>
-    </el-dialog>
-    <el-dialog title="图片查看" :visible.sync="isShowImg" width="50%">
-      <img :src="imgUrl" style="width: 100%;">
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="isShowImg = false">取 消</el-button>
-        <el-button type="primary" @click="isShowImg = false">确 定</el-button>
-      </span>
-    </el-dialog>
-    <el-dialog title="" :visible.sync="dialogVisible" width="50%">
-      <div></div>
-      <div slot="footer">
-        <el-button @click="dialogVisible = false">取 消</el-button>
-        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-<script>
-import BrawerBox from '@/performance/components/public/BrawerBox';
-import PageHead from '@/components/PageHead'; //头部---返回
-import Record from '@/performance/components/public/Record';
-import ActionPlan from '@/performance/components/public/ActionPlan';
-import TableBox from '@/performance/components/public/TableBox';
-import TrackManagement from '@/performance/components/public/TrackManagement';
-import EmployeeSelector from '@/components/EmployeeSelector';
-import resultSetAll2 from '@/performance/views/myPerformance/resultSetAll2';
-import { getExpressionStr } from '@/performance/utils/auth'
-export default {
-  name: 'staffAssDet',
-  components: {
-    PageHead,
-    BrawerBox,
-    Record,
-    ActionPlan,
-    TableBox,
-    TrackManagement,
-    EmployeeSelector,
-    resultSetAll2
-  },
-  data() {
-    return {
-      dialogVisible: false,
-      radio: 1,
-      isAdjustment: false,
-      isDetails: true,//是否显示考核详情页面
-      resultData: {},
-      gradeList: [],
-      dropdownMenu: [{ key: 'a', name: '重置流程', isShow: true }, { key: 'b', name: '调整目标', isShow: true }],
-      lingScore_infos: [],
-      staffLoad: false, //loading
-      tableLoad: false, //loading
-      execution: '目标制定并确认完毕后,进入到【执行中】阶段,期间员工执行计划,上级跟踪过程。进入结果数据收集和评分阶段',
-      isChecks: false, //侧边弹窗
-      headvalue: '',
-      headoptions: [],
-      employeeID: 0, //考核记录ID
-      employID: 0, //当前角色ID
-      empDetList: {},
-      remployee: { employee_detail: {} }, //被考核人员信息
-      flow: [], //步骤
-      atPresentFlow: 0, //当前步骤ID
-      dimension: [], //维度表格信息
-      config: {}, //配置
-      tableData: [],
-      communication: false, //沟通
-      communicationVal: '',
-      tags: [], //沟通@人员
-      selectUser: false,
-      nowFLow: '', //当前的流程
-      turnDown: false, //驳回开关
-      tDownArrive: [], //驳回到--数据
-      tDownList: {
-        node_id: '', //重置到某个节点,
-        employee_id: [], //重置到节点的某个用户 0表示驳回到节点
-        comment: '' //审核意见
-      },
-      userInfo: this.$userInfo(),
-      processDel: {}, //流程侧边栏
-      proNum: '', //流程侧边栏头部
-      calc_dimension: 0, //是否参与权重
-      revocationNodeId: 1,//撤销节点ID
-      isShowCx: false,
-      cxText: '',
-      //按钮显示隐藏
-      revocationShow: false,//是否可以撤销
-      gradeButShow: false, //评分
-      actionButShow: true, //执行计划
-      recordsManagement: true, //管理记录
-      examineButShow: false, //审批
-      isAction: false,//驳回控制
-      resultButShow: false, //结果值录入
-      gradeBegin: false, //评分确定
-      scoreTab: {}, //评分表头
-      record: [], //考核记录
-      planIndex: [], //执行计划的下标,当点击表格查看时用到
-      apList: [], //执行计划数据
-      isPlan: false, //计划弹窗
-      // 重置流程
-      resetFlow: false,
-      rFlowArrive: [], //重置节点数据
-      rUsers: [], //重置用户数据
-      rFlowList: {
-        type: 1, //重置类型 1 流程内重置 2 重读维度流程 重置
-        node_id: '', //重置到某个节点, (type 1 必填)
-        employee_id: [], //重置到节点的某个用户 0表示驳回到节点 (type 1 必填)
-        overwrite_mode: 2, //1 从原来考核模板覆写,2 从个人考核包重置 (type 2 必填)
-        comment: '' //审核意见
-      },
-      rFlowRules: {
-        node_id: [{ required: true, message: '请选择重置节点' }],
-        comment: [{ required: true, message: '请填写重置说明' }]
-      },
-      feedbackBut: false, //沟通反馈按钮
-      isTrack: false, //跟踪管理
-      weight: '指标权重(0%)',
-      packageName: '', //考核包名称 结果值录入用到
-      ruleScore: 1, //1-指标均要评分 2-评分总结
-      thecurrentFlow: '', //当前节点
-      tabTotaScore: 0, //表格展示的总分
-      mandatoryScore: false, //指标说明是否必填
-      mandatoryNote: false, //总分说明是否必填(暂不做)
-      scoreInfo: [], //各个节点的人评的总分
-      examineConsent: false, //审批
-
-      transferBut: false, //转交按钮
-      careOfSelector: false, //转交选人
-      careOfPeopleId: 0, //转交的 -- 转出ID
-
-      isCs: false,//是否抄送人进入(抄送人能看到全部评分内容)
-
-      isShowTargetBtn: false, // 目标制定相关
-      isShowConfirmBtn: false,//目标确认按钮
-      isUpdateIndex: false,//确认人是否允许修改指标
-      has_finish: false,//是否归档
-      // 评分说明弹窗
-      isShowPf: false,
-      pfText: '',
-      indexText: {//定位评分说明
-        e: 0,
-        index: 0
-      },
-
-      isShowOneselfScore: false,//是否只看自己的评分内容
-
-      // 控制上下
-      isDisabled: false,
-      up: {},
-      down: {},
-      package_id: '',
-      recordMemberIds: [],
-      pendingList: '',
-      page: 1,
-      isJz: true,
-      activeName: '',//待办带进来的节点类型
-
-      // 评分确认列表
-      pointList: [],
-      pointData: {},
-      isPoint: false,
-
-      publicity: 0,
-
-      isShowImg: false,
-      imgUrl: '',
-      resultStr: '录入结果值',
-
-      isSj: false,//是否是被考核人上级
-    };
-  },
-  computed: {
-    isCzData() {
-      if (this.gradeBegin) {
-        return true
-      }
-      if (this.has_finish) {
-        return true
-      }
-      return false
-    },
-    isShowOneself() {
-      return function (value) {
-        if (!this.isShowOneselfScore) {
-          if (value.employee_id == this.userInfo.id) {
-            return true
-          } else {
-            return false
-          }
-        } else {
-          return true
-        }
-      }
-    }
-  },
-  watch: {
-    isAdjustment(val) {
-      if (!val) {
-        this.radio = 1
-      }
-    },
-    isShowOneselfScore() {
-      this.tableLoad = true;
-      setTimeout(() => {
-        this.tableLoad = false;
-      }, 500)
-    },
-    examineConsent(val) {
-      if (!val) {
-        this.tDownList = {
-          node_id: '', //重置到某个节点,
-          employee_id: [], //重置到节点的某个用户 0表示驳回到节点
-          comment: '' //审核意见
-        }
-      }
-    },
-    isChecks(val) {
-      if (!val) {
-        this.transferBut = false
-      }
-    },
-    headvalue(id) {
-      this.headoptions.some(item => {
-        if (item.id == id) {
-          this.packageName = item.name;
-          return true;
-        }
-      });
-      let data = {//缓存的数据用于录入结果后返回页面复原数据
-        employeeID: this.employeeID,
-        employID: this.employID,
-        assID: id,
-      }
-      this.$setCache("staffAssDet", data)
-      if (this.pendingList) {
-        this.employeeDet();
-      } else {
-        this.employeeDet(true);
-      }
-    },
-    resetFlow(val) {
-      if (!val) {
-        this.rFlowList = {
-          type: 1, //重置类型 1 流程内重置 2 重读维度流程 重置
-          node_id: '', //重置到某个节点, (type 1 必填)
-          employee_id: [], //重置到节点的某个用户 0表示驳回到节点 (type 1 必填)
-          overwrite_mode: 1, //1 从原来考核模板覆写,2 从个人考核包重置 (type 2 必填)
-          comment: '' //审核意见
-        };
-        this.$nextTick(() => {
-          this.$refs.rFlowList.resetFields();
-        });
-      }
-    },
-    'rFlowList.node_id'(val) {
-      if (!val) {
-        this.rUsers = [];
-        return false;
-      }
-      this.rFlowArrive.some(item => {
-        if (val == item.id) {
-          let users = [];
-          item.target.map(item2 => {
-            if (item2.status == 2) {
-              users.push({ value: item2.employee_id, label: item2.employee_name })
-            }
-          });
-          this.rUsers = users;
-          return true;
-        }
-      });
-    },
-    'tDownList.node_id'(val) {
-      if (!val) {
-        this.rUsers = [];
-        return false;
-      }
-      this.rFlowArrive.some(item => {
-        if (val == item.id) {
-          let users = [];
-          item.target.map(item2 => {
-            if (item2.status == 2) {
-              users.push({ value: item2.employee_id, label: item2.employee_name })
-            }
-          });
-          this.rUsers = users;
-          return true;
-        }
-      });
-    },
-    flow(val) {
-      //重置要用到
-      let executionIndex = 0; //执行中下标
-      let targetIndex = 0; //目标下标(处理中的)
-      let isNoe = true;//是否完成了整个流程
-      val.forEach((item, index) => {
-        item.index = index + 1;
-        if (item.status == 1) {
-          targetIndex = index;
-          isNoe = false
-        }
-      });
-      if (targetIndex == 0 && isNoe) {//当流程执行完会是0
-        targetIndex = val.length;
-      }
-      let rFlowArrive = val.slice(executionIndex, targetIndex);
-      // 过滤掉 抄送与执行中节点,还有节点人员为空的节点
-      var arrs = [];
-      rFlowArrive.forEach((item, index) => {
-        item.value = item.id;
-        item.label = item.index + '.' + item.remarks;
-        if (item.code == 'cc' || item.code == 'execution' || item.target.length == 0) {
-          return
-        }
-        arrs.push(item);
-      });
-
-      this.rFlowArrive = arrs;
-    },
-    communication(val) {
-      if (!val) {
-        this.tags = [];
-        this.communicationVal = '';
-      }
-    },
-    isFlow(val) {
-      if (!val) {
-        this.target = [];
-      }
-    },
-    isShowPf(val) {
-      if (!val) {
-        this.pfText = '';
-        this.indexText = { e: 0, index: 0 }
-      }
-    },
-    'remployee.id'(val) {
-      if (val) {
-        this.getSuperior();
-      }
-    },
-
-  },
-  created() {
-    let staffAssDet = this.$getCache('staffAssDet');//缓存的数据
-    if (staffAssDet) {
-      this.employeeID = staffAssDet.employeeID; //个人记录ID
-      this.employID = staffAssDet.employID; //被考核人ID
-      this.assList(staffAssDet.assID);
-    } else {
-      if (this.$route.query.pe_ids) {//结果值点击进来
-        this.isDetails = false;
-        this.resultData = {
-          peIds: this.$route.query.pe_ids,
-          packageName: this.$route.query.name
-        }
-        let pendingList = JSON.parse(this.$route.query.pendingList);
-        this.up = {};
-        this.down = {};
-        pendingList.some((item, index) => {
-          if (item.package_id) {
-            if (this.$route.query.package_id == item.package_id) {
-              if (pendingList[index - 1]) {
-                this.up = pendingList[index - 1];
-              }
-              if (pendingList[index + 1]) {
-                this.down = pendingList[index + 1]
-              }
-              if (index == (pendingList.length - 2) && pendingList.length >= 10) {//如果当点击到待办人员的倒数第二个,加载剩余的
-                this.getAgency();
-              }
-              return true
-            }
-          }
-        })
-      } else {
-        this.employeeID = Number(this.$route.query.employeeID); //个人记录ID
-        this.employID = Number(this.$route.query.employeeIDs); //被考核人ID
-        this.assList(this.$route.query.assID);
-      }
-    }
-    // 是否显示上下人
-    if (this.$route.query.pendingList) {
-      this.pendingList = JSON.parse(this.$route.query.pendingList);
-      this.activeName = this.$route.query.activeName;
-      this.page = this.$route.query.page || 1;
-      this.isDisabled = true;
-    } else {
-      this.isDisabled = false;
-      this.activeName = '';
-    }
-  },
-  methods: {
-    onFilePreView(file) {
-      if (file.url) {
-        this.imgUrl = file.url;
-        this.isShowImg = true;
-      }
-    },
-    onFilePreView2(file) {
-      window.open(file.url, '_blank');
-    },
-    // 获取待办数据
-    getAgency() {
-      if (!this.isJz) { return false }
-      this.page = this.page + 1;
-      this.$axiosUser('get', '/api/pro/per/package/msg/agency', { node_type: this.activeName, status: 0, page: this.page, page_size: 10 }, 'v2')
-        .then(res => {
-          let list = res.data.data.list;
-          let pendingList = [];
-          list.forEach(item => {
-            if (item.node_type == 4) {
-              let userInfo = this.$getEmployeeMapItem(item.first_employee_id);
-              item.userInfo = userInfo;
-              let name = item.content.split(',')[0]
-              pendingList.push({ name: userInfo.name, img_url: userInfo.img_url, package_name: name, pe_ids: item.pe_ids, employeeID: '结果', package_id: item.package_id });
-              return false
-            }
-            if (item.remark.employee_id) {
-              //被考核人
-              let userInfo = this.$getEmployeeMapItem(item.remark.employee_id);
-              item.userInfo = userInfo;
-              pendingList.push({ name: userInfo.name, img_url: userInfo.img_url, employeeID: item.remark.packageEmployee_id, package_name: item.remark.package_name });
-            }
-          });
-          if (list.length < 10) {
-            this.isJz = false;
-          }
-          this.pendingList.push(...pendingList);
-        })
-    },
-    //撤销
-    revocation() {
-      let params = {
-        id: this.employeeID,
-        node_id: this.revocationNodeId,
-        comment: this.cxText
-      }
-      this.$axiosUser('post', '/api/pro/per/package/revoke', params).then(res => {
-        if (res.data.code == 1) {
-          this.$message.success('撤销成功');
-          this.employeeDet();
-        }
-      }).finally(() => {
-        this.isShowCx = false;
-        this.cxText = "";
-      });
-    },
-    // 判断是否能点击列表打开管理记录
-    isShowGl() {
-      if ((this.$getRole(2) || this.$getRole(3)) && this.recordMemberIds.indexOf(this.$userInfo().id) >= 0) {
-        return false
-      } else {
-        return true
-      }
-    },
-    setUpD() {
-      let pendingList = this.pendingList;
-      this.up = {};
-      this.down = {};
-      pendingList.some((item, index) => {
-        if (this.employeeID == item.employeeID) {
-          this.packageName = item.package_name;
-          if (pendingList[index - 1]) {
-            this.up = pendingList[index - 1];
-          }
-          if (pendingList[index + 1]) {
-            this.down = pendingList[index + 1]
-          }
-          if (index == (pendingList.length - 2) && pendingList.length >= 10) {//如果当点击到待办人员的倒数第二个,加载剩余的
-            this.getAgency();
-          }
-          return true
-        }
-      })
-    },
-    qieh(index) {
-      let employeeID = index == 1 ? this.up.employeeID : this.down.employeeID;
-      if (employeeID === '结果') {//结果值录入
-        this.isDetails = false;
-        let data = index == 1 ? this.up : this.down;
-        this.resultData = {
-          peIds: JSON.stringify(data.pe_ids),
-          packageName: data.package_name
-        }
-        let pendingList = this.pendingList;
-        this.up = {};
-        this.down = {};
-        pendingList.some((item, index) => {
-          if (item.package_id) {
-            if (data.package_id == item.package_id) {
-              if (pendingList[index - 1]) {
-                this.up = pendingList[index - 1];
-              }
-              if (pendingList[index + 1]) {
-                this.down = pendingList[index + 1]
-              }
-              if (index == (pendingList.length - 2) && pendingList.length >= 10) {//如果当点击到待办人员的倒数第二个,加载剩余的
-                this.getAgency();
-              }
-              return true
-            }
-          }
-        })
-      } else {
-        this.isDetails = true;
-        this.employeeID = employeeID
-        this.employeeDet('', () => {
-          let data = {//缓存的数据用于录入结果后返回页面复原数据
-            employeeID: this.employeeID,
-            employID: this.remployee.id,
-            assID: this.package_id,
-          }
-          this.$setCache("staffAssDet", data)
-        });
-      }
-    },
-    updateText() {
-      let list = this.dimension[this.indexText.e];
-      this.indexText.index == 1 ? list.score_remark = this.pfText : list.total_score_comment = this.pfText
-      this.$set(this.dimension, this.indexText.e, list);
-      this.isShowPf = false;
-    },
-    // 填写评分说明
-    showPf(e, index) {
-      let list = this.dimension[e];
-      let text = index == 1 ? list.score_remark : list.total_score_comment;//判断是指标说明,还是总分说明
-      this.indexText = { e: e, index: index }
-      this.pfText = text;
-      this.isShowPf = true;
-    },
-    // 目标确认-提交
-    submit() {
-      this.$confirm('请确认提交制定的指标,提交后不能再自行修改!', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消'
-      }).then(() => {
-        let data = {
-          id: this.employeeID,
-          node_id: this.atPresentFlow,
-          submit: 1,
-          dimension: JSON.stringify(this.apList)
-        }
-        this.$axiosUser('post', '/api/pro/per/package/target_set', data).then(res => {
-          if (res.data.code == 1) {
-            this.$message.success('提交成功');
-            this.employeeDet();
-          }
-        });
-      }).catch(() => {
-        console.log('取消');
-      });
-    },
-    //获取指定人员上级列表
-    getSuperiors(employee_id) {
-      return this.$axiosUser('get', 'api/pro/employee/superior', { employee_id: employee_id, platform: '3' }).then(res => {
-        return res.data.data.list
-      })
-    },
-    // 判断是否当前被考核人的上级
-    async getSuperior() {
-      this.isSj = false;
-      if (!this.remployee.id) { return is }
-      let superior_list = await this.getSuperiors(this.remployee.id);
-      superior_list.some(item => {
-        if (item.id == this.userInfo.id) {
-          this.isSj = true;
-          return true
-        }
-      })
-    },
-    //判断当有一个人完成,其他显示无需操作
-    getStrus() {
-      let is = false;
-      if (this.processDel.multi_executor == 2) {
-        this.processDel.target.some(item => {
-          if (item.status == 2) {
-            is = true
-            return true
-          }
-        })
-        return is;
-      } else {
-        return false
-      };
-    },
-    //转交
-    careOf(data) {
-      this.careOfPeopleId = data.employee_id;
-      this.careOfSelector = true;
-    },
-    //转交选人
-    confirmcareOf(list) {
-      let data = {
-        id: this.employeeID, //个人考核记录ID
-        node_id: this.processDel.id, //节点ID
-        to_employee_id: list.employee[0].id, //接收用户ID
-        from_employee_id: this.careOfPeopleId //转出用户ID
-      };
-      this.$axiosUser('post', '/api/pro/per/package/transfer', data).then(res => {
-        if (res.data.code == 1) {
-          this.$message.success('转交成功');
-          this.isChecks = false;
-          this.employeeDet();
-        }
-      });
-    },
-    // 打开结果值录入
-    openResult() {
-
-      this.$router.push({
-
-        name: 'resultSet',
-        query: { id: this.employeeID, packageName: this.packageName, resultStr: this.resultStr },
-
-      });
-
-    },
-    // 打开目标制定
-    openFormulate() {
-      this.$router.push({
-        name: 'formulate',
-        query: { id: this.employeeID, packageName: this.packageName, nodeId: this.atPresentFlow }
-      });
-    },
-    //打开管理记录
-    openTrack(index) {
-      this.planIndex = index;
-      this.isTrack = true;
-    },
-    //打开执行计划
-    openPlan(index) {
-      this.planIndex = index;
-      this.isPlan = true;
-    },
-    //评分--取消
-    cancel() {
-      this.$confirm('是否暂存当前页面内容?', '提示', {
-        confirmButtonText: '暂存',
-        cancelButtonText: '不暂存'
-      })
-        .then(() => {
-          this.save(0);
-        })
-        .catch(() => {
-          this.employeeDet();
-          this.gradeBegin = false;
-        });
-    },
-    //评分提交
-    save(num) {
-      let data = {
-        id: this.employeeID, //个人考核包ID
-        is_submit: num, //是否提交 0否(暂存) 1 是
-        node_id: this.atPresentFlow //当前节点
-      };
-      let point_info = [];//各项评分数据
-      let sumData = {//总分数据
-        total_score: '',
-        total_score_comment: '',
-      }
-      this.dimension.forEach(item => {
-        let resultInfo = {};
-        if (this.ruleScore == 1 && !item.totalScore) {//各项评分
-          resultInfo = {//评分信息--只评总分不需要
-            score: item.score_grade ? item.score_grade : '', //单项目结果值
-            score_remark: item.score_remark,
-            dimension_key: item.dimension_key, //维度索引
-            index_key: item.index_key, //指标索引
-            index_id: item.id,//指标ID
-            name: item.name,
-
-            // 用于计算分数
-            d_weight: item.dimension_weight, //维度权重
-            weight: item.weight, //指标权重
-            type: item.type //所属指标种类 1-量化指标 2-行为价值观指标 3-额外加分项 4-额外扣分项
-          };
-          point_info.push(resultInfo);
-        } else {//等于2:只评总分
-          if (item.totalScore) {
-            sumData = {
-              total_score: item.score_grade ? item.score_grade : '',
-              total_score_comment: item.total_score_comment,
-            }
-          }
-        }
-      });
-      let isMust = true, isExplain = true;//isMust验证评分,isExplain验证说明
-      if (num == 1) {//提交验证必填
-        if (this.ruleScore == 1) {//各项评分
-          point_info.forEach(item => {
-            if (this.mandatoryScore) {//评分说明必填
-              if (!item.score_remark) {
-                isExplain = false
-              }
-            }
-            if (!item.score) {
-              isMust = false
-            }
-          })
-          if (!isMust) {
-            this.$message.warning('请输入所有评分');
-            return false;
-          }
-          if (!isExplain) {
-            this.$message.warning('请输入所有评分说明');
-            return false;
-          }
-        } else {//总分
-          if (!sumData.total_score) {
-            this.$message.warning('请输入评分总分');
-            return false;
-          }
-          if (this.mandatoryScore) {
-            if (!sumData.total_score_comment) {
-              this.$message.warning('请输入总分说明');
-              return false;
-            }
-          }
-        }
-      }
-
-      if (this.ruleScore == 1) {
-        data.total_score = this.fomatFloat(this.totalPointsCount(point_info), 2); //计算的个人评出的总分(保留小数后两位)
-      } else {
-        data.total_score = this.fomatFloat(sumData.total_score, 2); //计算的个人评出的总分(保留小数后两位)
-        data.total_score_comment = sumData.total_score_comment;
-      }
-      data.point_info = JSON.stringify(point_info); // 评分信息 --  填所有评分时必须的字段(传入某指标的分数、说明、维度索引、制表索引、指标ID)
-      let pointList = JSON.parse(JSON.stringify(point_info));
-      pointList.push({
-        name: '总分',
-        score: data.total_score,
-        score_remark: data.total_score_comment
-      })
-      this.pointList = pointList;
-      this.pointData = data;
-
-      if (this.ruleScore == 1) {//只评总分不需要弹窗
-        this.isPoint = true;
-      } else {
-        this.score()
-      }
-    },
-    score() {
-      this.$axiosUser('post', '/api/pro/per/package/submit_score', this.pointData).then(res => {
-        this.$message.success('评分成功');
-        this.gradeBegin = false;
-        this.isPoint = false;
-        this.employeeDet();
-      });
-    },
-    fomatFloat(src, pos) {
-      return Math.round(src * Math.pow(10, pos)) / Math.pow(10, pos);
-    },
-    //计算总分
-    totalPointsCount(data) {
-      let ct = this.empDetList.calc_type; //1-加和计算 2-加权计算
-      let cd = this.empDetList.calc_dimension; //是否维度权重参与计算 1-是 0-否
-      let num = 0;
-      data.forEach(item => {
-        if (item.score) {
-          if (item.type == 3) {
-            //3-额外加分项
-            num += Number(item.score);
-          } else if (item.type == 4) {//4-额外扣分项    不计算
-            num -= Number(item.score);
-          } else {
-            if (ct == 1 && cd == 0) {
-              //加和
-              num += Number(item.score);
-            } else if (ct == 1 && cd == 1) {
-              //加和--维度权重参与计算
-              num += Number(item.score) * Number(item.d_weight / 100);
-            } else if (ct == 2 && cd == 0) {
-              //加权
-              num += Number(item.score) * Number(item.weight / 100);
-            } else if (ct == 2 && cd == 1) {
-              //加权--维度权重参与计算
-              num += Number(item.score) * Number(item.d_weight / 100) * Number(item.weight / 100);
-            }
-          }
-        }
-      });
-
-      return num;
-    },
-
-    sgradeBlur(e) {
-      let list = this.dimension[e];
-      let tPoints = [];
-      this.dimension.forEach(item => {
-        if (item.score_grade) {
-          tPoints.push({
-            score: item.score_grade, //分值
-            d_weight: item.dimension_weight, //维度权重
-            weight: item.weight, //指标权重
-            type: item.type //所属指标种类 1-量化指标 2-行为价值观指标 3-额外加分项 4-额外扣分项
-          });
-        }
-      });
-      this.tabTotaScore = this.fomatFloat(this.totalPointsCount(tPoints), 2);
-    },
-    sgradeInp(e, item) {
-      //e当前行 ,item用于判断当前输入是否超过评分上限
-      let list = this.dimension[e];
-      if (item) {
-        if (item.type == 3 || item.type == 4) {
-          if (item.point_limit != '-') {
-            if (item.score_grade > Number(item.point_limit)) {
-              this.$message.error("评分超过上限")
-              list.score_grade = '';
-              this.$set(this.dimension, e, list);
-              return false
-            }
-          }
-        }
-      }
-      this.$set(this.dimension, e, list);
-    },
-    //绩效包列表
-    assList(assID) {
-      let params = {
-        page: 0, //当期页
-        employee_id: this.employID
-      };
-      this.staffLoad = true;
-      this.$axiosUser('get', '/api/pro/per/package/list', params).then(res => {
-        if (res.data.code == 1) {
-          this.headoptions = res.data.data.list;
-          this.headvalue = Number(assID);
-        }
-      });
-    },
-    deepCopyAndMakeReactive(original, vm) {
-      if (Array.isArray(original)) {
-        return original.map(item => this.deepCopyAndMakeReactive(item, vm));
-      } else if (typeof original === 'object' && original !== null) {
-        const copy = {};
-        Object.keys(original).forEach(key => {
-          this.$set(copy, key, this.deepCopyAndMakeReactive(original[key], vm));
-        });
-        return copy;
-      }
-      return original;
-    },
-    // 绩效考核详情
-    employeeDet(is, func = function () { }) {
-      let params = {};
-      // 重置按钮状态
-      this.revocationShow = false,
-        this.gradeButShow = false;
-      this.examineButShow = false;
-      this.isAction = false
-      this.resultButShow = false;
-      this.isShowTargetBtn = false;
-      this.isShowConfirmBtn = false;
-      this.isUpdateIndex = false;
-      this.atPresentFlow = 0;
-      this.nowFLow = "";
-      if (is) {
-        params.package_id = this.headvalue;
-        params.employee_id = this.employID; //用户ID
-      } else {
-        params.id = this.employeeID; //个人考核记录ID
-      }
-      this.staffLoad = true;
-      this.$axiosUser('get', '/api/pro/per/package/employee/info', params).then(res => {
-        if (res.data.code == 1) {
-          let data = res.data.data;
-          this.has_finish = data.has_finish;
-          this.recordMemberIds = data.record_member_ids;
-          this.empDetList = data;
-          this.employeeID = data.id; //考核记录id
-          this.package_id = data.package_id
-          this.publicity = data.publicity;
-          if (this.pendingList) {
-            this.setUpD();
-          }
-          this.remployee = this.$getEmployeeMapItem(data.employee_id); //被考核人员信息
-          this.flow = data.flow; //流程
-          this.config = data.config;
-          this.calc_dimension = data.calc_dimension; //是否参与权重
-          this.apList = JSON.parse(JSON.stringify(data.dimension));
-          this.scoreInfo = data.score_info; //各个节点的人评的总分
-          // 沟通反馈是否启用
-          this.feedbackBut = data.config.assessment.feedback == '1' ? true : false;
-          let point_scope = data.config.assessment.point_scope; //评分可见权限
-          let point_comment = data.config.assessment.point_comment; //说明可见权限
-          let executor = {}; //与当前登录账号相同的执行人
-          let review = {}; //与当前登录账号相同的审批人
-          let isReview = false;//判断账号是否审批人中一位
-
-          let targetUserList = [];//结果值录入人 ,用来显示结果值录入人
-          data.flow.forEach((item, index) => {
-            if (item.code == 'execution') {//查找 已开始或已结束的执行节点中有无当前账号
-              if (item.status != 0) {
-                item.target.forEach(tar => {
-                  if (tar.employee_id == this.userInfo.id) {
-                    executor = tar; //存入与当前登录账号相同的执行人
-                    executor.newCode = 'employee'; //保存执行人节点code
-                  }
-                });
-              }
-            }
-            if (item.code == 'review') {//查找 已开始或已结束的审批节点中有无当前账号
-              if (item.status != 0) {
-                item.target.forEach(tar => {
-                  if (tar.employee_id == this.userInfo.id) {
-                    isReview = true;
-                    review = tar; //存入与当前登录账号相同的审批人
-                    review.newCode = 'reviewer'; //保存审批人节点code
-                  }
-                });
-              }
-            }
-            if (item.code == 'result_value') {//获取结果值录入人集合
-              targetUserList = item.target
-            }
-            //当前步骤
-            if (item.status == 1) {
-              // 判断是否显示撤销按钮
-              if (item.code != 'cc') {
-                this.isRevocation(item, data.flow[index - 1]);
-              }
-              this.nowFLow = item.code;
-              this.atPresentFlow = item.id;
-              this.setBtn(item)//其他按钮控制
-              if (item.code == 'target' || item.code == 'confirm') {//当是目标制定,目标确认时,隐藏调整目标按钮
-                this.dropdownMenu[1].isShow = false
-              } else {
-                this.dropdownMenu[1].isShow = true
-              }
-              //审批按钮
-              if (item.code == 'review') {
-                let reviewif = false;
-                item.target.forEach(tar => {
-                  if (tar.employee_id == this.userInfo.id && tar.status == 1) {
-                    reviewif = true;
-                  }
-                });
-                this.examineButShow = reviewif ? true : false;
-                this.isAction = item.action.indexOf('refuse') >= 0 ? true : false;
-              }
-              //结果值录入按钮
-              if (item.code == 'result_value' || item.code == 'score_supervisor' || item.code == 'special_scorer') {
-                this.isresultBtn(item)
-              }
-            }
-            let remName = item.remark;
-            item.target.forEach((add, att) => {
-              remName += add.employee_name;
-              remName += item.target.length - att > 1 ? ',' : '';
-            });
-            item.remarks = remName;
-            item.remarkDel = item.remark.split(':')[0];
-          });
-
-          if (this.atPresentFlow == 0) {//如果当前节点id为0,代表此考核详情已完毕,把最后一个节点作为当前节点
-            this.atPresentFlow = data.flow[data.flow.length - 1].id
-            // 判断抄送节点里是否包含当前登录者
-            let cs = data.flow[data.flow.length - 1];
-            if (cs.code == 'cc') {  //判断最后一个节点是否抄送节点
-              cs.target.some(item => {
-                if (item.employee_id == this.userInfo.id) {
-                  this.isCs = true;
-                  return true;
-                }
-              });
-            }
-          }
-          //整合表格格式
-          let dimension = data.dimension;
-          let dimeTab = [];
-          let gradeTab = [];
-          let weight = 0; //权重统计
-          dimension.forEach((item, keys) => {
-            item.index.forEach((arr, index) => {
-              weight += Number(arr.weight);
-              arr.wdLeg = 0; //其他这个指标集合的指标给值为0
-              item.index[0].wdLeg = item.index.length; //找出这个指标集合的第一个并给与他的长度
-              arr.theDimension = item.name;
-              arr.dimension_weight = item.dimension_weight; //维度权重
-              arr.score_infos = [];
-              arr.planIndex = [keys, index]; //当打开执行计划时的下标
-              arr.per_remark = this.initData(arr.per_remark);
-              arr.remark = this.initData(arr.remark);
-              arr.target = this.initData(arr.target);
-              arr.result = arr.result; //结果值
-              arr.point_limit = this.initData(arr.point_limit);
-              if (item.index_type == 3 || item.index_type == 4) {
-                arr.weight = this.initData(Number(arr.weight));
-              }
-              // 写入每个指标的结果值录入人
-              targetUserList.forEach(target => {
-                target.list.forEach(target2 => {
-                  if (target2.index_id == arr.id) {
-                    arr.resultUserName = target.employee_name; //结果值
-                  }
-                })
-              })
-
-              // 权限区分
-              arr.score_info.forEach((list, auto) => {
-                if (list.id <= this.atPresentFlow) {//atPresentFlow为当前节点id。。数据-id <= 当前节点id .   :筛选出当前节点及之前的评分节点的数据
-                  list.employees.forEach(emplo => {
-                    //获取code
-                    data.flow.forEach(codes => {
-                      if (codes.id == list.id) {
-                        emplo.code = codes.code;
-                        codes.target.some(tar => {//找到每个评分人获取评分状态
-                          if (tar.employee_id == emplo.employee_id) {
-                            emplo.status = tar.status;
-                            return true
-                          }
-                        });
-                      }
-                    });
-                    emplo.id = list.id;
-                    emplo.newKey = Number(emplo.id + '' + emplo.employee_id); //给一个唯一key,目的:找到不同节点的相同的人    去重
-                    arr.score_infos.push(emplo);
-                    gradeTab.push(emplo);
-                  });
-                }
-              });
-              dimeTab.push(arr);
-            });
-          });
-          this.weight = '指标权重(' + weight + '%)';
-          let poiSco = data.config.assessment.point_scope; //评分可见权限
-          let poicom = data.config.assessment.point_comment; //说明可见权限
-          let duplicat = this.duplicateRemoval(gradeTab, 'newKey');
-          duplicat.forEach(item => {
-            if (item.code == 'review') {//审批
-              item.newCode = 'reviewer';
-            } else if (item.code == 'execution') {//执行中
-              item.newCode = 'employee';
-            } else if (item.code == 'score_supervisor') {//指定上级
-              item.newCode = 'manager';
-            } else if (item.code == 'special_scorer') {//特定上级
-              item.newCode = 'special';
-            }
-            //item为评分数据,数据内只有两个节点:指定(score_supervisor,权限名:manager)  特定上级(special_scorer,权限名:special)
-            //poiSco    评分权限
-            //poicom    说明权限
-            //executor  执行人中的当前登陆账号
-            //review    审批人中的当前登陆账号
-            if (executor.employee_id) {//若有数据,那么当前登录账号必定在执行人中并且执行节点正在执行或已结束(哪怕正在执行也无所谓,前方已经过滤评分数据,会得到[])
-              if (poiSco[executor.newCode] == '2') {//已有数据并且为2 ‘查看所有的’ ,那就可以将所有的评分权限都改为 ‘2’
-                for (let i in poiSco) {
-                  poiSco[i] = '2'
-                }
-              }
-              if (poicom[executor.newCode] == '2') {//说明同上
-                for (let i in poicom) {
-                  poicom[i] = '2'
-                }
-              }
-            }
-            if (review.employee_id) {//审批节点--同上  (审批节点默认为2,可以直接全部变成2)
-              if (poiSco[review.newCode] == '2') {
-                for (let i in poiSco) {
-                  poiSco[i] = '2'
-                }
-              }
-              if (poicom[review.newCode] == '2') {//说明同上
-                for (let i in poicom) {
-                  poicom[i] = '2'
-                }
-              }
-            }
-            if (item.employee_id == executor.employee_id) {//判断当前评分数据是否 与 执行节点的当前帐号一致
-              if (poiSco[executor.newCode] == '2') {//如果一致并且执行节点为‘2’即查看所有,那么就修改当前 评分数据 的权限也为‘2’
-                poiSco[item.newCode] = '2';
-              }
-              if (poicom[executor.newCode] == '2') {//执行中的 -- 说明权限-同上
-                poicom[item.newCode] = '2';
-              }
-            }
-            if (item.employee_id == review.employee_id) {//判断当前评分数据是否 与 审批节点的当前帐号一致
-              if (poiSco[review.newCode] == '2') {
-                poiSco[item.newCode] = '2';
-              }
-              if (poicom[review.newCode] == '2') {//审批的 -- 说明权限-同上
-                poicom[item.newCode] = '2';
-              }
-            }
-          });
-          let poiSOk = false//评分--为true时所有评分可看
-          let poiCOk = false//说明--为true时所有说明可看
-          duplicat.forEach(item => {
-            if (poiSco[item.newCode] == '1' && item.employee_id == this.userInfo.id) {
-              item.poiSco = true;
-            } else if (poiSco[item.newCode] == '2') {//当前 评分 数据权限等于2时并且 (当前数据id为登陆账号  或  执行中权限等于2(代表当前登陆账号为执行中的一员 或 审批权限等于2(代表当前登陆账号为审批中的一员)) 时,所有评分都可见
-              if (item.employee_id == this.userInfo.id || poiSco[executor.newCode] == '2' || poiSco[review.newCode] == '2') {
-                poiSOk = true
-              }
-            }
-            //说明可见权限。
-            if (poicom[item.newCode] == '1' && item.employee_id == this.userInfo.id) {//说明--同上
-              item.poicom = true;
-            } else if (poicom[item.newCode] == '2') {
-              if (item.employee_id == this.userInfo.id || poicom[executor.newCode] == '2' || poicom[review.newCode] == '2') {
-                poiCOk = true
-              }
-            }
-          });
-          duplicat.forEach(item => {
-            if (poiSOk || this.$getRole(1) || this.isCs) {
-              item.poiSco = true;
-            }
-            if (poiCOk || this.$getRole(1) || this.isCs) {
-              item.poicom = true;
-            }
-          })
-          //遍历列表总分
-          let scoreListInfo = [];
-          let totSco = false;
-          let points = [];//最终显示评分
-          this.scoreInfo.forEach(item => {
-            item.employees.forEach(arr => {
-              arr.newKey = Number(item.id + '' + arr.employee_id);
-              arr.codeId = item.id;
-              scoreListInfo.push(arr);
-            });
-          });
-          duplicat.forEach((item, index) => {
-            scoreListInfo.forEach(arr => {
-              if (item.newKey == arr.newKey) {
-                item.totalScore = arr.point;
-                item.comment = arr.comment;
-                if (arr.point) {
-                  totSco = true;
-                }
-              }
-            });
-            if (item.status != 2 && item.id != this.atPresentFlow) {
-              // delete duplicat[index]
-            } else {
-              points.push(item)
-            }
-          });
-          points.sort(this.rule("id"))//跟距ID排序
-          console.log(points)
-          this.lingScore_infos = points;
-          this.isShowOneselfScore = !this.isShowOneselfScore
-          setTimeout(() => {
-            this.isShowOneselfScore = !this.isShowOneselfScore
-          })
-          // this.lingScore_infos = this.deepCopyAndMakeReactive(points,this)
-          // console.log(this.lingScore_infos)
-          // this.lingScore_infos = []
-          // points.map((item,index) => {
-          //   this.lingScore_infos.push(item)
-          // })
-          // this.$set(this.lingScore_infos,points.map(item => ({ ...item })))
-
-          let toScore = {
-            theDimension: '总分',
-            wdLeg: 0,
-            toScore: true
-          };
-          if (totSco) {
-            let poiScoDimeTab = false;
-            duplicat.forEach(item => {
-              if (item.poiSco) {
-                poiScoDimeTab = true;
-              }
-            });
-            if (poiScoDimeTab) {
-              dimeTab.push(toScore);
-              this.$nextTick(() => {
-                //刷新总分--行
-                dimeTab.forEach((item, index) => {
-                  if (item.toScore) {
-                    this.sgradeInp(index);
-                  }
-                });
-              });
-            }
-          }
-          //流程结束后的判断
-          this.pdLc()
-          if (!this.nowFLow || this.nowFLow == 'review') {//是审批节点或者流程结束,(流程结束nowFLow为空)
-            if (data.publicity == 1 || this.$getRole(1) || isReview) { //结果是否公示,是否主次管理员,是否是审批人
-              dimeTab[0].final_point = data.final_point; //考核结果--总分
-              dimeTab[0].final_level = data.final_level; //考核结果--等级
-              dimeTab[0].doing_id = 11;
-              dimeTab[0].zfLeg = dimeTab.length;
-            }
-          }
-          this.dimension = dimeTab.map(item => ({ ...item })); //表格数据
-          //记录
-          let record = res.data.data.record;
-          record.forEach(item => {
-            item.userData = this.$getEmployeeMapItem(item.employee_id);
-          });
-          this.record = record;
-          func();
-        }
-      })
-        .finally(() => {
-          this.staffLoad = false;
-        });
-    },
-    // 判断是否显示撤销按钮
-    isRevocation(dqItem, upItem) {
-      // 当前只需要评分节点需要撤回
-      //当前节点包含自己并且其他任意一人未完成的显示按钮
-      if (dqItem.code == 'score_supervisor' || dqItem.code == 'special_scorer') {
-        dqItem.target.some((item, index) => {
-          if (item.employee_id == this.userInfo.id && item.status == 2) {
-            dqItem.target.some((item2, index2) => {
-              if (item2.status == 1) {
-                this.revocationNodeId = dqItem.id
-                this.revocationShow = true;
-                return true;
-              }
-            })
-          }
-        })
-      }
-      let is = true;//判断当前节点人员是否有完成的
-      //上一节点中包含登录者并且是完成的状态显示按钮
-      if (upItem) {
-        dqItem.target.some((item, index) => {
-          if (item.status == 2) {
-            is = false;
-          }
-        })
-        if ((upItem.code == 'score_supervisor' || upItem.code == 'special_scorer')) {
-          upItem.target.some((item, index) => {
-            if (item.employee_id == this.userInfo.id && item.status == 2 && is) {
-              this.revocationNodeId = upItem.id
-              this.revocationShow = true;
-              return true;
-            }
-          })
-        }
-      }
-    },
-    //判断是否显示结果值
-    isresultBtn(item) {
-      //结果值录入按钮
-      let flow = this.flow;
-      if (item.code == 'result_value') {
-        item.target.forEach(tar => {
-          if (tar.employee_id == this.userInfo.id) {
-            this.resultButShow = true;
-            this.resultStr = tar.status == 2 ? '调整结果值' : '录入结果值'
-          }
-        });
-        return true;
-      } else {
-        let is = false
-        flow.some(obj => {
-          if (obj.code == 'result_value') {
-            obj.target.forEach(tar => {
-              if (tar.employee_id == this.userInfo.id) {
-                is = true;
-              }
-            });
-          }
-          if (obj.code == 'score_supervisor' || obj.code == 'special_scorer') {
-            let isUpdate = true;
-            if (obj.target.length > 0) {
-              obj.target.forEach(e => {
-                if (e.status == 2) {
-                  isUpdate = false
-                }
-              })
-              if (isUpdate && is) {
-                this.resultButShow = true;
-                this.resultStr = '调整结果值';
-              }
-            }
-            return true
-          }
-        })
-      }
-    },
-    pdLc() {
-      let flow = JSON.parse(JSON.stringify(this.flow)).reverse();//反转流程,找第一个评分节点
-      //流程结束,但是最后一个“评分”节点里有自己显示撤销
-      if (this.publicity == 1) {
-        flow.some(item => {
-          if (item.code == 'review' || item.code == 'cc') {
-            return true
-          }
-          if (item.code == 'score_supervisor' || item.code == 'special_scorer') {
-            item.target.some(e => {
-              if (e.employee_id == this.userInfo.id && e.status == 2) {
-                this.revocationNodeId = item.id
-                this.revocationShow = true;
-                return true
-              }
-            })
-            return true
-          }
-        })
-      }
-    },
-    // 各按钮控制
-    setBtn(item) {
-      // 目标制定
-      if (item.code == 'target') {
-        item.target.forEach(tar => {
-          if (tar.employee_id == this.userInfo.id && tar.status == 1) {
-            this.isShowTargetBtn = true;
-          }
-        });
-        return
-      }
-      // 目标确认
-      if (item.code == 'confirm') {
-        item.target.forEach(tar => {
-          if (tar.employee_id == this.userInfo.id && tar.status == 1) {
-            this.isShowConfirmBtn = true;
-          }
-        });
-        this.isUpdateIndex = item.action.indexOf('index') >= 0 ? true : false
-        return
-      }
-      //评分按钮
-      if (item.code == 'score_self' || item.code == 'score_mutual' || item.code == 'score_supervisor' || item.code == 'special_scorer') {
-        item.target.forEach(tar => {
-          if (tar.employee_id == this.userInfo.id && tar.status == 1) {
-            this.gradeButShow = true;
-          }
-        });
-        return
-      }
-    },
-    //去重
-    duplicateRemoval(data, name) {
-      let bbt = {};
-      let abbts = data.reduce((cur, next) => {
-        bbt[next[name]] ? '' : (bbt[next[name]] = true && cur.push(next));
-        return cur;
-      }, []);
-      return abbts;
-    },
-    //跟距ID排序
-    rule(key) {
-      return function (a, b) { // sort 默认接受a,b两个参数表示数组中的值
-        var value1 = a[key]
-        var value2 = b[key]
-        return value1 - value2
-      }
-    },
-    groupBy(data, params) {
-      const groups = {};
-      data.forEach(v => {
-        const group = JSON.stringify(v[params]);
-        groups[group] = groups[group] || [];
-        groups[group].push(v);
-      });
-      return Object.values(groups);
-    },
-    //数据初始化,没有值或者空数组的显示-
-    initData(str) {
-      if (str == null) {
-        return str ? str : '-';
-      }
-      if (typeof str == 'object') {
-        return str.length > 0 ? str : '-';
-      } else {
-        return str ? str : '-';
-      }
-    },
-    // 根据数据结构显示table,
-    getTableItem(str) {
-      let dimension = this.dimension;
-      let is = false;
-      dimension.some(item => {
-        for (var key in item) {
-          if (str == key) {
-            if (typeof item[key] == 'object') {
-              if (key == 'result_file') {
-                // 附件
-                if (item[key].append.length > 0 || item[key].images.length > 0) {
-                  is = true;
-                  return true;
-                }
-              } else {
-                //是数组并且长度大于0
-                if (item[key].length > 0) {
-                  is = true;
-                  return true;
-                }
-              }
-            } else {
-              if (key == 'target') {
-                if (item[key] != '0' && item[key] != '-') {
-                  //是有数据并且!= -
-                  is = true;
-                  return true;
-                }
-              } else {
-                if (item[key] != '-') {
-                  //是有数据并且!= -
-                  is = true;
-                  return true;
-                }
-              }
-            }
-          }
-        }
-      });
-      return is;
-    },
-    //流程点击
-    processDet(data) {
-      this.processDel = data;
-      this.isChecks = true;
-      if (data.target.length == 0) {
-        this.proNum = '';
-      } else {
-        let arr = 0;
-        data.target.forEach((item, index) => {
-          if (item.status == 2) {
-            arr++;
-          }
-        });
-        this.proNum = '(' + arr + '/' + data.target.length + ')';
-      }
-      let code = this.processDel.code;
-      if (this.processDel.status == 1) {//当是目标制定,目标确认 结果值录入,上级评分,指定人评分,审批时显示转交按钮
-        if (code == 'target' || code == 'confirm' || code == 'score_supervisor' || code == 'special_scorer' || code == 'result_value' || code == 'review') {
-          this.transferBut = true;
-        }//当上级评分,指定人评分,判断是否具有转交权限
-      }
-    },
-    handleCommand(val) {
-      //管理选项
-      if (val == 'a') {
-        //重置流程
-        this.resetFlow = true;
-      } else if (val == 'b') {
-        this.isAdjustment = true;
-      }
-    },
-    //
-    setDataAccess() {
-      this.isAdjustment = false;
-      if (this.radio == 2) {
-        //调整目标
-        this.$router.push({
-          name: 'adjustment',
-          query: { id: this.employeeID }
-        });
-      } else {
-        //调整目标
-        this.$router.push({
-          name: 'adjustment2',
-          query: { id: this.employeeID }
-        });
-      }
-    },
-    // 沟通反馈
-    saveCommunication() {
-      if (!this.communicationVal) {
-        this.$message.error('请输入沟通内容');
-        return false;
-      }
-      let target_id = this.tags.map(item => {
-        return item.id;
-      });
-      this.$axiosUser('post', '/api/pro/per/package/negotiation', {
-        id: this.employeeID,
-        content: this.communicationVal,
-        target_id: JSON.stringify(target_id)
-      }).then(res => {
-        this.$message.success('已沟通');
-        this.employeeDet();
-        this.communication = false;
-      });
-    },
-    confirmCreator(e) {
-      this.tags = e.employee;
-    },
-    handleClose(tag, index) {
-      this.tags.splice(index, 1);
-    },
-    //评分按钮
-    gradeClick() {
-      this.gradeBegin = true;
-      let dnsion = [];
-      this.dimension.forEach(item => {
-        if (!item.toScore) {
-          item.score_infos.forEach(arr => {
-            if (arr.employee_id == this.userInfo.id && arr.id == this.atPresentFlow) {
-              item.score_grade = arr.point; //某指标的分数
-              item.score_remark = arr.remark; //评分说明
-              if (item.type == 1) {
-                item.expressionStr = getExpressionStr(item.expression)
-              } else {
-                item.expressionStr = ''
-              }
-              dnsion.push(item);
-            }
-          });
-        }
-      });
-      let data = {};
-      dnsion.forEach(item => {
-        item.wdLeg = 0;
-      });
-      let totalScore = {
-        theDimension: '总分',
-        wdLeg: 0,
-        totalScore: true
-      };
-      this.flow.forEach(item => {
-        if (item.code == 'score_supervisor' && item.status == 1) {
-          this.ruleScore = item.rule == 2 ? 2 : 1; //1-指标均要评分 2-评分总结
-          this.thecurrentFlow = 'score_supervisor';
-          totalScore.codeId = item.id;
-        } else if (item.code == 'special_scorer' && item.status == 1) {
-          this.ruleScore = 1;
-        }
-        if ((item.code == 'score_supervisor' && item.status == 1) || (item.code == 'special_scorer' && item.status == 1)) {
-          //上级评分,特定评分     评分人必填项
-          item.action.forEach(arr => {
-            this.mandatoryScore = arr == 'comment' ? true : false; //指标说明是否必填
-          });
-        }
-      });
-      this.scoreInfo.forEach(item => {
-        item.employees.forEach(arr => {
-          if (arr.employee_id == this.userInfo.id) {
-            this.tabTotaScore = arr.point ? arr.point : 0;
-            if (item.id == totalScore.codeId && this.ruleScore == 2) {
-              totalScore.score_grade = arr.point;
-              totalScore.total_score_comment = arr.comment ? arr.comment : '';
-            }
-          }
-        });
-      });
-      let dimenList = [];
-      let users = [];//当前节点的自己的信息
-      this.flow.forEach(item => {//根据流程当前节点,找节点的人员中的登陆者
-        if (item.status == 1) {
-          item.target.some(arr => {
-            if (arr.employee_id == this.userInfo.id) {
-              arr.flowStatusId = item.id;//当前节点的ID
-              users = arr
-              return true
-            }
-          });
-        }
-      });
-      users.list.forEach(att => {//获取当前节点审批人员中的登陆者
-        dnsion.forEach((add, index) => {
-          if (att.index_id == add.id && att.dimension_key == add.planIndex[0] && att.index_key == add.planIndex[1]) {//因为不同维度下可能存在相同的指标,所以也要判断他的维度是否一致
-            add.dimension_key = att.dimension_key; //维度索引
-            add.index_key = att.index_key; //指标索引
-            add.score_infos.forEach(user => { //显示的文案,找到当前登录人
-              if (user.id == users.flowStatusId) {
-                if (user.employee_id == this.userInfo.id) {
-                  this.scoreTab.title = user.title;
-                  this.scoreTab.explain = user.title.split(':')[0] + '说明';
-                }
-              }
-            })
-            dimenList.push(add);
-          }
-        });
-      });
-      dimenList.push(totalScore);
-      this.$nextTick(() => {
-        //  this.dimension = dimenList;
-        this.dimension = dimenList.map(item => ({ ...item }));
-      })
-    },
-    gradeTurn() {
-      //评分驳回按钮
-      this.turnDown = true;
-    },
-    gradeOk() {
-      //评分驳回按钮
-      this.examineConsent = true;
-    },
-    tDownOk(num, formName) {
-      let tDownList = this.tDownList;
-      if (num == 1) {
-        let data = {
-          id: this.employeeID, //个人考核包ID
-          agree: 1, //同意1    驳回0
-          c_node_id: this.atPresentFlow,//当前节点ID
-          comment: tDownList.comment //审核意见
-        };
-        this.tDownHttpJx(1, data);
-      } else if (num == 0) {
-        //驳回
-        this.$refs[formName].validate(valid => {
-          if (valid) {
-            if (tDownList.employee_id.length == 0) {
-              this.$message.error('至少选择一名重置人员');
-              return false;
-            }
-            if (!tDownList.comment) {
-              this.$message.error('请输入驳回说明');
-              return false;
-            }
-            this.$confirm('流程将驳回到选中节点,已完成的节点需要重新进行处理,确认重置流程?', '提示', {
-              confirmButtonText: '确定',
-              cancelButtonText: '取消',
-              type: 'warning'
-            })
-              .then(() => {
-                let data = {
-                  id: this.employeeID, //个人考核包ID
-                  agree: 0, //同意1    驳回0
-                  node_id: tDownList.node_id, //重置到某个节点, (type 1 必填)
-                  c_node_id: this.atPresentFlow,//当前节点ID
-                  employee_id: JSON.stringify(tDownList.employee_id), //重置到节点的某个用户 string(JSOn)
-                  comment: tDownList.comment //审核意见
-                };
-                this.tDownHttpJx(0, data);
-              })
-              .catch(() => { });
-          } else {
-            return false;
-          }
-        });
-      }
-    },
-    tDownHttpJx(num, data) {
-      this.$axiosUser('post', '/api/pro/per/package/review', data).then(res => {
-        this.$message.success('提交成功');
-        this.tDlose(num);
-        this.employeeDet();
-      });
-    },
-    tDlose(num) {
-      //驳回侧边栏关闭
-      if (num == 0) {
-        this.turnDown = false;
-      } else if (num == 1) {
-        this.examineConsent = false;
-      }
-    },
-    //重置确定
-    rFlowOk(formName) {
-      this.$refs[formName].validate(valid => {
-        if (valid) {
-          let rFlowList = this.rFlowList;
-          if (rFlowList.type == 1) {
-            if (rFlowList.employee_id.length == 0) {
-              this.$message.error('至少选择一名重置人员');
-              return false;
-            }
-          }
-          this.$confirm('流程将重置,已完成的节点需要重新进行处理,确认重置流程?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
-            .then(() => {
-              let data;
-              if (rFlowList.type == 1) {
-                data = {
-                  id: this.employeeID, //个人考核包ID
-                  type: rFlowList.type, //重置类型 1 流程内重置 2 重读维度流程 重置
-                  node_id: rFlowList.node_id, //重置到某个节点, (type 1 必填)
-                  employee_id: JSON.stringify(rFlowList.employee_id), //重置到节点的某个用户 string(JSOn)
-                  comment: rFlowList.comment //审核意见
-                };
-              } else {
-                data = {
-                  id: this.employeeID, //个人考核包ID
-                  type: rFlowList.type, //重置类型 1 流程内重置 2 重读维度流程 重置
-                  overwrite_mode: rFlowList.overwrite_mode, //1 从原来考核模板覆写,2 从个人考核包重置 (type 2 必填)
-                  comment: rFlowList.comment //审核意见
-                };
-              }
-              this.$axiosUser('post', 'api/pro/per/package/reset_flow', data).then(res => {
-                this.$message.success('提交成功');
-                this.resetFlow = false;
-                this.employeeDet();
-              });
-            })
-            .catch(() => { });
-        } else {
-          return false;
-        }
-      });
-    },
-    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
-      if (!this.gradeBegin && !row.toScore) {
-        if (columnIndex === 0) {
-          return {
-            rowspan: row.wdLeg,
-            colspan: 1
-          };
-        }
-      }
-      if (row.zfLeg) {
-        //考核结果、绩效等级
-        if (column.label == '考核结果' || column.label == '绩效等级') {
-          if (rowIndex != 1) {
-            return {
-              rowspan: row.zfLeg,
-              colspan: 1
-            };
-          } else {
-            return {
-              rowspan: 0,
-              colspan: 0
-            };
-          }
-        }
-      }
-    }
-  },
-  beforeRouteLeave(to, from, next) {
-    if (to.name != 'formulate' && to.name != 'resultSet') {
-      localStorage.removeItem("staffAssDet")
-    }
-    next();
-  }
-};
-</script>
-<style scoped lang="scss">
-.guidang {
-  margin-left: 20px;
-  width: 70px;
-  animation: example 1s;
-}
-
-@keyframes example {
-  from {
-    transform: scale(1.4);
-  }
-
-  to {
-    transform: scale(1);
-  }
-}
-
-.popover-box {
-  opacity: 1;
-  border-radius: 4px;
-  width: 250px;
-}
-
-.popover-title {
-  font-size: 14px;
-  font-family: PingFang SC;
-  font-weight: 400;
-  text-align: center;
-  color: #FFCB00;
-  margin-bottom: 10px;
-}
-
-.popover-content {
-  font-size: 14px;
-  font-family: PingFang SC;
-  font-weight: 400;
-  opacity: 1;
-  color: #fff;
-}
-
-.result {
-  border: 2px solid #ff9600;
-  padding: 5px 10px;
-  color: #ff9600;
-  text-align: center;
-}
-
-.flow-img {
-  width: 20px;
-  position: absolute;
-  right: -30px;
-}
-
-.all {
-  position: relative;
-  font-size: 14px;
-  background-color: #fff;
-  padding: 20px;
-
-  header {
-    margin-bottom: 60px;
-
-    .head {
-      border-top: 1px solid #e6e6e6;
-      border-bottom: 1px solid #e6e6e6;
-      padding: 20px 0;
-      margin-top: 10px;
-    }
-
-    .head2User {
-      .headTname {
-        padding: 7px 0 0 15px;
-
-        div {
-          padding: 0 0 3px 0;
-          font-size: 15px;
-        }
-
-        span {
-          font-size: 13px;
-          color: #969696;
-        }
-      }
-    }
-  }
-}
-
-.upDown-box {
-  position: fixed;
-  bottom: 10px;
-  left: 50%;
-  background-color: #fff;
-  z-index: 100;
-  width: 370px;
-  height: 60px;
-  border-radius: 100px;
-  margin-left: -185px;
-  box-shadow: 0 0 5px #999999;
-}
-
-.upName {
-  width: 80px;
-  text-align: center;
-  padding: 0 5px;
-  font-weight: 600;
-}
-
-.up-item {
-  cursor: pointer;
-}
-
-.up-item:hover {
-  cursor: pointer;
-  color: #409EFF;
-}
-
-.shuru {
-  border-bottom: 1px solid #DCDFE6;
-  cursor: pointer;
-  color: #C0C4CC;
-  line-height: 36px;
-  height: 36px;
-}
-
-.aite {
-  padding: 10px;
-  font-size: 16px;
-  cursor: pointer;
-  width: 40px;
-}
-
-.aite:hover {
-  color: #409EFF;
-}
-
-.flow-item-start,
-.flow-item {
-  background-color: #ECF5FF;
-  height: 60px;
-  min-width: 270px;
-  position: relative;
-  margin-right: 40px;
-  margin-top: 20px;
-  padding: 0 10px;
-  border-radius: 5px;
-}
-
-.flow-box {
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-  width: 230px;
-  display: inline-block;
-}
-
-// .flow-item-start::after {
-//   position: absolute;
-//   content: '';
-//   width: 0;
-//   height: 0;
-//   border-top: 18px solid transparent;
-//   border-left: 20px solid #f4f6f9;
-//   border-bottom: 18px solid transparent;
-//   border-radius: 2px;
-//   top: 0;
-//   right: -20px;
-// }
-// .flow-item::before {
-//   content: '';
-//   position: absolute;
-//   width: 0;
-//   height: 0;
-//   border-top: 18px solid transparent;
-//   border-left: 20px solid #fff;
-//   border-bottom: 18px solid transparent;
-//   border-radius: 2px;
-//   top: 0;
-//   left: 0px;
-// }
-// .flow-item::after {
-//   content: '';
-//   position: absolute;
-//   width: 0;
-//   height: 0;
-//   border-top: 18px solid transparent;
-//   border-left: 20px solid #f4f6f9;
-//   border-bottom: 18px solid transparent;
-//   border-radius: 2px;
-//   top: 0;
-//   right: -20px;
-// }
-.el-icon-warning-outline {
-  color: #848484;
-  position: relative;
-  top: 1px;
-}
-
-.flow-item-color {
-  background-color: #409EFF;
-  color: #fff;
-
-  .detailsPonit {
-    color: #ffffff;
-  }
-
-  .el-icon-warning-outline {
-    color: #ffffff;
-  }
-}
-
-.detailsPonit {
-  margin-left: 10px;
-  font-size: 14px;
-  color: #848484;
-  cursor: pointer;
-}
-
-.flow-item-color::after {
-  border-left: 20px solid #409EFF;
-}
-
-.feedDoalog {
-  /deep/ .el-dialog__body {
-    padding: 0 20px 30px;
-  }
-}
-
-.mentSty {
-  max-width: 300px;
-  height: 23px;
-  display: inline-block;
-}
-
-// .button-width {
-//   button {
-//     width: 80px;
-//   }
-// }
-.elFrom-margin {
-  /deep/ .el-form-item__label {
-    padding: 0;
-  }
-
-  padding: 0 20px 0 0;
-}
-
-.processSty {
-  margin-top: -20px;
-
-  .proListSty {
-    border-bottom: 1px solid #e2e2e2;
-    padding: 17px 0;
-
-    .proButt {
-      color: #4799ff;
-      border: 1px solid #78a1ff;
-      font-size: 14px;
-      padding: 0px 10px;
-      height: 30px;
-    }
-
-    .proName {
-      font-size: 15px;
-      line-height: 30px;
-      padding-left: 8px;
-    }
-  }
-}
-
-.footer {
-  position: fixed;
-  bottom: 0;
-  left: 0;
-  right: 0;
-  background-color: #fff;
-  border-top: 1px solid #e8e8e8;
-  padding: 12px 30px;
-  z-index: 100;
-}
-
-.dian {
-  position: absolute;
-  right: 10px;
-}
-</style>

+ 5 - 0
src/performance/views/assessManagement/staffAssDet.vue

@@ -2361,6 +2361,9 @@ export default {
 <style scoped lang="scss">
 
 .guidang{
+  position: absolute;
+  top: 0;
+  right: 0;
   margin-left: 20px;
   width: 70px;
   animation:example 1s;
@@ -2415,9 +2418,11 @@ export default {
       display: flex;
       align-items: center;
       justify-content: center;
+      box-sizing: border-box;
     }
     .head2User {
       flex: 1;
+      position: relative;
       .headTname {
         padding: 7px 0 0 15px;
         margin-left: 40px;

+ 20 - 19
src/performance/views/myPerformance/adjustment.vue

@@ -2,7 +2,7 @@
   <div class="all boxMinHeight">
     <PageHead phName="调整目标"></PageHead>
     <div class="main">
-      <div class="flex-box-ce" style="border-bottom: 1px solid #f1f1f1;padding-bottom: 10px;margin-bottom: 20px;">
+      <div class="flex-box-ce" style="border-bottom: 1px solid #f1f1f1;padding-bottom: 10px;margin-bottom: 10px;">
         <div class="flex-box-ce flex-1">
           <userImage :user_name="relevance_employee.name" :img_url="relevance_employee.img_url" fontSize="14"
             width="50px" height="50px"></userImage>
@@ -15,11 +15,11 @@
           </div>
         </div>
       </div>
-      <div style="margin-top: 20px;">
+      <div>
         <el-tabs v-model="wdIndex">
           <el-tab-pane :label="getName(item)" :name="index.toString()" v-for="(item, index) in dimension" :key="index">
             <el-table :data="item.index" v-loading="loading" border :header-cell-style="{ background: '#ECF5FF' }">
-              <el-table-column prop="type" label="指标类型">
+              <el-table-column prop="type" label="指标类型" min-width="80" align="center">
                 <template slot-scope="scope">
                   <span v-if="scope.row.type == 1">量化指标</span>
                   <span v-if="scope.row.type == 2">非量化指标</span>
@@ -27,29 +27,28 @@
                   <span v-if="scope.row.type == 4">额外扣分项</span>
                 </template>
               </el-table-column>
-              <el-table-column prop="name" label="指标名称" align="center" min-width="200">
+              <el-table-column prop="name" label="指标名称" min-width="150" align="center">
                 <template slot-scope="scope">
                   <el-input v-model="scope.row.name" placeholder="请输入指标名称" clearable maxlength="30"
                     show-word-limit></el-input>
                 </template>
               </el-table-column>
 
-              <el-table-column prop="per_remark" align="center"
-                :label="item.index_type == 3 || item.index_type == 4 ? (item.index_type == 3 ? '加分标准' : '扣分标准') : '考核标准'"
-                min-width="200">
+              <el-table-column prop="per_remark" min-width="150" align="center"
+                :label="item.index_type == 3 || item.index_type == 4 ? (item.index_type == 3 ? '加分标准' : '扣分标准') : '考核标准'">
                 <template slot-scope="scope">
                   <el-input type="textarea" v-model="scope.row.per_remark" :max-length="100"
                     :autosize="{ minRows: 1, maxRows: 2 }" clearable=""></el-input>
                 </template>
               </el-table-column>
               <el-table-column v-if="item.index_type == 3 || item.index_type == 4" prop="point_limit" align="center"
-                :label="item.index_type == 3 ? '加分上限' : '扣分上限'" min-width="200">
+                :label="item.index_type == 3 ? '加分上限' : '扣分上限'" min-width="150">
                 <template slot-scope="scope">
                   <el-input type="textarea" :max-length="100" v-model="scope.row.point_limit" clearable
                     :autosize="{ minRows: 1, maxRows: 2 }"></el-input>
                 </template>
               </el-table-column>
-              <el-table-column v-if="item.index_type == 1" prop="target" align="center" label="目标值" min-width="200">
+              <el-table-column v-if="item.index_type == 1" prop="target" align="center" label="目标值" min-width="150">
                 <template slot-scope="scope">
                   <el-input v-model="scope.row.target" clearable></el-input>
                 </template>
@@ -60,14 +59,14 @@
                 </template>
               </el-table-column>
               <el-table-column v-if="item.index_type == 1 || item.index_type == 2" prop="weight" label="权重(%)"
-                align="center" min-width="120">
+                align="center" min-width="150">
                 <template slot-scope="scope">
                   <el-input v-model="scope.row.weight" clearable>
                     <template slot="append">%</template>
                   </el-input>
                 </template>
               </el-table-column>
-              <el-table-column prop="result_type" label="结果值录入" align="center" min-width="120">
+              <el-table-column prop="result_type" label="结果值录入" align="center" min-width="150">
                 <template slot-scope="scope">
                   <div v-if="scope.row.result_employee_id && !scope.row.isEditResult" class="flex-box-ce"
                     style="text-align: center;">
@@ -91,7 +90,7 @@
                   </el-select>
                 </template>
               </el-table-column>
-              <el-table-column prop="reviewer_name" label="指定评分人" min-width="120" align="center">
+              <el-table-column prop="reviewer_name" label="指定评分人" min-width="150" align="center">
                 <template slot-scope="scope">
                   <div v-if="!scope.row.reviewer_id">
                     <el-button type="text" @click="openEmployeeSelector(scope, index)">请选择</el-button>
@@ -106,7 +105,7 @@
                   </div>
                 </template>
               </el-table-column>
-              <el-table-column label="操作">
+              <el-table-column label="操作" align="center" min-width="120">
                 <template slot-scope="scope">
                   <el-button @click="compileIndex(scope, index)" type="text">编辑</el-button>
                   <el-button @click="deleteIndex(scope, index)" type="text">删除</el-button>
@@ -128,7 +127,7 @@
               </div>
               <div class="flex-box-ce result" style="margin: 20px 0;"
                 v-if="item.index_type == 1 || item.index_type == 2">
-                <span style="padding-right: 20px;">指标权重: {{ getWeight()[0] }}%</span>
+                <span>指标权重: {{ getWeight()[0] }}%</span>
                 <span>所有指标总权重: {{ getWeight()[1] }}%</span>
               </div>
             </div>
@@ -304,14 +303,14 @@
               <div @click="isShowRecordFun()" class="inputDc"></div>
             </div>
           </el-form-item>
-          <div class="flex-box-ce">
+          <!-- <div class="flex-box-ce">
             <span style="font-weight: 600;font-size: 14px;color: #606266;">按分数展示对应的评级:</span>
             <el-select v-model="addIndexForm.index_level_id" @change="levelReadOnly" filterable clearable
               placeholder="请选择" style="width: 250px !important;">
               <el-option v-for="item in levelOptions" :key="item.id" :label="item.name" :value="item.id"
                 style="width: 250px !important; "></el-option>
             </el-select>
-          </div>
+          </div> -->
           <ClassSet v-if="addIndexForm.index_level_id != 0 && getIs" ref="ClassSet" :readOnly="true" :inputs="inputs"
             style="padding-top: 20px;" :inputsStyle="{ paddingLeft: '0px', width: '450px' }"></ClassSet>
         </el-form>
@@ -1158,7 +1157,10 @@ export default {
 
 <style scoped="scoped">
 .result {
-  width: 300px;
+  width: 360px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
   border: 2px solid #ff9600;
   padding: 5px 10px;
   color: #ff9600;
@@ -1197,7 +1199,7 @@ export default {
   padding: 20px;
 }
 .main {
-  margin-top: 20px;
+  /* margin-top: 20px; */
 }
 .footer {
   position: fixed;
@@ -1209,7 +1211,6 @@ export default {
   padding: 12px 30px;
 }
 .wd-footer {
-  padding: 12px 0;
   display: flex;
   align-items: center;
   justify-content: space-between;

+ 17 - 14
src/performance/views/myPerformance/adjustment2.vue

@@ -2,7 +2,7 @@
   <div class="all boxMinHeight">
     <PageHead phName="调整目标"></PageHead>
     <div class="main">
-      <div class="flex-box-ce" style="border-bottom: 1px solid #f1f1f1;padding-bottom: 10px;margin-bottom: 20px;">
+      <div class="flex-box-ce" style="border-bottom: 1px solid #f1f1f1;padding-bottom: 10px;">
         <div class="flex-box-ce flex-1">
           <userImage :user_name="relevance_employee.name" :img_url="relevance_employee.img_url" fontSize="14"
             width="50px" height="50px"></userImage>
@@ -15,11 +15,11 @@
           </div>
         </div>
       </div>
-      <div style="margin-top: 20px;">
+      <div style="margin-top: 10px;">
         <el-tabs v-model="wdIndex">
           <el-tab-pane :label="getName(item)" :name="index.toString()" v-for="(item, index) in dimension" :key="index">
             <el-table :data="item.index" v-loading="loading" :header-cell-style="{ background: '#ECF5FF' }" border>
-              <el-table-column prop="type" label="指标类型" min-width="100" align="center">
+              <el-table-column prop="type" label="指标类型" min-width="80" align="center">
                 <template slot-scope="scope">
                   <span v-if="scope.row.type == 1">量化指标</span>
                   <span v-if="scope.row.type == 2">非量化指标</span>
@@ -28,7 +28,7 @@
                 </template>
               </el-table-column>
 
-              <el-table-column prop="name" label="指标名称" min-width="200" align="center">
+              <el-table-column prop="name" label="指标名称" min-width="150" align="center">
                 <template slot-scope="scope">
                   <el-input v-model="scope.row.name" placeholder="请输入指标名称" clearable maxlength="30"
                     show-word-limit></el-input>
@@ -60,14 +60,14 @@
                 </template>
               </el-table-column>
               <el-table-column v-if="item.index_type == 1 || item.index_type == 2" prop="weight" label="权重(%)"
-                align="center" min-width="120">
+                align="center" min-width="150">
                 <template slot-scope="scope">
                   <el-input v-model="scope.row.weight" clearable>
                     <template slot="append">%</template>
                   </el-input>
                 </template>
               </el-table-column>
-              <el-table-column prop="result_type" label="结果值录入" align="center" min-width="120">
+              <el-table-column prop="result_type" label="结果值录入" align="center" min-width="150">
                 <template slot-scope="scope">
                   <div v-if="scope.row.result_employee_id" class="flex-box-ce" style="text-align: center;">
                     <div class="flex-box-ce" style="margin: 0 auto;">
@@ -85,7 +85,7 @@
                   </el-select>
                 </template>
               </el-table-column>
-              <el-table-column prop="reviewer_name" label="指定评分人" min-width="120" align="center">
+              <el-table-column prop="reviewer_name" label="指定评分人" min-width="150" align="center">
                 <template slot-scope="scope">
                   <div v-if="!scope.row.reviewer_id" style="color: #bbb;">
                     {{ '暂无数据' }}
@@ -106,7 +106,7 @@
               </el-table-column>
             </el-table>
             <div class="flex-box-ce result" style="margin: 20px 0;" v-if="item.index_type == 1 || item.index_type == 2">
-              <span style="padding-right: 20px;">指标权重: {{ getWeight()[0] }}%</span>
+              <span>指标权重: {{ getWeight()[0] }}%</span>
               <span>所有指标总权重: {{ getWeight()[1] }}%</span>
             </div>
           </el-tab-pane>
@@ -282,15 +282,15 @@
           </el-form-item>
         </el-form>
       </div>
-      <div class="flex-box-ce">
+      <!-- <div class="flex-box-ce">
         <span style="font-weight: 600;font-size: 14px;color: #606266;">按分数展示对应的评级:</span>
         <el-select v-model="addIndexForm.index_level_id" @change="levelReadOnly" filterable clearable placeholder="请选择"
           disabled>
           <el-option v-for="item in levelOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
         </el-select>
-      </div>
-      <ClassSet v-if="addIndexForm.index_level_id != 0 && getIs" ref="ClassSet" :readOnly="true" :inputs="inputs"
-        style="padding-top: 20px;" :inputsStyle="{ paddingLeft: '0px', width: '450px' }"></ClassSet>
+      </div> -->
+      <!-- <ClassSet v-if="addIndexForm.index_level_id != 0 && getIs" ref="ClassSet" :readOnly="true" :inputs="inputs"
+        style="padding-top: 20px;" :inputsStyle="{ paddingLeft: '0px', width: '450px' }"></ClassSet> -->
       <template slot="footer">
         <el-button plain @click="closeAddIndexForm('saveAddIndex')">取消</el-button>
         <el-button type="primary" @click="saveAddIndex('saveAddIndex', 1)" v-if="isSave">提交</el-button>
@@ -1106,7 +1106,10 @@ export default {
 
 <style scoped="scoped">
 .result {
-  width: 300px;
+  width: 360px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
   border: 2px solid #ff9600;
   padding: 5px 10px;
   color: #ff9600;
@@ -1146,7 +1149,7 @@ export default {
   padding: 20px;
 }
 .main {
-  margin-top: 20px;
+  /* margin-top: 20px; */
 }
 .footer {
   position: fixed;

+ 15 - 2
src/performance/views/myPerformance/resultSetAll.vue

@@ -13,7 +13,7 @@
       <div>
         <el-select v-model="employee_ids" multiple filterable clearable placeholder="请输入或选择人员"
           style="width: 250px;margin-right: 10px;">
-          <el-option v-for="item in employee_map" :key="item.id" :label="item.name" :value="item.id"></el-option>
+          <el-option v-for="(item, index) in employee_map" :key="index" :label="item.name" :value="item.id"></el-option>
         </el-select>
         <el-button type="default" style="margin: 0 15px 15px 0;" @click="clearFilter">清除所有过滤器</el-button>
 
@@ -168,7 +168,7 @@ export default {
       resultList: [], //要发送数据的集合
       resultIndex: 0,
       employee_ids: [],
-      employee_map: this.$getEmployeeMap(),
+      employee_map: [],
       tempData: [], // 表格数据
       sortList: [], // 用于表格数据排序
       index_name_list: [], // 指标名称过滤数据
@@ -276,6 +276,17 @@ export default {
         this.tempData = statusList; // 默认展示未录入的数据
       }
 
+      // 初始化员工姓名过滤数据
+      this.tempData.forEach(item => {
+        let obj = {
+          id: null,
+          name: null
+        }
+        obj.id = item.employee_id
+        obj.name = item.employee_name
+        this.employee_map.push(obj)
+      })
+
 
       // 初始化指标名称过滤数组 
       this.index_name_list = this.tempData.map(item => {
@@ -306,6 +317,8 @@ export default {
         }
       })
 
+      this.employee_map = Array.from(new Set(this.employee_map.map(JSON.stringify))).map(JSON.parse);
+
       // 数组去重
       this.index_name_list = Array.from(new Set(this.index_name_list.map(JSON.stringify))).map(JSON.parse);
 

+ 16 - 2
src/performance/views/myPerformance/resultSetAll2.vue

@@ -13,7 +13,7 @@
       <div>
         <el-select v-model="employee_ids" multiple filterable clearable placeholder="请输入或选择人员"
           style="width: 250px;margin-right: 10px;">
-          <el-option v-for="item in employee_map" :key="item.id" :label="item.name" :value="item.id"></el-option>
+          <el-option v-for="(item, index) in employee_map" :key="index" :label="item.name" :value="item.id"></el-option>
         </el-select>
         <el-button type="default" style="margin: 0 15px 15px 0;" @click="clearFilter">清除所有过滤器</el-button>
 
@@ -177,7 +177,8 @@ export default {
       resultList: [], //要发送数据的集合
       resultIndex: 0,
       employee_ids:[],
-      employee_map: this.$getEmployeeMap(),
+      // employee_map: this.$getEmployeeMap(),
+      employee_map: [],
       tempData: [], // 表格数据
       sortList: [], // 用于表格数据排序
       index_name_list: [], // 指标名称过滤数据
@@ -266,6 +267,16 @@ export default {
         this.tempData = statusList; // 默认展示未录入的数据
       }
 
+      // 初始化员工姓名过滤数据
+      this.tempData.forEach(item => {
+        let obj = {
+          id: null,
+          name: null
+        }
+        obj.id = item.employee_id
+        obj.name = item.employee_name
+        this.employee_map.push(obj)
+      })
       
       // 初始化指标名称过滤数组 
       this.index_name_list = this.tempData.map(item => {
@@ -296,6 +307,9 @@ export default {
         }
       })
 
+      this.employee_map = Array.from(new Set(this.employee_map.map(JSON.stringify))).map(JSON.parse);
+
+      // console.log(this.employee_map);
       // 数组去重
       this.index_name_list = Array.from(new Set(this.index_name_list.map(JSON.stringify))).map(JSON.parse);
 

+ 92 - 0
src/performance/views/statement/Export2Excel.js

@@ -0,0 +1,92 @@
+// 根据dom导出表格
+import { saveAs } from 'file-saver'
+import * as XLSX from 'xlsx'
+import * as XLSXStyle from "xlsx-style";
+
+function s2ab(s) {
+    var buf = new ArrayBuffer(s.length);
+    var view = new Uint8Array(buf);
+    for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF;
+    return buf;
+}
+
+export function exportToExcel(idSelector, fileName, titleNum = 1) {
+    // 设置导出的内容是否只做解析,不进行格式转换     false:要解析, true:不解析
+    const xlsxParam = { raw: true }
+    let table = document.getElementById(idSelector)
+    // 因为element-ui的表格的fixed属性导致多出一个table,会下载重复内容,这里删除掉
+    // if (table.querySelector('.el-table__fixed-right')) {
+    //     table.removeChild(table.querySelector('.el-table__fixed-right'))
+    // }
+    // if (table.querySelector('.el-table__fixed')) {
+    //     table.removeChild(table.querySelector('.el-table__fixed'))
+    // }
+
+    const wb = XLSX.utils.table_to_book(table, xlsxParam)
+    let range = XLSX.utils.decode_range(wb.Sheets['Sheet1']['!ref'])
+    let cWidth = []
+    for (let C = range.s.c; C < range.e.c; ++C) {   //SHEET列
+        let len = 100 //默认列宽
+        let len_max = 400 //最大列宽
+        for (let R = range.s.r; R <= range.e.r; ++R) {  //SHEET行
+            let cell = { c: C, r: R }                    //二维 列行确定一个单元格
+            let cell_ref = XLSX.utils.encode_cell(cell)  //单元格 A1、A2
+            if (wb.Sheets['Sheet1'][cell_ref]) {
+                // wb.Sheets['Sheet1'][cell_ref].v = wb.Sheets['Sheet1'][cell_ref].v.replace(/\n/g, '\n');
+                // if (R == 0){
+                if (R < titleNum) {
+                    wb.Sheets['Sheet1'][cell_ref].s = {  //设置第一行单元格的样式 style
+                        alignment: {
+                            horizontal: 'center',
+                            vertical: 'center',
+                            wrapText: true // 启用自动换行
+                        }
+                    }
+                } else {
+                    wb.Sheets['Sheet1'][cell_ref].s = {
+                        alignment: {
+                            horizontal: 'center',
+                            vertical: 'center',
+                            wrapText: true // 启用自动换行
+                        }
+                    }
+                }
+                //动态自适应:计算列宽
+                let va = JSON.parse(JSON.stringify(wb.Sheets['Sheet1'][cell_ref].v))
+                var card1 = JSON.parse(JSON.stringify(va)).match(/[\u4e00-\u9fa5]/g) //匹配中文
+                var card11 = ''
+                if (card1) {
+                    card11 = card1.join('')
+                }
+                var card2 = JSON.parse(JSON.stringify(va)).replace(/([^\u0000-\u00FF])/g, '')  //剔除中文
+                let st = 0
+                if (card11) {
+                    // st += card11.length * 16  //中文字节码长度
+                    st += card11.length * 20  //中文字节码长度
+                }
+                if (card2) {
+                    // st += card2.length * 8  //非中文字节码长度
+                    st += card2.length * 10  //非中文字节码长度
+                }
+                if (st > len) {
+                    len = st
+                }
+            }
+        }
+        if (len > len_max) {//最大宽度
+            len = len_max
+        }
+
+        cWidth.push({ 'wpx': len })     //列宽
+    }
+    wb.Sheets['Sheet1']['!cols'] = cWidth
+    const wbout = XLSXStyle.write(wb, { bookType: 'xlsx', bookSST: true, type: 'binary', cellStyles: true})
+    try {
+        saveAs(new Blob([s2ab(wbout)], { type: '' }), `${fileName}.xlsx`)
+    } catch (e) {
+        if (typeof console !== 'undefined') {
+            console.log(e, wbout)
+        }
+    }
+    return wbout
+}

+ 372 - 0
src/performance/views/statement/statistics copy.vue

@@ -0,0 +1,372 @@
+<template>
+  <div class="all">
+    <header class="flex-box flex-d-center">
+      <div class="header-wrapper flex-box-ce">
+        <div class="flex-box-ce" style="margin: 0 20px 20px 0;">
+          <el-select v-model="param.cycle_type" placeholder="请选择周期类型">
+            <el-option label="月度" value="2"></el-option>
+            <el-option label="季度" value="3"></el-option>
+            <el-option label="半年度" value="4"></el-option>
+            <el-option label="年度" value="5"></el-option>
+          </el-select>
+        </div>
+
+        <div class="flex-box-ce" v-if="param.cycle_type !== '5'" style="margin: 0 20px 20px 0;">
+          <el-date-picker v-model="param.year" :clearable="false" value-format="yyyy" type="year"
+            placeholder="选择年"></el-date-picker>
+        </div>
+
+
+        <div class="dept_wdiv flex-box-ce" style="margin: 0 20px 20px 0;">
+          <div class="dept_inp" @click="show_dept_selector = true">
+            <span v-if="deptVisibleName != ''">{{ deptVisibleName }}</span>
+            <span v-else style="color: #b9b9b9;">选择部门</span>
+          </div>
+          <i class="el-icon-arrow-down"></i>
+        </div>
+        <div class="flex-box-ce template" style="margin: 0 20px 20px 0;">
+          <el-cascader v-model="headValue" :options="options" :show-all-levels="false" clearable placeholder="请选择考核表"
+            :props="{ expandTrigger: 'hover', label: 'name', value: 'id', children: 'list' }"></el-cascader>
+        </div>
+
+        <div class="flex-box-ce template" style="margin: 0 0 20px 0;">
+          <el-select v-model="employee_ids" filterable clearable class="" placeholder="员工姓名搜索">
+            <el-option v-for="item in employees" :key="item.id" :label="item.name" :value="item.id"></el-option>
+          </el-select>
+        </div>
+      </div>
+    </header>
+
+    <div class="flex-box-ce" style="margin: 0 0 20px 0;">
+      <el-button icon="el-icon-s-promotion" type="primary" @click="exportToExcel('tableList', '考核对比')">导出报表</el-button>
+      <div class="orange" style="margin-left: 20px;">仅支持月度考核的对比</div>
+    </div>
+    <aside v-loading="tableDataLoad">
+      <el-table id="tableList" :data="tableData" style="width: 100%; " border stripe>
+        <el-table-column prop="employee_name" label="姓名" align="center">
+        </el-table-column>
+        <el-table-column prop="dept" label="部门" align="center">
+          <template slot-scope="scope">
+            <div v-if="scope.row.dept.length > 0">
+              <span v-for="(item, index) in scope.row.dept" :key="index">
+                {{ item }}
+                <span v-if="scope.row.dept.length - index > 1">,</span>
+              </span>
+            </div>
+            <span v-else>--</span>
+          </template>
+        </el-table-column>
+        <el-table-column :prop="item.key" :label="item.title" v-for="(item, index) in tableHeader" :key="item.key"
+          align="center">
+          <template slot-scope="scope">
+            <span>
+              {{ scope.row[item.key] && scope.row[item.key].final_point ? scope.row[item.key].final_point : "--" }}
+            </span>
+            <br/>
+            <span class="blue">
+              {{ scope.row[item.key] && scope.row[item.key].final_level ? scope.row[item.key].final_level : "--" }}
+            </span>
+          </template>
+        </el-table-column>
+      </el-table>
+      <!-- <Pagination :page="param.page" :page_size="param.page_size" :total="total" @handleSizeChange="handleSizeChange"
+        @handleCurrentChange="handleCurrentChange"></Pagination> -->
+    </aside>
+    <EmployeeSelector :title="'选择部门'" :isChecKedAll="false" :can_select_employee="false" :can_select_dept="true"
+      :dept_children="false" :selected="dept_selected" :visible.sync="show_dept_selector" @confirm="dept_confirm" />
+  </div>
+</template>
+
+<script>
+import JxSearch from '@/performance/components/public/JxSearch';
+import EmployeeSelector from '@/components/EmployeeSelector';
+import FileSaver from "file-saver";
+import XLSX2 from "xlsx";
+import XLSX from "xlsx-style";
+
+
+export default {
+  data() {
+    return {
+      tableDataLoad: false, //列表load
+      monthList: [
+        { label: '一月', code: 'month_01' },
+        { label: '二月', code: 'month_02' },
+        { label: '三月', code: 'month_03' },
+        { label: '四月', code: 'month_04' },
+        { label: '五月', code: 'month_05' },
+        { label: '六月', code: 'month_06' },
+        { label: '七月', code: 'month_07' },
+        { label: '八月', code: 'month_08' },
+        { label: '九月', code: 'month_09' },
+        { label: '十月', code: 'month_10' },
+        { label: '十一月', code: 'month_11' },
+        { label: '十二月', code: 'month_12' }
+      ],
+      total: 10,
+      tableHeader: [],
+      tableData: [],
+      // 选择部门
+      deptVisibleName: '',
+      dept_selected: { dept: [], employee: [] },
+      show_dept_selector: false,
+      // 考核模板
+      options: [], //
+      headValue: [],
+      // 参数
+      param: {
+        cycle_type: '2', // 周期类型 2-月度 3-季度 4-半年度 5-年度
+        year: this.$moment().format('YYYY'),
+        page: 0,
+        page_size: 10,
+        dept_ids: '',
+        employee_ids: '',
+        group_ids: ''
+      },
+      employee_ids: '',
+      employees: []
+    };
+  },
+  components: { JxSearch, EmployeeSelector },
+  watch: {
+    'param.cycle_type'(val) {
+      if (val == 5) delete this.param.year
+      else this.param.year = this.$moment().format('YYYY')
+      this.getDataList();
+    },
+    employee_ids(val) {
+      if (val) {
+        this.param.employee_ids = JSON.stringify([val]);
+      } else {
+        this.param.employee_ids = '';
+      }
+      this.getDataList();
+    },
+    'param.year'(val) {
+      this.getDataList();
+    },
+    headValue(val) {
+      if (val.length > 0) {
+        this.param.group_ids = JSON.stringify([val[val.length - 1]]);
+      } else {
+        this.param.group_ids = '';
+      }
+      this.getDataList();
+    }
+  },
+  created() {
+    this.employees = this.$getEmployeeMap(1);
+    this.assessTree();
+  },
+  mounted() {
+    this.getDataList();
+  },
+  methods: {
+    exportToExcel(tableId, fileName) {
+      const xlsxParam = { raw: true };
+      const wb = XLSX.utils.table_to_book(document.getElementById(tableId), xlsxParam);
+
+      // 遍历工作表中的所有单元格,处理换行
+      const ws = wb.Sheets[wb.SheetNames[0]];
+      for (const cell in ws) {
+        if (ws[cell].v && typeof ws[cell].v === 'string') {
+          ws[cell].v = ws[cell].v.replace(/<br\/>/g, '\n');
+          ws[cell].s = {
+            alignment: {
+              wrapText: true // 启用自动换行
+            }
+          };
+        }
+      }
+
+      const wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'array' });
+      try {
+        FileSaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), fileName + '.xlsx');
+      } catch (e) {
+        console.error(e, wbout);
+      }
+    },
+
+
+    dept_confirm(data) {
+      //部门选择
+      this.dept_selected = { dept: [], employee: [] };
+      this.deptVisibleName = '';
+      let deptList_id = [];
+      if (data.dept !== null && data.dept.length != 0) {
+        this.dept_selected = data;
+        data.dept.forEach((element, index) => {
+          deptList_id.push(element.dept_id);
+          this.deptVisibleName += element.dept_name;
+          if (data.dept.length - index > 1) {
+            this.deptVisibleName += ',';
+          }
+        });
+      }
+      this.param.page = 1;
+      this.param.dept_ids = JSON.stringify(deptList_id);
+      this.getDataList();
+    },
+    isObject(value) {
+      return Object.prototype.toString.call(value) === '[object Object]';
+    },
+    getDataList() {
+      this.tableDataLoad = true;
+      // /api/pro/per/statistics/data
+      this.$axiosUser('get', '/api/pro/per/statistics/data', this.param)
+        .then(res => {
+          if (res.data.code == 1) {
+            this.tableData = res.data.data.list;
+            this.total = res.data.data.total;
+            this.tableHeader = res.data.data.header;
+            this.tableData.forEach(item => {
+              
+              Object.values(item).forEach(value => {
+                console.log(value)
+              })
+            })
+            console.log(this.tableData)
+          }
+        })
+        .finally(() => {
+          this.tableDataLoad = false;
+        });
+    },
+    //搜索
+    searchList(data) {
+      this.param.keywords = data;
+      this.getDataList();
+    },
+    // 页面变更
+    handleCurrentChange(val) {
+      this.param.page = val;
+      this.getDataList();
+    },
+    // 页面跳转
+    handleSizeChange(val) {
+      this.param.page_size = val;
+      this.getDataList();
+    },
+    //请求绩效树
+    assessTree() {
+      this.$axiosUser('get', '/api/pro/per/evaluation/all_group', { page: 1 }).then(res => {
+        if (res.data.code == 1) {
+          let data = res.data.data.list;
+          let options = [
+            { name: '月度', id: 2, list: [] },
+            { name: '日', id: 1, list: [] },
+            { name: '季度', id: 3, list: [] },
+            { name: '半年度', id: 4, list: [] },
+            { name: '年度', id: 5, list: [] },
+            { name: '自定义', id: 6, list: [] }
+          ];
+          data.forEach(item => {
+            options.forEach(item2 => {
+              if (item2.id == item.cycle_type) {
+                item2.list.push(item);
+              }
+            });
+          });
+          this.options = options;
+        }
+      });
+    }
+  }
+};
+</script>
+
+<style scoped="scoped" lang="scss">
+.el-table .cell {
+  white-space: pre-line;
+}
+
+.all {
+  background-color: #fff;
+  padding: 20px;
+  min-height: calc(100vh - 210px);
+}
+
+.title {
+  width: 70px;
+  text-align: right;
+  vertical-align: middle;
+  float: left;
+  font-size: 14px;
+  color: #606266;
+  line-height: 40px;
+  padding: 0 12px 0 0;
+  -webkit-box-sizing: border-box;
+  box-sizing: border-box;
+  font-weight: 600;
+}
+
+.dept_wdiv {
+  width: 240px;
+
+  .dept_inp {
+    width: 240px;
+    z-index: 9;
+    height: 36px;
+    line-height: 36px;
+    border: 1px solid #e0e0e0;
+    border-radius: 3px;
+    font-size: 12px;
+    padding: 0 10px;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+    cursor: pointer;
+    color: #676767;
+  }
+
+  i {
+    position: absolute;
+    top: 0;
+    right: 0;
+    top: 12px;
+    right: 10px;
+    font-size: 14px;
+    color: #b5b5b5;
+  }
+}
+
+.color_blue {
+  color: #1299f9;
+}
+
+/* 设置滚动条的宽度和背景色 */
+::v-deep .el-table__body-wrapper::-webkit-scrollbar {
+  width: 10px;
+  height: 10px;
+  background-color: #f9f9f9;
+}
+
+/* 设置滚动条滑块的样式 */
+::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
+  border-radius: 6px;
+  background-color: #c1c1c1;
+}
+
+/* 设置滚动条滑块hover样式 */
+::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb:hover {
+  background-color: #a8a8a8;
+}
+
+/* 设置滚动条轨道的样式 */
+::v-deep .el-table__body-wrapper::-webkit-scrollbar-track {
+  box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
+  border-radius: 6px;
+  background: #ededed;
+}
+
+@media screen and (max-width: 1680px) {
+  header {
+    .header-wrapper {
+      display: flex;
+      flex-wrap: wrap;
+    }
+
+  }
+
+}
+</style>

+ 119 - 84
src/performance/views/statement/statistics.vue

@@ -1,107 +1,65 @@
 <template>
   <div class="all">
-    <header class="flex-box flex-d-center" style="min-width: 1400px;">
-      <div class="flex-box">
+    <header class="flex-box flex-d-center">
+      <div class="header-wrapper flex-box-ce">
+        <div class="flex-box-ce" style="margin: 0 20px 20px 0;">
+          <el-select v-model="param.cycle_type" placeholder="请选择周期类型">
+            <el-option label="月度" value="2"></el-option>
+            <el-option label="季度" value="3"></el-option>
+            <el-option label="半年度" value="4"></el-option>
+            <el-option label="年度" value="5"></el-option>
+          </el-select>
+        </div>
 
-        <div class="flex-box-ce">
-          <div class="title">年份</div>
+        <div class="flex-box-ce" v-if="param.cycle_type !== '5'" style="margin: 0 20px 20px 0;">
           <el-date-picker v-model="param.year" :clearable="false" value-format="yyyy" type="year"
             placeholder="选择年"></el-date-picker>
         </div>
 
-        <div class="title">部门</div>
-        <div class="dept_wdiv">
+        <div class="dept_wdiv flex-box-ce" style="margin: 0 20px 20px 0;">
           <div class="dept_inp" @click="show_dept_selector = true">
             <span v-if="deptVisibleName != ''">{{ deptVisibleName }}</span>
             <span v-else style="color: #b9b9b9;">选择部门</span>
           </div>
           <i class="el-icon-arrow-down"></i>
         </div>
-        <div class="flex-box-ce" style="margin-left: 20px;">
-          <div class="title">考核模板</div>
-          <el-cascader v-model="headValue" :options="options" :show-all-levels="false" clearable
+        <div class="flex-box-ce template" style="margin: 0 20px 20px 0;">
+          <el-cascader v-model="headValue" :options="options" :show-all-levels="false" clearable placeholder="请选择考核表"
             :props="{ expandTrigger: 'hover', label: 'name', value: 'id', children: 'list' }"></el-cascader>
         </div>
 
-        <div class="flex-box-ce" style="margin-left: 20px;">
-          <div class="title">员工姓名</div>
-          <el-select style="position: relative;top: 2px;" v-model="employee_ids" filterable clearable class=""
-            placeholder="姓名搜索">
+        <div class="flex-box-ce template" style="margin: 0 0 20px 0;">
+          <el-select v-model="employee_ids" filterable clearable class="" placeholder="员工姓名搜索">
             <el-option v-for="item in employees" :key="item.id" :label="item.name" :value="item.id"></el-option>
           </el-select>
         </div>
       </div>
     </header>
-    <!-- <el-row :gutter="10">
-      <el-col :span="6">
-        <div class="flex-box-ce">
-          <div class="title">年份</div>
-          <el-date-picker v-model="param.year" :clearable="false" value-format="yyyy" type="year"
-            placeholder="选择年"></el-date-picker>
-        </div>
-      </el-col>
-      <el-col :span="6">
-        <div class="title">部门</div>
-        <div class="flex-box-ce">
 
-          <div class="dept_wdiv">
-            <div class="dept_inp" @click="show_dept_selector = true">
-              <span v-if="deptVisibleName != ''">{{ deptVisibleName }}</span>
-              <span v-else style="color: #b9b9b9;">选择部门</span>
-            </div>
-            <i class="el-icon-arrow-down"></i>
-          </div>
-        </div>
-      </el-col>
-      <el-col :span="6">
-        <div class="title">考核表</div>
-        <el-cascader v-model="headValue" :options="options" :show-all-levels="false" clearable
-          :props="{ expandTrigger: 'hover', label: 'name', value: 'id', children: 'list' }"></el-cascader>
-      </el-col>
-      <el-col :span="6">
-        <div class="title">员工姓名</div>
-        <el-select style="position: relative;top: 2px;" v-model="employee_ids" filterable clearable class=""
-          placeholder="姓名搜索">
-          <el-option v-for="item in employees" :key="item.id" :label="item.name" :value="item.id"></el-option>
-        </el-select>
-      </el-col>
-    </el-row> -->
-    <div class="flex-box-ce" style="margin: 20px 0;">
-      <el-button icon="el-icon-s-promotion" type="primary" @click="downloadTemplate">导出报表</el-button>
-      <div class="orange" style="margin-left: 20px;">仅支持月度考核的对比</div>
+    <div class="flex-box-ce" style="margin: 0 0 20px 0;">
+      <el-button icon="el-icon-s-promotion" type="primary" :loading="downloadLoading"
+        @click="exportToExcel2('mytable', '考核对比')">导出报表</el-button>
     </div>
     <aside v-loading="tableDataLoad">
-      <el-table :data="tableData" style="width: 100%; " border stripe>
+      <el-table ref="tableRef" id="mytable" :data="tableData" style="width: 100%; " border stripe>
         <el-table-column prop="employee_name" label="姓名" align="center">
-          <!-- <template slot-scope="scope">
-            <div class="flex-box-ce">
-              <userImage :id="scope.row.employee_id" :user_name="scope.row.employee_name" width="35px" height="35px" fontSize="12px"></userImage>
-              <span style="line-height: 50px;">{{ scope.row.employee_name }}</span>
-            </div>
-          </template> -->
         </el-table-column>
         <el-table-column prop="dept" label="部门" align="center">
           <template slot-scope="scope">
-            <div v-if="scope.row.dept.length > 0">
-              <span v-for="(item, index) in scope.row.dept" :key="index">
-                {{ item }}
-                <span v-if="scope.row.dept.length - index > 1">,</span>
-              </span>
-            </div>
+            <div v-if="scope.row.dept.length > 0"><span v-for="(item, index) in scope.row.dept" :key="index">{{ item }}<span v-if="scope.row.dept.length - index > 1">, </span></span></div>
             <span v-else>--</span>
           </template>
         </el-table-column>
-        <el-table-column :prop="item.code" :label="item.label" v-for="(item, index) in monthList" :key="item.code"
-          align="center">
+        <el-table-column :prop="item.key" :label="item.title" v-for="(item, index) in tableHeader" :key="item.key"
+          align="center" >
           <template slot-scope="scope">
-            <span>{{ scope.row[item.code].final_point }}</span>
-            <br />
-            <span class="blue">{{ scope.row[item.code].final_level }}</span>
+            <span v-if="scope.row[item.key] && scope.row[item.key].content">{{ scope.row[item.key].content }}</span>
+            <span v-else>{{ '--\n--' }}</span>
           </template>
         </el-table-column>
       </el-table>
-      <Pagination :page="param.page" :page_size="param.page_size" :total="total" @handleSizeChange="handleSizeChange"
-        @handleCurrentChange="handleCurrentChange"></Pagination>
+      <!-- <Pagination :page="param.page" :page_size="param.page_size" :total="total" @handleSizeChange="handleSizeChange"
+        @handleCurrentChange="handleCurrentChange"></Pagination> -->
     </aside>
     <EmployeeSelector :title="'选择部门'" :isChecKedAll="false" :can_select_employee="false" :can_select_dept="true"
       :dept_children="false" :selected="dept_selected" :visible.sync="show_dept_selector" @confirm="dept_confirm" />
@@ -111,10 +69,17 @@
 <script>
 import JxSearch from '@/performance/components/public/JxSearch';
 import EmployeeSelector from '@/components/EmployeeSelector';
+import FileSaver from "file-saver";
+import XLSX from "xlsx";
+
+import { exportToExcel } from './Export2Excel'
+
 export default {
   data() {
     return {
+      content: "今天<br/>星期一",
       tableDataLoad: false, //列表load
+      downloadLoading: false,
       monthList: [
         { label: '一月', code: 'month_01' },
         { label: '二月', code: 'month_02' },
@@ -130,6 +95,7 @@ export default {
         { label: '十二月', code: 'month_12' }
       ],
       total: 10,
+      tableHeader: [],
       tableData: [],
       // 选择部门
       deptVisibleName: '',
@@ -140,8 +106,9 @@ export default {
       headValue: [],
       // 参数
       param: {
+        cycle_type: '2', // 周期类型 2-月度 3-季度 4-半年度 5-年度
         year: this.$moment().format('YYYY'),
-        page: 1,
+        page: 0,
         page_size: 10,
         dept_ids: '',
         employee_ids: '',
@@ -153,6 +120,11 @@ export default {
   },
   components: { JxSearch, EmployeeSelector },
   watch: {
+    'param.cycle_type'(val) {
+      if (val == 5) delete this.param.year
+      else this.param.year = this.$moment().format('YYYY')
+      this.getDataList();
+    },
     employee_ids(val) {
       if (val) {
         this.param.employee_ids = JSON.stringify([val]);
@@ -180,12 +152,44 @@ export default {
   mounted() {
     this.getDataList();
   },
+
+  filters: {
+    wrapText(val) {
+      return val.replace(',', '\n')
+    }
+  },
+  
   methods: {
-    downloadTemplate() {
-      let site_info=this.$getCache('site_info')
-      let url=`${this.$serverdomain}/api/pro/download/year_statistics?site_id=${site_info.id}&searcher_id=${this.$userInfo().id}&year=${this.param.year}&dept_ids=${this.param.dept_ids}&employee_ids=${this.param.employee_ids}&group_ids=${this.param.group_ids}`;
-      window.open(url,'_blank');
+    
+    exportToExcel2(tableId, fileName) {
+      // exportToExcel(tableId, fileName)
+      this.downloadLoading = true
+      const xlsxParam = { raw: true };
+      const wb = XLSX.utils.table_to_book(document.getElementById(tableId), xlsxParam);
+
+      // 遍历工作表中的所有单元格,处理换行
+      const ws = wb.Sheets[wb.SheetNames[0]]; // 工作簿1
+      for (const cell in ws) {
+        if (ws[cell].v && typeof ws[cell].v === 'string') {
+          ws[cell].v = ws[cell].v.replace(/\n/g, '\n');
+          ws[cell].s = {
+            alignment: {
+              wrapText: true // 启用自动换行
+            }
+          };
+        }
+      }
+
+      const wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'array' });
+      try {
+        FileSaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), fileName + '.xlsx');
+      } catch (e) {
+        console.error(e, wbout);
+      }
+      this.downloadLoading = false;
     },
+
+
     dept_confirm(data) {
       //部门选择
       this.dept_selected = { dept: [], employee: [] };
@@ -205,13 +209,27 @@ export default {
       this.param.dept_ids = JSON.stringify(deptList_id);
       this.getDataList();
     },
+    isObject(value) {
+      return Object.prototype.toString.call(value) === '[object Object]';
+    },
     getDataList() {
       this.tableDataLoad = true;
-      this.$axiosUser('get', '/api/pro/per/statistics/year', this.param)
+      this.$axiosUser('get', '/api/pro/per/statistics/data', this.param)
         .then(res => {
           if (res.data.code == 1) {
             this.tableData = res.data.data.list;
             this.total = res.data.data.total;
+            this.tableHeader = res.data.data.header;
+            this.tableData.forEach(item => {
+              Object.keys(item).forEach(key => {
+                if (this.isObject(item[key])) {
+                  let final_point = item[key].final_point ? item[key].final_point : '--';
+                  let final_level = item[key].final_level ? item[key].final_level : '--';
+                  item[key].content = final_point + '\n' + final_level;
+                }
+              })
+            })
+            console.log(this.tableData)
           }
         })
         .finally(() => {
@@ -237,7 +255,7 @@ export default {
     assessTree() {
       this.$axiosUser('get', '/api/pro/per/evaluation/all_group', { page: 1 }).then(res => {
         if (res.data.code == 1) {
-          let data=res.data.data.list;
+          let data = res.data.data.list;
           let options = [
             { name: '月度', id: 2, list: [] },
             { name: '日', id: 1, list: [] },
@@ -262,11 +280,16 @@ export default {
 </script>
 
 <style scoped="scoped" lang="scss">
+.el-table .cell {
+  white-space: pre-line;
+}
+
 .all {
   background-color: #fff;
   padding: 20px;
   min-height: calc(100vh - 210px);
 }
+
 .title {
   width: 70px;
   text-align: right;
@@ -280,17 +303,12 @@ export default {
   box-sizing: border-box;
   font-weight: 600;
 }
-header {
-  margin-bottom: 20px;
-}
+
 .dept_wdiv {
   width: 240px;
-  position: relative;
+
   .dept_inp {
-    position: absolute;
-    top: 2px;
-    right: 0;
-    left: 0;
+    width: 240px;
     z-index: 9;
     height: 36px;
     line-height: 36px;
@@ -304,6 +322,7 @@ header {
     cursor: pointer;
     color: #676767;
   }
+
   i {
     position: absolute;
     top: 0;
@@ -314,6 +333,7 @@ header {
     color: #b5b5b5;
   }
 }
+
 .color_blue {
   color: #1299f9;
 }
@@ -342,4 +362,19 @@ header {
   border-radius: 6px;
   background: #ededed;
 }
+
+::v-deep .el-table .cell {
+  white-space: pre-line;
+}
+
+@media screen and (max-width: 1680px) {
+  header {
+    .header-wrapper {
+      display: flex;
+      flex-wrap: wrap;
+    }
+
+  }
+
+}
 </style>

+ 1 - 1
src/router/performanceRouter.js

@@ -106,7 +106,7 @@ const routes = [
           role: ['masterAdministrator', 'childAdministrator', 'deptManager'],
           jurisdiction: [16]
         },
-        label: '年度统计'
+        label: '考核对比'
       },
       // 我的绩效
       {