Explorar o código

更改多人请假归队权限

sunyanqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
ec28058a0d

+ 8 - 0
src/api/peopleChuRu/bdglLeave.js

@@ -100,3 +100,11 @@ export function getAll(query) {
     method: 'get',
   })
 }
+// 归队权限
+export function guidui(data) {
+  return request({
+    url: '/peopleChuRu/bdglLeave/guidui',
+    method: 'put',
+    data: data
+  })
+}

+ 2 - 2
src/views/combatduty/regisdutyinfo/index.vue

@@ -70,7 +70,7 @@
           >新增</el-button
         >
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="success"
           plain
@@ -81,7 +81,7 @@
           v-hasPermi="['combatduty:regisdutyinfo:edit']"
           >修改</el-button
         >
-      </el-col>
+      </el-col> -->
       <el-col :span="1.5">
         <el-button
           type="danger"

+ 4 - 3
src/views/peopleChuRu/bdglLeave/index.vue

@@ -34,7 +34,7 @@
           >新增</el-button
         >
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="success"
           plain
@@ -45,7 +45,7 @@
           v-hasPermi="['peopleChuRu:bdglLeave:edit']"
           >修改</el-button
         >
-      </el-col>
+      </el-col> -->
       <el-col :span="1.5">
         <el-button
           type="danger"
@@ -1502,6 +1502,7 @@ import {
   getBdglList,
   getAllDept,
   getAll,
+  guidui
 } from "@/api/peopleChuRu/bdglLeave";
 
 import {
@@ -1737,7 +1738,7 @@ export default {
         .then(() => {
           if (this.form.id != null) {
             this.form.rejoin = "1";
-            updateBdglLeave(this.form).then((response) => {
+            guidui(this.form).then((response) => {
               this.$modal.msgSuccess("归队成功");
               this.getList();
             });