sunlupeng 1 year ago
parent
commit
226acc01ed
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/views/personnel/attendance/business/index.vue

+ 8 - 8
src/views/personnel/attendance/business/index.vue

@@ -313,7 +313,7 @@
 <script>
 import { listSimplePosts } from "@/api/system/post";
 import { getEmployeeInfo } from "@/api/system/user";
-import { listTurnover, getTurnover, delTurnover, addTurnover, updateTurnover, exportTurnover } from "@/api/personnel/attendance/turnover/index";
+import { listBusiness, getBusiness, delBusiness, addBusiness, updateBusiness, exportBusiness } from "@/api/personnel/attendance/business/index";
 import PeopleSelect from "@/components/PeopleSelect/index.vue";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -511,7 +511,7 @@ export default {
     getList() {
       this.loading = true;
       // 执行查询
-      listTurnover(this.queryParams).then(response => {
+      listBusiness(this.queryParams).then(response => {
         this.typeList = response.data.list;
         this.total = response.data.total;
         this.loading = false;
@@ -563,7 +563,7 @@ export default {
     handleDetail(row) {
       this.reset();
       const id = row.id;
-      getTurnover(id).then(response => {
+      getBusiness(id).then(response => {
         this.form = response.data;
         this.openDetail = true;
         this.title = "详情";
@@ -573,7 +573,7 @@ export default {
     handleUpdate(row) {
       this.reset();
       const id = row.id;
-      getTurnover(id).then(response => {
+      getBusiness(id).then(response => {
         let files = response.data.fileList;
         if (files) {
           this.files = [];
@@ -599,13 +599,13 @@ export default {
       this.$refs["form"].validate(valid => {
         if (valid) {
           if (this.form.id !== undefined) {
-            updateTurnover(this.form).then(response => {
+            updateBusiness(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
               this.getList();
             });
           } else {
-            addTurnover(this.form).then(response => {
+            addBusiness(this.form).then(response => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
@@ -618,7 +618,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal.confirm('是否确认删除数据项?').then(function () {
-        return delTurnover(ids);
+        return delBusiness(ids);
       }).then(() => {
         this.getList();
         this.$modal.msgSuccess("删除成功");
@@ -633,7 +633,7 @@ export default {
       // 执行导出
       this.$modal.confirm('是否确认导出所有数据项?').then(() => {
         this.exportLoading = true;
-        return exportTurnover(params);
+        return exportBusiness(params);
       }).then(response => {
         this.$download.excel(response, '出差信息.xls');
         this.exportLoading = false;