|  | @@ -22,12 +22,14 @@
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            <!-- 循环分组 -->
 | 
	
		
			
				|  |  | -          <el-col :span="24" class="grouping" v-loading="rule_trees_load">
 | 
	
		
			
				|  |  | +          <el-col :span="24" style="padding-right: 0;" v-loading="rule_trees_load">
 | 
	
		
			
				|  |  |              <el-menu class="rule_name" :unique-opened="true">
 | 
	
		
			
				|  |  |                <el-submenu :index="index.toString()" v-for="(item,index) in rule_list" :key="index">
 | 
	
		
			
				|  |  |                  <template slot="title">
 | 
	
		
			
				|  |  | -                  <i class="el-icon-edit-outline title_top" @click.stop="edit_grouping(item)"></i>
 | 
	
		
			
				|  |  | -                  <span class="title_top">{{item.name}}</span>
 | 
	
		
			
				|  |  | +                  <div style="width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">
 | 
	
		
			
				|  |  | +                    <i class="el-icon-edit-outline title_top" @click.stop="edit_grouping(item)"></i>
 | 
	
		
			
				|  |  | +                    <span class="title_top">{{item.name}}</span>
 | 
	
		
			
				|  |  | +                  </div>
 | 
	
		
			
				|  |  |                  </template>
 | 
	
		
			
				|  |  |                  <span
 | 
	
		
			
				|  |  |                    :index="i.toString()"
 | 
	
	
		
			
				|  | @@ -41,7 +43,9 @@
 | 
	
		
			
				|  |  |                      :key="i1"
 | 
	
		
			
				|  |  |                      @click="open_right(data)"
 | 
	
		
			
				|  |  |                    >
 | 
	
		
			
				|  |  | -                    <span slot="title">{{data.remark}}</span>
 | 
	
		
			
				|  |  | +                    <div style="width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">
 | 
	
		
			
				|  |  | +                      <span slot="title">{{data.remark}}</span>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  |                    </el-menu-item>
 | 
	
		
			
				|  |  |                  </span>
 | 
	
		
			
				|  |  |                  <!-- <el-menu-item :index="i.toString()" v-for="(data,i) in item.data" :key="i" @click="open_right(data)" >{{data.name}}</el-menu-item> -->
 | 
	
	
		
			
				|  | @@ -51,89 +55,85 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          <div class="terr-right border-right flex-1" v-loading="table_loading">
 | 
	
		
			
				|  |  | -          <el-col
 | 
	
		
			
				|  |  | -            :span="24"
 | 
	
		
			
				|  |  | -            v-show="(rule_list.length == 0||item_list.length == 0)"
 | 
	
		
			
				|  |  | -            style="text-align: center;margin: 0 auto;position: relative;top: 30%;"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | -            <p>
 | 
	
		
			
				|  |  | -              <img src="@/assets/image/nodata_default.png" width="200px" alt />
 | 
	
		
			
				|  |  | -            </p>
 | 
	
		
			
				|  |  | -            <p style="color: #909399;">还没有分类和规则</p>
 | 
	
		
			
				|  |  | -            <p style="color: #909399;">
 | 
	
		
			
				|  |  | -              先
 | 
	
		
			
				|  |  | -              <span style="color: #26A2FF;" @click="add_grouping()">【添加分类】</span>,再
 | 
	
		
			
				|  |  | -              <span style="color: #26A2FF;" @click="add_rules_detail">添加规则</span>
 | 
	
		
			
				|  |  | -            </p>
 | 
	
		
			
				|  |  | +          <el-col :span="24" v-show="(rule_list.length == 0||item_list.length == 0)" style="text-align: center;margin: 0 auto;position: relative;top: 30%;">
 | 
	
		
			
				|  |  | +            <p><img src="@/assets/image/nodata_default.png" width="200px" alt=""></p>
 | 
	
		
			
				|  |  | +            <p style="color: #909399;">还没有<span v-if="rule_list.length==0">加分组和</span>加分项</p>
 | 
	
		
			
				|  |  | +            <p style="color: #909399;"><span v-if="rule_list.length==0">先</span><span style="color: #26A2FF;cursor:pointer;" v-if="rule_list.length==0" @click="add_grouping()">【添加加分组】</span>,<span v-if="rule_list.length==0">再</span><span v-if="rule_list.length!==0">请</span><span style="color: #26A2FF;cursor:pointer" @click="add_rules_detail">【添加加分项】</span></p>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |            <el-col v-if="item_list.length != 0">
 | 
	
		
			
				|  |  | -            <el-row>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <!-- 移除隐藏 -->
 | 
	
		
			
				|  |  | +            <!-- <el-col :span="24" style="font-size:20px;color:#303133;line-height:36px;display:flex;flex-wrap: wrap;">
 | 
	
		
			
				|  |  | +              <div style="width:5%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">
 | 
	
		
			
				|  |  | +                <span>{{right_rules_detail.remark}}</span>
 | 
	
		
			
				|  |  | +              </div> -->
 | 
	
		
			
				|  |  |                <el-col :span="24" style="font-size:20px;color:#303133;line-height:36px;">
 | 
	
		
			
				|  |  | -                {{right_rules_detail.remark}}
 | 
	
		
			
				|  |  | -                <span
 | 
	
		
			
				|  |  | -                  style="padding-left: 10px;"
 | 
	
		
			
				|  |  | -                >{{right_rules_detail.min_point}}B分</span>
 | 
	
		
			
				|  |  | -                <el-button
 | 
	
		
			
				|  |  | -                  plain
 | 
	
		
			
				|  |  | -                  style="padding:10px 12px; margin-left: 10px;"
 | 
	
		
			
				|  |  | -                  @click="edit_rules(item_info)"
 | 
	
		
			
				|  |  | -                >编辑</el-button>
 | 
	
		
			
				|  |  | -              </el-col>
 | 
	
		
			
				|  |  | -            </el-row>
 | 
	
		
			
				|  |  | -            <div class="flex-box btns flex-v-ce">
 | 
	
		
			
				|  |  | -              <el-button size="medium" @click="del_item" type="danger" plain>批量移除</el-button>
 | 
	
		
			
				|  |  | -              <el-button type="primary" @click="add_employee_show= true">添加人员</el-button>
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | -            <el-table
 | 
	
		
			
				|  |  | -              ref="multipleTable"
 | 
	
		
			
				|  |  | -              :data="table_list"
 | 
	
		
			
				|  |  | -              v-loading="table_loading"
 | 
	
		
			
				|  |  | -              tooltip-effect="dark"
 | 
	
		
			
				|  |  | -              style="width: 100%;margin-top:20px;"
 | 
	
		
			
				|  |  | -              @selection-change="handleSelectionChange"
 | 
	
		
			
				|  |  | -            >
 | 
	
		
			
				|  |  | -              <el-table-column type="selection" width="45"></el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column label="姓名">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <div style="display:flex">
 | 
	
		
			
				|  |  | -                    <span class="fl">
 | 
	
		
			
				|  |  | -                      <userImage
 | 
	
		
			
				|  |  | -                        :id="scope.row.employee_id"
 | 
	
		
			
				|  |  | -                        width="50px"
 | 
	
		
			
				|  |  | -                        height="50px"
 | 
	
		
			
				|  |  | -                        :user_name="scope.row.employee.name"
 | 
	
		
			
				|  |  | -                        :img_url="scope.row.employee.img_url"
 | 
	
		
			
				|  |  | -                        v-if="scope.row.employee"
 | 
	
		
			
				|  |  | -                      ></userImage>
 | 
	
		
			
				|  |  | -                    </span>
 | 
	
		
			
				|  |  | -                    <span
 | 
	
		
			
				|  |  | -                      style="margin-left: 10px; line-height: 50px; display: inline-block"
 | 
	
		
			
				|  |  | +              {{right_rules_detail.remark}}
 | 
	
		
			
				|  |  | +              <span style="padding-left: 10px;">{{right_rules_detail.min_point}}B分</span>
 | 
	
		
			
				|  |  | +              <el-button
 | 
	
		
			
				|  |  | +                plain
 | 
	
		
			
				|  |  | +                style="padding:10px 12px; margin-left: 10px;"
 | 
	
		
			
				|  |  | +                @click="edit_rules(item_info)"
 | 
	
		
			
				|  |  | +              >编辑</el-button>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          <div class="flex-box btns flex-v-ce">
 | 
	
		
			
				|  |  | +            <el-button size="small" @click="del_item" type="danger" plain>批量移除</el-button>
 | 
	
		
			
				|  |  | +            <el-button size="small" type="primary" @click="add_employee_show_TJ">添加人员</el-button>
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +          <el-table
 | 
	
		
			
				|  |  | +            ref="multipleTable"
 | 
	
		
			
				|  |  | +            :data="table_list"
 | 
	
		
			
				|  |  | +            v-loading="table_loading"
 | 
	
		
			
				|  |  | +            tooltip-effect="dark"
 | 
	
		
			
				|  |  | +            style="width: 100%;margin-top:20px;"
 | 
	
		
			
				|  |  | +            @selection-change="handleSelectionChange"
 | 
	
		
			
				|  |  | +          >
 | 
	
		
			
				|  |  | +            <el-table-column type="selection" width="45"></el-table-column>
 | 
	
		
			
				|  |  | +            <el-table-column label="姓名">
 | 
	
		
			
				|  |  | +              <template slot-scope="scope">
 | 
	
		
			
				|  |  | +                <div style="display:flex">
 | 
	
		
			
				|  |  | +                  <span class="fl">
 | 
	
		
			
				|  |  | +                    <userImage
 | 
	
		
			
				|  |  | +                    
 | 
	
		
			
				|  |  | +                      :id="scope.row.employee_id"
 | 
	
		
			
				|  |  | +                      width="50px"
 | 
	
		
			
				|  |  | +                      height="50px"
 | 
	
		
			
				|  |  | +                      :user_name="scope.row.employee.name"
 | 
	
		
			
				|  |  | +                      :img_url="scope.row.employee.img_url"
 | 
	
		
			
				|  |  |                        v-if="scope.row.employee"
 | 
	
		
			
				|  |  | -                    >{{scope.row.employee.name}}</span>
 | 
	
		
			
				|  |  | -                  </div>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column prop="cycle_remark" label="加分周期"></el-table-column>
 | 
	
		
			
				|  |  | -              <template slot="empty">
 | 
	
		
			
				|  |  | -                <noData></noData>
 | 
	
		
			
				|  |  | +                    ></userImage>
 | 
	
		
			
				|  |  | +                  </span>
 | 
	
		
			
				|  |  | +                  <span
 | 
	
		
			
				|  |  | +                    style="margin-left: 10px; line-height: 50px; display: inline-block"
 | 
	
		
			
				|  |  | +                    v-if="scope.row.employee"
 | 
	
		
			
				|  |  | +                  >{{scope.row.employee.name}}</span>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  |                </template>
 | 
	
		
			
				|  |  | -            </el-table>
 | 
	
		
			
				|  |  | +            </el-table-column>
 | 
	
		
			
				|  |  | +            <el-table-column prop="cycle_remark" label="加分周期"></el-table-column>
 | 
	
		
			
				|  |  | +			<template slot="empty">
 | 
	
		
			
				|  |  | +				<noData></noData>
 | 
	
		
			
				|  |  | +			</template>
 | 
	
		
			
				|  |  | +          </el-table>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            <!-- 分页 -->
 | 
	
		
			
				|  |  | -            <div style=" text-align: center; padding: 20px;">
 | 
	
		
			
				|  |  | -              <el-pagination
 | 
	
		
			
				|  |  | -                background
 | 
	
		
			
				|  |  | -                layout="total, prev, pager, next"
 | 
	
		
			
				|  |  | -                :current-page="page"
 | 
	
		
			
				|  |  | -                @current-change="handleCurrentChange"
 | 
	
		
			
				|  |  | -                :page-size.sync="pagesize"
 | 
	
		
			
				|  |  | -                :hide-on-single-page="true"
 | 
	
		
			
				|  |  | -                :total="total"
 | 
	
		
			
				|  |  | -              ></el-pagination>
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | +          <!-- 分页 -->
 | 
	
		
			
				|  |  | +          <div style=" text-align: center; padding: 20px;">
 | 
	
		
			
				|  |  | +            <el-pagination
 | 
	
		
			
				|  |  | +              background
 | 
	
		
			
				|  |  | +              layout="total, prev, pager, next"
 | 
	
		
			
				|  |  | +              :current-page="page"
 | 
	
		
			
				|  |  | +              @current-change="handleCurrentChange"
 | 
	
		
			
				|  |  | +              :page-size.sync="pagesize"
 | 
	
		
			
				|  |  | +              :hide-on-single-page="true"
 | 
	
		
			
				|  |  | +              :total="total"
 | 
	
		
			
				|  |  | +            ></el-pagination>
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        <!-- 可写公共组建: -->
 | 
	
		
			
				|  |  |        <!-- 新增加分组弹出框 -->
 | 
	
		
			
				|  |  |        <el-dialog
 | 
	
	
		
			
				|  | @@ -158,8 +158,6 @@
 | 
	
		
			
				|  |  |              <el-input
 | 
	
		
			
				|  |  |                type="age"
 | 
	
		
			
				|  |  |                v-model="numberValidateForm.name"
 | 
	
		
			
				|  |  | -              
 | 
	
		
			
				|  |  | -            @keydown.enter.native="submitForm('numberValidateForm')"
 | 
	
		
			
				|  |  |                autocomplete="off"
 | 
	
		
			
				|  |  |                placeholder="请输入分组名称"
 | 
	
		
			
				|  |  |              ></el-input>
 | 
	
	
		
			
				|  | @@ -241,7 +239,7 @@
 | 
	
		
			
				|  |  |                style="float:left"
 | 
	
		
			
				|  |  |                :disabled="disabled"
 | 
	
		
			
				|  |  |              >删除</el-button>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  |              <el-button
 | 
	
		
			
				|  |  |                v-if="rules_detail_title"
 | 
	
		
			
				|  |  |                class="fr"
 | 
	
	
		
			
				|  | @@ -287,7 +285,8 @@
 | 
	
		
			
				|  |  |                ></el-option>
 | 
	
		
			
				|  |  |              </el-select>
 | 
	
		
			
				|  |  |            </el-form-item>
 | 
	
		
			
				|  |  | -          <div v-loading="staff_loading">
 | 
	
		
			
				|  |  | +          <div 
 | 
	
		
			
				|  |  | +       v-loading="staff_loading">
 | 
	
		
			
				|  |  |              <EmployeeSelector1
 | 
	
		
			
				|  |  |                :max="add_employee_max"
 | 
	
		
			
				|  |  |                :can_select_dept="false"
 | 
	
	
		
			
				|  | @@ -312,11 +311,12 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import EmployeeSelector1 from "@/components/EmployeeSelector";
 | 
	
		
			
				|  |  | -import noData from "@/components/noData";
 | 
	
		
			
				|  |  | +import noData from '@/components/noData';
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | -      jieguoId: "",
 | 
	
		
			
				|  |  | +      // grouping_Json:[],
 | 
	
		
			
				|  |  | +      jieguoId:"",
 | 
	
		
			
				|  |  |        table_list: [],
 | 
	
		
			
				|  |  |        tips_show: false,
 | 
	
		
			
				|  |  |        item_info: {},
 | 
	
	
		
			
				|  | @@ -336,9 +336,10 @@ export default {
 | 
	
		
			
				|  |  |        del_arr: {
 | 
	
		
			
				|  |  |          ids: [],
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      page: 1, //默认页数  为1
 | 
	
		
			
				|  |  | -      total: 0, //返回的总数据
 | 
	
		
			
				|  |  | -      pagesize: 10, //每页显示的数据
 | 
	
		
			
				|  |  | +      val_page:'',//存入某一页文本框选中的数量
 | 
	
		
			
				|  |  | +      page: 1,//默认页数  为1
 | 
	
		
			
				|  |  | +      total: 0,//返回的总数据
 | 
	
		
			
				|  |  | +      pagesize: 10,//每页显示的数据
 | 
	
		
			
				|  |  |        table_loading: false,
 | 
	
		
			
				|  |  |        staff_loading: false,
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -425,11 +426,11 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    components: {
 | 
	
		
			
				|  |  |      EmployeeSelector1,
 | 
	
		
			
				|  |  | -    noData,
 | 
	
		
			
				|  |  | +	noData
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {},
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  | -    if (localStorage.getItem("framework")) {
 | 
	
		
			
				|  |  | +    if (localStorage.getItem("voluntarilyPoint")) {
 | 
	
		
			
				|  |  |        this.tips_show = false;
 | 
	
		
			
				|  |  |      } else {
 | 
	
		
			
				|  |  |        this.tips_show = true;
 | 
	
	
		
			
				|  | @@ -453,9 +454,29 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // 添加成员点击取消
 | 
	
		
			
				|  |  |      add_employee_close() {
 | 
	
		
			
				|  |  | -      this.task_cycle_name = "";
 | 
	
		
			
				|  |  |        this.add_employee_show = false;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    // 点击添加人员
 | 
	
		
			
				|  |  | +    add_employee_show_TJ(){
 | 
	
		
			
				|  |  | +      this.add_employee_show= true;//弹出添加人员框
 | 
	
		
			
				|  |  | +      var params = {
 | 
	
		
			
				|  |  | +        params: {
 | 
	
		
			
				|  |  | +          item_id: this.add_employee_id || "",
 | 
	
		
			
				|  |  | +          employee_id: this.employee_id || "",
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +      };
 | 
	
		
			
				|  |  | +      this.$axios
 | 
	
		
			
				|  |  | +        .get("/api/integral/auto/list", params)
 | 
	
		
			
				|  |  | +        .then((res) => {
 | 
	
		
			
				|  |  | +          //   let grup_list = [];
 | 
	
		
			
				|  |  | +          // for(let i=0;i<res.data.data.list.length;i++){
 | 
	
		
			
				|  |  | +          //   grup_list.push(res.data.data.list[i])
 | 
	
		
			
				|  |  | +          // }
 | 
	
		
			
				|  |  | +          // this.grouping = grup_list//拿到当前细则的人员
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          // this.grouping_Json =  this.res.data.data.list//拿到当前细则的人员
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      // 添加成员点击完成
 | 
	
		
			
				|  |  |      sub_add_employee(form) {
 | 
	
		
			
				|  |  |        let self = this;
 | 
	
	
		
			
				|  | @@ -480,7 +501,7 @@ export default {
 | 
	
		
			
				|  |  |              self.$message.error("请先选择细则");
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  |              this.disabled = true;
 | 
	
		
			
				|  |  | -            self.staff_loading = true;
 | 
	
		
			
				|  |  | +             self.staff_loading = true;
 | 
	
		
			
				|  |  |              self
 | 
	
		
			
				|  |  |                .$axios({
 | 
	
		
			
				|  |  |                  url: "/api/integral/auto/add",
 | 
	
	
		
			
				|  | @@ -490,8 +511,10 @@ export default {
 | 
	
		
			
				|  |  |                .then((res) => {
 | 
	
		
			
				|  |  |                  this.disabled = false;
 | 
	
		
			
				|  |  |                  self.table_loading = false;
 | 
	
		
			
				|  |  | -                self.staff_loading = false;
 | 
	
		
			
				|  |  | +                 self.staff_loading = false;
 | 
	
		
			
				|  |  |                  if (res.data.code == 1) {
 | 
	
		
			
				|  |  | +                  // 不需要了
 | 
	
		
			
				|  |  | +                  // sessionStorage.setItem('task_cycle_name', (self.task_cycle_name))//存入用户上次请求成功的加分周期。
 | 
	
		
			
				|  |  |                    self.add_employee_show = false;
 | 
	
		
			
				|  |  |                    self.$message.success(
 | 
	
		
			
				|  |  |                      "此次操作成功" +
 | 
	
	
		
			
				|  | @@ -503,10 +526,11 @@ export default {
 | 
	
		
			
				|  |  |                        "条"
 | 
	
		
			
				|  |  |                    );
 | 
	
		
			
				|  |  |                    // self.err_open_right();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                  
 | 
	
		
			
				|  |  |                    // self.open_right();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                  self.get_role_lists();
 | 
	
		
			
				|  |  | +                  
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          self.get_role_lists()
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                    self.$message.error(res.data.msg);
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -523,6 +547,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      editDetails() {},
 | 
	
		
			
				|  |  |      handleSelectionChange(val) {
 | 
	
	
		
			
				|  | @@ -530,6 +555,9 @@ export default {
 | 
	
		
			
				|  |  |        val.forEach((element) => {
 | 
	
		
			
				|  |  |          this.del_arr.ids.push(element.id);
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  | +      this.val_page = val
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      add_item() {},
 | 
	
		
			
				|  |  |      // 批量删除
 | 
	
	
		
			
				|  | @@ -552,13 +580,19 @@ export default {
 | 
	
		
			
				|  |  |                .then((res) => {
 | 
	
		
			
				|  |  |                  if (res.data.code == 1) {
 | 
	
		
			
				|  |  |                    self.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | +                  // 判断当页的总数与选中的数量是否相等,如果相等,此页就无数据,就请求上一页的数据
 | 
	
		
			
				|  |  | +                if(this.table_list.length == this.val_page.length){
 | 
	
		
			
				|  |  | +                  if(this.page !== 1){//判断不在第一页的时候执行
 | 
	
		
			
				|  |  | +                    this.page=this.page-1
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                    self.open_right();
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                    self.$message.error(res.data.msg);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  |                .catch((e) => {
 | 
	
		
			
				|  |  | -                // self.$message.error(e.data.msg);
 | 
	
		
			
				|  |  | +                // self.$message.error(e.data.msg); 
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  |                .finally(() => {
 | 
	
		
			
				|  |  |                  self.loading = false;
 | 
	
	
		
			
				|  | @@ -569,11 +603,9 @@ export default {
 | 
	
		
			
				|  |  |          self.$message.error("请选择要移除的人员");
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    //导入规则
 | 
	
		
			
				|  |  | -    import_rules_show() {},
 | 
	
		
			
				|  |  |      // 关闭提示语
 | 
	
		
			
				|  |  |      tips_close() {
 | 
	
		
			
				|  |  | -      localStorage.setItem("framework", "true");
 | 
	
		
			
				|  |  | +      localStorage.setItem("voluntarilyPoint", "true");
 | 
	
		
			
				|  |  |        this.tips_show = false;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //新增规则
 | 
	
	
		
			
				|  | @@ -582,6 +614,7 @@ export default {
 | 
	
		
			
				|  |  |        this.rules_detail_title = false;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      editRule(form) {
 | 
	
		
			
				|  |  |        let self = this;
 | 
	
		
			
				|  |  |        let data = null;
 | 
	
	
		
			
				|  | @@ -622,18 +655,22 @@ export default {
 | 
	
		
			
				|  |  |                  self.jieguoId = res.data.data.item_id;
 | 
	
		
			
				|  |  |                  // self.add_employee_id = res.data.data.item_id;
 | 
	
		
			
				|  |  |                  self.add_rulse_id = self.rules_detail_form.rule_id;
 | 
	
		
			
				|  |  | -                self.get_role_lists();
 | 
	
		
			
				|  |  | +                self.get_role_lists()
 | 
	
		
			
				|  |  |                  if (this.rules_detail_title == false) {
 | 
	
		
			
				|  |  |                    setTimeout(() => {
 | 
	
		
			
				|  |  |                      self.add_employee_show = true;
 | 
	
		
			
				|  |  |                    }, 600);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                } else {
 | 
	
		
			
				|  |  | +                this.disabled = false;
 | 
	
		
			
				|  |  | +                this.dialogFormVisible = false;
 | 
	
		
			
				|  |  |                  self.$message.error(res.data.msg);
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |              .catch((e) => {
 | 
	
		
			
				|  |  | -              self.$message.error(e.data.msg);
 | 
	
		
			
				|  |  | +              this.disabled = false;
 | 
	
		
			
				|  |  | +              this.dialogFormVisible = false;
 | 
	
		
			
				|  |  | +              // self.$message.error(e.data.msg);
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |              .finally(() => {
 | 
	
		
			
				|  |  |                self.loading = false;
 | 
	
	
		
			
				|  | @@ -690,10 +727,14 @@ export default {
 | 
	
		
			
				|  |  |                    }, 600);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                } else {
 | 
	
		
			
				|  |  | +              this.disabled = false;
 | 
	
		
			
				|  |  | +              this.dialogFormVisible = false;
 | 
	
		
			
				|  |  |                  self.$message.error(res.data.msg);
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |              .catch((e) => {
 | 
	
		
			
				|  |  | +              this.disabled = false;
 | 
	
		
			
				|  |  | +              this.dialogFormVisible = false;
 | 
	
		
			
				|  |  |                self.$message.error(e.data.msg);
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |              .finally(() => {
 | 
	
	
		
			
				|  | @@ -710,67 +751,20 @@ export default {
 | 
	
		
			
				|  |  |        this.rules_detail_show = false;
 | 
	
		
			
				|  |  |        this.$refs[form].resetFields();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    //第一次添加
 | 
	
		
			
				|  |  | -    // err_open_right() {
 | 
	
		
			
				|  |  | -    //   let self = this;
 | 
	
		
			
				|  |  | -    //   self.table_loading = true;
 | 
	
		
			
				|  |  | -    //   self.item_id = self.jieguoId
 | 
	
		
			
				|  |  | -    //   self.add_rulse_id = data.rule_id;
 | 
	
		
			
				|  |  | -    //   self.right_rules_detail = data;
 | 
	
		
			
				|  |  | -    //   // if (data || self.add_employee_id!="") {
 | 
	
		
			
				|  |  | -    //   //   self.add_employee_id = data.id;
 | 
	
		
			
				|  |  | -    //   //   self.add_rulse_id = data.rule_id;
 | 
	
		
			
				|  |  | -    //   //   self.right_rules_detail = data;
 | 
	
		
			
				|  |  | -    //   // }
 | 
	
		
			
				|  |  | -    //   // else{
 | 
	
		
			
				|  |  | -    //   //   self.add_employee_id = self.jieguoId
 | 
	
		
			
				|  |  | -    //   // }
 | 
	
		
			
				|  |  | -    //   var params = {
 | 
	
		
			
				|  |  | -    //     params: {
 | 
	
		
			
				|  |  | -    //       item_id: self.item_id,
 | 
	
		
			
				|  |  | -    //       employee_id: self.employee_id || "",
 | 
	
		
			
				|  |  | -    //       page: self.page,
 | 
	
		
			
				|  |  | -    //       page_size:Number(this.pagesize)
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //   };
 | 
	
		
			
				|  |  | -    //   self.$axios
 | 
	
		
			
				|  |  | -    //     .get("/api/integral/auto/list", params)
 | 
	
		
			
				|  |  | -    //     .then((res) => {
 | 
	
		
			
				|  |  | -    //       self.table_loading = false;
 | 
	
		
			
				|  |  | -    //       if (res.data.code == 1) {
 | 
	
		
			
				|  |  | -    //         self.table_list = res.data.data.list || [];
 | 
	
		
			
				|  |  | -    //         self.total = res.data.data.total;
 | 
	
		
			
				|  |  | -    //       } else {
 | 
	
		
			
				|  |  | -    //         self.$message.error(res.data.msg);
 | 
	
		
			
				|  |  | -    //       }
 | 
	
		
			
				|  |  | -    //     })
 | 
	
		
			
				|  |  | -    //     .finally(() => {
 | 
	
		
			
				|  |  | -    //       self.table_loading = false;
 | 
	
		
			
				|  |  | -    //     });
 | 
	
		
			
				|  |  | -    // },
 | 
	
		
			
				|  |  |      open_right(data) {
 | 
	
		
			
				|  |  |        let self = this;
 | 
	
		
			
				|  |  |        self.table_loading = true;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        if (data) {
 | 
	
		
			
				|  |  |          self.add_employee_id = data.id;
 | 
	
		
			
				|  |  |          self.add_rulse_id = data.rule_id;
 | 
	
		
			
				|  |  |          self.right_rules_detail = data;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      // if (data || self.add_employee_id!="") {
 | 
	
		
			
				|  |  | -      //   self.add_employee_id = data.id;
 | 
	
		
			
				|  |  | -      //   self.add_rulse_id = data.rule_id;
 | 
	
		
			
				|  |  | -      //   self.right_rules_detail = data;
 | 
	
		
			
				|  |  | -      // }
 | 
	
		
			
				|  |  | -      // else{
 | 
	
		
			
				|  |  | -      //   self.add_employee_id = self.jieguoId
 | 
	
		
			
				|  |  | -      // }
 | 
	
		
			
				|  |  |        var params = {
 | 
	
		
			
				|  |  |          params: {
 | 
	
		
			
				|  |  |            item_id: self.add_employee_id || "",
 | 
	
		
			
				|  |  |            employee_id: self.employee_id || "",
 | 
	
		
			
				|  |  |            page: self.page,
 | 
	
		
			
				|  |  | -          page_size: Number(this.pagesize),
 | 
	
		
			
				|  |  | +          page_size:Number(this.pagesize)
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |        self.$axios
 | 
	
	
		
			
				|  | @@ -824,10 +818,16 @@ export default {
 | 
	
		
			
				|  |  |                this.rules_detail_show = false;
 | 
	
		
			
				|  |  |                this.get_rule_trees();
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | +              
 | 
	
		
			
				|  |  | +              this.dialogFormVisible = false;
 | 
	
		
			
				|  |  | +              this.disabled = false;
 | 
	
		
			
				|  |  |                this.$message.error(res.data.msg);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  | -          .catch((err) => {})
 | 
	
		
			
				|  |  | +          .catch((err) => {
 | 
	
		
			
				|  |  | +            this.dialogFormVisible = false;
 | 
	
		
			
				|  |  | +            this.disabled = false;
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  |            .finally(() => {
 | 
	
		
			
				|  |  |              this.loading = false;
 | 
	
		
			
				|  |  |            });
 | 
	
	
		
			
				|  | @@ -865,14 +865,20 @@ export default {
 | 
	
		
			
				|  |  |              .then((res) => {
 | 
	
		
			
				|  |  |                this.dialogVisible = false;
 | 
	
		
			
				|  |  |                this.disabled = false;
 | 
	
		
			
				|  |  | -              if (res.data.code == "1") {
 | 
	
		
			
				|  |  | +              if (res.data.code == '1') {
 | 
	
		
			
				|  |  |                  this.get_role_lists();
 | 
	
		
			
				|  |  |                  this.$message.success(
 | 
	
		
			
				|  |  |                    this.grouping_type ? "修改积分规则" : res.data.msg
 | 
	
		
			
				|  |  |                  );
 | 
	
		
			
				|  |  | +              }else{
 | 
	
		
			
				|  |  | +                this.dialogVisible = false;
 | 
	
		
			
				|  |  | +                this.disabled = false;
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  | -            .catch((err) => {});
 | 
	
		
			
				|  |  | +            .catch((err) => {
 | 
	
		
			
				|  |  | +              this.dialogVisible = false;
 | 
	
		
			
				|  |  | +              this.disabled = false;
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |            console.log("error submit!!");
 | 
	
		
			
				|  |  |            return false;
 | 
	
	
		
			
				|  | @@ -909,7 +915,10 @@ export default {
 | 
	
		
			
				|  |  |                  this.$message.success("删除成功");
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  | -            .catch((err) => {});
 | 
	
		
			
				|  |  | +            .catch((err) => {
 | 
	
		
			
				|  |  | +              this.dialogVisible = false;
 | 
	
		
			
				|  |  | +              this.disabled = false;
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .catch(() => {
 | 
	
		
			
				|  |  |            setTimeout(() => {
 | 
	
	
		
			
				|  | @@ -919,7 +928,7 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 获取分组
 | 
	
		
			
				|  |  |      get_role_lists() {
 | 
	
		
			
				|  |  | -      this.table_loading = true;
 | 
	
		
			
				|  |  | +      this.table_loading = true
 | 
	
		
			
				|  |  |        this.rule_trees_load = true;
 | 
	
		
			
				|  |  |        this.$axios
 | 
	
		
			
				|  |  |          .get("/api/integral/rule/trees", {
 | 
	
	
		
			
				|  | @@ -944,7 +953,7 @@ export default {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            this.table_loading = false;
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
	
		
			
				|  | @@ -1016,37 +1025,4 @@ export default {
 | 
	
		
			
				|  |  |    display: block;
 | 
	
		
			
				|  |  |    margin-bottom: 10px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -.grouping{
 | 
	
		
			
				|  |  | -  height:815.4px;
 | 
	
		
			
				|  |  | -  overflow-y: hidden; 
 | 
	
		
			
				|  |  | -  padding-right: 4.2px;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -.grouping:hover{ 
 | 
	
		
			
				|  |  | -  overflow-x: hidden; 
 | 
	
		
			
				|  |  | -  overflow-y: auto;
 | 
	
		
			
				|  |  | -  padding-right: 0px;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -//修改滚动条样式
 | 
	
		
			
				|  |  | -.grouping::-webkit-scrollbar{
 | 
	
		
			
				|  |  | -  width:4px;
 | 
	
		
			
				|  |  | -  height:10px;
 | 
	
		
			
				|  |  | -  /**/
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -.grouping::-webkit-scrollbar-track{
 | 
	
		
			
				|  |  | -  background: rgb(239, 239, 239);
 | 
	
		
			
				|  |  | -  border-radius:2px;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -.grouping::-webkit-scrollbar-thumb{
 | 
	
		
			
				|  |  | -  background: #bfbfbf;
 | 
	
		
			
				|  |  | -  border-radius:10px;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -.grouping::-webkit-scrollbar-thumb:hover{
 | 
	
		
			
				|  |  | -  background: #333;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -.grouping::-webkit-scrollbar-corner{
 | 
	
		
			
				|  |  | -  background: #179a16;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  |  </style>
 |