Forráskód Böngészése

2022-10-18 update

1. 调整首页 课程总数 -》 课件总数  增加图表纵轴单位
2. 考培档案  调整图表缩放适配及左右拖放、缩放功能  调整季度条件下 查询条件不正确的问题
3. 增加富文本编辑器 获取纯文本内容的功能
moccus 2 éve
szülő
commit
f6fead74d7

+ 3 - 0
exam-06173-vue/src/components/Tinymce/index.vue

@@ -151,6 +151,9 @@ export default {
     getContent() {
       window.tinymce.get(this.tinymceId).getContent()
     },
+    getTextContent() {
+      return window.tinymce.get(this.tinymceId).getContent( { format : 'text' } );
+    },
     imageSuccessCBK(arr) {
       const that = this
       arr.forEach(v => {

+ 23 - 3
exam-06173-vue/src/views/admin/stat/total/archives.vue

@@ -193,13 +193,15 @@ export default {
       zgTableData: [],
       selectDeptCode: "",
       selectDeptName: "",
-      tableHeight: 280,
+      myChart: null,
+      tableHeight: (window.innerHeight - 657) <= 280 ? 280 : window.innerHeight - 657
     };
   },
 
   mounted() {
     this.resetDate(this.radio);
     window.addEventListener('resize', () => {
+      this.myChart.resize()
       this.tableHeight = (window.innerHeight - 657) <= 280 ? 280 : window.innerHeight - 657
     })
   },
@@ -278,14 +280,22 @@ export default {
     // 初始化图表
     initChart(xAxisData, seriesData) {
       let myChart = echarts.init(document.getElementById("chartDom"));
+      this.myChart = myChart
       let option;
 
       option = {
+        title: {
+          showTitle: true,
+          subtext: "可滚轮缩放、左右拖动查看",
+          x: "center",
+          y: "20",
+        },
         xAxis: {
           type: "category",
           data: xAxisData,
         },
         yAxis: {
+          name: '单位 (%)',
           type: "value",
         },
         legend: {
@@ -315,10 +325,20 @@ export default {
         grid: {
           show: true,
           left: "35",
-          top: "23",
+          // top: "23",
           right: "30",
           bottom: "23",
         },
+        dataZoom: [
+          {
+            id: "dataZoomX",
+            type: "inside",
+            xAxisIndex: [0],
+            filterMode: "none",
+            start: 0,
+            end: 50,
+          },
+        ],
         series: [
           {
             name: "部门培训率",
@@ -382,7 +402,7 @@ export default {
         nowDate.setDate(0)
         const day = nowDate.getDate()
         this.date = [
-          nowDate.formatDate("yyyy")+ `-${(minMonth < 10 ? "0" + minMonth : maxMonth)}-01`,
+          nowDate.formatDate("yyyy")+ `-${(minMonth < 10 ? "0" + minMonth : minMonth)}-01`,
             nowDate.formatDate("yyyy") +
             `-${(maxMonth < 10 ? "0" + maxMonth : maxMonth)}-${day}`,
         ];

+ 3 - 1
exam-06173-vue/src/views/dashboard/index.vue

@@ -34,7 +34,7 @@
           <img src="@/assets/dash/stzs.png" />
         </div>
         <div class="r">
-          <span class="statisticsTitle">课总数</span>
+          <span class="statisticsTitle">课总数</span>
           <span class="statisticsNum">{{ coursenum }}</span>
         </div>
       </el-card>
@@ -405,6 +405,7 @@ export default {
           },
           yAxis: {
             type: "value",
+            name: tabActive === 'bm' ? '单位 (个)' : '单位 (分钟)',
             minInterval: 1,
           },
           tooltip: {
@@ -484,6 +485,7 @@ export default {
             },
           },
           yAxis: {
+            name: '单位 (%)',
             type: "value",
           },
           tooltip: {