فهرست منبع

招聘信息后台增删改查2

Reiskuchen 5 سال پیش
والد
کامیت
a5137db33a
2فایلهای تغییر یافته به همراه3 افزوده شده و 25 حذف شده
  1. 2 24
      official_frontend/src/views/about/position.vue
  2. 1 1
      official_frontend/src/views/about/positionEdit.vue

+ 2 - 24
official_frontend/src/views/about/position.vue

@@ -60,7 +60,7 @@
             getCooperations() {
                 this.loading = true;
                 request({
-                    url: "/feedback/listFeedback",
+                    url: "/recruitment/list",
                     method: "post",
                     params: {pageIndex:1,pageSize: 9999999}
                 })
@@ -80,7 +80,7 @@
             //删除合作信息
             deleteCooperation(id) {
                 request({
-                    url: "/feedback/deleteFeedback",
+                    url: "/recruitment/delete",
                     method: "post",
                     params: { id: id }
                 })
@@ -102,28 +102,6 @@
                 });
             },
 
-            //切换置顶
-            switchSticky(id) {
-                request({
-                    url: "/cooperations/switchCooperationSticky",
-                    method: "post",
-                    params: { id: id }
-                })
-                .then(response => {
-                    this.$message({
-                        message: "操作成功",
-                        type: "success"
-                    });
-                    this.getCooperations();
-                })
-                .catch(error => {
-                    this.$message({
-                        message: error,
-                        type: "error"
-                    });
-                });
-            },
-
             showAll(i) {
                 this.detail = this.cooperations[i].content;
                 this.addDialogVisible = true;

+ 1 - 1
official_frontend/src/views/about/positionEdit.vue

@@ -106,7 +106,7 @@
                             form.append("id", this.cooperationsForm.id);
                         }
                         request({
-                            url: "/feedback/insertOrUpdateFeedback",
+                            url: "/recruitment/insertOrUpdate",
                             method: "post",
                             data: form
                         })