Pārlūkot izejas kodu

取消封期的websock进度

kevin_zhangl 2 gadi atpakaļ
vecāks
revīzija
3c0628621d
1 mainītis faili ar 15 papildinājumiem un 15 dzēšanām
  1. 15 15
      src/views/bonus/period.vue

+ 15 - 15
src/views/bonus/period.vue

@@ -193,7 +193,7 @@ export default {
   },
   mounted () {
     this.getData(this.currentPage, this.pageSize)
-    store.state.socket.onMessageCallback = this.onMessageCallback
+    // store.state.socket.onMessageCallback = this.onMessageCallback
   },
   data () {
     return {
@@ -253,7 +253,7 @@ export default {
     autoCalcHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.autoSettlementHint'), this.$t('common.hint'), { // '确定对当前期进行结算操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         // return network.getData(`calc/auto-calc/${currentPeriod}`)
@@ -273,7 +273,7 @@ export default {
     perfOrderHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.generatePerformanceOrderHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
          return fetchPerfOrderList(currentPeriod)
@@ -292,7 +292,7 @@ export default {
     initDataHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchInitData(currentPeriod)
@@ -311,7 +311,7 @@ export default {
     perfPeriodHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchCalcPerfPeriod(currentPeriod)
@@ -330,7 +330,7 @@ export default {
     pullPerfPeriodHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.pullPerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchPullPerfPeriod(currentPeriod)
@@ -349,7 +349,7 @@ export default {
     calcBonusHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.calculateBonusDataHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchCalcBonus(currentPeriod)
@@ -368,7 +368,7 @@ export default {
     calcBonusRecordHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.syncCalculateBonusRecordHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
          return fetchSyncCalcRecord(currentPeriod)
@@ -387,7 +387,7 @@ export default {
     pullBonusHandle(currentPeriod) {
       this.$confirm(this.$t('bonus.calculateBonusDataHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchPullBonus(currentPeriod)
@@ -406,7 +406,7 @@ export default {
     // trialCalcHandle (currentPeriod) {
     //   this.$confirm('Confirm to calculate bonus data for the current period?', this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
     //     confirmButtonText: this.$t('common.confirm'), // 确定
-    //     cancelButtonText: this.$t('cancel'), // 取消
+    //     cancelButtonText: this.$t('common.cancel'), // 取消
     //     type: 'warning'
     //   }).then(() => {
     //     return network.getData(`calc/trial-calc/${currentPeriod}`)
@@ -435,7 +435,7 @@ export default {
     closeHandle (row) {
       this.$confirm(this.$t('bonus.manuallySealHint'), this.$t('common.hint'), { // '确定对当前期进行手动封期操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
          return fetchClosePeriod(row.PERIOD_NUM)
@@ -454,7 +454,7 @@ export default {
     calcHandle (row) {
       this.$confirm(this.$t('bonus.performSettlementOperationHint'), this.$t('common.hint'), { // '确定对当前期进行结算操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchCalcPeriod(row.PERIOD_NUM)
@@ -473,7 +473,7 @@ export default {
     perfHandle (row) {
       this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchPerfPeriod(row.PERIOD_NUM)
@@ -492,7 +492,7 @@ export default {
     sentHandle (row) {
       this.$confirm(this.$t('bonus.spreadNetHint'), this.$t('common.hint'), { // '确定对当前期进行挂网操作?挂网后无法生成业绩单和结算', '提示'
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         return fetchSendPeriod(row.PERIOD_NUM)
@@ -511,7 +511,7 @@ export default {
     doAutoWithdraw () {
       this.$confirm(this.$t('bonus.allWithdrawalHint'), this.$t('common.hint'), {
         confirmButtonText: this.$t('common.confirm'), // 确定
-        cancelButtonText: this.$t('cancel'), // 取消
+        cancelButtonText: this.$t('common.cancel'), // 取消
         type: 'warning'
       }).then(() => {
         //return network.getData(`bonus/auto-withdraw`)