|
@@ -40,34 +40,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="部门">
|
|
<el-form-item label="部门">
|
|
- <deptData deptStyle="height:24px;line-height:24px;margin-top:7px;" v-if="toPdept && toPdept != 0" :refsName="$refs.dept" :toPdept="toPdept"></deptData>
|
|
|
|
- <el-cascader
|
|
|
|
- class="date-picker-width"
|
|
|
|
- v-model="dept_name"
|
|
|
|
- :options="dept_tree"
|
|
|
|
- :props="{ label: 'name', value: 'id' }"
|
|
|
|
- ref="dept"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- change-on-select
|
|
|
|
- placeholder="全公司"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="{ node, data }">
|
|
|
|
- <span><WWOpenData type="departmentName" :openid="data.name"></WWOpenData></span>
|
|
|
|
- <!-- <span v-if="!node.isLeaf"> ({{ data.children.length }}) </span> -->
|
|
|
|
- </template>
|
|
|
|
- </el-cascader>
|
|
|
|
- <!-- 这是选部门多选。如果更改需求用这个: -->
|
|
|
|
- <!-- <el-cascader
|
|
|
|
- v-model="dept_name"
|
|
|
|
- :options="dept_tree"
|
|
|
|
- :props="{ multiple: true, checkStrictly: true }"
|
|
|
|
- class="date-picker-width"
|
|
|
|
- ref="dept"
|
|
|
|
- clearable
|
|
|
|
- collapse-tags
|
|
|
|
- placeholder="全公司"
|
|
|
|
- ></el-cascader>-->
|
|
|
|
|
|
+ <ShowDeptName @confirm="deptConfirm"></ShowDeptName>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="积分类型">
|
|
<el-form-item label="积分类型">
|
|
@@ -116,8 +89,7 @@
|
|
|
|
|
|
<br />
|
|
<br />
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <!-- <el-button type="primary" plain @click="dialogVisibles" :disabled="deriveDis">导出排名</el-button> -->
|
|
|
|
- <a :href="aherfUrl" ref="aherfClick"></a>
|
|
|
|
|
|
+ <el-button type="primary" plain @click="dialogVisibles">导出排名</el-button>
|
|
<!-- <el-button type="primary" plain @click="byRanking">轮播排名</el-button> -->
|
|
<!-- <el-button type="primary" plain @click="byRanking">轮播排名</el-button> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -154,6 +126,7 @@
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
layout="total, sizes, prev, pager, next"
|
|
layout="total, sizes, prev, pager, next"
|
|
:page-size="formData.page_size"
|
|
:page-size="formData.page_size"
|
|
|
|
+ :current-page="formData.page"
|
|
:total="total"
|
|
:total="total"
|
|
></el-pagination>
|
|
></el-pagination>
|
|
</center>
|
|
</center>
|
|
@@ -182,25 +155,14 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<el-form-item label="部门">
|
|
<el-form-item label="部门">
|
|
- <deptData deptStyle="height:24px;line-height:24px;margin-top:7px;" v-if="toPdept2 && toPdept2 != 0" :refsName="$refs.dept2" :toPdept="toPdept2"></deptData>
|
|
|
|
- <el-cascader
|
|
|
|
- class="date-picker-width cascader_bm"
|
|
|
|
- v-model="Dc_Data.dept_name"
|
|
|
|
- :props="{ label: 'name', value: 'id' }"
|
|
|
|
- :options="dept_tree"
|
|
|
|
- ref="dept2"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- change-on-select
|
|
|
|
- placeholder="全公司"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="{ node, data }">
|
|
|
|
- <span><WWOpenData type="departmentName" :openid="data.name"></WWOpenData></span>
|
|
|
|
- <!-- <span v-if="!node.isLeaf"> ({{ data.children.length }}) </span> -->
|
|
|
|
- </template>
|
|
|
|
- </el-cascader>
|
|
|
|
|
|
+ <ShowDeptName :deptId.sync="Dc_Data.dept_id"></ShowDeptName>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="积分类型">
|
|
|
|
+ <el-select v-model="Dc_Data.pt_id" style="width:120px" placeholder="积分类型">
|
|
|
|
+ <el-option label="B分" :value="3"></el-option>
|
|
|
|
+ <el-option label="A分" :value="2"></el-option>
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
<el-form-item style="margin-left:20px">
|
|
<el-form-item style="margin-left:20px">
|
|
<el-select v-model="newTaskFormType" style="width:110px;" filterable placeholder="请选择">
|
|
<el-select v-model="newTaskFormType" style="width:110px;" filterable placeholder="请选择">
|
|
<el-option v-for="item in pullrow" :key="item.id" :label="item.value" :value="item.id"></el-option>
|
|
<el-option v-for="item in pullrow" :key="item.id" :label="item.value" :value="item.id"></el-option>
|
|
@@ -241,62 +203,6 @@
|
|
<el-button type="primary" @click="exportExcel">导 出</el-button>
|
|
<el-button type="primary" @click="exportExcel">导 出</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
-
|
|
|
|
- <!-- 轮播弹窗 -->
|
|
|
|
- <!-- <el-dialog
|
|
|
|
- title="轮播排名"
|
|
|
|
- :visible.sync="byRankingShow"
|
|
|
|
- top="8vh"
|
|
|
|
- width="500px">
|
|
|
|
- <div>
|
|
|
|
- <el-form :inline="true" ref="byRankingData" :model="byRankingData" :rules="byRankingDataRules" label-width="90px">
|
|
|
|
- <div style="color:rgb(122 202 126);font-size: 13px;padding:5px 0 20px 0">设置后,相关排名信息可在各类智能终端屏幕上的网页浏览器滚屏展示</div>
|
|
|
|
- <el-form-item label="展示标题">
|
|
|
|
- <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 6}" v-model="titleVals" placeholder="请输入标题" maxlength="20" show-word-limit style="width: 341px"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="月份" prop="month">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="byRankingData.month"
|
|
|
|
- class="date-picker-width"
|
|
|
|
- type="month"
|
|
|
|
- value-format="yyyy-MM"
|
|
|
|
- placeholder="选择月份排名">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="选择部门" class="elCascaderWidht">
|
|
|
|
- <deptData deptStyle="height:24px;line-height:24px;margin-top:7px;" v-if="toPdept1 && toPdept1!=0" :refsName="$refs.dept1" :toPdept="toPdept1"></deptData>
|
|
|
|
- <el-cascader
|
|
|
|
- class="date-picker-width"
|
|
|
|
- v-model="byRankingDeptId"
|
|
|
|
- :options="dept_tree"
|
|
|
|
- :props="{ label: 'name', value: 'id'}"
|
|
|
|
- ref="dept1"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- change-on-select
|
|
|
|
- placeholder="全公司"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="{ node, data }">
|
|
|
|
- <span>
|
|
|
|
- <WWOpenData type="departmentName" :openid="data.name"></WWOpenData>
|
|
|
|
- </span>
|
|
|
|
- </template>
|
|
|
|
- </el-cascader>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="人员范围" prop="position" >
|
|
|
|
- <el-radio-group v-model="byRankingData.position">
|
|
|
|
- <el-radio label="all">管理者和员工</el-radio>
|
|
|
|
- <el-radio label="manager">只看管理者</el-radio>
|
|
|
|
- <el-radio label="employee">只看员工</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
- <span slot="footer">
|
|
|
|
- <el-button @click="byRankingShow = false">取 消</el-button>
|
|
|
|
- <el-button type="primary" @click="swiperPage('byRankingData')">开始轮播</el-button>
|
|
|
|
- </span>
|
|
|
|
- </el-dialog> -->
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -328,12 +234,12 @@ export default {
|
|
//导出数据
|
|
//导出数据
|
|
value1: '', //时间
|
|
value1: '', //时间
|
|
DC_position: '全部', //人员
|
|
DC_position: '全部', //人员
|
|
- dept_name: [], //部门
|
|
|
|
- rule_id: [] //规则
|
|
|
|
|
|
+ dept_id: 0, //部门
|
|
|
|
+ rule_id: [] ,//规则
|
|
|
|
+ pt_id:3
|
|
},
|
|
},
|
|
|
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
- dept_name: [],
|
|
|
|
dept_tree: [],
|
|
dept_tree: [],
|
|
loading: false,
|
|
loading: false,
|
|
formData: {
|
|
formData: {
|
|
@@ -398,14 +304,6 @@ export default {
|
|
},
|
|
},
|
|
newTaskFormType(val) {
|
|
newTaskFormType(val) {
|
|
this.Dc_Data.rule_id = [];
|
|
this.Dc_Data.rule_id = [];
|
|
- // console.log(val)
|
|
|
|
- // if(val==1){
|
|
|
|
- // this.Dc_Data.rule_id = []
|
|
|
|
- // this.Dc_Data.val = null
|
|
|
|
- // }else if(val==2){
|
|
|
|
- // this.Dc_Data.val = []
|
|
|
|
- // this.Dc_Data.rule_id = null
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
sort(val) {
|
|
sort(val) {
|
|
if (val) {
|
|
if (val) {
|
|
@@ -414,48 +312,17 @@ export default {
|
|
this.formData.sort = 'DESC';
|
|
this.formData.sort = 'DESC';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- dept_name(val) {
|
|
|
|
- this.toPdept = val[val.length - 1];
|
|
|
|
- if (val.length !== 0) {
|
|
|
|
- // 这是选部门多选。如果更改需求用这个:
|
|
|
|
- // let dept_id = [];
|
|
|
|
- // for (var i in val) {
|
|
|
|
- // dept_id.push(val[i][0]);
|
|
|
|
- // }
|
|
|
|
- // console.log(dept_id);
|
|
|
|
- // this.formData.dept_id = dept_id;//传入选中的部门ID,是数组
|
|
|
|
-
|
|
|
|
- this.formData.dept_id = val[val.length - 1];
|
|
|
|
- } else {
|
|
|
|
- this.formData.dept_id = 0;
|
|
|
|
- }
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.$refs.dept.dropDownVisible = false;
|
|
|
|
- this.getEmployeeList();
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
byRankingDeptId(val) {
|
|
byRankingDeptId(val) {
|
|
this.toPdept1 = val[val.length - 1];
|
|
this.toPdept1 = val[val.length - 1];
|
|
this.$refs.dept1.dropDownVisible = false;
|
|
this.$refs.dept1.dropDownVisible = false;
|
|
},
|
|
},
|
|
- 'Dc_Data.dept_name': function(val) {
|
|
|
|
- this.toPdept2 = val[val.length - 1];
|
|
|
|
- this.$refs.dept2.dropDownVisible = false;
|
|
|
|
- }
|
|
|
|
- // rule_id(val) {
|
|
|
|
- // console.log(val)
|
|
|
|
- // if (val.length !== 0) {
|
|
|
|
- // this.formData.rule_id = [];
|
|
|
|
- // val.forEach((element, index) => {
|
|
|
|
- // this.formData.rule_id.push(element[element.length - 1]);
|
|
|
|
- // });
|
|
|
|
- // } else {
|
|
|
|
- // this.formData.rule_id !== undefined ? delete this.formData.rule_id : "";
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
},
|
|
},
|
|
components: { season },
|
|
components: { season },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ deptConfirm(id){
|
|
|
|
+ this.formData.dept_id = id;
|
|
|
|
+ this.getEmployeeList();
|
|
|
|
+ },
|
|
takePartInno() {
|
|
takePartInno() {
|
|
this.$refs['dropOuOfonref'].visible = true;
|
|
this.$refs['dropOuOfonref'].visible = true;
|
|
},
|
|
},
|
|
@@ -577,11 +444,9 @@ export default {
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- let data = JSON.parse(JSON.stringify(this.formData));
|
|
|
|
- data.page = 1;
|
|
|
|
- data.page_size = 10;
|
|
|
|
|
|
+ this.formData.page = 1;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.get_list(data);
|
|
|
|
|
|
+ this.get_list(this.formData);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 页面变更
|
|
// 页面变更
|
|
@@ -615,41 +480,30 @@ export default {
|
|
if (bool) {
|
|
if (bool) {
|
|
data.month = moment().format('YYYY-MM');
|
|
data.month = moment().format('YYYY-MM');
|
|
}
|
|
}
|
|
- let self = this;
|
|
|
|
- self.loading = true;
|
|
|
|
|
|
+ this.loading = true;
|
|
data ? '' : (data = this.formData);
|
|
data ? '' : (data = this.formData);
|
|
this.typeName = this.formData.pt_id == 3 ? 'B分' : 'A分';
|
|
this.typeName = this.formData.pt_id == 3 ? 'B分' : 'A分';
|
|
data.position = data.position == 'manager' ? 'manager' : data.position == 'employee' ? 'employee' : 'all';
|
|
data.position = data.position == 'manager' ? 'manager' : data.position == 'employee' ? 'employee' : 'all';
|
|
- // let headers = { Accept: "application/vnd.test.v2+json" };
|
|
|
|
- self
|
|
|
|
- .$http('get', '/api/integral/statistics/ranking', data, 'v2')
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == 1) {
|
|
|
|
- self.list = res.data.data.list;
|
|
|
|
- self.total = res.data.data.total;
|
|
|
|
- } else {
|
|
|
|
- self.$message.error(res.data.data.msg);
|
|
|
|
- }
|
|
|
|
|
|
+ this.$http('get', '/api/integral/statistics/ranking', data, 'v2').then(res => {
|
|
|
|
+ this.list = res.data.data.list;
|
|
|
|
+ this.total = res.data.data.total;
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
- self.loading = false;
|
|
|
|
|
|
+ this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获取积分规则
|
|
// 获取积分规则
|
|
get_rule_tree() {
|
|
get_rule_tree() {
|
|
- let self = this;
|
|
|
|
- self
|
|
|
|
- .$http('get', '/api/integral/rule/trees', { cycle_type: '1' })
|
|
|
|
- .then(res => {
|
|
|
|
|
|
+ this.$http('get', '/api/integral/rule/trees', { cycle_type: '1' }).then(res => {
|
|
if (res.data.code == 1) {
|
|
if (res.data.code == 1) {
|
|
// let arr = res.data.data.tree
|
|
// let arr = res.data.data.tree
|
|
- self.rule_trees = this.getTreeData(res.data.data.rule_tree);
|
|
|
|
|
|
+ this.rule_trees = this.getTreeData(res.data.data.rule_tree);
|
|
} else {
|
|
} else {
|
|
- self.$message.error(res.data.data.msg);
|
|
|
|
|
|
+ this.$message.error(res.data.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(e => {
|
|
.catch(e => {
|
|
- self.$message.error('获取积分规则失败');
|
|
|
|
|
|
+ this.$message.error('获取积分规则失败');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 递归判断列表,把最后的children设为undefined
|
|
// 递归判断列表,把最后的children设为undefined
|
|
@@ -681,27 +535,15 @@ export default {
|
|
return data;
|
|
return data;
|
|
},
|
|
},
|
|
getEmployeeList() {
|
|
getEmployeeList() {
|
|
- let self = this;
|
|
|
|
- self
|
|
|
|
- .$http('get', '/api/employee/index', { dept_id: self.formData.dept_id, is_official: 1, page_size: 2000, page: 0 })
|
|
|
|
|
|
+ this.$http('get', '/api/employee/index', { dept_id: this.formData.dept_id, is_official: 1, page_size: 2000, page: 0 })
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 1) {
|
|
if (res.data.code == 1) {
|
|
this.employee_map = res.data.data.list;
|
|
this.employee_map = res.data.data.list;
|
|
} else {
|
|
} else {
|
|
- self.$message.error(res.data.data.msg);
|
|
|
|
|
|
+ this.$message.error(res.data.data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.finally(() => {});
|
|
.finally(() => {});
|
|
- // self
|
|
|
|
- // .$http("get", "/api/employee/list", { dept_id: self.formData.dept_id })
|
|
|
|
- // .then(res => {
|
|
|
|
- // if (res.data.code == 1) {
|
|
|
|
- // this.employee_map = res.data.data.list;
|
|
|
|
- // } else {
|
|
|
|
- // self.$message.error(res.data.data.msg);
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // .finally(() => {});
|
|
|
|
},
|
|
},
|
|
downloadResult() {
|
|
downloadResult() {
|
|
if (this.deriveJobIf < 5) {
|
|
if (this.deriveJobIf < 5) {
|
|
@@ -731,100 +573,30 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
exportExcel() {
|
|
exportExcel() {
|
|
- this.aherfUrl = '';
|
|
|
|
- this.$confirm('确认导出排名?', '导出', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- //人员
|
|
|
|
- this.Dc_Data.DC_position =
|
|
|
|
- this.Dc_Data.DC_position == 'manager' ? 'manager' : this.Dc_Data.DC_position == 'employee' ? 'employee' : this.Dc_Data.DC_position == '全部' ? 'all' : 'all';
|
|
|
|
-
|
|
|
|
- //部门
|
|
|
|
- let dept_name;
|
|
|
|
- for (let i in this.Dc_Data.dept_name) {
|
|
|
|
- dept_name = this.Dc_Data.dept_name[i];
|
|
|
|
- }
|
|
|
|
- this.Dc_Data.dept_name = dept_name;
|
|
|
|
- this.deriveDis = true;
|
|
|
|
- let params = {
|
|
|
|
- employee_id: this.$store.getters.user_info.id,
|
|
|
|
- position: this.Dc_Data.DC_position
|
|
|
|
- };
|
|
|
|
- this.Dc_Data.value1 ? (params.start_date = this.Dc_Data.value1[0]) : '';
|
|
|
|
- this.Dc_Data.value1 ? (params.end_date = this.Dc_Data.value1[1]) : '';
|
|
|
|
- this.Dc_Data.dept_name > 0 ? (params.dept_id = this.Dc_Data.dept_name) : (params.dept_id = 0);
|
|
|
|
- this.Dc_Data.rule_id.length > 0 ? (params.rule_id = this.Dc_Data.rule_id) : '';
|
|
|
|
- this.$http('get', '/api/download/ranking/v2', params).then(res => {
|
|
|
|
- if (res.data.code == 1) {
|
|
|
|
- this.deriveJobId = res.data.data.job_id;
|
|
|
|
- this.downloadResult();
|
|
|
|
- } else {
|
|
|
|
- this.deriveDis = false;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- this.dialogVisible = false;
|
|
|
|
- })
|
|
|
|
- .catch(() => {});
|
|
|
|
-
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
- let data = '';
|
|
|
|
- if (this.Dc_Data.value1) {
|
|
|
|
- data += '&start_date=' + this.Dc_Data.value1[0];
|
|
|
|
- data += '&end_date=' + this.Dc_Data.value1[1];
|
|
|
|
- }
|
|
|
|
- data += '&position=' + this.Dc_Data.DC_position;
|
|
|
|
-
|
|
|
|
- this.Dc_Data.dept_name > 0 ? (data += '&dept_id=' + this.Dc_Data.dept_name) : (data += '&dept_id=0');
|
|
|
|
-
|
|
|
|
- if (this.Dc_Data.rule_id.length > 0) {
|
|
|
|
- data += '&rule_id=' + this.Dc_Data.rule_id;
|
|
|
|
- }
|
|
|
|
- let token = this.$getToken ? this.$getToken : getToken();
|
|
|
|
- window.open(process.env.BASE_API + '/api/download/ranking/v2?pt_id=3&employee_id=' + this.$store.getters.user_info.id + data + '&token=' + token, '_blank');
|
|
|
|
|
|
+ //人员
|
|
|
|
+ this.Dc_Data.DC_position =this.Dc_Data.DC_position == 'manager' ? 'manager' : this.Dc_Data.DC_position == 'employee' ? 'employee' : this.Dc_Data.DC_position == '全部' ? 'all' : 'all';
|
|
|
|
+ //部门
|
|
|
|
+ this.deriveDis = true;
|
|
|
|
+ let params = {
|
|
|
|
+ employee_id: this.$store.getters.user_info.id,
|
|
|
|
+ position: this.Dc_Data.DC_position,
|
|
|
|
+ dept_id:this.Dc_Data.dept_id,
|
|
|
|
+ pt_id:this.Dc_Data.pt_id
|
|
|
|
+ };
|
|
|
|
+ this.Dc_Data.value1 ? (params.start_date = this.Dc_Data.value1[0]) : '';
|
|
|
|
+ this.Dc_Data.value1 ? (params.end_date = this.Dc_Data.value1[1]) : '';
|
|
|
|
+ this.Dc_Data.rule_id.length > 0 ? (params.rule_id = this.Dc_Data.rule_id) : '';
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
|
+ this.$downloadFile('api/download/ranking/v2',params,this.$route.path);
|
|
},
|
|
},
|
|
- // exportExcel() {
|
|
|
|
- // let data = "&pt_id=3";
|
|
|
|
- // if (this.export_from.month) {
|
|
|
|
- // data += "&month=" + this.export_from.month;
|
|
|
|
- // } else if (this.export_from.year) {
|
|
|
|
- // data += "&year=" + this.export_from.year;
|
|
|
|
- // } else if (this.export_from.quarter) {
|
|
|
|
- // data += "&quarter=" + this.export_from.quarter;
|
|
|
|
- // }
|
|
|
|
- // this.dept_name.length > 0
|
|
|
|
- // ? (data += "&dept_id=" + this.dept_name)
|
|
|
|
- // : (data += "&dept_id=0");
|
|
|
|
- // this.formData.sort ? (data += "&sort=ASC") : "&sort=DESC";
|
|
|
|
- // if (
|
|
|
|
- // this.formData.rule_id != undefined &&
|
|
|
|
- // this.formData.rule_id.length > 0
|
|
|
|
- // ) {
|
|
|
|
- // this.formData.rule_id.forEach((element, index) => {
|
|
|
|
- // data += "&rule_id[]=" + element;
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // window.open(
|
|
|
|
- // process.env.BASE_API +
|
|
|
|
- // "/api/download/ranking/v2?employee_id=" +
|
|
|
|
- // this.$store.getters.user_info.id +
|
|
|
|
- // data,
|
|
|
|
- // "_blank"
|
|
|
|
- // );
|
|
|
|
- // },
|
|
|
|
|
|
|
|
// 获取规则分类 与 规则细则
|
|
// 获取规则分类 与 规则细则
|
|
get_rule_trees() {
|
|
get_rule_trees() {
|
|
- let self = this;
|
|
|
|
- self
|
|
|
|
|
|
+ this
|
|
.$http('get', '/api/integral/rule/trees', { cycle_type: '2' })
|
|
.$http('get', '/api/integral/rule/trees', { cycle_type: '2' })
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 1) {
|
|
if (res.data.code == 1) {
|
|
- self.rule_list = this.getTreeData(res.data.data.rule_tree);
|
|
|
|
|
|
+ this.rule_list = this.getTreeData(res.data.data.rule_tree);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.finally(() => {});
|
|
.finally(() => {});
|