Răsfoiți Sursa

注释培训重构参数

zhonghuizhen 9 luni în urmă
părinte
comite
17a840cace

+ 4 - 4
src/views/business/trainManagement/index.vue

@@ -169,7 +169,7 @@ export default {
             show: true,
             show: true,
             options: data.options,
             options: data.options,
             hoverClassAdd: 'm',
             hoverClassAdd: 'm',
-            version: '',
+            // version: '',
             mergeData: [
             mergeData: [
                 {
                 {
                     title: '在岗培训类别占比',
                     title: '在岗培训类别占比',
@@ -212,7 +212,7 @@ export default {
     },
     },
     async created () {
     async created () {
         const res = await getSetting('pxSpectacularsOption')
         const res = await getSetting('pxSpectacularsOption')
-        this.version = res.version || ''
+        // this.version = res.version || ''
         // 默认全屏展示
         // 默认全屏展示
         if (screenfull.isEnabled && !screenfull.isFullscreen) {
         if (screenfull.isEnabled && !screenfull.isFullscreen) {
             screenfull.request()
             screenfull.request()
@@ -282,8 +282,8 @@ export default {
             trainingDashBoard(
             trainingDashBoard(
                 {
                 {
                     dept: this.deptVal,
                     dept: this.deptVal,
-                    date: this.hoverClassAdd === 'm' ? this.dateValM : this.dateValY,
-                    version: this.version
+                    date: this.hoverClassAdd === 'm' ? this.dateValM : this.dateValY
+                    // version: this.version
                 }
                 }
             ).then(res => {
             ).then(res => {
                 const data = res.data[0] || {}
                 const data = res.data[0] || {}

+ 4 - 4
src/views/business/trainManagement/indexV2.vue

@@ -136,7 +136,7 @@ export default {
             show: true,
             show: true,
             options: data.options,
             options: data.options,
             hoverClassAdd: 'm',
             hoverClassAdd: 'm',
-            version: '',
+            // version: '',
             mergeData: [
             mergeData: [
                 {
                 {
                     title: '培训类别占比',
                     title: '培训类别占比',
@@ -179,7 +179,7 @@ export default {
     },
     },
     async created () {
     async created () {
         const res = await getSetting('pxSpectacularsOption')
         const res = await getSetting('pxSpectacularsOption')
-        this.version = res.version || ''
+        // this.version = res.version || ''
         // 默认全屏展示
         // 默认全屏展示
         if (screenfull.isEnabled && !screenfull.isFullscreen) {
         if (screenfull.isEnabled && !screenfull.isFullscreen) {
             screenfull.request()
             screenfull.request()
@@ -249,8 +249,8 @@ export default {
             trainingDashBoard(
             trainingDashBoard(
                 {
                 {
                     dept: this.deptVal,
                     dept: this.deptVal,
-                    date: this.hoverClassAdd === 'm' ? this.dateValM : this.dateValY,
-                    version: this.version
+                    date: this.hoverClassAdd === 'm' ? this.dateValM : this.dateValY
+                    // version: this.version
                 }
                 }
             ).then(res => {
             ).then(res => {
                 const data = res.data[0] || {}
                 const data = res.data[0] || {}