Browse Source

菜单调整

ljb 11 months ago
parent
commit
f43fb5be3a

src/api/technicianMonthAvgSales.js → src/api/basicResource/technicianMonthAvgSales.js


src/api/technicianRoster.js → src/api/basicResource/technicianRoster.js


src/api/cyPersonRoster.js → src/api/techPerson/cyPersonRoster.js


src/api/cyPersonSumList.js → src/api/techPerson/cyPersonSumList.js


src/api/highTechPersonSumList.js → src/api/techPerson/highTechPersonSumList.js


src/option/technicianMonthAvgSales.js → src/option/basicResource/technicianMonthAvgSales.js


src/option/technicianRoster.js → src/option/basicResource/technicianRoster.js


src/option/cyPersonRoster.js → src/option/techPerson/cyPersonRoster.js


src/option/cyPersonSumList.js → src/option/techPerson/cyPersonSumList.js


+ 1 - 0
src/option/highTechPersonSumList.js

@@ -8,6 +8,7 @@ export default {
   index: true,
   index: true,
   addBtn: false,
   addBtn: false,
   viewBtn: true,
   viewBtn: true,
+  printBtn: true,
   selection: true,
   selection: true,
   searchLabelWidth: 140,
   searchLabelWidth: 140,
   labelWidth: 140,
   labelWidth: 140,

+ 2 - 2
src/views/technician-month-avg-sales/index.vue

@@ -61,7 +61,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { getLastMonthData } from "@/api/technicianMonthAvgSales";
+import { getLastMonthData } from "@/api/basicResource/technicianMonthAvgSales";
 import {exportBloByPost} from "@/api/common";
 import {exportBloByPost} from "@/api/common";
 import YearMonthSelect from "@/components/year-month-select";
 import YearMonthSelect from "@/components/year-month-select";
 import UpdatedText from "@/components/updated-text";
 import UpdatedText from "@/components/updated-text";
@@ -193,7 +193,7 @@ export default window.$crudCommon({
   },
   },
 }, {
 }, {
   // 模块路径
   // 模块路径
-  name: 'technicianMonthAvgSales',
+  name: 'basicResource/technicianMonthAvgSales',
   res: ({ data }) => {
   res: ({ data }) => {
     data.records = data.records.map(item => {
     data.records = data.records.map(item => {
       // 处理id为空的时候,批量清除数据无法获取数据的问题
       // 处理id为空的时候,批量清除数据无法获取数据的问题

+ 3 - 2
src/views/technician-roster/index.vue

@@ -59,7 +59,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { getLastMonthData } from "@/api/technicianRoster";
+import { getLastMonthData } from "@/api/basicResource/technicianRoster";
 import {exportBloByPost} from "@/api/common";
 import {exportBloByPost} from "@/api/common";
 import YearMonthSelect from "@/components/year-month-select";
 import YearMonthSelect from "@/components/year-month-select";
 import UploadExcelDialog from "@/components/upload-excel-dialog";
 import UploadExcelDialog from "@/components/upload-excel-dialog";
@@ -161,6 +161,7 @@ export default window.$crudCommon({
         getLastMonthData({ yearAndMonth: this.params.yearAndMonth}).then(res => {
         getLastMonthData({ yearAndMonth: this.params.yearAndMonth}).then(res => {
           let data = res.data;
           let data = res.data;
           if (data.success) {
           if (data.success) {
+
             this.$message.success('读取成功!');
             this.$message.success('读取成功!');
             this.page.currentPage = 1;
             this.page.currentPage = 1;
             this.getList(this.page);
             this.getList(this.page);
@@ -171,7 +172,7 @@ export default window.$crudCommon({
   },
   },
 }, {
 }, {
   // 模块路径
   // 模块路径
-  name: 'technicianRoster',
+  name: 'basicResource/technicianRoster',
   res: ({ data }) => {
   res: ({ data }) => {
     data.records = data.records.map(item => {
     data.records = data.records.map(item => {
       item.gender = item.gender ? String(item.gender) : '';
       item.gender = item.gender ? String(item.gender) : '';

+ 1 - 1
src/views/cy-person-roster/index.vue

@@ -77,6 +77,6 @@ export default window.$crudCommon({
   },
   },
 }, {
 }, {
   // 模块路径
   // 模块路径
-  name: 'cyPersonRoster'
+  name: 'techPerson/cyPersonRoster'
 });
 });
 </script>
 </script>

+ 13 - 1
src/views/cy-person-sum-list/index.vue

@@ -17,6 +17,14 @@
         >
         >
           导出
           导出
         </el-button>
         </el-button>
+        <el-button
+          size="small"
+          type="primary"
+          icon="el-icon-printer"
+          @click="printTable"
+        >
+          打印
+        </el-button>
         <div>
         <div>
           <year-month-select v-model="params.yearAndMonth"></year-month-select>
           <year-month-select v-model="params.yearAndMonth"></year-month-select>
         </div>
         </div>
@@ -103,9 +111,13 @@ export default window.$crudCommon({
         })
         })
       });
       });
     },
     },
+
+    handlePrint() {
+      console.log("打印")
+    }
   },
   },
 }, {
 }, {
   // 模块路径
   // 模块路径
-  name: 'cyPersonSumList'
+  name: 'techPerson/cyPersonSumList'
 });
 });
 </script>
 </script>

+ 1 - 1
src/views/high-tech-person-sum-list/index.vue

@@ -107,7 +107,7 @@ export default window.$crudCommon({
   },
   },
 }, {
 }, {
   // 模块路径
   // 模块路径
-  name: 'highTechPersonSumList',
+  name: 'techPerson/highTechPersonSumList',
   res: ({ data }) => {
   res: ({ data }) => {
     data.records = data.records.map(item => {
     data.records = data.records.map(item => {
       item.gender = item.gender ? String(item.gender) : '';
       item.gender = item.gender ? String(item.gender) : '';