阿拉蕾 1 year ago
parent
commit
469b3e396a
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/api/qw/account.js
  2. 2 2
      src/views/qw/qwAccounts/index.vue

+ 2 - 2
src/api/qw/account.js

@@ -29,8 +29,8 @@ export function addAccount(data) {
 // 审核企微功能账号管理
 export function auditAccount(data) {
   return request({
-    url: '/qw/account',
-    method: 'put',
+    url: '/qw/account/audit',
+    method: 'post',
     data: data
   })
 }

+ 2 - 2
src/views/qw/qwAccounts/index.vue

@@ -130,8 +130,8 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
+            v-hasPermi="['qw:account:query']"
             @click="handleAudit(scope.row)"
-            v-hasPermi="['qw:account:audit']"
           >审核</el-button>
           <el-button
             size="mini"
@@ -171,7 +171,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button type="primary" @click="submitForm" v-hasPermi="['qw:account:audit']">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>