lilei 2 gadi atpakaļ
vecāks
revīzija
90fefc19cf

+ 9 - 0
src/api/mqmsg.js

@@ -19,3 +19,12 @@ export const handle = (params) => {
     method: 'get'
   })
 }
+// 钉钉审批
+export const checkOptionTask = (params) => {
+  const url = `/checkOptionTask`
+  return axios({
+    url: url,
+    data:params,
+    method: 'post'
+  })
+}

+ 25 - 0
src/config/router.config.js

@@ -3487,6 +3487,31 @@ export const asyncRouterMap = [
                 }
               }
             ]
+          },
+          {
+            path: '/setting/checkDingTask',
+            redirect: '/setting/checkDingTask/list',
+            name: 'checkDingTask',
+            component: BlankLayout,
+            meta: {
+              title: '钉钉审批',
+              icon: 'sketch',
+              permission: 'M_dingAuditUpdate'
+            },
+            hideChildrenInMenu: true,
+            children: [
+              {
+                path: 'list',
+                name: 'M_dingAuditUpdate',
+                component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/checkDingTask/list.vue'),
+                meta: {
+                  title: '钉钉审批',
+                  icon: 'sketch',
+                  hidden: true,
+                  permission: 'M_dingAuditUpdate'
+                }
+              }
+            ]
           }
         ]
       }

+ 41 - 0
src/views/setting/checkDingTask/list.vue

@@ -0,0 +1,41 @@
+<template>
+  <a-card size="small" :bordered="false" class="rebateSettingsList-wrap">
+    <a-spin :spinning="spinning" tip="Loading...">
+      <!-- 搜索条件 -->
+      <div ref="tableSearch" class="table-page-search-wrapper">
+         <a-button type="primary" @click="updateFun">钉钉审批查询</a-button>
+      </div>
+    </a-spin>
+  </a-card>
+</template>
+
+<script>
+import { commonMixin } from '@/utils/mixin'
+import { checkOptionTask } from '@/api/mqmsg'
+ 
+export default {
+  name: 'CheckDingTaskList',
+  mixins: [commonMixin],
+  data () {
+    return {
+      spinning: false
+    }
+  },
+  methods: {
+    // 重新同步
+    updateFun (row) {
+      const _this = this
+      _this.spinning = true
+      checkOptionTask().then(res => {
+        _this.$message.success(res)
+        _this.spinning = false
+      })
+    },
+  }
+}
+</script>
+<style lang="less" scope>
+   .ant-table-tbody .ant-table-row{
+       height:42px !important;
+    }
+</style>