|
|
@@ -84,7 +84,7 @@
|
|
|
<div class="flex">
|
|
|
<div>
|
|
|
<el-table :data="dialogData" height="550" v-loading="dialogLoading">
|
|
|
- <el-table-column prop="CREATED_AT" label="操作时间" width="210">
|
|
|
+ <el-table-column prop="CREATED_AT" label="操作时间" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
{{tool.formatDate(scope.row.CREATED_AT)}}
|
|
|
</template>
|
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
dialogTableVisible: false,
|
|
|
dialogData: null,
|
|
|
currentDialogPage: 1,
|
|
|
- dialogPageSize: 10,
|
|
|
+ dialogPageSize: 100,
|
|
|
dialogLoading: true,
|
|
|
form: {
|
|
|
name: '',
|
|
|
@@ -336,6 +336,22 @@ export default {
|
|
|
}).catch(response => {
|
|
|
})
|
|
|
},
|
|
|
+ calcBonusRecordHandle(currentPeriod) {
|
|
|
+ this.$confirm('Confirm to sync calculate bonus record for the current period?', 'Hint', { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
+ confirmButtonText: 'confirm', // 确定
|
|
|
+ cancelButtonText: 'cancel', // 取消
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ return network.getData(`calc/sync-calc-record/${currentPeriod}`)
|
|
|
+ }).then(response => {
|
|
|
+ this.$message({
|
|
|
+ message: response,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.getDialogData(this.currentPage, this.pageSize)
|
|
|
+ }).catch(response => {
|
|
|
+ })
|
|
|
+ },
|
|
|
pullBonusHandle(currentPeriod) {
|
|
|
this.$confirm('Confirm to calculate bonus data for the current period?', 'Hint', { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: 'confirm', // 确定
|
|
|
@@ -499,34 +515,13 @@ export default {
|
|
|
</script>
|
|
|
<style>
|
|
|
.flex{
|
|
|
- /*position: fixed;*/
|
|
|
- /*top: calc(50vh - 200px);*/
|
|
|
- /*left:calc(50vw - 200px);*/
|
|
|
display: flex;
|
|
|
- /*width:400px;*/
|
|
|
- /*height:400px;*/
|
|
|
- /*background: rgb(190, 167, 154);*/
|
|
|
-}
|
|
|
-.lefti{
|
|
|
- width: 100px;
|
|
|
- background: chartreuse;
|
|
|
-
|
|
|
-}
|
|
|
-.item{
|
|
|
- width: 100px;
|
|
|
- height:40px;
|
|
|
- line-height: 40px;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
-.active{
|
|
|
- background: coral;
|
|
|
-}
|
|
|
-.overfowwlosc{
|
|
|
- /*width: 100px;*/
|
|
|
- /*height: 100px;*/
|
|
|
- overflow-y: scroll;
|
|
|
}
|
|
|
.button{
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
+.el-table__body {
|
|
|
+-webkit-border-horizontal-spacing: -30px;
|
|
|
+-webkit-border-vertical-spacing: -30px;
|
|
|
+}
|
|
|
</style>
|